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

Legend:
Removed from v.107  
changed lines
  Added in v.687

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26