1 |
|
2002-12-09 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_command.py: New. Tests for the command classes. |
4 |
|
|
5 |
|
* Thuban/UI/command.py (ToolCommand): New class for tool commands. |
6 |
|
(Command.IsTool): New method to distinguish between command |
7 |
|
switching tools and other commands. |
8 |
|
|
9 |
|
* Thuban/UI/view.py (MapCanvas.SelectTool): New method to select |
10 |
|
the tool to avoid direct assignments to instance variables |
11 |
|
(MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool) |
12 |
|
(MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to |
13 |
|
change the tool |
14 |
|
|
15 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an |
16 |
|
active tool's command turns insensitive, disable the tool. |
17 |
|
(_tool_command): Use the new ToolCommand class |
18 |
|
|
19 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Use the |
20 |
|
SelectTool method to change the tool |
21 |
|
(iconfile): Use the ToolCommand class |
22 |
|
|
23 |
|
2002-12-03 Bernhard Herzog <[email protected]> |
24 |
|
|
25 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle |
26 |
|
the case of selected items that are not children of Layers or Maps |
27 |
|
properly. Previously this bug would trigger an assertion in |
28 |
|
wxWindows. |
29 |
|
|
30 |
|
2002-11-06 Frank Koormann <[email protected]> |
31 |
|
|
32 |
|
* Thuban/UI/mainwindow.py: Altered the order of tools in the |
33 |
|
toolbar: First now are all navigation tools (Zoom In/Out, Pan, |
34 |
|
Full Extent). |
35 |
|
|
36 |
|
2002-10-23 Bernhard Herzog <[email protected]> |
37 |
|
|
38 |
|
* setup.py (setup call): version now 0.1.3 |
39 |
|
|
40 |
|
* MANIFEST.in: Add the files in test/ |
41 |
|
|
42 |
|
* test/README: Add note about tests requiring the iceland data |
43 |
|
|
44 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to |
45 |
|
copyright notice. |
46 |
|
|
47 |
|
2002-10-18 Bernhard Herzog <[email protected]> |
48 |
|
|
49 |
|
* test/test_map.py |
50 |
|
(TestMapWithContents.test_projected_bounding_box): Use an explicit |
51 |
|
epsilon. |
52 |
|
|
53 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual) |
54 |
|
(FloatComparisonMixin.assertFloatSeqEqual): give a more useful |
55 |
|
message if the assertion fails and don't return the return value |
56 |
|
of self.assert_. In assertFloatSeqEqual the return meant that not |
57 |
|
all items of the sequence were compared. |
58 |
|
|
59 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
60 |
|
|
61 |
|
* test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil |
62 |
|
|
63 |
|
* Thuban/Lib/fileutil.py: Fixup some whitespace and typos |
64 |
|
|
65 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): Create |
66 |
|
the string with the bounding box on the fly because of platform |
67 |
|
differences in the way %g is handled. |
68 |
|
|
69 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Create an empty |
70 |
|
DBFfile too because Thuban layers can't yet cope missing DBF |
71 |
|
files. |
72 |
|
|
73 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
74 |
|
|
75 |
|
* test/test_menu.py: Use initthuban instead of |
76 |
|
add_thuban_dir_to_path to initialize Thuban. |
77 |
|
|
78 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
79 |
|
Mixin class for float comparisons |
80 |
|
(SubscriberMixin): New. Mixin class to test messages sent through |
81 |
|
the Connector class |
82 |
|
|
83 |
|
* test/README: Fix a typo and add the -v flag to the command for |
84 |
|
individual tests |
85 |
|
|
86 |
|
* test/test_session.py: New. Test cases for Thuban.Model.session |
87 |
|
|
88 |
|
* test/test_proj.py: New. Test cases for Thuban.Model.proj |
89 |
|
|
90 |
|
* test/test_map.py: New. Test cases for Thuban.Model.map |
91 |
|
|
92 |
|
* test/test_layer.py: New. Test cases for Thuban.Model.layer |
93 |
|
|
94 |
|
* test/test_label.py: New. Test cases for Thuban.Model.label |
95 |
|
|
96 |
|
* test/test_connector.py: New. Test cases for Thuban.Lib.connector |
97 |
|
|
98 |
|
* test/test_color.py: New. Test cases for Thuban.Model.color |
99 |
|
|
100 |
|
* test/test_base.py: New. Test cases for Thuban.Model.base |
101 |
|
|
102 |
|
2002-09-13 Bernhard Herzog <[email protected]> |
103 |
|
|
104 |
|
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
105 |
|
the CHANGED channel too. |
106 |
|
|
107 |
|
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
108 |
|
CHANGED channel too. |
109 |
|
(Map.__init__): Call the Modifiable constructor as well. |
110 |
|
|
111 |
|
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
112 |
|
event if the modified flag changes. |
113 |
|
(Modifiable.changed): Tweak the doc-string. |
114 |
|
|
115 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
116 |
|
(MainWindow.set_position_text): Put the code that puts the text |
117 |
|
with the mouse position into the status bar into the new method |
118 |
|
set_position_text so that it can overwritten in derived classes. |
119 |
|
|
120 |
|
2002-09-12 Bernhard Herzog <[email protected]> |
121 |
|
|
122 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
123 |
|
message box on the main window. |
124 |
|
|
125 |
|
2002-09-11 Bernhard Herzog <[email protected]> |
126 |
|
|
127 |
|
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
128 |
|
the 'E' because it's less likely to interfere with other menu |
129 |
|
entries. |
130 |
|
(MainWindow.build_menu): remove an incorrect comment. |
131 |
|
|
132 |
|
2002-09-10 Bernhard Herzog <[email protected]> |
133 |
|
|
134 |
|
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
135 |
|
(_tool_command): Add sensitive parameter |
136 |
|
(_has_visible_map): Sensitivity callback to tools and other |
137 |
|
commands that require a visible map. Use it in map_zoom_in_tool, |
138 |
|
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
139 |
|
and map_full_extent |
140 |
|
|
141 |
|
2002-09-06 Bernhard Herzog <[email protected]> |
142 |
|
|
143 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
144 |
|
VIEW_POSITION |
145 |
|
|
146 |
|
2002-09-04 Frank Koormann <[email protected]> |
147 |
|
|
148 |
|
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
149 |
|
|
150 |
|
2002-09-02 Bernhard Herzog <[email protected]> |
151 |
|
|
152 |
|
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
153 |
|
wxWindows already and our implementation doesn't work correctly |
154 |
|
with wxGTK 2.3: |
155 |
|
(MapCanvas.__init__): Remove the instance variable |
156 |
|
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
157 |
|
be drawin |
158 |
|
(MapCanvas.OnIdle): Removed. |
159 |
|
|
160 |
|
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
161 |
|
a parameter to determine the size of the rectangle. |
162 |
|
(MapCanvas.find_shape_at): Create the box around the point on a |
163 |
|
layer by layer basis and make the size depend on the shape type. |
164 |
|
This solves a problem with the selection of point shapes at the |
165 |
|
border of the layer's bounding box |
166 |
|
|
167 |
|
2002-08-30 Bernhard Herzog <[email protected]> |
168 |
|
|
169 |
|
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
170 |
|
for the sensitivity of remove layer. |
171 |
|
(_can_remove_layer): New. Sensitivity callback for remove layer |
172 |
|
(Command layer_remove): Use _can_remove_layer |
173 |
|
|
174 |
|
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
175 |
|
determine whether a given layer can be deleted. |
176 |
|
|
177 |
|
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
178 |
|
(MapCanvas.do_redraw): Get rid of the unused update_region |
179 |
|
instance variable |
180 |
|
|
181 |
|
* Thuban/UI/view.py: Add/update some doc-strings. |
182 |
|
|
183 |
|
* test/: new subdirectory with a bunch of unit tests. |
184 |
|
|
185 |
|
* test/README, test/test_table.py, test/test_save.py, |
186 |
|
test/test_menu.py, test/test_load.py: Initial set of tests and |
187 |
|
brief instructions on how to run them |
188 |
|
|
189 |
|
2002-08-29 Bernhard Herzog <[email protected]> |
190 |
|
|
191 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle |
192 |
|
arcs with multiple parts. |
193 |
|
|
194 |
|
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
195 |
|
Handle degenrate rectangles. |
196 |
|
|
197 |
|
* Thuban/Model/table.py: Make writing records work correctly: |
198 |
|
(Table.__init__): Keep track of whether the DBF is open for |
199 |
|
writing |
200 |
|
(Table.write_record): Open the DBF file for writing when necessary |
201 |
|
|
202 |
|
2002-08-27 Bernhard Herzog <[email protected]> |
203 |
|
|
204 |
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
205 |
|
dbf files only for reading by default. Use a new writable dbf |
206 |
|
object for writing. |
207 |
|
|
208 |
|
2002-08-26 Bernhard Herzog <[email protected]> |
209 |
|
|
210 |
|
* Thuban/UI/mainwindow.py: Refactor the context creation: |
211 |
|
(MainWindow.Context): New method to return a context |
212 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
213 |
|
new method |
214 |
|
|
215 |
|
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
216 |
|
layer table specific code from TableGrid into LayerTableGrid |
217 |
|
(TableFrame, LayerTableFrame): Split the layer table specific code |
218 |
|
from TableFrame into LayerTableFrame |
219 |
|
(LayerTableGrid.select_shape): Remove a debug print |
220 |
|
|
221 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
222 |
|
LayerTableFrame |
223 |
|
|
224 |
|
2002-08-23 Bernhard Herzog <[email protected]> |
225 |
|
|
226 |
|
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
227 |
|
absolute filename. |
228 |
|
|
229 |
|
2002-08-22 Bernhard Herzog <[email protected]> |
230 |
|
|
231 |
|
* Thuban/Model/table.py (Table.write_record): New method to write |
232 |
|
records. |
233 |
|
(Table.__init__): Open the DBF file for writing too. |
234 |
|
|
235 |
|
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
236 |
|
into the underlying table. |
237 |
|
|
238 |
|
* extensions/shapelib/shapefil.h (DBFCommit), |
239 |
|
extensions/shapelib/dbfopen.c (DBFCommit): New API function to |
240 |
|
commit any changes made to the DBF file. |
241 |
|
|
242 |
|
* Thuban/UI/mainwindow.py (make_check_current_tool) |
243 |
|
(_tool_command): Put the code that generates the "checked" |
244 |
|
callback into a separate function so that we can reuse it |
245 |
|
elsewhere |
246 |
|
|
247 |
|
* Thuban/Model/save.py (Saver): New class to handle serializing a |
248 |
|
session into an XML file. The main reason to introduce a class is |
249 |
|
that applications built on Thuban can derive from it so that they |
250 |
|
can save additional information in a session file. |
251 |
|
(save_session): Delegate almost all the work to the Saver class. |
252 |
|
Rename the filename argument to file because it may be a file like |
253 |
|
object now. |
254 |
|
|
255 |
|
* Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility |
256 |
|
code. Remove the little test code which would be executed when the |
257 |
|
module is run as a script which didn't work anymore since it can't |
258 |
|
import the other Thuban modules. |
259 |
|
(ProcessSession, load_session): Refactor the ProcessSession to |
260 |
|
have one method for each element start and end tag so that derived |
261 |
|
classes can easily override the processing of individual tags. |
262 |
|
Also, always parse with namespaces enabled because applications |
263 |
|
built on top of Thuban will likely use namespaces if they extend |
264 |
|
the session file format. |
265 |
|
|
266 |
|
2002-08-21 Bernhard Herzog <[email protected]> |
267 |
|
|
268 |
|
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
269 |
|
because thubaninit_contents will do it for us. |
270 |
|
|
271 |
|
2002-08-16 Jan-Oliver Wagner <[email protected]> |
272 |
|
|
273 |
|
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
274 |
|
tree window already open |
275 |
|
|
276 |
|
2002-08-15 Bernhard Herzog <[email protected]> |
277 |
|
|
278 |
|
* Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method |
279 |
|
with self. |
280 |
|
|
281 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse |
282 |
|
when we have actually captured it. |
283 |
|
|
284 |
|
* Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the |
285 |
|
shapefile and destroy the table. |
286 |
|
|
287 |
|
* Thuban/Model/table.py (Table.Destroy): New. Close the DBF file. |
288 |
|
|
289 |
2002-08-14 Bernhard Herzog <[email protected]> |
2002-08-14 Bernhard Herzog <[email protected]> |
290 |
|
|
291 |
|
* Thuban/UI/controls.py (RecordTable.__init__): Remove the unused |
292 |
|
instance variable columns |
293 |
|
(RecordTable.GetTypeName): row and col may be negative in some |
294 |
|
cases. |
295 |
|
|
296 |
* setup.py (InstallLocal.initialize_options) |
* setup.py (InstallLocal.initialize_options) |
297 |
(InstallLocal.finalize_options, InstallLocal.user_options): New |
(InstallLocal.finalize_options, InstallLocal.user_options): New |
298 |
option create-init-file to build a thubaninit.py when running |
option create-init-file to build a thubaninit.py when running |