/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 644 - (hide annotations)
Thu Apr 10 17:56:52 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 87371 byte(s)
updated ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26