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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 55 by bh, Tue Sep 11 11:45:27 2001 UTC revision 625 by bh, Mon Apr 7 13:35:13 2003 UTC
# Line 1  Line 1 
1    2003-04-07  Bernhard Herzog  <[email protected]>
2    
3            * 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            * 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    2003-04-07  Jonathan Coles   <[email protected]>
29    
30            * 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            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    2003-04-04  Jonathan Coles   <[email protected]>
82    
83            * 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            * 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    
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    
109            * 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    
145    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    2003-04-02  Bernhard Herzog  <[email protected]>
170    
171            * 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            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
176            sure the filename is absolute to avoid problems when saving the
177            session again
178    
179            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
180    
181    2003-04-01  Jonathan Coles   <[email protected]>
182    
183            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
184            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    2003-04-01  Bernhard Herzog  <[email protected]>
189    
190            * test/test_map.py: Don't use from <module> import *
191    
192    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    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    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    2003-03-26  Jonathan Coles   <[email protected]>
250    
251            * 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            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    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    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    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    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    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    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    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    2003-03-10  Jonathan Coles   <[email protected]>
510    
511            * 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            * 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            * 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            * 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            * 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    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    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    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    2003-03-05  Jonathan Coles   <[email protected]>
622    
623            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
624    
625            * Thuban/Model/load.py: import FIELDTYPE constants from table.
626    
627            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
628    
629            * Thuban/Model/table.py: Put FIELDTYPE constants back.
630    
631    2003-03-05  Jonathan Coles   <[email protected]>
632    
633            * 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    2003-03-04  Bernhard Herzog  <[email protected]>
672    
673            * 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            * 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    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    2003-02-27  Jonathan Coles   <[email protected]>
713    
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            functions. Fix to create a tuple with a single value instead of
736            simply returning the value.
737    
738            * Thuban/UI/renderer.py: Use new Classification and Group functions.
739            Use common.py functions.
740    
741            * Thuban/UI/tree.py: Use common.py functions.
742            
743            * test/test_classification.py: Use new Classification and Group
744            classes.
745    
746    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    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    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    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    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    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    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    2003-02-10  Jonathan Coles  <[email protected]>
875    
876            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
877            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            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
890            SetDefault*() methods on the layer's classification object.
891            (Layer.__init__): Use the new SetDefault*() methods in the
892            Classification class.
893    
894            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
895            object instead of a dictionary.
896    
897            * Thuban/UI/classifier.py (ClassRenderer): New class to
898            draw the classifications in the dialog box's table.
899            (Classifier): Modified to use the ClassRenderer class.
900    
901            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
902            methods of the Classification class.
903    
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    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    2003-01-28  Jonathan Coles  <[email protected]>
923    
924            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
925            Fixed crashing problem on some systems. Dialog box shows
926            classification data.
927    
928            * 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    2003-01-27  Jan-Oliver Wagner <[email protected]>
939    
940            * Thuban/__init__.py (_): New.
941    
942            * Thuban/Model/classification.py, Thuban/Model/extension.py,
943            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
944            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    
951    2003-01-27  Jonathan Coles  <[email protected]>
952    
953            * Thuban/Model/layer.py: Classification initialization calls.
954    
955            * Thuban/Model/classification.py: Created class to encapsulate
956            a layer classification. Supports specific data points and
957            ranges.
958    
959            * Thuban/Model/load.py: Added support for loading classification
960            information.
961    
962            * Thuban/Model/save.py: Added support for saving classification
963            information.
964    
965            * Thuban/UI/classifier.py: Initial class for a dialog box for
966            specifying classification information.
967    
968            * Thuban/UI/mainwindows.py: Support for opening the classifier
969            dialog.
970    
971            * Thuban/UI/renderer.py: Support for drawing a layer with the
972            classification information.
973    
974            * Data/iceland_sample_class.thuban: iceland_sample with
975            classification data.
976    
977            * test/test_classification: Tests for the Classification class.
978    
979    2002-12-09  Bernhard Herzog  <[email protected]>
980    
981            * test/test_command.py: New. Tests for the command classes.
982    
983            * 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    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    2002-11-06  Frank Koormann  <[email protected]>
1009    
1010            * 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    
1014    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    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    2002-09-20  Bernhard Herzog  <[email protected]>
1038    
1039            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
1040    
1041            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
1042    
1043            * 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            * 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            * 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    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    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    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            (MainWindow.build_menu): remove an incorrect comment.
1109    
1110    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    2002-09-06  Bernhard Herzog  <[email protected]>
1120    
1121            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1122            VIEW_POSITION
1123    
1124    2002-09-04  Frank Koormann  <[email protected]>
1125    
1126            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1127    
1128    2002-09-02  Bernhard Herzog  <[email protected]>
1129    
1130            * 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            * 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    2002-08-30  Bernhard Herzog  <[email protected]>
1146    
1147            * 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            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1156            (MapCanvas.do_redraw): Get rid of the unused update_region
1157            instance variable
1158    
1159            * Thuban/UI/view.py: Add/update some doc-strings.
1160    
1161            * 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    2002-08-29  Bernhard Herzog  <[email protected]>
1168    
1169            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1170            arcs with multiple parts.
1171    
1172            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1173            Handle degenrate rectangles.
1174    
1175            * 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    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    2002-08-26  Bernhard Herzog  <[email protected]>
1187    
1188            * 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            * 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            (LayerTableGrid.select_shape): Remove a debug print
1198    
1199            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1200            LayerTableFrame
1201    
1202    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    2002-08-22  Bernhard Herzog  <[email protected]>
1208    
1209            * Thuban/Model/table.py (Table.write_record): New method to write
1210            records.
1211            (Table.__init__): Open the DBF file for writing too.
1212    
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            * 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            * 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    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    2002-08-16  Jan-Oliver Wagner <[email protected]>
1250    
1251            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1252            tree window already open
1253    
1254    2002-08-15  Bernhard Herzog  <[email protected]>
1255    
1256            * 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            * 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    2002-08-14  Bernhard Herzog  <[email protected]>
1268    
1269            * 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            * 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    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    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    2002-07-24  Bernhard Herzog  <[email protected]>
1328    
1329            * 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            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1348            window size into a parameter.
1349    
1350    2002-07-23  Bernhard Herzog  <[email protected]>
1351    
1352            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1353            just commands.
1354    
1355            * 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    2002-07-19  Bernhard Herzog  <[email protected]>
1365    
1366            * 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            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1378            Only have to (un)subscribe CHANGED
1379    
1380            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1381    
1382            * 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    2002-07-18  Bernhard Herzog  <[email protected]>
1387    
1388            * 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            * 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    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            Thuban/Model/session.py (Session.TreeInfo):
1439            Add TreeInfo methods to implement the new tree view update scheme
1440    
1441    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    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    2002-07-09  Bernhard Herzog  <[email protected]>
1466    
1467            * setup.py: In the setup call, use the thuban homepage as the
1468            value of the url parameter.
1469    
1470            * 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            * 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            * 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    2002-07-08  Bernhard Herzog  <[email protected]>
1498    
1499            * 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            * 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    2002-06-20  Jan-Oliver Wagner <[email protected]>
1520    
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    2002-05-29  Bernhard Herzog  <[email protected]>
1530    
1531            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
1532            the events for a command.
1533            (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    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            * 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    2002-05-23  Bernhard Herzog  <[email protected]>
1561    
1562            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1563            layer_outline_color. Fix it in the definition of the command too.
1564    
1565            * Thuban/UI/command.py (Command): Fix typo in doc string
1566    
1567    2002-05-22  Bernhard Herzog  <[email protected]>
1568    
1569            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1570            in the docstring
1571    
1572    2002-05-15  Bernhard Herzog  <[email protected]>
1573    
1574            * 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            * 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    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    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    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    2002-05-07  Bernhard Herzog  <[email protected]>
1624    
1625            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
1626            the file to have a .thuban extension.
1627    
1628            * 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            * 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    2002-05-03  Bernhard Herzog  <[email protected]>
1692    
1693            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
1694            MainWindow.OpenSession): Change the file extension of the session
1695            files to .thuban
1696    
1697            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
1698            Move the map channels to be forwarded by the session into the
1699            class constant with forwarded_channels. Also add
1700            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
1701            forwarded_channels
1702    
1703            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
1704            typo and some rewording).
1705    
1706    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    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    2002-04-26  Frank Koormann <[email protected]>
1749    
1750            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1751    
1752    2002-04-24  Frank Koormann <[email protected]>
1753    
1754            * Resources/Bitmaps/identify.xpm: shadow added
1755    
1756            * Resources/Bitmaps/fullextent.xpm: new
1757    
1758    2002-04-22  Jan-Oliver Wagner <[email protected]>
1759    
1760            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1761            box
1762    
1763    2002-04-21  Jan-Oliver Wagner <[email protected]>
1764    
1765            * 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            icon; added map_full_extend as tool
1771    
1772    2002-04-19  Jan-Oliver Wagner <[email protected]>
1773    
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    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    2002-04-04  Bernhard Herzog  <[email protected]>
1805    
1806            * setup.py (thuban_bdist_rpm.initialize_options): Use
1807            initialize_options to create the scripts for the rpm.
1808    
1809            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
1810    
1811    2002-04-03  Bernhard Herzog  <[email protected]>
1812    
1813            * setup.py: Increment version to 0.1.1
1814    
1815            * 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    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    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    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    2002-01-14  Bernhard Herzog  <[email protected]>
1862    
1863            * setup.py (data_dist.make_distribution): Fix some typos
1864    
1865    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    2001-09-14  Bernhard Herzog  <[email protected]>
1876    
1877            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1878            Handle the case of no layer (i.e. layer is None) properly.
1879    
1880            * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1881            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            * 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    2001-09-13  Bernhard Herzog  <[email protected]>
1893    
1894            * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
1895            deselect the layer if no layer is selected
1896    
1897            * 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            (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    
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  2001-09-11  Bernhard Herzog  <[email protected]>  2001-09-11  Bernhard Herzog  <[email protected]>
1927    
1928          * setup.py (InnoIconItem): fix typo          * setup.py (InnoIconItem): fix typo
# Line 62  Line 1987 
1987          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
1988          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
1989    
1990          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1991          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
1992          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
1993          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
1994          the application's OnInit method          the application's OnInit method
# Line 79  Line 2004 
2004          layer to the tableview dialog.          layer to the tableview dialog.
2005    
2006          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
2007          (TableGrid):          (TableGrid):
2008          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
2009          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
2010          (TableFrame.__init__):          (TableFrame.__init__):
# Line 146  Line 2071 
2071  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
2072    
2073          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2074            
2075          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2076          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
2077            
2078          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2079          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
2080          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 196  Line 2121 
2121          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
2122          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
2123          link_file method          link_file method
2124            
2125          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2126          the window when the first layer is added to the map.          the window when the first layer is added to the map.
2127    
# Line 233  Line 2158 
2158          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
2159          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2160          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
2161            
2162          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
2163          installer          installer
2164    

Legend:
Removed from v.55  
changed lines
  Added in v.625

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26