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

Legend:
Removed from v.152  
changed lines
  Added in v.703

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26