1 |
|
2002-08-29 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
4 |
|
Handle degenrate rectangles. |
5 |
|
|
6 |
|
* Thuban/Model/table.py: Make writing records work correctly: |
7 |
|
(Table.__init__): Keep track of whether the DBF is open for |
8 |
|
writing |
9 |
|
(Table.write_record): Open the DBF file for writing when necessary |
10 |
|
|
11 |
|
2002-08-27 Bernhard Herzog <[email protected]> |
12 |
|
|
13 |
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
14 |
|
dbf files only for reading by default. Use a new writable dbf |
15 |
|
object for writing. |
16 |
|
|
17 |
|
2002-08-26 Bernhard Herzog <[email protected]> |
18 |
|
|
19 |
|
* Thuban/UI/mainwindow.py: Refactor the context creation: |
20 |
|
(MainWindow.Context): New method to return a context |
21 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
22 |
|
new method |
23 |
|
|
24 |
|
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
25 |
|
layer table specific code from TableGrid into LayerTableGrid |
26 |
|
(TableFrame, LayerTableFrame): Split the layer table specific code |
27 |
|
from TableFrame into LayerTableFrame |
28 |
|
(LayerTableGrid.select_shape): Remove a debug print |
29 |
|
|
30 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
31 |
|
LayerTableFrame |
32 |
|
|
33 |
|
2002-08-23 Bernhard Herzog <[email protected]> |
34 |
|
|
35 |
|
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
36 |
|
absolute filename. |
37 |
|
|
38 |
|
2002-08-22 Bernhard Herzog <[email protected]> |
39 |
|
|
40 |
|
* Thuban/Model/table.py (Table.write_record): New method to write |
41 |
|
records. |
42 |
|
(Table.__init__): Open the DBF file for writing too. |
43 |
|
|
44 |
|
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
45 |
|
into the underlying table. |
46 |
|
|
47 |
|
* extensions/shapelib/shapefil.h (DBFCommit), |
48 |
|
extensions/shapelib/dbfopen.c (DBFCommit): New API function to |
49 |
|
commit any changes made to the DBF file. |
50 |
|
|
51 |
|
* Thuban/UI/mainwindow.py (make_check_current_tool) |
52 |
|
(_tool_command): Put the code that generates the "checked" |
53 |
|
callback into a separate function so that we can reuse it |
54 |
|
elsewhere |
55 |
|
|
56 |
|
* Thuban/Model/save.py (Saver): New class to handle serializing a |
57 |
|
session into an XML file. The main reason to introduce a class is |
58 |
|
that applications built on Thuban can derive from it so that they |
59 |
|
can save additional information in a session file. |
60 |
|
(save_session): Delegate almost all the work to the Saver class. |
61 |
|
Rename the filename argument to file because it may be a file like |
62 |
|
object now. |
63 |
|
|
64 |
|
* Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility |
65 |
|
code. Remove the little test code which would be executed when the |
66 |
|
module is run as a script which didn't work anymore since it can't |
67 |
|
import the other Thuban modules. |
68 |
|
(ProcessSession, load_session): Refactor the ProcessSession to |
69 |
|
have one method for each element start and end tag so that derived |
70 |
|
classes can easily override the processing of individual tags. |
71 |
|
Also, always parse with namespaces enabled because applications |
72 |
|
built on top of Thuban will likely use namespaces if they extend |
73 |
|
the session file format. |
74 |
|
|
75 |
|
2002-08-21 Bernhard Herzog <[email protected]> |
76 |
|
|
77 |
|
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
78 |
|
because thubaninit_contents will do it for us. |
79 |
|
|
80 |
|
2002-08-16 Jan-Oliver Wagner <[email protected]> |
81 |
|
|
82 |
|
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
83 |
|
tree window already open |
84 |
|
|
85 |
|
2002-08-15 Bernhard Herzog <[email protected]> |
86 |
|
|
87 |
|
* Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method |
88 |
|
with self. |
89 |
|
|
90 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse |
91 |
|
when we have actually captured it. |
92 |
|
|
93 |
|
* Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the |
94 |
|
shapefile and destroy the table. |
95 |
|
|
96 |
|
* Thuban/Model/table.py (Table.Destroy): New. Close the DBF file. |
97 |
|
|
98 |
2002-08-14 Bernhard Herzog <[email protected]> |
2002-08-14 Bernhard Herzog <[email protected]> |
99 |
|
|
100 |
* Thuban/UI/controls.py (RecordTable.__init__): Remove the unused |
* Thuban/UI/controls.py (RecordTable.__init__): Remove the unused |