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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 625 - (hide annotations)
Mon Apr 7 13:35:13 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 83858 byte(s)
update ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26