/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Contents of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 672 - (show annotations)
Tue Apr 15 18:20:53 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 91472 byte(s)
update ChangeLog

1 2003-04-15 Bernhard Herzog <[email protected]>
2
3 First stab at internationalized messages:
4
5 * Thuban/__init__.py (_): Implement the translation function for
6 real using the python gettext module.
7
8 * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
9 translate empty strings.
10
11 * Thuban/UI/application.py (ThubanApplication.read_startup_files):
12 Add a missing space to a warning message
13
14 * po/README: New. Notes about the management of the translation
15 files.
16
17 * po/Makefile: New. Makefile to help manage the translation files.
18
19 * po/es.po: New. Spanish translation by Daniel Calvelo Aros
20
21 * MANIFEST.in: Include the *.mo files in Resources/Locale and the
22 translations and support files in po/
23
24 * setup.py (data_files): Add the *.mo files to the data_files too
25
26 * README: Add note about the translations when building from CVS
27
28 2003-04-14 Jonathan Coles <[email protected]>
29
30 * Thuban/UI/dock.py: Fixes some window resizing problems most
31 noticable under windows. Always assume the button bitmaps will
32 be there. Code clean up.
33 (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
34 images for the dock/undock button to the same images.
35 Work around for RTbug #1801.
36
37 * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
38 be allowed to grow within the sizer. Fixes a bug under Windows
39 where the toolbar wasn't being drawn.
40
41 2003-04-14 Frank Koormann <[email protected]>
42
43 * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
44 Updated design to try to make the button functionality more
45 transparent.
46
47 2003-04-14 Jonathan Coles <[email protected]>
48
49 * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
50 finalize the intialization of the panel.
51
52 * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
53 creation of the panel. Should be the last thing called in the
54 initializer of a subclass.
55
56 * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
57 set the current selections in the combo boxes. This is needed
58 under Windows.
59
60 * Thuban/UI/classifier.py (Classifier.__init__): Add a top
61 level panel to the dialog so that the background colors are
62 consistent under Windows.
63
64 2003-04-11 Jonathan Coles <[email protected]>
65
66 * Thuban/UI/classgen.py: Change color ramps to start at white
67 not black.
68
69 * Thuban/UI/legend.py: Enable/disable the legend buttons when
70 the legend changes. Fixes RTbug #1793.
71
72 * test/test_classification.py: Added test for copying of
73 classifications.
74
75 2003-04-11 Jonathan Coles <[email protected]>
76
77 * Thuban/UI/resource.py: New. Centralize the loading of resources
78 such as bitmaps.
79
80 * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
81 added images to the move buttons, added 'reverse' button.
82 (CustomRampPanel.__init__): Added images to the move buttons.
83 (GreyRamp): New. Generates a ramp from white to black.
84 (HotToColdRamp): New. Generates a ramp from cold to hot colors.
85
86 * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
87 ID_PROPERTY_*.
88 (Classifier.__init__): Minor changes to the layout.
89 (Classifier._OnTitleChanged): Listen for when the user edits the
90 title and update the dialog's title and the layer's title.
91
92 * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
93
94 * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
95 (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
96 if the layer's title changes.
97
98 * Thuban/UI/mainwindow.py: Added new menu item and associated code
99 to open a dialog to rename the map.
100 (MainWindow): Use new resource class to import bitmaps.
101
102 2003-04-11 Jonathan Coles <[email protected]>
103
104 * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
105 Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
106 Resources/Bitmaps/group_use_none.xpm,
107 Resources/Bitmaps/group_use_not.xpm,
108 Resources/Bitmaps/hide_layer.xpm,
109 Resources/Bitmaps/layer_properties.xpm,
110 Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
111 Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
112 New.
113
114 2003-04-10 Jonathan Coles <[email protected]>
115
116 * Thuban/Model/classification.py: (ClassGroupRange.__init__):
117 Should pass group to ClassGroup constructor.
118
119 2003-04-10 Jonathan Coles <[email protected]>
120
121 * Thuban/Model/classification.py: (ClassGroup): Move all the common
122 methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
123 here. Implement SetVisible(), IsVisible().
124 (ClassGroup.__init__): Add group parameter which acts as a copy
125 constructor.
126
127 * Thuban/UI/classifier.py (ClassTable): Add a new column for the
128 "Visible" check boxes.
129 (Classifier): Rename the buttons and refactor the code to match
130 the new labels.
131
132 * Thuban/UI/legend.py: Classify button is now called "Properties".
133 Refactored the code to change variable names.
134 (LegendTree.__FillTreeLayer): Only list a group if it is visible.
135
136 * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
137 MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
138 renamed to MainWindow.LayerEditProperties.
139 (MainWindow.ToggleLegend): Don't include map name in legend title.
140 (MainWindow.SetMap): Added the map name to the window title.
141 (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
142 MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
143 Functionality is found in the layer properties dialog.
144
145 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
146 draw visible groups.
147
148 2003-04-09 Jonathan Coles <[email protected]>
149
150 * Thuban/UI/classgen.py: Modifications to allow simple
151 addition and selection of new color schemes.
152 (MonochromaticRamp): New. Generates a ramp between two colors.
153 (RedRamp): New. Generates a ramp of all red.
154 (GreenRamp): New. Generates a ramp of all green.
155 (BlueRamp): New. Generates a ramp of all blue.
156
157 2003-04-09 Jonathan Coles <[email protected]>
158
159 * Thuban/Model/classification.py (Classification.__deepcopy__):
160 Need to copy over field and fieldType attributes.
161
162 * Thuban/Model/table.py (Table.field_range): New. Retrive the
163 maximum and minimum values over the entire table for a given
164 field.
165 (Table.GetUniqueValues): New. Retrieve all the unique values
166 in the table for a given field.
167
168 * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
169 (GenUniquePanel): New. Controls to allow the user to select
170 which unique field values they would like in the classification.
171 (CustomRampPanel): Code that was in ClassGenDialog that allows
172 the user to select the properties for a custom ramp.
173 (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
174
175 * Thuban/UI/classifier.py: Removed a lot of debugging code.
176 (Classifier._SetClassification): Callback method so that the
177 class generator can set the classification in the grid.
178 (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
179 editing of a group properties class into a wxWindows control.
180
181 * Thuban/UI/dock.py: It was decided that if the user closes
182 a dockable window the window should simply hide itself. That
183 way if the user wants to show the dock again it appears in the
184 same place as it was when it was closed.
185 (DockableWindow.Destroy): Call renamed method OnDockDestroy().
186 (DockableWindow._OnButtonClose): Hide the window instead of
187 destroying it.
188 (DockableWindow._OnClose): Hide the window instead of
189 destroying it.
190
191 * Thuban/UI/legend.py (LegendTree): Use a private method to
192 consistently set the font and style of the text. Fixes RTbug #1786.
193
194 * Thuban/UI/mainwindow.py: Import just the Classifier class.
195
196 2003-04-07 Bernhard Herzog <[email protected]>
197
198 * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
199 to the map module
200
201 2003-04-07 Bernhard Herzog <[email protected]>
202
203 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
204 favor of ToggleSessionTree
205 (MainWindow.ToggleSessionTree): New method to toggle visibility of
206 the session tree.
207 (MainWindow.SessionTreeShown): New method to return whether the
208 session tree is currently shown.
209 (MainWindow.ToggleLegend): New method to toggle visibility of the
210 legend
211 (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
212 LegendShown
213 (MainWindow.LegendShown): New method to return whether the legend
214 is currently shown.
215 (_method_command): Add checked parameter so we can define check
216 menu items
217 (_has_tree_window_shown, _has_legend_shown): Use the appropriate
218 mainwindow methods.
219 (show_session_tree, show_legend commands): Removed.
220 (toggle_session_tree, toggle_legend commands): New commands to
221 toggle the visibility of the dialogs
222
223 2003-04-07 Jonathan Coles <[email protected]>
224
225 * Thuban/UI/classgen.py: Fix Windows problem.
226
227 * Thuban/UI/dock.py: Fix Windows problem.
228
229 * Thuban/UI/mainwindow.py: Use False instead of false.
230 (MainWindow.ShowLegend): Remove unnecessary switch parameter.
231
232 2003-04-07 Jonathan Coles <[email protected]>
233
234 Since we now say that the order of the groups in a classification
235 matters, it makes sense to be able to manipulate that order. Most
236 of the changes to Thuban/Model/classification.py are to that end.
237
238 * Thuban/Model/classification.py (Classification.AppendGroup,
239 Classification.InsertGroup, Classification.ReplaceGroup,
240 Classification.RemoveGroup, Classification.GetGroup): Do as the
241 names imply.
242 (Classification.FindGroup): This was called GetGroup, but GetGroup
243 takes an index, while FindGroup takes a value.
244 (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
245 REFERENCE. Currently there is a cyclic reference between the layer
246 and its classification. If the classification doesn't need to know
247 its owning layer we can change this, since it may make sense to be
248 able to use the same classification with different layers.
249
250 * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
251
252 * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
253 not AddGroup()
254
255 * Thuban/UI/classifier.py: Now that we can depend on the order in
256 a Classification and have methods to manipulate that order we don't
257 need to use our own data structures in the grid. We can simply make
258 the grid/table access the information they need from a copy of
259 the classification object.
260 (Classifier._OnCloseBtn): Event handler for when the user clicks
261 'Close'. This is needed so if the user applies changes and then
262 continues to change the table the user has the option of discarding
263 the most recent changes and keeping what they applied.
264
265 * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
266 into the same group.
267
268 * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
269 with a really old version of proj, PJ_VERSION won't even be defined.
270 If it isn't defined then just compile so that the function always
271 returns Py_False.
272
273 * test/test_classification.py: Fix tests to use the renamed methods.
274 Still need to write tests for the new methods.
275
276 2003-04-04 Jonathan Coles <[email protected]>
277
278 * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
279 call to SetSelection out of the method and before the call
280 to __SelectField in __init__. This prevents a recursion of events
281 when _OnFieldSelect is triggered by the user.
282
283 2003-04-04 Jonathan Coles <[email protected]>
284
285 * Thuban/Model/classification.py: Rename Color.None to
286 Color.Transparent.
287 (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
288 Don't bother copying the color, since Colors are immutable.
289
290 * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
291 Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
292 Thuban/UI/renderer.py, Thuban/UI/view.py:
293 Rename Color.None to Color.Transparent.
294
295 * test/test_classification.py, test/test_load.py: Rename Color.None
296 to Color.Transparent.
297
298 2003-04-04 Jonathan Coles <[email protected]>
299
300 * Thuban/Model/classification.py: Fix assert calls.
301 (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
302 Copy the color parameter rather than hold onto a reference.
303
304 * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
305 the color object.
306 (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
307 are sure there exists only one refernce to Color.None in the system.
308 This allows us to use 'is' rather than the comparision functions.
309
310 * Thuban/Model/save.py: Fix assert calls.
311
312 * Thuban/UI/classifier.py: Fix assert calls.
313 (ClassGrid._OnCellDClick): Call up to the classifier to open the
314 dialog to edit the groups properties.
315 (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
316 correctly if a cell is resized.
317 (ClassTable.SetClassification): New. Changes the classification
318 that is in the table.
319 (ClassTable.__SetRow): Allow groups to be prepended.
320 (Classifier): New code for opening the EditProperties and
321 GenerateRanges dialogs.
322 (SelectPropertiesDialog.__GetColor): Only set the color in the
323 color dialog if the current color is not None.
324
325 * Thuban/UI/dock.py: Fix assert calls.
326
327 * Thuban/UI/legend.py: Fix assert calls.
328
329 * Thuban/UI/renderer.py: Fix assert calls.
330
331 * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
332 classifications.
333 (GenRangePanel): Panel specific to range generation.
334 (GenSingletonPanel): Panel specific to singleton generation.
335 (ClassGenerator): Class responsible for actually generating
336 the classification from the data gathered in the dialog box.
337 (PropertyRamp): Generates properties whose values range from
338 a starting property to an ending property.
339
340 2003-04-03 Bernhard Herzog <[email protected]>
341
342 * test/support.py (print_garbage_information): New function that
343 prints information about still connected messages and memory
344 leaks.
345 (run_suite): Removed.
346 (run_tests): New function for use as a replacement of
347 unittest.main in the test_* files. This one calls
348 print_garbage_information at the end.
349
350 * test/runtests.py (main): Use support.print_garbage_information
351
352 * test/test_layer.py: Use support.run_tests instead of
353 unittest.main so we get memory leak information
354 (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
355 (TestLayer.test_point_layer, TestLayer.test_empty_layer)
356 (TestLayerLegend.test_visibility): Call the layer's Destroy method
357 to fix a memory leak.
358
359 * test/test_classification.py: Use support.run_tests instead of
360 unittest.main so we get memory leak information
361 (TestClassification.test_classification): Call the layer's Destroy
362 method to fix a memory leak.
363
364 2003-04-02 Bernhard Herzog <[email protected]>
365
366 * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
367 Handle the reference counts of the return value and errors in
368 PyArg_ParseTuple correctly.
369
370 * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
371 sure the filename is absolute to avoid problems when saving the
372 session again
373
374 * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
375
376 2003-04-01 Jonathan Coles <[email protected]>
377
378 * Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
379 that there actually are points in the returned list of points
380 before trying to index into the list. The list may be empty if
381 the shape is a Null Shape.
382
383 2003-04-01 Bernhard Herzog <[email protected]>
384
385 * test/test_map.py: Don't use from <module> import *
386
387 2003-04-01 Jonathan Coles <[email protected]>
388
389 * Thuban/Model/session.py: Use LAYER_CHANGED instead of
390 LAYER_LEGEND_CHANGED
391
392 * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
393 self.Destroy() to close the window after yesterday's changes.
394
395 * test/test_map.py, test/test_session.py: Fix messages that
396 are sent from maps and layers.
397
398 2003-03-31 Jonathan Coles <[email protected]>
399
400 * Thuban/UI/classifier.py: Commented out some debugging statements.
401 (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
402 RTbug #1769.
403
404 * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
405 position (although position doesn't work yet under GTK).
406 (DockableWindow.Destroy): New. Called when the window must be
407 closed. Namely needed when the DockFrame closes and must close
408 its children.
409 (DockFrame): Listen for EVT_CLOSE and destroy all children.
410
411 * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
412 when then window is told to close.
413 (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
414 comment in source for more info.
415
416 * Thuban/UI/main.py: Show the legend by default when Thuban starts.
417
418 * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
419 symmetry with other such methods.
420 (MainWindow.ShowLegend): Show the legend docked by default.
421
422 2003-03-28 Jonathan Coles <[email protected]>
423
424 * Thuban/UI/classifier.py: Support for highlighting a specific
425 group within the grid when the classification dialog is opened.
426 Also contains a lot of debugging printouts which will later
427 be removed.
428
429 * Thuban/UI/dock.py: Complete rework on the dock code so that
430 that it is fairly removed from the rest of the Thuban application.
431 It is easy to add new docks which the rest of the program having
432 to be aware of them.
433
434 * Thuban/UI/legend.py: Modifications to support selecting a
435 specific group in the classification dialog. Changed how layers
436 are drawn when the layer is visible/invisible.
437
438 * Thuban/UI/mainwindow.py: Removed legend specific code and
439 replaced it with calls to the new dock code.
440
441 * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
442 to check if scale > 0. Trying to track down a divide by zero.
443
444 2003-03-26 Jonathan Coles <[email protected]>
445
446 * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
447 (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
448 now part of DockableWindow.
449 (LegendPanel.DoOnSelChanged): Select the current layer in the
450 map.
451 (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
452 with the selected layer and/or group.
453
454 2003-03-26 Jonathan Coles <[email protected]>
455
456 This putback contains the code for dockable windows. There is
457 no support in wxWindows as of this date for windows that can
458 attach themselves to other windows.
459
460 The current model contains a DockableWindow which has a parent
461 window for when it is detached and a dock window that it puts
462 its contents in when it is docked. The contents of a DockableWindow
463 must be a DockPanel. DockPanel itself derives from wxPanel.
464
465 * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
466 message, not a LAYER_LEGEND_CHANGED message.
467
468 * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
469
470 * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
471 as one of the style properties for the fieldTypeText item to
472 be sure that its size is correct when the text changes.
473
474 * Thuban/UI/dock.py: New. Classes for the DockPanel and
475 DockableWindow.
476
477 * Thuban/UI/legend.py: Added some more buttons and made the
478 LegendPanel a DockPanel.
479
480 * Thuban/UI/mainwindow.py: Added sash windows to the main window
481 and supporting functions for manipulating the sashes.
482 (MainWindow.ShowLegend): Create a DockableWindow with the
483 LegendPanel as the contents.
484
485 * Thuban/UI/messages.py: Added DOCKABLE_* messages
486
487 * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
488 not LAYER_LEGEND_CHANGED, messages.
489
490 2003-03-25 Jonathan Coles <[email protected]>
491
492 * setup.py: Added custom script bdist_rpm_build_script so that
493 when the rpm is built the path to wx-config is correct.
494
495 * setup.cfg: Added line saying to use the custom build script
496
497 2003-03-20 Jonathan Coles <[email protected]>
498
499 Initial implementation of the Legend.
500
501 * Thuban/UI/legend.py: New. Creates a window that shows the map's
502 Legend information and allows the user to add/modify classifications
503 and how the layers are drawn on the map.
504
505 * setup.py: New command 'build_docs' which currently uses
506 happydoc to generate html documentation for Thuban.
507
508 * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
509 Returns a string which is appropriately describes the group.
510
511 * Thuban/Model/layer.py (Layer.SetClassification): Generate a
512 LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
513
514 * Thuban/Model/map.py (Map): Rename messages and use new, more
515 specific, messages.
516
517 * Thuban/Model/messages.py: New message to indicate that a layer's
518 data has changed (LAYER_CHANGED). New map messages to indicate
519 when layers have been added/removed/changed or if the stacking order
520 of the layers has changed.
521
522 * Thuban/Model/session.py: Rename and use new messages.
523
524 * Thuban/UI/classifier.py: Remember if any changes have actually
525 been applied so that if the dialog is cancelled without an application
526 of changes we don't have to set a new classification.
527 (ClassDataPreviewer): Pulled out the window specific code and put it
528 ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
529 symbols on any DC.
530
531 * Thuban/UI/mainwindow.py: New code to open the legend.
532
533 * Thuban/UI/view.py: Use new message names.
534
535 2003-03-19 Jonathan Coles <[email protected]>
536
537 * Thuban/UI/main.py (verify_versions): New. Checks the versions
538 of Python, wxPython, and some other libraries.
539
540 * extensions/thuban/wxproj.cpp (check_version): Checks the given
541 version against what wxproj was compiled with.
542 (check_version_gtk): If wxproj was compiled with gtk then check
543 the given version against the version of the gtk library
544 currently being used.
545
546 2003-03-14 Bernhard Herzog <[email protected]>
547
548 * test/test_command.py: Run the tests when the module is run as a
549 script
550
551 2003-03-14 Bernhard Herzog <[email protected]>
552
553 Implement selection of multiple selected shapes in the same layer:
554
555 - Introduce a new class to hold the selection. This basically
556 replaces the interactor which was nothing more than the
557 selection anyway. A major difference is of course that the new
558 selection class supports multiple selected shapes in one layer
559
560 - Move the object that represents the selection from the
561 application to the canvas. The canvas is a better place than the
562 application because the selection represents which shapes and
563 layer of the map displayed by the canvas are selected and
564 affects how the map is drawn.
565
566 - Make the selection and its messages publicly available through
567 the mainwindow.
568
569 - The non-modal dialogs do not get a reference to the interactor
570 anymore as they can simply refer to their parent, the
571 mainwindow, for the what the interactor had to offer.
572
573 * Thuban/UI/selection.py: New module with a class to represent the
574 selection.
575
576 * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
577 these unused messages
578
579 * Thuban/UI/application.py (ThubanApplication.OnInit)
580 (ThubanApplication.OnExit, ThubanApplication.SetSession): The
581 interactor is gone now.
582 (ThubanApplication.CreateMainWindow): There is no interactor
583 anymore so we pass None as the interactor argument for now for
584 compatibility.
585
586 * Thuban/UI/view.py (MapCanvas.delegated_messages)
587 (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
588 Unsubscribe, delegate messages according to the delegated_messages
589 class variable.
590 (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
591 attributes from instance variables as described with the
592 delegated_methods class variable.
593 (MapCanvas.__init__): New instance variable selection holding the
594 current selection
595 (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
596 pass them on to the renderer
597 (MapCanvas.SetMap): Clear the selection when a different map is
598 selected.
599 (MapCanvas.shape_selected): Simple force a complete redraw. The
600 selection class now takes care of only issueing SHAPES_SELECTED
601 messages when the set of selected shapes actually does change.
602 (MapCanvas.SelectShapeAt): The selection is now managed in
603 self.selection
604
605 * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
606 (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
607 Unsubscribe, delegate messages according to the delegated_messages
608 class variable.
609 (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
610 attributes from instance variables as described with the
611 delegated_methods class variable.
612 (MainWindow.__init__): The interactor as ivar is gone. The
613 parameter is still there for compatibility. The selection messages
614 now come from the canvas.
615 (MainWindow.current_layer, MainWindow.has_selected_layer):
616 Delegate to the the canvas.
617 (MainWindow.LayerShowTable, MainWindow.Classify)
618 (MainWindow.identify_view_on_demand): The dialogs don't need the
619 interactor parameter anymore.
620
621 * Thuban/UI/tableview.py (TableFrame.__init__)
622 (LayerTableFrame.__init__, LayerTableFrame.OnClose)
623 (LayerTableFrame.row_selected): The interactor is gone. It's job
624 from the dialog's point of view is now done by the mainwindow,
625 i.e. the parent. Subscribe to SHAPES_SELECTED instead
626 of SELECTED_SHAPE
627
628 * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
629 is gone. It's job from the dialog's point of view is now done by
630 the mainwindow, i.e. the parent.
631
632 * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
633 gone. It's job from the dialog's point of view is now done by the
634 mainwindow, i.e. the parent.
635
636 * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
637 gone. It's job from the dialog's point of view is now done by the
638 mainwindow, i.e. the parent.
639 (SessionTreeCtrl.__init__): New parameter mainwindow which is
640 stored as self.mainwindow. The mainwindow is need so that the tree
641 can still subscribe to the selection messages.
642 (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
643 (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
644 selection is now accessible through the mainwindow. Subscribe to
645 SHAPES_SELECTED instead of SELECTED_SHAPE
646
647 * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
648 SHAPES_SELECTED message now.
649 (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
650 so deal with multiple shapes
651 (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
652 gone. It's job from the dialog's point of view is now done by the
653 mainwindow, i.e. the parent.
654
655 * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
656 parameter is now a list of shape ids.
657 (RecordTable.SetTable): The second parameter is now a list of
658 indices.
659
660 * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
661 selected_shape parameter and ivar to selected_shapes. It's now a
662 list of shape ids.
663 (MapRenderer.draw_label_layer): Deal with multiple selected
664 shapes. Rearrange the code a bit so that the setup and shape type
665 distinctions are only executed once.
666
667 * test/test_selection.py: Test cases for the selection class
668
669 2003-03-11 Jonathan Coles <[email protected]>
670
671 * Thuban/Model/load.py: Temporary fix so that the xml reader
672 doesn't cause Thuban to crash.
673
674 * Thuban/Model/layer.py: Handle the cyclic references between
675 a layer and its classification better, and be sure to disconnect
676 the classification from the layer when the layer is destroyed
677 so that we don't maintain a cyclic reference that may not be
678 garbage collected.
679
680 * Thuban/Model/classification.py: See comment for layer.py.
681
682 2003-03-12 Jan-Oliver Wagner <[email protected]>
683
684 * HOWTO-Release: New. Information on the steps for releasing
685 a new version of Thuban.
686
687 2003-03-11 Jonathan Coles <[email protected]>
688
689 * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
690 Use True instead of true.
691 (Classifier): Should have a single panel in which all the controls lie.
692
693 * Thuban/UI/proj4dialog.py: Add normal border.
694
695 * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
696
697 * Thuban/UI/mainwindow.py: Use True instead of true.
698
699 * setup.py: Update some definitions to use wxWindows2.4 files
700
701 * Data/iceland_sample_class.thuban: Fixed file so that the
702 field_type information is present.
703
704 2003-03-10 Jonathan Coles <[email protected]>
705
706 * Thuban/UI/classifier.py (Classifier.__init__): Make the
707 field type label grow so that when the text changes the
708 size is updated correctly. This may be a wxWindows bug.
709
710 2003-03-10 Jonathan Coles <[email protected]>
711
712 * Thuban/UI/application.py: Changed SESSION_CHANGED to
713 SESSION_REPLACED.
714
715 * Thuban/UI/classifier.py: Wrap text with _().
716 (ClassGrid.CreateTable): Set dimensions and size hints here,
717 instead of in Reset, so we only set the size once.
718
719 * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
720
721 * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
722 Call Close() instead of Shutdown().
723
724 * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
725
726 * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
727 Go back to using OnClose() instead of Shutdown().
728
729 2003-03-10 Jonathan Coles <[email protected]>
730
731 * Thuban/UI/classifier.py (Classifier): SelectField() needed
732 to know the old field index as well as the new one.
733
734 2003-03-10 Jonathan Coles <[email protected]>
735
736 * Thuban/UI/classifier.py (Classifier): Use __SelectField()
737 to correctly set the table information and call this from
738 __init__ and from _OnFieldSelect so that all the information
739 is up to date when the dialog opens and when a field is changed.
740
741 2003-03-10 Jonathan Coles <[email protected]>
742
743 * Thuban/Model/classification.py (Classification): Don't use
744 layer's message function directly, use the ClassChanged() method
745 when then classification changes. SetField/SetFieldType/SetLayer
746 must keep the information about field name and field type in
747 sync when an owning layer is set or removed.
748
749 * Thuban/Model/layer.py: Added ClassChanged() so that the
750 classification can tell the layer when its data has changed.
751 (Layer.SetClassification): Accepts None as an arguement to
752 remove the current classification and correctly handles
753 adding a new classification.
754
755 * Thuban/Model/load.py: Comment out print statement
756
757 * test/test_classification.py, test/test_save.py: New and
758 improved tests.
759
760 2003-03-07 Jonathan Coles <[email protected]>
761
762 * Thuban/Model/classification.py: Implemented __copy__ and
763 __deepcopy__ for ClassGroup* and ClassGroupProperites so
764 they can easily be copied by the classifier dialog.
765 (ClassGroupProperites.__init__): The default line color should
766 have been Color.Black.
767
768 * Thuban/UI/classifier.py: Setting and Getting table values now
769 uses a consistent set of functions.
770 (Classifier): Now non-modal. Has field type label which changes
771 as the field changes. Keep track of buttons in a list so that
772 we can enable/disable the buttons when the None field is selected.
773 (SelectPropertiesDialog): Add buttons to make the colors transparent.
774
775 * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
776 does what OnClose did, but can be called by the application to
777 close a window. Needed when a session changes, and we have to
778 close the classifier windows.
779
780 * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
781 Shuts down open dialogs. Used when a new session is created
782 or a session is opened.
783 (MainWindow.SaveSession): Should only call application.SaveSession()
784 if we don't call SaveSessionAs first.
785 (MainWindow.Classify): Allow different classifier dialogs for
786 different layers.
787
788 * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
789 the parent class handle it. Add Shutdown() to unsubscibe from
790 event notification and call the parent Shutdown(). This was
791 necessary so the application can close the tree window.
792
793 2003-03-06 Jonathan Coles <[email protected]>
794
795 * Thuban/Model/classification.py: Minor documentation changes,
796 Addition of __eq__ and __ne__ methods.
797 (Classification.SetLayer): prevent recursion between this method
798 and Layer.SetClassification().
799
800 * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
801
802 * Thuban/Model/layer.py (SetClassification): prevent recursion
803 between this method and Classification.SetLayer().
804
805 * test/test_classification.py, test/test_load.py,
806 test/test_session.py: Fixed and added tests for the classification
807 classes.
808
809 2003-03-06 Bernhard Herzog <[email protected]>
810
811 * Thuban/UI/classifier.py (ClassGrid.__init__)
812 (ClassGrid.CreateTable): Move the SetSelectionMode call to
813 CreateTable because otherwise it triggers an assertion in
814 wxPython/wxGTK 2.4.
815
816 2003-03-05 Jonathan Coles <[email protected]>
817
818 * Thuban/common.py: Move FIELDTYPE constants back to table.py.
819
820 * Thuban/Model/load.py: import FIELDTYPE constants from table.
821
822 * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
823
824 * Thuban/Model/table.py: Put FIELDTYPE constants back.
825
826 2003-03-05 Jonathan Coles <[email protected]>
827
828 * Thuban/UI/classifier.py: Added class documentation.
829 Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
830 Store just the groups in the table and generate the other
831 column information when it is requested. Add "None" field
832 to pull-down to select no classification.
833
834 * Thuban/common.py: Moved FIELDTYPE constants from table.py
835 (Str2Num): Only catch ValueError exceptions.
836
837 * Thuban/Model/classification.py: Class documentation. Renaming
838 of methods with Stroke to Line. Groups are stored in a single
839 list with the default as the first element. Groups are searched
840 in the order they appear in the list.
841
842 * Thuban/Model/color.py: Documentation.
843
844 * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
845 the kind of data represented by a field.
846
847 * Thuban/Model/load.py (ProcessSession): Use proper string
848 conversion function; fixes RTbug #1713.
849
850 * Thuban/Model/save.py (Saver): Store field type information.
851
852 * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
853 (Table): Add field_info_by_name() to retrieve field information
854 by specifying the field name, not the number.
855
856 * Thuban/UI/mainwindow.py: Function name changes.
857
858 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
859 get the layer classification once. Don't try to classify
860 values when the field is None: just use the default properties.
861
862 * Thuban/UI/view.py: Function name changes.
863
864 * Doc/thuban.dtd: Add field_type attribute to a classification.
865
866 2003-03-04 Bernhard Herzog <[email protected]>
867
868 * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
869 the fill and stroke layer attributes optional with suitable
870 default values. Add the stroke_width layer attribute. Use correct
871 syntax for empty elements. Make the attribute list for labels
872 refer to the label element.
873
874 2003-03-04 Bernhard Herzog <[email protected]>
875
876 * setup.py (thuban_build_py.build): Add a comment about distutils in
877 Python 2.3 containing some of the functionality we implement in
878 setup.py ourselves.
879
880 * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
881 before the selection mode. Doing it the other way round triggers
882 an assertion in wxWindows.
883
884 * Thuban/Model/save.py (escape): Fix typo in doc-string
885
886 * Thuban/Model/classification.py: Remove unnecessary wxPython
887 import
888
889 2003-03-04 Jonathan Coles <[email protected]>
890
891 * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
892 Parameter 'value' should default to None.
893
894 * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
895 the class attribute __classification is now private.
896
897 * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
898 Classifier to ClassGrid. Added support for removing selected rows,
899 which including code for keeping track of when cells are selected,
900 and deselected.
901 (ClassTable): Support for added/removing rows. Fixed a problem
902 with __ParseInput whereby it would not allow strings (only numbers)
903 to be entered.
904 (Classifier): Added button and supporting code for removing
905 selected rows.
906
907 2003-02-27 Jonathan Coles <[email protected]>
908
909 * Thuban/common.py: Moved color conversion functions into
910 Thuban/UI/common.py.
911 (Str2Num): Now converts the float (not the string) to a long/int
912 so that an exception isn't thrown.
913
914 * Thuban/UI/common.py: Common functions used in several UI modules
915
916 * Thuban/Model/classification.py: Changed the class hierarchy
917 so that a Classification consists of Groups which return
918 Properties when a value matches a Group.
919
920 * Thuban/Model/layer.py: Fixed name resolution problem.
921
922 * Thuban/Model/load.py: Use new Classification and Group functions.
923
924 * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
925 failure.
926 (Saver.write_classification): Use new Classification and Group
927 functions.
928
929 * Thuban/UI/classifier.py: Changes to use new Classification and Group
930 functions. Fix to create a tuple with a single value instead of
931 simply returning the value.
932
933 * Thuban/UI/renderer.py: Use new Classification and Group functions.
934 Use common.py functions.
935
936 * Thuban/UI/tree.py: Use common.py functions.
937
938 * test/test_classification.py: Use new Classification and Group
939 classes.
940
941 2003-02-24 Jonathan Coles <[email protected]>
942
943 * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
944 functions from Thuban color objects to wxWindow colour objects.
945
946 * Thuban/Model/classification.py (Classification): Renamed
947 GetProperties() to GetClassData(). Used the new iterator
948 in TreeInfo().
949 (ClassIterator): Iterator implementation to iterate over the
950 ClassData objects in a classification object.
951
952 * Thuban/Model/save.py (Saver.write_classificaton): Uses
953 the new iterator to save the classification information.
954
955 * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
956 for changing the stroke and fill colors and previewing the
957 changes.
958
959 * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
960 MainWindow.SaveSessionAs): Text string changes so the dialogs
961 have more meaningful titles.
962
963 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
964 Classification method name from GetProperties to GetClassData.
965
966 * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
967 instead of accessing now non-existent class variables.
968
969 2003-02-24 Bernhard Herzog <[email protected]>
970
971 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
972 unneeded Shape() call. Rendering is substantially faster without
973 it and it avoids some problems with broken shape files.
974
975 2003-02-20 Frank Koormann <[email protected]>
976
977 Force minimal size of identify and label dialogs. The autosizing
978 looked too ugly.
979
980 * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
981 * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
982 Set size of listctrl.
983 * Thuban/UI/identifyview.py (IdentifyView.__init__):
984 Set size of dialog.
985
986 2003-02-19 Jonathan Coles <[email protected]>
987
988 * test/test_classification.py, test/test_layer.py,
989 test/test_load.py, test/test_map.py, test/test_session.py:
990 Updated the tests to use the new functions that are in the
991 respective classes.
992
993 * Thuban/Model/classification.py (Classification):
994 Uses the new ClassData* classes. Modification messages are
995 passed up to the parent layer (if it exists).
996 (ClassData): New class to encapsulate the common data in each
997 classification property.
998 (ClassDataDefault): Represents the Default class. data.
999 (ClassDataPoint): Represents a single class. data point
1000 (ClassDataRange): Represents a class. range
1001 (ClassDataMap): Represents a class. map (unused).
1002
1003 * Thuban/Model/color.py: Added Color.None to represent something
1004 with no color. Color.Black represents the color black.
1005 (NoColor): Helper class derived from Color to represent something
1006 with no color.
1007
1008 * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
1009 stroke_width attributes. Made the 'classification' attribute private.
1010 New methods for setting/getting the classification.
1011
1012 * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
1013 to get the classifcation and use the new ClassData* classes to
1014 hold the classification data. Use Str2Num to convert numbers
1015 properly.
1016
1017 * Thuban/Model/save.py (Saver): Use new Color and Classification
1018 methods
1019
1020 * Thuban/UI/classifier.py (ClassGrid): New class to represent a
1021 custom grid.
1022 (ClassTable): Support for editing Values and Labels and for
1023 changing what type (point or range) of data is stored in each
1024 property based on how the user enters the data.
1025 (Classifier): Support for saving the new classifications and
1026 launching the dialog to edit a property.
1027 (SelectPropertiesDialog): New class for editing the visual
1028 properties of a classification (stroke color, width, and fill color)
1029 (ClassPreviewer): Took the Draw method from ClassRenderer and
1030 made most of it into this new class. Intend to use this class in
1031 the SelectPropertiesDialog for previewing changes.
1032
1033 * Thuban/UI/renderer.py: Use new Color and Classification methods.
1034
1035 * Thuban/UI/tree.py: Formatting changes.
1036
1037 * Doc/thuban.dtd: Add 'label' element
1038
1039 * Thuban/common.py: New. Contains common routines used throughout
1040 the code.
1041 (Str2Num): Takes a string and converts it to the "best" type of
1042 number.
1043
1044 2003-02-14 Bernhard Herzog <[email protected]>
1045
1046 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
1047 dragging flag is always set to 0 even when the tool implementation
1048 raises an exception
1049
1050 2003-02-11 Bernhard Herzog <[email protected]>
1051
1052 * Thuban/UI/application.py (ThubanApplication.splash_screen): New
1053 method to create a splash screen.
1054 (ThubanApplication.ShowMainWindow): New. Show the main window.
1055 Needed so the splash screen can display the mainwindow
1056 (ThubanApplication.OnInit): Call the
1057 new splash_screen method to determine whether the application
1058 should display a splash screen. If it displays a splash screen do
1059 not immediately show the main window.
1060
1061 2003-02-11 Jonathan Coles <[email protected]>
1062
1063 * Thuban/Model/classification.py: Added import line to fix
1064 feature conflicts between running on python2.2 and python2.1.
1065
1066 * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
1067 onto the clinfo parameter, so removed the deepcopy().
1068
1069 2003-02-10 Jonathan Coles <[email protected]>
1070
1071 * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
1072 Added element_open variable to track opening and closing of tags
1073 so that tags that don't span more than one line are closed with
1074 /> instead of </tag_name>. Use the GetDefault*() methods of
1075 the Classification class.
1076
1077 * Thuban/Model/classification.py (Classificaton): Added set and
1078 get methods for the default data. The class also takes a layer
1079 reference so that modification messages can be sent. Fixed the
1080 methods to use the new ClassData class.
1081 (ClassData): New class to encapsulate the classification data
1082
1083 * Thuban/Model/layer.py (Layer): Remove the
1084 Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
1085 SetDefault*() methods on the layer's classification object.
1086 (Layer.__init__): Use the new SetDefault*() methods in the
1087 Classification class.
1088
1089 * Thuban/Model/load.py (ProcessSession): Use the new ClassData
1090 object instead of a dictionary.
1091
1092 * Thuban/UI/classifier.py (ClassRenderer): New class to
1093 draw the classifications in the dialog box's table.
1094 (Classifier): Modified to use the ClassRenderer class.
1095
1096 * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
1097 methods of the Classification class.
1098
1099 * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
1100 of the ClassData class.
1101
1102 * test/test_classification.py, test/test_layer.py,
1103 test/test_map.py, test/test_session.py: Fix the tests to work
1104 with the above code changes.
1105
1106 2003-02-03 Jonathan Coles <[email protected]>
1107
1108 * Thuban/Model/classification.py (Classification): Added getNull()
1109 to return the NullData reference
1110
1111 * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
1112 Layer.SetStrokeWidth): Modified these functions to change the
1113 null data in the classification rather than keep these values
1114 directly in the Layer class. Menu options to change these values
1115 work again.
1116
1117 2003-01-28 Jonathan Coles <[email protected]>
1118
1119 * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
1120 Fixed crashing problem on some systems. Dialog box shows
1121 classification data.
1122
1123 * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
1124 Colors in the tree view.
1125
1126 * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
1127 the tree info for classifications. Commented out unnecessary lines.
1128
1129 * Thuban/Model/classification.py (Classification.TreeInfo): New
1130 function to add information about the classification into the
1131 tree view.
1132
1133 2003-01-27 Jan-Oliver Wagner <[email protected]>
1134
1135 * Thuban/__init__.py (_): New.
1136
1137 * Thuban/Model/classification.py, Thuban/Model/extension.py,
1138 Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
1139 Thuban/Model/session.py, Thuban/UI/application.py,
1140 Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
1141 Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
1142 Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
1143 Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
1144 Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
1145
1146 2003-01-27 Jonathan Coles <[email protected]>
1147
1148 * Thuban/Model/layer.py: Classification initialization calls.
1149
1150 * Thuban/Model/classification.py: Created class to encapsulate
1151 a layer classification. Supports specific data points and
1152 ranges.
1153
1154 * Thuban/Model/load.py: Added support for loading classification
1155 information.
1156
1157 * Thuban/Model/save.py: Added support for saving classification
1158 information.
1159
1160 * Thuban/UI/classifier.py: Initial class for a dialog box for
1161 specifying classification information.
1162
1163 * Thuban/UI/mainwindows.py: Support for opening the classifier
1164 dialog.
1165
1166 * Thuban/UI/renderer.py: Support for drawing a layer with the
1167 classification information.
1168
1169 * Data/iceland_sample_class.thuban: iceland_sample with
1170 classification data.
1171
1172 * test/test_classification: Tests for the Classification class.
1173
1174 2002-12-09 Bernhard Herzog <[email protected]>
1175
1176 * test/test_command.py: New. Tests for the command classes.
1177
1178 * Thuban/UI/command.py (ToolCommand): New class for tool commands.
1179 (Command.IsTool): New method to distinguish between command
1180 switching tools and other commands.
1181
1182 * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
1183 the tool to avoid direct assignments to instance variables
1184 (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
1185 (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
1186 change the tool
1187
1188 * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
1189 active tool's command turns insensitive, disable the tool.
1190 (_tool_command): Use the new ToolCommand class
1191
1192 * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
1193 SelectTool method to change the tool
1194 (iconfile): Use the ToolCommand class
1195
1196 2002-12-03 Bernhard Herzog <[email protected]>
1197
1198 * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
1199 the case of selected items that are not children of Layers or Maps
1200 properly. Previously this bug would trigger an assertion in
1201 wxWindows.
1202
1203 2002-11-06 Frank Koormann <[email protected]>
1204
1205 * Thuban/UI/mainwindow.py: Altered the order of tools in the
1206 toolbar: First now are all navigation tools (Zoom In/Out, Pan,
1207 Full Extent).
1208
1209 2002-10-23 Bernhard Herzog <[email protected]>
1210
1211 * setup.py (setup call): version now 0.1.3
1212
1213 * MANIFEST.in: Add the files in test/
1214
1215 * test/README: Add note about tests requiring the iceland data
1216
1217 * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
1218 copyright notice.
1219
1220 2002-10-18 Bernhard Herzog <[email protected]>
1221
1222 * test/test_map.py
1223 (TestMapWithContents.test_projected_bounding_box): Use an explicit
1224 epsilon.
1225
1226 * test/support.py (FloatComparisonMixin.assertFloatEqual)
1227 (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
1228 message if the assertion fails and don't return the return value
1229 of self.assert_. In assertFloatSeqEqual the return meant that not
1230 all items of the sequence were compared.
1231
1232 2002-09-20 Bernhard Herzog <[email protected]>
1233
1234 * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
1235
1236 * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
1237
1238 * test/test_map.py (TestMapWithContents.test_tree_info): Create
1239 the string with the bounding box on the fly because of platform
1240 differences in the way %g is handled.
1241
1242 * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
1243 DBFfile too because Thuban layers can't yet cope missing DBF
1244 files.
1245
1246 2002-09-20 Bernhard Herzog <[email protected]>
1247
1248 * test/test_menu.py: Use initthuban instead of
1249 add_thuban_dir_to_path to initialize Thuban.
1250
1251 * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
1252 Mixin class for float comparisons
1253 (SubscriberMixin): New. Mixin class to test messages sent through
1254 the Connector class
1255
1256 * test/README: Fix a typo and add the -v flag to the command for
1257 individual tests
1258
1259 * test/test_session.py: New. Test cases for Thuban.Model.session
1260
1261 * test/test_proj.py: New. Test cases for Thuban.Model.proj
1262
1263 * test/test_map.py: New. Test cases for Thuban.Model.map
1264
1265 * test/test_layer.py: New. Test cases for Thuban.Model.layer
1266
1267 * test/test_label.py: New. Test cases for Thuban.Model.label
1268
1269 * test/test_connector.py: New. Test cases for Thuban.Lib.connector
1270
1271 * test/test_color.py: New. Test cases for Thuban.Model.color
1272
1273 * test/test_base.py: New. Test cases for Thuban.Model.base
1274
1275 2002-09-13 Bernhard Herzog <[email protected]>
1276
1277 * Thuban/Model/session.py (Session.forwarded_channels): Forward
1278 the CHANGED channel too.
1279
1280 * Thuban/Model/map.py (Map.forwarded_channels): Forward the
1281 CHANGED channel too.
1282 (Map.__init__): Call the Modifiable constructor as well.
1283
1284 * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
1285 event if the modified flag changes.
1286 (Modifiable.changed): Tweak the doc-string.
1287
1288 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
1289 (MainWindow.set_position_text): Put the code that puts the text
1290 with the mouse position into the status bar into the new method
1291 set_position_text so that it can overwritten in derived classes.
1292
1293 2002-09-12 Bernhard Herzog <[email protected]>
1294
1295 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
1296 message box on the main window.
1297
1298 2002-09-11 Bernhard Herzog <[email protected]>
1299
1300 * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
1301 the 'E' because it's less likely to interfere with other menu
1302 entries.
1303 (MainWindow.build_menu): remove an incorrect comment.
1304
1305 2002-09-10 Bernhard Herzog <[email protected]>
1306
1307 * Thuban/UI/mainwindow.py (MainWindow.Map): New.
1308 (_tool_command): Add sensitive parameter
1309 (_has_visible_map): Sensitivity callback to tools and other
1310 commands that require a visible map. Use it in map_zoom_in_tool,
1311 map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
1312 and map_full_extent
1313
1314 2002-09-06 Bernhard Herzog <[email protected]>
1315
1316 * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1317 VIEW_POSITION
1318
1319 2002-09-04 Frank Koormann <[email protected]>
1320
1321 * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1322
1323 2002-09-02 Bernhard Herzog <[email protected]>
1324
1325 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
1326 wxWindows already and our implementation doesn't work correctly
1327 with wxGTK 2.3:
1328 (MapCanvas.__init__): Remove the instance variable
1329 (MapCanvas.OnPaint): Always call do_redraw when there's a map to
1330 be drawin
1331 (MapCanvas.OnIdle): Removed.
1332
1333 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
1334 a parameter to determine the size of the rectangle.
1335 (MapCanvas.find_shape_at): Create the box around the point on a
1336 layer by layer basis and make the size depend on the shape type.
1337 This solves a problem with the selection of point shapes at the
1338 border of the layer's bounding box
1339
1340 2002-08-30 Bernhard Herzog <[email protected]>
1341
1342 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
1343 for the sensitivity of remove layer.
1344 (_can_remove_layer): New. Sensitivity callback for remove layer
1345 (Command layer_remove): Use _can_remove_layer
1346
1347 * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
1348 determine whether a given layer can be deleted.
1349
1350 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1351 (MapCanvas.do_redraw): Get rid of the unused update_region
1352 instance variable
1353
1354 * Thuban/UI/view.py: Add/update some doc-strings.
1355
1356 * test/: new subdirectory with a bunch of unit tests.
1357
1358 * test/README, test/test_table.py, test/test_save.py,
1359 test/test_menu.py, test/test_load.py: Initial set of tests and
1360 brief instructions on how to run them
1361
1362 2002-08-29 Bernhard Herzog <[email protected]>
1363
1364 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1365 arcs with multiple parts.
1366
1367 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1368 Handle degenrate rectangles.
1369
1370 * Thuban/Model/table.py: Make writing records work correctly:
1371 (Table.__init__): Keep track of whether the DBF is open for
1372 writing
1373 (Table.write_record): Open the DBF file for writing when necessary
1374
1375 2002-08-27 Bernhard Herzog <[email protected]>
1376
1377 * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
1378 dbf files only for reading by default. Use a new writable dbf
1379 object for writing.
1380
1381 2002-08-26 Bernhard Herzog <[email protected]>
1382
1383 * Thuban/UI/mainwindow.py: Refactor the context creation:
1384 (MainWindow.Context): New method to return a context
1385 (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
1386 new method
1387
1388 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
1389 layer table specific code from TableGrid into LayerTableGrid
1390 (TableFrame, LayerTableFrame): Split the layer table specific code
1391 from TableFrame into LayerTableFrame
1392 (LayerTableGrid.select_shape): Remove a debug print
1393
1394 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1395 LayerTableFrame
1396
1397 2002-08-23 Bernhard Herzog <[email protected]>
1398
1399 * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
1400 absolute filename.
1401
1402 2002-08-22 Bernhard Herzog <[email protected]>
1403
1404 * Thuban/Model/table.py (Table.write_record): New method to write
1405 records.
1406 (Table.__init__): Open the DBF file for writing too.
1407
1408 * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1409 into the underlying table.
1410
1411 * extensions/shapelib/shapefil.h (DBFCommit),
1412 extensions/shapelib/dbfopen.c (DBFCommit): New API function to
1413 commit any changes made to the DBF file.
1414
1415 * Thuban/UI/mainwindow.py (make_check_current_tool)
1416 (_tool_command): Put the code that generates the "checked"
1417 callback into a separate function so that we can reuse it
1418 elsewhere
1419
1420 * Thuban/Model/save.py (Saver): New class to handle serializing a
1421 session into an XML file. The main reason to introduce a class is
1422 that applications built on Thuban can derive from it so that they
1423 can save additional information in a session file.
1424 (save_session): Delegate almost all the work to the Saver class.
1425 Rename the filename argument to file because it may be a file like
1426 object now.
1427
1428 * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
1429 code. Remove the little test code which would be executed when the
1430 module is run as a script which didn't work anymore since it can't
1431 import the other Thuban modules.
1432 (ProcessSession, load_session): Refactor the ProcessSession to
1433 have one method for each element start and end tag so that derived
1434 classes can easily override the processing of individual tags.
1435 Also, always parse with namespaces enabled because applications
1436 built on top of Thuban will likely use namespaces if they extend
1437 the session file format.
1438
1439 2002-08-21 Bernhard Herzog <[email protected]>
1440
1441 * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1442 because thubaninit_contents will do it for us.
1443
1444 2002-08-16 Jan-Oliver Wagner <[email protected]>
1445
1446 * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1447 tree window already open
1448
1449 2002-08-15 Bernhard Herzog <[email protected]>
1450
1451 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
1452 with self.
1453
1454 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
1455 when we have actually captured it.
1456
1457 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
1458 shapefile and destroy the table.
1459
1460 * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
1461
1462 2002-08-14 Bernhard Herzog <[email protected]>
1463
1464 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
1465 instance variable columns
1466 (RecordTable.GetTypeName): row and col may be negative in some
1467 cases.
1468
1469 * setup.py (InstallLocal.initialize_options)
1470 (InstallLocal.finalize_options, InstallLocal.user_options): New
1471 option create-init-file to build a thubaninit.py when running
1472 install_local
1473 (InstallLocal.run): Create the thubaninit.py module when requested
1474 (thubaninit_contents): Split the template into several parts and
1475 create a new function thubaninit_contents that creates the
1476 contents of a thubaninit module.
1477 (ThubanInstall.run): Use the new function to create the thubaninit
1478 module.
1479
1480 2002-07-30 Bernhard Herzog <[email protected]>
1481
1482 * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
1483 cleanup.
1484 (ThubanApplication.MainLoop): Extend to automatically call OnExit.
1485
1486 * Thuban/Model/session.py (Session.Destroy): Don't bypass the
1487 direct base class' Destroy method.
1488
1489 * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
1490 layers.
1491 (Map.Destroy): Destroy the label_layer as well and call the
1492 inherited Desatroymethod first so that no more messages are
1493 issued.
1494 (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
1495 message if the stacking order actually has changed. Add
1496 doc-strings.
1497 (Map.BoundingBox): Correct the doc-string.
1498 (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
1499 (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
1500
1501 * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
1502 all labels.
1503
1504 2002-07-29 Bernhard Herzog <[email protected]>
1505
1506 * Thuban/Model/map.py (Map.subscribe_layer_channels)
1507 (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
1508 to a layer's channels into separate methods.
1509 (Map.RemoveLayer, Map.AddLayer): Call the new methods
1510 (Map.Destroy): Unsubscribe from a layer's channels before
1511 destroying it.
1512
1513 * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
1514 selected_layer parameter to searched_layer which is the layer to
1515 search in.
1516 (MapCanvas.SelectShapeAt): New parameter layer to restrict the
1517 search to that layer. Return the selected layer and shape.
1518
1519 * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
1520 typo
1521
1522 2002-07-24 Bernhard Herzog <[email protected]>
1523
1524 * Thuban/UI/application.py (ThubanApplication.create_session):
1525 Extend the doc string.
1526 (ThubanApplication.subscribe_session)
1527 (ThubanApplication.unsubscribe_session): New methods to
1528 subscribe/unsubscribe to/from session channels.
1529 (ThubanApplication.SetSession): Call the new methods here.
1530 (ThubanApplication.maps_changed, ThubanApplication.set_map):
1531 Renamed set_map to maps_changed. Its now a subscriber for
1532 MAPS_CHANGED.
1533
1534 * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
1535 x-coordinate in case of simple clicks
1536
1537 * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
1538 don't pass it as a parameter
1539
1540 * Thuban/Model/session.py (Session.RemoveMap): New
1541
1542 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1543 window size into a parameter.
1544
1545 2002-07-23 Bernhard Herzog <[email protected]>
1546
1547 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1548 just commands.
1549
1550 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
1551 parameter list a bit to allow setting the window title and the
1552 initial message in the status bar. Update the callers.
1553
1554 * Thuban/UI/application.py (ThubanApplication.OnInit)
1555 (ThubanApplication.CreateMainWindow): Put the mainwindow
1556 instantiation into a separate method so that it can be overridden
1557 by a subclass.
1558
1559 2002-07-19 Bernhard Herzog <[email protected]>
1560
1561 * Thuban/Model/session.py: Issue a CHANGED message every time
1562 another changed message is issued to make it easier to get
1563 notified of changes.
1564 (Session): Update the doc string
1565 (Session.forward): Issue changed-events as CHANGED as well.
1566 (Session.changed): Overwrite the inherited version to issue
1567 CHANGED events as well.
1568
1569 * Thuban/UI/tree.py: We can now simply subscribe to the session's
1570 CHANGED channel to be informed of changes.
1571 (SessionTreeCtrl.session_channels): Not needed any longer.
1572 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1573 Only have to (un)subscribe CHANGED
1574
1575 * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1576
1577 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
1578 for the wxPython locale bug to __init__.py so that it's
1579 automatically executed by anybody using UI code from Thuban.
1580
1581 2002-07-18 Bernhard Herzog <[email protected]>
1582
1583 * Thuban/UI/main.py (main): app no longer needs to be global
1584
1585 * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
1586 as parameter and store it in an instance variable
1587 (MainWindow.invoke_command, MainWindow.update_command_ui)
1588 (MainWindow.save_modified_session, MainWindow.NewSession)
1589 (MainWindow.OpenSession, MainWindow.SaveSession)
1590 (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
1591 application object.
1592
1593 * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
1594 the main window with self.
1595
1596 * Thuban/UI/context.py: New module with the context class
1597
1598 * Thuban/UI/command.py (Command): Update doc string.
1599
1600 * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
1601 MainWindow.update_command_ui): Pass an instance of the context
1602 class to the command's methods
1603 (check_current_tool, call_method): Handle the new context
1604 implementation
1605
1606 * Examples/simple_extensions/simple_tool.py (simple_tool,
1607 check_simple_tool): Handle the new context implementation
1608
1609 * Examples/simple_extensions/simple_command.py (simple_command):
1610 Handle the new context implementation. Update the comments about
1611 the context.
1612
1613 * Thuban/UI/application.py (ThubanApplication.SetSession): Add
1614 doc-string
1615 (ThubanApplication.Session): New method to return the session
1616 object
1617
1618 * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
1619 interactor's selected_layer may not be a layer of the current
1620 session when the tree is updated while a new session is being set.
1621
1622 2002-07-17 Bernhard Herzog <[email protected]>
1623
1624 * Thuban/UI/tree.py (color_string): Removed. No longer used.
1625 (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
1626 update_tree into update_tree and add_items. The tree now uses a
1627 more generic way to display the contents of the tree.
1628 (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
1629
1630 * Thuban/Model/layer.py (Layer.TreeInfo),
1631 Thuban/Model/extension.py (Extension.TreeInfo),
1632 Thuban/Model/map.py (Map.TreeInfo),
1633 Thuban/Model/session.py (Session.TreeInfo):
1634 Add TreeInfo methods to implement the new tree view update scheme
1635
1636 2002-07-16 Bernhard Herzog <[email protected]>
1637
1638 * Thuban/UI/application.py: Don't use "import from" for the
1639 MainWindow. It can't always be resolved.
1640 (ThubanApplication.OnInit): change reference to MainWindow
1641 accordingly.
1642
1643 * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
1644 completely
1645
1646 2002-07-10 Bernhard Herzog <[email protected]>
1647
1648 * setup.py (create_init_module): New configurable variable whose
1649 default depends on the platform we're running on.
1650 (ThubanInstall.initialize_options): Initialize
1651 self.create_init_module from the global create_init_module
1652 (ThubanInstall.user_options): indictate that the options
1653 create-init-module and init-module-dir have arguments.
1654
1655 * setup.py: In the setup call change the version number to include
1656 cvs.
1657
1658 * MANIFEST.in: Add the files in Examples
1659
1660 2002-07-09 Bernhard Herzog <[email protected]>
1661
1662 * setup.py: In the setup call, use the thuban homepage as the
1663 value of the url parameter.
1664
1665 * Examples: New subdirectory for examples.
1666
1667 * Examples/simple_extensions/simple_tool.xpm,
1668 Examples/simple_extensions/simple_tool.py,
1669 Examples/simple_extensions/simple_command.py,
1670 Examples/simple_extensions/README: Simple examples showing how to
1671 add new commands and tools.
1672
1673 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
1674 bdist_rpm that we also have an install script.
1675 (bdist_inno): Add 2002 to the copyright notice.
1676
1677 * setup.py: Create a file in python's site-packages directory to
1678 make installation of Thuban as a library easier.
1679 (ThubanInstall.user_options): Add two new options,
1680 create-init-module and init-module-dir
1681 (ThubanInstall.expand_with_pure_python_dirs): New method to expand
1682 filenames for installation in the default directories.
1683 (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
1684 the inherited methods to capture some filenames before they're
1685 transformed too much by distutils.
1686 (ThubanInstall.run): Create the init module if requested.
1687 (ThubanInstall.thuban_init_filename): New method to return the
1688 full name of the init module.
1689 (ThubanInstall.get_outputs): Append the filename of the init
1690 module.
1691
1692 2002-07-08 Bernhard Herzog <[email protected]>
1693
1694 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
1695 handle the prefix properly which means that the default for the
1696 installation prefix should be /usr for RPMs and /usr/local when
1697 doing a normal source install.
1698 (bdist_rpm_install_script): Script to override the default install
1699 commands in the specfile generated by the bdist_rpm command.
1700 (thuban_bdist_rpm.user_options): Add a prefix option
1701 (thuban_bdist_rpm.initialize_options): Init the prefix option.
1702 Create the script files for the spec files as empty files here
1703 (thuban_bdist_rpm._make_spec_file): Override the inherited method
1704 to fill the script files with content.
1705
1706 * Thuban/Model/save.py (relative_filename): Wrapper around
1707 Thuban.Lib.fileutil.relative_filename that accepts an empty dir
1708 argument. save_session now automatically uses this version,
1709 solving a problem when saving to a relative filename.
1710
1711 * setup.py: In the setup call, make sure that the library
1712 directories are under $prefix/lib not directly under $prefix.
1713
1714 2002-06-20 Jan-Oliver Wagner <[email protected]>
1715
1716 * Thuban/Model/extension.py: new module to handle extension objects.
1717 * Thuban/Model/messages.py: new messages for extensions.
1718 * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
1719 Session.AddExtension): new for handling extensions.
1720 Also some other minor changes to round up extension handling.
1721 * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
1722 of Extension titles and title and names of its objects.
1723
1724 2002-05-29 Bernhard Herzog <[email protected]>
1725
1726 * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
1727 the events for a command.
1728 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
1729 Call bind_command_events to bind the events. add_toolbar_command
1730 can now bind events too so that it's possible to have commands
1731 that are only available through the toolbar.
1732 (MainWindow.init_ids): New instance variable events_bound to keep
1733 track of for which commands events have been bound.
1734
1735 2002-05-28 Bernhard Herzog <[email protected]>
1736
1737 * Thuban/UI/menu.py: New module to build and manage menus.
1738
1739 * Thuban/UI/mainwindow.py: Remove some unused imports.
1740 (MainWindow.__init__, main_menu): move the definition of the main
1741 menu from __init__ to the Menu instance main_menu.
1742 (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
1743 build the menu bar and sub-menus from a menu description.
1744
1745 * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
1746 startup file
1747 (ThubanApplication.read_startup_files): New method to run
1748 ~/.thuban/thubanstart.py
1749
1750 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
1751 Move the toolbar definition to the Menu instance main_toolbar.
1752 (MainWindow.build_toolbar): New method to build the toolbar
1753 similar to the build_menu methods
1754
1755 2002-05-23 Bernhard Herzog <[email protected]>
1756
1757 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1758 layer_outline_color. Fix it in the definition of the command too.
1759
1760 * Thuban/UI/command.py (Command): Fix typo in doc string
1761
1762 2002-05-22 Bernhard Herzog <[email protected]>
1763
1764 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1765 in the docstring
1766
1767 2002-05-15 Bernhard Herzog <[email protected]>
1768
1769 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
1770 when the shapefile is empty.
1771 (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
1772 now return None for empty shapefiles. Update doc-strings.
1773
1774 * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
1775 the layer's bbox being None.
1776
1777 * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
1778 layer's bbox being None.
1779
1780 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
1781 necessary.
1782 (MapCanvas.__init__): New instance variables, last_selected_layer
1783 and last_selected_shape to determine how the selection has
1784 changed.
1785
1786 * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
1787 AutoSizeColumns because it will cause a traversal of the entire
1788 table which for large .dbf files will take a very long time.
1789
1790 2002-05-14 Bernhard Herzog <[email protected]>
1791
1792 * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
1793 maximum depth for the tree than shapelib does by default.
1794
1795 2002-05-10 Bernhard Herzog <[email protected]>
1796
1797 * setup.py (py_modules): The shptree modules doesn't have a
1798 wrapper, so don't include it in the py_modules
1799
1800 2002-05-08 Bernhard Herzog <[email protected]>
1801
1802 * extensions/shapelib/shptree.c (compare_ints): Make arguments
1803 const void * as in the qsort prototype
1804 (SHPTreeFindLikelyShapes): Remove some unused variables.
1805
1806 * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
1807 maintains to redraw the window during a drag.
1808 (MapCanvas.unprojected_rect_around_point): New method to determine
1809 a small region around a point for hit-testing.
1810 (MapCanvas.find_shape_at): Only test the shapes in a small region
1811 around the point.
1812
1813 * setup.py: Increment the version to 0.1.2
1814
1815 * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
1816 debug print and set session to None after unsubscribing
1817
1818 2002-05-07 Bernhard Herzog <[email protected]>
1819
1820 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
1821 the file to have a .thuban extension.
1822
1823 * Thuban/UI/tree.py (session_channels): New class constant with
1824 all the session channels to subscribe to to update the tree
1825 (SessionTreeCtrl.session_changed): Remember the session so that we
1826 can unsubscribe properly. Use the new class constant to
1827 unsubscribe from the old session and subscribe to the new one.
1828 (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
1829 subscriptions of the SessionTreeCtrl.
1830 (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
1831
1832 * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
1833 Session Tree" command to the file menu.
1834
1835 * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
1836 as update_region to the renderer.
1837
1838 * Thuban/UI/renderer.py
1839 (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
1840 update box is now directly a tuple, not a wxRect anymore.
1841
1842 * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
1843 prints.
1844
1845 2002-05-07 Bernhard Herzog <[email protected]>
1846
1847 * setup.py: Add the shptree extension module. See
1848 extensions/pyshapelib/ChangeLog for more details.
1849
1850 * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
1851 extensions/shapelib/dbfopen.c: Really update to the versions of
1852 shapelib 1.2.9. For some reason it wasn't really done on
1853 2002-04-11.
1854
1855 * extensions/shapelib/shptree.c: Modified version of shptree.c of
1856 shapelib 1.2.9. The only real difference is the use of qsort
1857 instead of a bubble sort implementation
1858
1859 * Thuban/Model/layer.py (Layer.__init__): New instance variable
1860 shapetree to hold the shapelib quadtree for the shapefile
1861 (Layer.open_shapefile): Create the quad tree.
1862 (Layer.ShapesInRegion): New method to return the ids of shapes in
1863 a given region using the quad tree.
1864
1865 * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
1866 comment
1867 (draw_polygon_shape): Accept both arcs and polygons.
1868 (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
1869 the api.
1870
1871 * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
1872 return the shape ids to be rendered in a given layer.
1873 (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
1874 ids. Use draw_polygon_shape to draw arc shapes as well.
1875 (ScreenRenderer.RenderMap): New parameter for the rectangle that
1876 has to be updated
1877 (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
1878 calling it's ShapesInRegion method.
1879
1880 * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1881 update_region for the update region.
1882 (MapCanvas.OnPaint): Maintain the update region
1883 (MapCanvas.do_redraw): Pass the bounding box of the update_region
1884 to the renderer when drawing the bitmap. Reset the update_region.
1885
1886 2002-05-03 Bernhard Herzog <[email protected]>
1887
1888 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
1889 MainWindow.OpenSession): Change the file extension of the session
1890 files to .thuban
1891
1892 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
1893 Move the map channels to be forwarded by the session into the
1894 class constant with forwarded_channels. Also add
1895 LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
1896 forwarded_channels
1897
1898 * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
1899 typo and some rewording).
1900
1901 2002-05-02 Bernhard Herzog <[email protected]>
1902
1903 * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
1904 around to speed up most redraws:
1905 (MapCanvas.__init__): New instance variable bitmap which holds the
1906 bitmap
1907 (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
1908 self.bitmap to draw.
1909 (MapCanvas.full_redraw): New method to force a full redraw
1910 including the bitmap
1911 (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
1912 make sure the bitmap is redrawn.
1913 (MapCanvas.projection_changed, MapCanvas.set_view_transform,
1914 MapCanvas.shape_selected): Call full_redraw instead of readraw to
1915 make sure the bitmap is redrawn.
1916 (MapCanvas.OnSize): New method to handle size events so that the
1917 bitmap can be redrawn.
1918
1919 2002-04-29 Bernhard Herzog <[email protected]>
1920
1921 * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1922 canvas' VIEW_POSITION event
1923 (MainWindow.view_position_changed): Handler for VIEW_POSITION.
1924 Update the text in the status-bar accordingly.
1925
1926 * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
1927 (MapCanvas.__del__): Implement because Publisher.__del__ has to be
1928 called.
1929 (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
1930 current_position
1931 (MapCanvas.set_current_position): New method to set
1932 current_position. Issue a VIEW_POSITION event
1933 (MapCanvas.CurrentPosition): New public method to return the value
1934 of current_position. Should be called when the VIEW_POSITION event
1935 is processed.
1936 (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
1937 Update the position.
1938 (MapCanvas.OnLeaveWindow): Set the position to None.
1939
1940 * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1941 position in the statusbar
1942
1943 2002-04-26 Frank Koormann <[email protected]>
1944
1945 * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1946
1947 2002-04-24 Frank Koormann <[email protected]>
1948
1949 * Resources/Bitmaps/identify.xpm: shadow added
1950
1951 * Resources/Bitmaps/fullextent.xpm: new
1952
1953 2002-04-22 Jan-Oliver Wagner <[email protected]>
1954
1955 * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1956 box
1957
1958 2002-04-21 Jan-Oliver Wagner <[email protected]>
1959
1960 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1961
1962 * Thuban/UI/tree.py (update_tree): added added map extent
1963
1964 * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1965 icon; added map_full_extend as tool
1966
1967 2002-04-19 Jan-Oliver Wagner <[email protected]>
1968
1969 * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1970 saving _new_ sessions
1971
1972 * Thuban/Model/session.py (create_empty_session): new session
1973 don't have a filename (set to None)
1974
1975 * Thuban/UI/tree.py (update_tree): added filename and modified flag
1976
1977 * Thuban/Model/load.py (ProcessSession): convert projection
1978 parameters from unicode to regular string
1979
1980 * Data/iceland_sample.session: Added UTM Zone 26 projection.
1981
1982 2002-04-11 Bernhard Herzog <[email protected]>
1983
1984 * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
1985 extensions/shapelib/dbfopen.c: Update to the versions of shapelib
1986 1.2.9
1987
1988 * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
1989 the pyshapelib directoy into the list of include dirs, so that
1990 pyshapelib_api.h can be found.
1991
1992 * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
1993 holds the pyshapelib C-API
1994 (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
1995 pyshapelib_api to access the shapelib functions.
1996 (initwxproj): Import the c_api from the shapelib module and
1997 initialize pyshapelib_api.
1998
1999 2002-04-04 Bernhard Herzog <[email protected]>
2000
2001 * setup.py (thuban_bdist_rpm.initialize_options): Use
2002 initialize_options to create the scripts for the rpm.
2003
2004 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
2005
2006 2002-04-03 Bernhard Herzog <[email protected]>
2007
2008 * setup.py: Increment version to 0.1.1
2009
2010 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
2011 Layer" and "Remove Layer" commands from the layer menu to the map
2012 menu
2013
2014 2002-02-15 Bernhard Herzog <[email protected]>
2015
2016 * Thuban/Model/layer.py (Layer.Shape): list append only takes one
2017 argument (python <= 1.5.2 erroneously accepted multiuple
2018 arguments)
2019
2020 2002-02-04 Bernhard Herzog <[email protected]>
2021
2022 * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
2023 RecordGrid in the identifyview.
2024 (IdentifyView.__init__): Use IdentifyGridCtrl instead of
2025 IdentifyListCtrl. The grid allows editing of the values.
2026
2027 * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
2028 implementing a grid for a single row of a thuban table.
2029
2030 * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
2031 layers by default. Easier to use than the previous default of only
2032 searching through the select layer which meant that if no layer
2033 was selected, you couldn't select a shape.
2034
2035 * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
2036
2037 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
2038 stroke_width attribute
2039
2040 * Thuban/Model/save.py (save_session): Write the new stroke_width
2041 attribute
2042
2043 * Thuban/Model/load.py (ProcessSession.startElement): Read the
2044 stroke_width attribute
2045
2046 * Thuban/Model/layer.py (Layer.__init__): New parameter and
2047 instance variable stroke_width
2048 (Layer.SetStrokeWidth): Set the stroke_width.
2049
2050 2002-02-01 Bernhard Herzog <[email protected]>
2051
2052 * extensions/thuban/wxproj.cpp (project_points): Fix two
2053 off-by-one errors in the last loop that joins the various parts
2054 together.
2055
2056 2002-01-14 Bernhard Herzog <[email protected]>
2057
2058 * setup.py (data_dist.make_distribution): Fix some typos
2059
2060 2001-09-18 Bernhard Herzog <[email protected]>
2061
2062 * README: Slight tweaking in preparation for the 0.1 release
2063
2064 * setup.cfg: Add section for sdist to create both tgz and zip
2065 archives
2066
2067 * setup.py: increase version number to 0.1
2068 (data_dist): New command class for data distribution
2069
2070 2001-09-14 Bernhard Herzog <[email protected]>
2071
2072 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
2073 Handle the case of no layer (i.e. layer is None) properly.
2074
2075 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
2076 Set the initial selection of the combo boxes to reflect the
2077 projection we're starting with in a way that works on windows,
2078 too.
2079
2080 * Thuban/Lib/connector.py (Connector.print_connections): Print the
2081 puiblisher's ids in hex to make it easier to compare them to the
2082 standard repr of python methods
2083
2084 * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
2085 messages
2086
2087 2001-09-13 Bernhard Herzog <[email protected]>
2088
2089 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
2090 deselect the layer if no layer is selected
2091
2092 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
2093 idle time when there actually is something to draw. If there's
2094 nothing to draw simply clear the window
2095 (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
2096 (MapCanvas.SetMap): force a redraw in all cases because
2097 FitMapToWindow doesn't always do it.
2098 (MapCanvas.ZoomFactor): Add an optional parameter, center, to
2099 specify the point to move into the center of the window
2100 (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
2101 dragged, zoon in/out by a factor of 2
2102 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
2103 index, i.e. reversed drawing order) so that objects appearing to
2104 be in from of others are selected first. This is probably mostly
2105 relevant for point shapes where the symbols used may overlap
2106
2107 * Thuban/Model/session.py (create_empty_session): Unset the
2108 modified bit before returning it
2109
2110 * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
2111 create_empty_session session to create the new, empty session.
2112
2113 * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
2114 the tool bitmaps.
2115 (MainWindow.OnClose, MainWindow.save_modified_session): Separate
2116 the code that asks whether the session should be saved into the
2117 new method save_modified_session.
2118 (MainWindow.OpenSession, MainWindow.NewSession): Use the new
2119 method to save modified session here too.
2120
2121 2001-09-11 Bernhard Herzog <[email protected]>
2122
2123 * setup.py (InnoIconItem): fix typo
2124
2125 (thuban_bdist_inno.run):
2126 (bdist_inno.run): Move the decision not to create symlinks on
2127 non-nt platforms to thuban_bdist_inno and do it unconditinally
2128 since we never want to create the symlinks here
2129
2130 2001-09-10 Bernhard Herzog <[email protected]>
2131
2132 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
2133 identify view immediately
2134
2135 * Thuban/UI/controls.py: New file with two classes RecordListCtrl
2136 and SelectableRecordListCtrl that implement the code shared by the
2137 identify view and the label dialog
2138
2139 * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
2140 new class RecordListCtrl
2141
2142 * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
2143 return value of GetValue is None instead of using it as a boolean
2144 directly so that Zero numbers are handled properly.
2145 (LabelListCtrl): Derive from the new class
2146 SelectableRecordListCtrl
2147
2148 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
2149 (Proj4Dialog.dialogLayout): Make the window resizable and set the
2150 size of the text control explicitly to make the sizers work on
2151 both Windows and X.
2152
2153 2001-09-07 Bernhard Herzog <[email protected]>
2154
2155 * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
2156 that can limit the search to the currently selected layer.
2157 (MapCanvas.SelectShapeAt): Make sure that the currently selected
2158 layer stays selected even when no shape is found
2159 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
2160 height do nothing (avoids zero division errors)
2161
2162 2001-09-06 Bernhard Herzog <[email protected]>
2163
2164 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
2165 Correct the spelling of SessionTreeCtrl. dabbrev is too damn
2166 convenient :-)
2167 (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
2168 a new instvar layer_to_item to map layers to tree items
2169 (SessionTreeCtrl.layer_selected): Select the appropriate tree item
2170 to match the current selection in the interactor
2171
2172 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
2173 (Interactor.HasSelectedLayer): New methods to query the current
2174 selection
2175
2176 * Thuban/UI/mainwindow.py (MainWindow.current_layer):
2177 (MainWindow.has_selected_layer): Simply call the appropriate
2178 interactor method
2179
2180 * Thuban/UI/mainwindow.py (MainWindow.__init__):
2181 (MainWindow.LayerShowTable):
2182 (MainWindow.identify_view_on_demand): Store the interactor in an
2183 instvar and use that reference instead of going through main.app
2184
2185 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2186 * Thuban/UI/application.py (ThubanApplication.OnInit):
2187 * Thuban/UI/main.py (main): Create the session tree view in main
2188 with the new mainwindow method ShowSessionTree and not directly
2189 the application's OnInit method
2190
2191 * Thuban/UI/tree.py (myTreeCtrlPanel):
2192 (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
2193 TreeCtrl isntead of a panel. This affects most method since we now
2194 refer to self instead of self.tree
2195 (SessionTreeView): New class implementing a non-modal dialog
2196 showing the session tree.
2197
2198 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
2199 layer to the tableview dialog.
2200
2201 * Thuban/UI/tableview.py: Add some doc-strings
2202 (TableGrid):
2203 (TableGrid.OnRangeSelect):
2204 (TableGrid.OnSelectCell):
2205 (TableFrame.__init__):
2206 (TableFrame.row_selected):
2207 Selecting rows in the grid view now updates the selected shapes
2208 through the TableFrame. To achieve this we derive TableGrid from
2209 Publisher and introduce the message type ROW_SELECTED which the
2210 TableFrame subscribes to and which is issued by OnRangeSelect and
2211 OnSelectCell
2212
2213 (DataTable.SelectRow): Removed because it's no longer needed in
2214 the row/shape selection scheme
2215
2216 * Thuban/UI/dialogs.py: New file implementing common classes for
2217 dialogs
2218
2219 * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
2220 the SELECTED_SHAPE message anymore. This is now handled by the
2221 parent.
2222 (TableGrid.select_shape): Only update the selection if the shape
2223 is not None.
2224 (TableFrame): Inherit from the new NonModalDialog class.
2225 (TableFrame.__init__, TableFrame.select_shape): Handle the
2226 SELECT_SHAPE message.
2227 (TableFrame.OnClose): Extend the inherited method to unsubscribe
2228 SELECT_SHAPE
2229
2230 * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
2231 (MainWindow.add_dialog):
2232 (MainWindow.dialog_open):
2233 (MainWindow.remove_dialog):
2234 (MainWindow.get_open_dialog): New methods to maintain a dictionary
2235 of opened non-modal dialogs.
2236
2237 (MainWindow.__init__): Initialize the new non-modal dictionary
2238 management code
2239 (MainWindow.LayerShowTable): maintain separate dialogs for each
2240 table using the non-modal dialog management code to only open a
2241 view once for each table.
2242
2243 (MainWindow.IdentifyTool):
2244 (MainWindow.__init__):
2245 (MainWindow.identify_view_on_demand): Don't open the identify view
2246 in IdentifyTool anymore. This will be done automatically by the
2247 new method identify_view_on_demand which handles the
2248 SELECTED_SHAPE message so that the identify view will be opened on
2249 demand
2250
2251 * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
2252 the interactor argument. The SELECTED_SHAPE message is now handled
2253 by the parent.
2254 (IdentifyView.__init__): Add the interactor argument so that we
2255 can handle the SELECTED_SHAPE message here
2256 (IdentifyView.selected_shape): New method to handle the
2257 SELECTED_SHAPE messages
2258
2259 * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
2260 NonModalDialog class
2261 (IdentifyView.OnClose): Extend the inherited version to
2262 unsubscribe SELECT_SHAPE
2263
2264 * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
2265
2266 2001-09-05 Bernhard Herzog <[email protected]>
2267
2268 * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2269
2270 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2271 interactor to pass through to the MapCanvas
2272
2273 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2274 argument to the MainWindow constructor to get rid of the ugly hack
2275 that made main.app available early just so that the mapcanvas
2276 could access the interactor object.
2277
2278 2001-09-04 Bernhard Herzog <[email protected]>
2279
2280 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
2281 that runs a modal message box
2282 (MainWindow.OnClose): Use the new method
2283 (MainWindow.RemoveLayer): Just do nothing in case no layer is
2284 selected. The command should be grayed out anyway, so there's no
2285 need to pop up a message box.
2286 (MainWindow.AddLayer): Pop up a message box with an error message
2287 if the shape file can't be opened
2288
2289 * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
2290 immediately. This will cause an exception in case the file can't
2291 be opened and we can display an appropriate message.
2292
2293 * MANIFEST.in: Add extensions/pyprojection/LICENSE
2294
2295 * setup.py (thuban_bdist_rpm): New class implementing a Thuban
2296 specific bdist_rpm command.
2297
2298 * Thuban/UI/main.py: Catch ImportError exceptions when importing
2299 the locale module because it may not be available on some
2300 installations.
2301
2302 * extensions/pyprojection/LICENSE: Copy of the license text in
2303 Projection.i. Having it in a separate file makes it easier to
2304 refer to license text in e.g. RPMs
2305
2306 2001-09-03 Bernhard Herzog <[email protected]>
2307
2308 * setup.py: use wx-config instead of wxgtk-config because it's
2309 more generic
2310
2311 * setup.py (ThubanInstall.get_outputs): Add the symlink in
2312 <prefix>/bin to the outputs
2313 (ThubanInstall.link_file): New method to link files. We need this
2314 because the standard copy_files refuses to link non-existing
2315 files.
2316 (ThubanInstall.run): Remove the leading install root from the
2317 script filename if an install root was specified and use the new
2318 link_file method
2319
2320 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2321 the window when the first layer is added to the map.
2322
2323 * setup.py (ThubanInstall.run): Honor the build root (self.root)
2324 when linking thuban.py to <prefix>/bin
2325
2326 2001-08-31 Bernhard Herzog <[email protected]>
2327
2328 * setup.py: In the setup call, the install parameters shouldn't
2329 have trailing slashes because distutils on non-posix platforms
2330 doesn't like that. The same applies to other directories like
2331 "Resources/Bitmaps"
2332
2333 In the configuration section for nt, move the wxWindows directory
2334 optins into the part clearly marked as editable.
2335
2336 (InstallLocal.initialize_options):
2337 (InstallLocal.user_options): remove the currently unused debug
2338 flag
2339 (thuban_build_py.find_all_modules): Add this method so that it
2340 works for our case of having packages and modules in one
2341 distribution as well.
2342 (ThubanInstall.initialize_options):
2343 (ThubanInstall.finalize_options):
2344 (ThubanInstall.user_options):
2345 (ThubanInstall.boolean_options): Add new options, do-symlink and
2346 extra files. Since these are the first ThubanInstall specific
2347 options, override user_options and boolean_options
2348 (ThubanInstall.run): Honor the new do-symlink and extra-files
2349 options.
2350 (ThubanInstall.get_outputs): Add to override the base-class's
2351 version and add the extra-files to the outputs
2352 (bdist_inno): New class for windows distributions with Inno Setup
2353 (InnoIconItem): Helper class for bdist_inno
2354 (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2355 this together with the appropriate parameters, to the setup call.
2356
2357 * setup.cfg (bdist_inno): added new section for the inno setup
2358 installer
2359
2360 * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
2361 changing_selection to avoid recursive selection events when
2362 modifying the selection in response to a selection event.
2363 (myTreeCtrlPanel.normalize_selection): Set the new inst var when
2364 changing the tree's selection.
2365 (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
2366 we're not being called indirectly from normalize_selection.
2367
2368 * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
2369 event.Check only if the command is actuall checkable.
2370 (MainWindow.__init__): Call the toolbar's Realize method to make
2371 sure that the items are actually shown
2372
2373 2001-08-28 Bernhard Herzog <[email protected]>
2374
2375 * setup.py: Fix some doc strings
2376
2377 * ChangeLog: started
2378

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26