1 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_menu.py: Use initthuban instead of |
4 |
|
add_thuban_dir_to_path to initialize Thuban. |
5 |
|
|
6 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
7 |
|
Mixin class for float comparisons |
8 |
|
(SubscriberMixin): New. Mixin class to test messages sent through |
9 |
|
the Connector class |
10 |
|
|
11 |
|
* test/README: Fix a typo and add the -v flag to the command for |
12 |
|
individual tests |
13 |
|
|
14 |
|
2002-09-13 Bernhard Herzog <[email protected]> |
15 |
|
|
16 |
|
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
17 |
|
the CHANGED channel too. |
18 |
|
|
19 |
|
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
20 |
|
CHANGED channel too. |
21 |
|
(Map.__init__): Call the Modifiable constructor as well. |
22 |
|
|
23 |
|
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
24 |
|
event if the modified flag changes. |
25 |
|
(Modifiable.changed): Tweak the doc-string. |
26 |
|
|
27 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
28 |
|
(MainWindow.set_position_text): Put the code that puts the text |
29 |
|
with the mouse position into the status bar into the new method |
30 |
|
set_position_text so that it can overwritten in derived classes. |
31 |
|
|
32 |
|
2002-09-12 Bernhard Herzog <[email protected]> |
33 |
|
|
34 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
35 |
|
message box on the main window. |
36 |
|
|
37 |
|
2002-09-11 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
40 |
|
the 'E' because it's less likely to interfere with other menu |
41 |
|
entries. |
42 |
|
(MainWindow.build_menu): remove an incorrect comment. |
43 |
|
|
44 |
|
2002-09-10 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
|
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
47 |
|
(_tool_command): Add sensitive parameter |
48 |
|
(_has_visible_map): Sensitivity callback to tools and other |
49 |
|
commands that require a visible map. Use it in map_zoom_in_tool, |
50 |
|
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
51 |
|
and map_full_extent |
52 |
|
|
53 |
|
2002-09-06 Bernhard Herzog <[email protected]> |
54 |
|
|
55 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
56 |
|
VIEW_POSITION |
57 |
|
|
58 |
|
2002-09-04 Frank Koormann <[email protected]> |
59 |
|
|
60 |
|
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
61 |
|
|
62 |
|
2002-09-02 Bernhard Herzog <[email protected]> |
63 |
|
|
64 |
|
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
65 |
|
wxWindows already and our implementation doesn't work correctly |
66 |
|
with wxGTK 2.3: |
67 |
|
(MapCanvas.__init__): Remove the instance variable |
68 |
|
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
69 |
|
be drawin |
70 |
|
(MapCanvas.OnIdle): Removed. |
71 |
|
|
72 |
|
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
73 |
|
a parameter to determine the size of the rectangle. |
74 |
|
(MapCanvas.find_shape_at): Create the box around the point on a |
75 |
|
layer by layer basis and make the size depend on the shape type. |
76 |
|
This solves a problem with the selection of point shapes at the |
77 |
|
border of the layer's bounding box |
78 |
|
|
79 |
|
2002-08-30 Bernhard Herzog <[email protected]> |
80 |
|
|
81 |
|
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
82 |
|
for the sensitivity of remove layer. |
83 |
|
(_can_remove_layer): New. Sensitivity callback for remove layer |
84 |
|
(Command layer_remove): Use _can_remove_layer |
85 |
|
|
86 |
|
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
87 |
|
determine whether a given layer can be deleted. |
88 |
|
|
89 |
|
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
90 |
|
(MapCanvas.do_redraw): Get rid of the unused update_region |
91 |
|
instance variable |
92 |
|
|
93 |
|
* Thuban/UI/view.py: Add/update some doc-strings. |
94 |
|
|
95 |
|
* test/: new subdirectory with a bunch of unit tests. |
96 |
|
|
97 |
|
* test/README, test/test_table.py, test/test_save.py, |
98 |
|
test/test_menu.py, test/test_load.py: Initial set of tests and |
99 |
|
brief instructions on how to run them |
100 |
|
|
101 |
|
2002-08-29 Bernhard Herzog <[email protected]> |
102 |
|
|
103 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle |
104 |
|
arcs with multiple parts. |
105 |
|
|
106 |
|
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
107 |
|
Handle degenrate rectangles. |
108 |
|
|
109 |
|
* Thuban/Model/table.py: Make writing records work correctly: |
110 |
|
(Table.__init__): Keep track of whether the DBF is open for |
111 |
|
writing |
112 |
|
(Table.write_record): Open the DBF file for writing when necessary |
113 |
|
|
114 |
|
2002-08-27 Bernhard Herzog <[email protected]> |
115 |
|
|
116 |
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
117 |
|
dbf files only for reading by default. Use a new writable dbf |
118 |
|
object for writing. |
119 |
|
|
120 |
|
2002-08-26 Bernhard Herzog <[email protected]> |
121 |
|
|
122 |
|
* Thuban/UI/mainwindow.py: Refactor the context creation: |
123 |
|
(MainWindow.Context): New method to return a context |
124 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
125 |
|
new method |
126 |
|
|
127 |
|
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
128 |
|
layer table specific code from TableGrid into LayerTableGrid |
129 |
|
(TableFrame, LayerTableFrame): Split the layer table specific code |
130 |
|
from TableFrame into LayerTableFrame |
131 |
|
(LayerTableGrid.select_shape): Remove a debug print |
132 |
|
|
133 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
134 |
|
LayerTableFrame |
135 |
|
|
136 |
|
2002-08-23 Bernhard Herzog <[email protected]> |
137 |
|
|
138 |
|
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
139 |
|
absolute filename. |
140 |
|
|
141 |
|
2002-08-22 Bernhard Herzog <[email protected]> |
142 |
|
|
143 |
|
* Thuban/Model/table.py (Table.write_record): New method to write |
144 |
|
records. |
145 |
|
(Table.__init__): Open the DBF file for writing too. |
146 |
|
|
147 |
|
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
148 |
|
into the underlying table. |
149 |
|
|
150 |
|
* extensions/shapelib/shapefil.h (DBFCommit), |
151 |
|
extensions/shapelib/dbfopen.c (DBFCommit): New API function to |
152 |
|
commit any changes made to the DBF file. |
153 |
|
|
154 |
|
* Thuban/UI/mainwindow.py (make_check_current_tool) |
155 |
|
(_tool_command): Put the code that generates the "checked" |
156 |
|
callback into a separate function so that we can reuse it |
157 |
|
elsewhere |
158 |
|
|
159 |
|
* Thuban/Model/save.py (Saver): New class to handle serializing a |
160 |
|
session into an XML file. The main reason to introduce a class is |
161 |
|
that applications built on Thuban can derive from it so that they |
162 |
|
can save additional information in a session file. |
163 |
|
(save_session): Delegate almost all the work to the Saver class. |
164 |
|
Rename the filename argument to file because it may be a file like |
165 |
|
object now. |
166 |
|
|
167 |
|
* Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility |
168 |
|
code. Remove the little test code which would be executed when the |
169 |
|
module is run as a script which didn't work anymore since it can't |
170 |
|
import the other Thuban modules. |
171 |
|
(ProcessSession, load_session): Refactor the ProcessSession to |
172 |
|
have one method for each element start and end tag so that derived |
173 |
|
classes can easily override the processing of individual tags. |
174 |
|
Also, always parse with namespaces enabled because applications |
175 |
|
built on top of Thuban will likely use namespaces if they extend |
176 |
|
the session file format. |
177 |
|
|
178 |
|
2002-08-21 Bernhard Herzog <[email protected]> |
179 |
|
|
180 |
|
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
181 |
|
because thubaninit_contents will do it for us. |
182 |
|
|
183 |
|
2002-08-16 Jan-Oliver Wagner <[email protected]> |
184 |
|
|
185 |
|
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
186 |
|
tree window already open |
187 |
|
|
188 |
2002-08-15 Bernhard Herzog <[email protected]> |
2002-08-15 Bernhard Herzog <[email protected]> |
189 |
|
|
190 |
|
* Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method |
191 |
|
with self. |
192 |
|
|
193 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse |
194 |
|
when we have actually captured it. |
195 |
|
|
196 |
* Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the |
* Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the |
197 |
shapefile and destroy the table. |
shapefile and destroy the table. |
198 |
|
|