/[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 354 by bh, Tue Dec 3 17:35:47 2002 UTC revision 705 by bh, Tue Apr 22 16:55:58 2003 UTC
# Line 1  Line 1 
1    2003-04-22  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/mainwindow.py: Remove some unused imports and global
4            constants
5    
6            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
7            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
8    
9    2003-04-17  Bernhard Herzog  <[email protected]>
10    
11            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
12            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
13            anymore.
14            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
15            (Layer.ShapeType, Layer.Shape): No need to call
16            self.open_shapefile since it's always called in __init__
17    
18            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
19            In wxPython 2.4 there's no need to extend MainLoop anymore since
20            wxPython itself makes sure OnExit is called.
21    
22    2003-04-16  Jonathan Coles   <[email protected]>
23    
24            Initial putback of projection management code. Includes new
25            classes to read and write projection files. The current load
26            and save classes were abstracted a bit so they could be reused.
27            The Projection class was extended to provide new methods and
28            have a name.
29    
30            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
31            general XML reading methods that were part of ProcessSession.
32    
33            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
34            name.
35            (ProjFile): New. Represents a file that contains projection
36            information.
37    
38            * Thuban/Model/resource.py: New. Contains general utilities
39            for read and writing projection files.
40    
41            * Thuban/Model/save.py (XMLSaver): New. Contains all the
42            general XML writing methods that were part of SessionSaver.
43            (SessionSaver): Renamed from Saver.
44    
45            * test/test_proj.py: New test cases for the projection
46            file read and write functions.
47    
48    2003-04-16  Jonathan Coles   <[email protected]>
49    
50            * Thuban/Model/classification.py: Use repr() around values
51            in the ClassGroup*.__repr__() methods so it is clearer when
52            a value is a string and when it is a number.
53    
54            * test/test_load.py: Rework the classification test to test
55            that we can load old files.
56            (testLabels): Test a file where the groups have labels.
57    
58    2003-04-16  Bernhard Herzog  <[email protected]>
59    
60            Safer implementation of the performance enhancements of the
61            low-level renderer:
62            
63            * extensions/thuban/wxproj.cpp (extract_projection)
64            (extract_pointer): Rename extract_projection to extract_pointer
65            and redefine its purpose to return the pointer stored in a CObject
66            returned by the object's cobject method. Update all callers.
67            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
68            handling of these low-level parameters so that each s_draw_info
69            instance is handled as a CObject at python level that also
70            contains real references to the actual python objects which
71            contain the values in the struct. Add free_draw_info as the
72            destructor.
73            (draw_polygon_shape): Add the py_draw_info parameter which must a
74            cobject containing an s_draw_info pointer.
75    
76            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
77            method to instantiat the low-level render parameter
78            (MapRenderer.draw_shape_layer): Use the new method. Remove some
79            commented out code.
80            (MapRenderer.draw_polygon_shape): Make the first parameter not the
81            layer but the low-level render parameter
82            (ScreenRenderer.draw_shape_layer): Use the low-level render
83            parameter.
84    
85    2003-04-15  Jonathan Coles   <[email protected]>
86    
87            * Thuban/Model/classification.py: Implemented __repr__ for
88            the ClassGroup* classes to make debugging a bit easier.
89            (ClassGroup.SetLabel): Check that the string is an instance
90            of StringTypes not StringType. Accounts for Unicode strings.
91    
92            * Thuban/Model/color.py: Implemented __repr__ to make
93            debugging a bit easier.
94    
95            * Thuban/Model/save.py (Saver.write_classification): Need to
96            save the group label.
97    
98            * test/test_load.py (testClassification): New. Loads the
99            iceland_sample_test.thuban file and checks if it was loaded
100            correctly.
101    
102    2003-04-15  Jonathan Coles   <[email protected]>
103    
104            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
105            to improve rendering performance by initializing the variables
106            that are not change each time draw_polygon_shape() is called.
107            The values are stored in a global struct draw_info.
108            (draw_polygon_shape): Removed initialization code that is
109            now in draw_polygon_init().
110    
111            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
112            drawing initialization call to draw_polygon_init()
113            (MapRenderer.draw_polygon_shape): Use new signature of
114            draw_polygon_shape.
115    
116            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
117            weirdness by setting the range to (1, maxint).
118    
119            * Thuban/Model/classification.py (ClassGroupProperties): Make
120            instance variables private and optimize comparison operator
121            by first checking if the color references are the same.
122            (ClassGroupSingleton): Make instance variables private.
123            (ClassGroupRange): Make instance variables private.
124    
125            * HOWTO-Release: Filled in missing steps for releasing packages.
126    
127    2003-04-15  Bernhard Herzog  <[email protected]>
128    
129            First stab at internationalized messages:
130    
131            * Thuban/__init__.py (_): Implement the translation function for
132            real using the python gettext module.
133    
134            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
135            translate empty strings.
136    
137            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
138            Add a missing space to a warning message
139    
140            * po/README: New. Notes about the management of the translation
141            files.
142    
143            * po/Makefile: New. Makefile to help manage the translation files.
144    
145            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
146    
147            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
148            translations and support files in po/
149    
150            * setup.py (data_files): Add the *.mo files to the data_files too
151    
152            * README: Add note about the translations when building from CVS
153    
154    2003-04-14  Jonathan Coles   <[email protected]>
155    
156            * Thuban/UI/dock.py: Fixes some window resizing problems most
157            noticable under windows. Always assume the button bitmaps will
158            be there. Code clean up.
159            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
160            images for the dock/undock button to the same images.
161            Work around for RTbug #1801.
162    
163            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
164            be allowed to grow within the sizer. Fixes a bug under Windows
165            where the toolbar wasn't being drawn.
166    
167    2003-04-14  Frank Koormann   <[email protected]>
168    
169            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
170            Updated design to try to make the button functionality more
171            transparent.
172    
173    2003-04-14  Jonathan Coles   <[email protected]>
174    
175            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
176            finalize the intialization of the panel.
177    
178            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
179            creation of the panel. Should be the last thing called in the
180            initializer of a subclass.
181    
182            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
183            set the current selections in the combo boxes. This is needed
184            under Windows.
185    
186            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
187            level panel to the dialog so that the background colors are
188            consistent under Windows.
189    
190    2003-04-11  Jonathan Coles   <[email protected]>
191    
192            * Thuban/UI/classgen.py: Change color ramps to start at white
193            not black.
194    
195            * Thuban/UI/legend.py: Enable/disable the legend buttons when
196            the legend changes. Fixes RTbug #1793.
197    
198            * test/test_classification.py: Added test for copying of
199            classifications.
200    
201    2003-04-11  Jonathan Coles   <[email protected]>
202    
203            * Thuban/UI/resource.py: New. Centralize the loading of resources
204            such as bitmaps.
205    
206            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
207            added images to the move buttons, added 'reverse' button.
208            (CustomRampPanel.__init__): Added images to the move buttons.
209            (GreyRamp): New. Generates a ramp from white to black.
210            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
211    
212            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
213            ID_PROPERTY_*.
214            (Classifier.__init__): Minor changes to the layout.
215            (Classifier._OnTitleChanged): Listen for when the user edits the
216            title and update the dialog's title and the layer's title.
217    
218            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
219    
220            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
221            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
222            if the layer's title changes.
223    
224            * Thuban/UI/mainwindow.py: Added new menu item and associated code
225            to open a dialog to rename the map.
226            (MainWindow): Use new resource class to import bitmaps.
227    
228    2003-04-11  Jonathan Coles   <[email protected]>
229    
230            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
231            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
232            Resources/Bitmaps/group_use_none.xpm,
233            Resources/Bitmaps/group_use_not.xpm,
234            Resources/Bitmaps/hide_layer.xpm,
235            Resources/Bitmaps/layer_properties.xpm,
236            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
237            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
238            New.
239    
240    2003-04-10  Jonathan Coles   <[email protected]>
241    
242            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
243            Should pass group to ClassGroup constructor.
244    
245    2003-04-10  Jonathan Coles   <[email protected]>
246    
247            * Thuban/Model/classification.py: (ClassGroup): Move all the common
248            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
249            here. Implement SetVisible(), IsVisible().
250            (ClassGroup.__init__): Add group parameter which acts as a copy
251            constructor.
252    
253            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
254            "Visible" check boxes.
255            (Classifier): Rename the buttons and refactor the code to match
256            the new labels.
257    
258            * Thuban/UI/legend.py: Classify button is now called "Properties".
259            Refactored the code to change variable names.
260            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
261    
262            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
263            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
264            renamed to MainWindow.LayerEditProperties.
265            (MainWindow.ToggleLegend): Don't include map name in legend title.
266            (MainWindow.SetMap): Added the map name to the window title.
267            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
268            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
269            Functionality is found in the layer properties dialog.
270    
271            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
272            draw visible groups.
273    
274    2003-04-09  Jonathan Coles   <[email protected]>
275    
276            * Thuban/UI/classgen.py: Modifications to allow simple
277            addition and selection of new color schemes.
278            (MonochromaticRamp): New. Generates a ramp between two colors.
279            (RedRamp): New. Generates a ramp of all red.
280            (GreenRamp): New. Generates a ramp of all green.
281            (BlueRamp): New. Generates a ramp of all blue.
282    
283    2003-04-09  Jonathan Coles   <[email protected]>
284    
285            * Thuban/Model/classification.py (Classification.__deepcopy__):
286            Need to copy over field and fieldType attributes.
287    
288            * Thuban/Model/table.py (Table.field_range): New. Retrive the
289            maximum and minimum values over the entire table for a given
290            field.
291            (Table.GetUniqueValues): New. Retrieve all the unique values
292            in the table for a given field.
293    
294            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
295            (GenUniquePanel): New. Controls to allow the user to select
296            which unique field values they would like in the classification.
297            (CustomRampPanel): Code that was in ClassGenDialog that allows
298            the user to select the properties for a custom ramp.
299            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
300    
301            * Thuban/UI/classifier.py: Removed a lot of debugging code.
302            (Classifier._SetClassification): Callback method so that the
303            class generator can set the classification in the grid.
304            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
305            editing of a group properties class into a wxWindows control.
306    
307            * Thuban/UI/dock.py: It was decided that if the user closes
308            a dockable window the window should simply hide itself. That
309            way if the user wants to show the dock again it appears in the
310            same place as it was when it was closed.
311            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
312            (DockableWindow._OnButtonClose): Hide the window instead of
313            destroying it.
314            (DockableWindow._OnClose): Hide the window instead of
315            destroying it.
316    
317            * Thuban/UI/legend.py (LegendTree): Use a private method to
318            consistently set the font and style of the text. Fixes RTbug #1786.
319    
320            * Thuban/UI/mainwindow.py: Import just the Classifier class.
321    
322    2003-04-07  Bernhard Herzog  <[email protected]>
323    
324            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
325            to the map module
326    
327    2003-04-07  Bernhard Herzog  <[email protected]>
328    
329            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
330            favor of ToggleSessionTree
331            (MainWindow.ToggleSessionTree): New method to toggle visibility of
332            the session tree.
333            (MainWindow.SessionTreeShown): New method to return whether the
334            session tree is currently shown.
335            (MainWindow.ToggleLegend): New method to toggle visibility of the
336            legend
337            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
338            LegendShown
339            (MainWindow.LegendShown): New method to return whether the legend
340            is currently shown.
341            (_method_command): Add checked parameter so we can define check
342            menu items
343            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
344            mainwindow methods.
345            (show_session_tree, show_legend commands): Removed.
346            (toggle_session_tree, toggle_legend commands): New commands to
347            toggle the visibility of the dialogs
348    
349    2003-04-07  Jonathan Coles   <[email protected]>
350    
351            * Thuban/UI/classgen.py: Fix Windows problem.
352    
353            * Thuban/UI/dock.py: Fix Windows problem.
354    
355            * Thuban/UI/mainwindow.py: Use False instead of false.
356            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
357    
358    2003-04-07  Jonathan Coles   <[email protected]>
359    
360            Since we now say that the order of the groups in a classification
361            matters, it makes sense to be able to manipulate that order. Most
362            of the changes to Thuban/Model/classification.py are to that end.
363    
364            * Thuban/Model/classification.py (Classification.AppendGroup,
365            Classification.InsertGroup, Classification.ReplaceGroup,
366            Classification.RemoveGroup, Classification.GetGroup): Do as the
367            names imply.
368            (Classification.FindGroup): This was called GetGroup, but GetGroup
369            takes an index, while FindGroup takes a value.
370            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
371            REFERENCE. Currently there is a cyclic reference between the layer
372            and its classification. If the classification doesn't need to know
373            its owning layer we can change this, since it may make sense to be
374            able to use the same classification with different layers.
375    
376            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
377    
378            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
379            not AddGroup()
380    
381            * Thuban/UI/classifier.py: Now that we can depend on the order in
382            a Classification and have methods to manipulate that order we don't
383            need to use our own data structures in the grid. We can simply make
384            the grid/table access the information they need from a copy of
385            the classification object.
386            (Classifier._OnCloseBtn): Event handler for when the user clicks
387            'Close'. This is needed so if the user applies changes and then
388            continues to change the table the user has the option of discarding
389            the most recent changes and keeping what they applied.
390    
391            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
392            into the same group.
393    
394            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
395            with a really old version of proj, PJ_VERSION won't even be defined.
396            If it isn't defined then just compile so that the function always
397            returns Py_False.
398    
399            * test/test_classification.py: Fix tests to use the renamed methods.
400            Still need to write tests for the new methods.
401    
402    2003-04-04  Jonathan Coles   <[email protected]>
403    
404            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
405            call to SetSelection out of the method and before the call
406            to __SelectField in __init__. This prevents a recursion of events
407            when _OnFieldSelect is triggered by the user.
408    
409    2003-04-04  Jonathan Coles   <[email protected]>
410    
411            * Thuban/Model/classification.py: Rename Color.None to
412            Color.Transparent.
413            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
414            Don't bother copying the color, since Colors are immutable.
415    
416            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
417            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
418            Thuban/UI/renderer.py, Thuban/UI/view.py:
419            Rename Color.None to Color.Transparent.
420        
421            * test/test_classification.py, test/test_load.py: Rename Color.None
422            to Color.Transparent.
423    
424    2003-04-04  Jonathan Coles   <[email protected]>
425    
426            * Thuban/Model/classification.py: Fix assert calls.
427            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
428            Copy the color parameter rather than hold onto a reference.
429    
430            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
431            the color object.
432            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
433            are sure there exists only one refernce to Color.None in the system.
434            This allows us to use 'is' rather than the comparision functions.
435            
436            * Thuban/Model/save.py: Fix assert calls.
437            
438            * Thuban/UI/classifier.py: Fix assert calls.
439            (ClassGrid._OnCellDClick): Call up to the classifier to open the
440            dialog to edit the groups properties.
441            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
442            correctly if a cell is resized.
443            (ClassTable.SetClassification): New. Changes the classification
444            that is in the table.
445            (ClassTable.__SetRow): Allow groups to be prepended.
446            (Classifier): New code for opening the EditProperties and
447            GenerateRanges dialogs.
448            (SelectPropertiesDialog.__GetColor): Only set the color in the
449            color dialog if the current color is not None.
450            
451            * Thuban/UI/dock.py: Fix assert calls.
452            
453            * Thuban/UI/legend.py: Fix assert calls.
454            
455            * Thuban/UI/renderer.py: Fix assert calls.
456            
457            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
458            classifications.
459            (GenRangePanel): Panel specific to range generation.
460            (GenSingletonPanel): Panel specific to singleton generation.
461            (ClassGenerator): Class responsible for actually generating
462            the classification from the data gathered in the dialog box.
463            (PropertyRamp): Generates properties whose values range from
464            a starting property to an ending property.
465    
466    2003-04-03  Bernhard Herzog  <[email protected]>
467    
468            * test/support.py (print_garbage_information): New function that
469            prints information about still connected messages and memory
470            leaks.
471            (run_suite): Removed.
472            (run_tests): New function for use as a replacement of
473            unittest.main in the test_* files. This one calls
474            print_garbage_information at the end.
475    
476            * test/runtests.py (main): Use support.print_garbage_information
477    
478            * test/test_layer.py: Use support.run_tests instead of
479            unittest.main so we get memory leak information
480            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
481            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
482            (TestLayerLegend.test_visibility): Call the layer's Destroy method
483            to fix a memory leak.
484    
485            * test/test_classification.py: Use support.run_tests instead of
486            unittest.main so we get memory leak information
487            (TestClassification.test_classification): Call the layer's Destroy
488            method to fix a memory leak.
489    
490    2003-04-02  Bernhard Herzog  <[email protected]>
491    
492            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
493            Handle the reference counts of the return value and errors in
494            PyArg_ParseTuple correctly.
495    
496            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
497            sure the filename is absolute to avoid problems when saving the
498            session again
499    
500            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
501    
502    2003-04-01  Jonathan Coles   <[email protected]>
503    
504            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
505            that there actually are points in the returned list of points
506            before trying to index into the list. The list may be empty if
507            the shape is a Null Shape.
508    
509    2003-04-01  Bernhard Herzog  <[email protected]>
510    
511            * test/test_map.py: Don't use from <module> import *
512    
513    2003-04-01  Jonathan Coles   <[email protected]>
514    
515            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
516            LAYER_LEGEND_CHANGED
517    
518            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
519            self.Destroy() to close the window after yesterday's changes.
520    
521            * test/test_map.py, test/test_session.py: Fix messages that
522            are sent from maps and layers.
523    
524    2003-03-31  Jonathan Coles   <[email protected]>
525    
526            * Thuban/UI/classifier.py: Commented out some debugging statements.
527            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
528            RTbug #1769.
529    
530            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
531            position (although position doesn't work yet under GTK).
532            (DockableWindow.Destroy): New. Called when the window must be
533            closed. Namely needed when the DockFrame closes and must close
534            its children.
535            (DockFrame): Listen for EVT_CLOSE and destroy all children.
536    
537            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
538            when then window is told to close.
539            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
540            comment in source for more info.
541    
542            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
543    
544            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
545            symmetry with other such methods.
546            (MainWindow.ShowLegend): Show the legend docked by default.
547    
548    2003-03-28  Jonathan Coles   <[email protected]>
549    
550            * Thuban/UI/classifier.py: Support for highlighting a specific
551            group within the grid when the classification dialog is opened.
552            Also contains a lot of debugging printouts which will later
553            be removed.
554    
555            * Thuban/UI/dock.py: Complete rework on the dock code so that
556            that it is fairly removed from the rest of the Thuban application.
557            It is easy to add new docks which the rest of the program having
558            to be aware of them.
559    
560            * Thuban/UI/legend.py: Modifications to support selecting a
561            specific group in the classification dialog. Changed how layers
562            are drawn when the layer is visible/invisible.
563    
564            * Thuban/UI/mainwindow.py: Removed legend specific code and
565            replaced it with calls to the new dock code.
566    
567            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
568            to check if scale > 0. Trying to track down a divide by zero.
569    
570    2003-03-26  Jonathan Coles   <[email protected]>
571    
572            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
573            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
574            now part of DockableWindow.
575            (LegendPanel.DoOnSelChanged): Select the current layer in the
576            map.
577            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
578            with the selected layer and/or group.
579    
580    2003-03-26  Jonathan Coles   <[email protected]>
581    
582            This putback contains the code for dockable windows. There is
583            no support in wxWindows as of this date for windows that can
584            attach themselves to other windows.
585    
586            The current model contains a DockableWindow which has a parent
587            window for when it is detached and a dock window that it puts
588            its contents in when it is docked. The contents of a DockableWindow
589            must be a DockPanel. DockPanel itself derives from wxPanel.
590    
591            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
592            message, not a LAYER_LEGEND_CHANGED message.
593    
594            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
595    
596            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
597            as one of the style properties for the fieldTypeText item to
598            be sure that its size is correct when the text changes.
599    
600            * Thuban/UI/dock.py: New. Classes for the DockPanel and
601            DockableWindow.
602    
603            * Thuban/UI/legend.py: Added some more buttons and made the
604            LegendPanel a DockPanel.
605    
606            * Thuban/UI/mainwindow.py: Added sash windows to the main window
607            and supporting functions for manipulating the sashes.
608            (MainWindow.ShowLegend): Create a DockableWindow with the
609            LegendPanel as the contents.
610    
611            * Thuban/UI/messages.py: Added DOCKABLE_* messages
612    
613            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
614            not LAYER_LEGEND_CHANGED, messages.
615    
616    2003-03-25  Jonathan Coles   <[email protected]>
617    
618            * setup.py: Added custom script bdist_rpm_build_script so that
619            when the rpm is built the path to wx-config is correct.
620    
621            * setup.cfg: Added line saying to use the custom build script
622    
623    2003-03-20  Jonathan Coles   <[email protected]>
624    
625            Initial implementation of the Legend.
626    
627            * Thuban/UI/legend.py: New. Creates a window that shows the map's
628            Legend information and allows the user to add/modify classifications
629            and how the layers are drawn on the map.
630    
631            * setup.py: New command 'build_docs' which currently uses
632            happydoc to generate html documentation for Thuban.
633    
634            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
635            Returns a string which is appropriately describes the group.
636    
637            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
638            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
639    
640            * Thuban/Model/map.py (Map): Rename messages and use new, more
641            specific, messages.
642    
643            * Thuban/Model/messages.py: New message to indicate that a layer's
644            data has changed (LAYER_CHANGED). New map messages to indicate
645            when layers have been added/removed/changed or if the stacking order
646            of the layers has changed.
647    
648            * Thuban/Model/session.py: Rename and use new messages.
649    
650            * Thuban/UI/classifier.py: Remember if any changes have actually
651            been applied so that if the dialog is cancelled without an application
652            of changes we don't have to set a new classification.
653            (ClassDataPreviewer): Pulled out the window specific code and put it
654            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
655            symbols on any DC.
656            
657            * Thuban/UI/mainwindow.py: New code to open the legend.
658    
659            * Thuban/UI/view.py: Use new message names.
660    
661    2003-03-19  Jonathan Coles   <[email protected]>
662    
663            * Thuban/UI/main.py (verify_versions): New. Checks the versions
664            of Python, wxPython, and some other libraries.
665    
666            * extensions/thuban/wxproj.cpp (check_version): Checks the given
667            version against what wxproj was compiled with.
668            (check_version_gtk): If wxproj was compiled with gtk then check
669            the given version against the version of the gtk library
670            currently being used.
671    
672    2003-03-14  Bernhard Herzog  <[email protected]>
673    
674            * test/test_command.py: Run the tests when the module is run as a
675            script
676    
677    2003-03-14  Bernhard Herzog  <[email protected]>
678    
679            Implement selection of multiple selected shapes in the same layer:
680    
681            - Introduce a new class to hold the selection. This basically
682              replaces the interactor which was nothing more than the
683              selection anyway. A major difference is of course that the new
684              selection class supports multiple selected shapes in one layer
685            
686            - Move the object that represents the selection from the
687              application to the canvas. The canvas is a better place than the
688              application because the selection represents which shapes and
689              layer of the map displayed by the canvas are selected and
690              affects how the map is drawn.
691    
692            - Make the selection and its messages publicly available through
693              the mainwindow.
694    
695            - The non-modal dialogs do not get a reference to the interactor
696              anymore as they can simply refer to their parent, the
697              mainwindow, for the what the interactor had to offer.
698    
699            * Thuban/UI/selection.py: New module with a class to represent the
700            selection.
701    
702            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
703            these unused messages
704    
705            * Thuban/UI/application.py (ThubanApplication.OnInit)
706            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
707            interactor is gone now.
708            (ThubanApplication.CreateMainWindow): There is no interactor
709            anymore so we pass None as the interactor argument for now for
710            compatibility.
711    
712            * Thuban/UI/view.py (MapCanvas.delegated_messages)
713            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
714            Unsubscribe, delegate messages according to the delegated_messages
715            class variable.
716            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
717            attributes from instance variables as described with the
718            delegated_methods class variable.
719            (MapCanvas.__init__): New instance variable selection holding the
720            current selection
721            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
722            pass them on to the renderer
723            (MapCanvas.SetMap): Clear the selection when a different map is
724            selected.
725            (MapCanvas.shape_selected): Simple force a complete redraw. The
726            selection class now takes care of only issueing SHAPES_SELECTED
727            messages when the set of selected shapes actually does change.
728            (MapCanvas.SelectShapeAt): The selection is now managed in
729            self.selection
730    
731            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
732            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
733            Unsubscribe, delegate messages according to the delegated_messages
734            class variable.
735            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
736            attributes from instance variables as described with the
737            delegated_methods class variable.
738            (MainWindow.__init__): The interactor as ivar is gone. The
739            parameter is still there for compatibility. The selection messages
740            now come from the canvas.
741            (MainWindow.current_layer, MainWindow.has_selected_layer):
742            Delegate to the the canvas.
743            (MainWindow.LayerShowTable, MainWindow.Classify)
744            (MainWindow.identify_view_on_demand): The dialogs don't need the
745            interactor parameter anymore.
746    
747            * Thuban/UI/tableview.py (TableFrame.__init__)
748            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
749            (LayerTableFrame.row_selected): The interactor is gone. It's job
750            from the dialog's point of view is now done by the mainwindow,
751            i.e. the parent. Subscribe to SHAPES_SELECTED instead
752            of SELECTED_SHAPE
753            
754            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
755            is gone. It's job from the dialog's point of view is now done by
756            the mainwindow, i.e. the parent.
757            
758            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
759            gone. It's job from the dialog's point of view is now done by the
760            mainwindow, i.e. the parent.
761    
762            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
763            gone. It's job from the dialog's point of view is now done by the
764            mainwindow, i.e. the parent.
765            (SessionTreeCtrl.__init__): New parameter mainwindow which is
766            stored as self.mainwindow. The mainwindow is need so that the tree
767            can still subscribe to the selection messages.
768            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
769            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
770            selection is now accessible through the mainwindow. Subscribe to
771            SHAPES_SELECTED instead of SELECTED_SHAPE
772    
773            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
774            SHAPES_SELECTED message now.
775            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
776            so deal with multiple shapes
777            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
778            gone. It's job from the dialog's point of view is now done by the
779            mainwindow, i.e. the parent.
780    
781            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
782            parameter is now a list of shape ids.
783            (RecordTable.SetTable): The second parameter is now a list of
784            indices.
785    
786            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
787            selected_shape parameter and ivar to selected_shapes. It's now a
788            list of shape ids.
789            (MapRenderer.draw_label_layer): Deal with multiple selected
790            shapes. Rearrange the code a bit so that the setup and shape type
791            distinctions are only executed once.
792    
793            * test/test_selection.py: Test cases for the selection class
794    
795    2003-03-11  Jonathan Coles   <[email protected]>
796    
797            * Thuban/Model/load.py: Temporary fix so that the xml reader
798            doesn't cause Thuban to crash.
799    
800            * Thuban/Model/layer.py: Handle the cyclic references between
801            a layer and its classification better, and be sure to disconnect
802            the classification from the layer when the layer is destroyed
803            so that we don't maintain a cyclic reference that may not be
804            garbage collected.
805    
806            * Thuban/Model/classification.py: See comment for layer.py.
807    
808    2003-03-12  Jan-Oliver Wagner <[email protected]>
809    
810            * HOWTO-Release: New. Information on the steps for releasing
811            a new version of Thuban.
812    
813    2003-03-11  Jonathan Coles   <[email protected]>
814    
815            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
816            Use True instead of true.
817            (Classifier): Should have a single panel in which all the controls lie.
818    
819            * Thuban/UI/proj4dialog.py: Add normal border.
820    
821            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
822    
823            * Thuban/UI/mainwindow.py: Use True instead of true.
824    
825            * setup.py: Update some definitions to use wxWindows2.4 files
826    
827            * Data/iceland_sample_class.thuban: Fixed file so that the
828            field_type information is present.
829    
830    2003-03-10  Jonathan Coles   <[email protected]>
831    
832            * Thuban/UI/classifier.py (Classifier.__init__): Make the
833            field type label grow so that when the text changes the
834            size is updated correctly. This may be a wxWindows bug.
835    
836    2003-03-10  Jonathan Coles   <[email protected]>
837    
838            * Thuban/UI/application.py: Changed SESSION_CHANGED to
839            SESSION_REPLACED.
840    
841            * Thuban/UI/classifier.py: Wrap text with _().
842            (ClassGrid.CreateTable): Set dimensions and size hints here,
843            instead of in Reset, so we only set the size once.
844    
845            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
846    
847            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
848            Call Close() instead of Shutdown().
849    
850            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
851    
852            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
853            Go back to using OnClose() instead of Shutdown().
854    
855    2003-03-10  Jonathan Coles   <[email protected]>
856    
857            * Thuban/UI/classifier.py (Classifier): SelectField() needed
858            to know the old field index as well as the new one.
859    
860    2003-03-10  Jonathan Coles   <[email protected]>
861    
862            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
863            to correctly set the table information and call this from
864            __init__ and from _OnFieldSelect so that all the information
865            is up to date when the dialog opens and when a field is changed.
866    
867    2003-03-10  Jonathan Coles   <[email protected]>
868    
869            * Thuban/Model/classification.py (Classification): Don't use
870            layer's message function directly, use the ClassChanged() method
871            when then classification changes. SetField/SetFieldType/SetLayer
872            must keep the information about field name and field type in
873            sync when an owning layer is set or removed.
874    
875            * Thuban/Model/layer.py: Added ClassChanged() so that the
876            classification can tell the layer when its data has changed.
877            (Layer.SetClassification): Accepts None as an arguement to
878            remove the current classification and correctly handles
879            adding a new classification.
880    
881            * Thuban/Model/load.py: Comment out print statement
882    
883            * test/test_classification.py, test/test_save.py: New and
884            improved tests.
885    
886    2003-03-07  Jonathan Coles   <[email protected]>
887    
888            * Thuban/Model/classification.py: Implemented __copy__ and
889            __deepcopy__ for ClassGroup* and ClassGroupProperites so
890            they can easily be copied by the classifier dialog.
891            (ClassGroupProperites.__init__): The default line color should
892            have been Color.Black.
893    
894            * Thuban/UI/classifier.py: Setting and Getting table values now
895            uses a consistent set of functions.
896            (Classifier): Now non-modal. Has field type label which changes
897            as the field changes. Keep track of buttons in a list so that
898            we can enable/disable the buttons when the None field is selected.
899            (SelectPropertiesDialog): Add buttons to make the colors transparent.
900    
901            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
902            does what OnClose did, but can be called by the application to
903            close a window. Needed when a session changes, and we have to
904            close the classifier windows.
905    
906            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
907            Shuts down open dialogs. Used when a new session is created
908            or a session is opened.
909            (MainWindow.SaveSession): Should only call application.SaveSession()
910            if we don't call SaveSessionAs first.
911            (MainWindow.Classify): Allow different classifier dialogs for
912            different layers.
913    
914            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
915            the parent class handle it. Add Shutdown() to unsubscibe from
916            event notification and call the parent Shutdown(). This was
917            necessary so the application can close the tree window.
918    
919    2003-03-06  Jonathan Coles   <[email protected]>
920    
921            * Thuban/Model/classification.py: Minor documentation changes,
922            Addition of __eq__ and __ne__ methods.
923            (Classification.SetLayer): prevent recursion between this method
924            and Layer.SetClassification().
925    
926            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
927    
928            * Thuban/Model/layer.py (SetClassification): prevent recursion
929            between this method and Classification.SetLayer().
930    
931            * test/test_classification.py, test/test_load.py,
932            test/test_session.py: Fixed and added tests for the classification
933            classes.
934    
935    2003-03-06  Bernhard Herzog  <[email protected]>
936    
937            * Thuban/UI/classifier.py (ClassGrid.__init__)
938            (ClassGrid.CreateTable): Move the SetSelectionMode call to
939            CreateTable because otherwise it triggers an assertion in
940            wxPython/wxGTK 2.4.
941    
942    2003-03-05  Jonathan Coles   <[email protected]>
943    
944            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
945    
946            * Thuban/Model/load.py: import FIELDTYPE constants from table.
947    
948            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
949    
950            * Thuban/Model/table.py: Put FIELDTYPE constants back.
951    
952    2003-03-05  Jonathan Coles   <[email protected]>
953    
954            * Thuban/UI/classifier.py: Added class documentation.
955            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
956            Store just the groups in the table and generate the other
957            column information when it is requested. Add "None" field
958            to pull-down to select no classification.
959    
960            * Thuban/common.py: Moved FIELDTYPE constants from table.py
961            (Str2Num): Only catch ValueError exceptions.
962    
963            * Thuban/Model/classification.py: Class documentation. Renaming
964            of methods with Stroke to Line. Groups are stored in a single
965            list with the default as the first element. Groups are searched
966            in the order they appear in the list.
967    
968            * Thuban/Model/color.py: Documentation.
969    
970            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
971            the kind of data represented by a field.
972    
973            * Thuban/Model/load.py (ProcessSession): Use proper string
974            conversion function; fixes RTbug #1713.
975    
976            * Thuban/Model/save.py (Saver): Store field type information.
977    
978            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
979            (Table): Add field_info_by_name() to retrieve field information
980            by specifying the field name, not the number.
981    
982            * Thuban/UI/mainwindow.py: Function name changes.
983    
984            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
985            get the layer classification once. Don't try to classify
986            values when the field is None: just use the default properties.
987    
988            * Thuban/UI/view.py: Function name changes.
989    
990            * Doc/thuban.dtd: Add field_type attribute to a classification.
991    
992    2003-03-04  Bernhard Herzog  <[email protected]>
993    
994            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
995            the fill and stroke layer attributes optional with suitable
996            default values. Add the stroke_width layer attribute. Use correct
997            syntax for empty elements. Make the attribute list for labels
998            refer to the label element.
999    
1000    2003-03-04  Bernhard Herzog  <[email protected]>
1001    
1002            * setup.py (thuban_build_py.build): Add a comment about distutils in
1003            Python 2.3 containing some of the functionality we implement in
1004            setup.py ourselves.
1005    
1006            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
1007            before the selection mode. Doing it the other way round triggers
1008            an assertion in wxWindows.
1009    
1010            * Thuban/Model/save.py (escape): Fix typo in doc-string
1011    
1012            * Thuban/Model/classification.py: Remove unnecessary wxPython
1013            import
1014    
1015    2003-03-04  Jonathan Coles   <[email protected]>
1016    
1017            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
1018            Parameter 'value' should default to None.
1019    
1020            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
1021            the class attribute __classification is now private.
1022    
1023            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
1024            Classifier to ClassGrid. Added support for removing selected rows,
1025            which including code for keeping track of when cells are selected,
1026            and deselected.
1027            (ClassTable): Support for added/removing rows. Fixed a problem
1028            with __ParseInput whereby it would not allow strings (only numbers)
1029            to be entered.
1030            (Classifier): Added button and supporting code for removing
1031            selected rows.
1032    
1033    2003-02-27  Jonathan Coles   <[email protected]>
1034    
1035            * Thuban/common.py: Moved color conversion functions into
1036            Thuban/UI/common.py.
1037            (Str2Num): Now converts the float (not the string) to a long/int
1038            so that an exception isn't thrown.
1039    
1040            * Thuban/UI/common.py: Common functions used in several UI modules
1041    
1042            * Thuban/Model/classification.py: Changed the class hierarchy
1043            so that a Classification consists of Groups which return
1044            Properties when a value matches a Group.
1045    
1046            * Thuban/Model/layer.py: Fixed name resolution problem.
1047    
1048            * Thuban/Model/load.py: Use new Classification and Group functions.
1049    
1050            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
1051            failure.
1052            (Saver.write_classification): Use new Classification and Group
1053            functions.
1054    
1055            * Thuban/UI/classifier.py: Changes to use new Classification and Group
1056            functions. Fix to create a tuple with a single value instead of
1057            simply returning the value.
1058    
1059            * Thuban/UI/renderer.py: Use new Classification and Group functions.
1060            Use common.py functions.
1061    
1062            * Thuban/UI/tree.py: Use common.py functions.
1063            
1064            * test/test_classification.py: Use new Classification and Group
1065            classes.
1066    
1067    2003-02-24  Jonathan Coles   <[email protected]>
1068    
1069            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
1070            functions from Thuban color objects to wxWindow colour objects.
1071    
1072            * Thuban/Model/classification.py (Classification): Renamed
1073            GetProperties() to GetClassData(). Used the new iterator
1074            in TreeInfo().
1075            (ClassIterator): Iterator implementation to iterate over the
1076            ClassData objects in a classification object.
1077    
1078            * Thuban/Model/save.py (Saver.write_classificaton): Uses
1079            the new iterator to save the classification information.
1080    
1081            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
1082            for changing the stroke and fill colors and previewing the
1083            changes.
1084    
1085            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
1086            MainWindow.SaveSessionAs): Text string changes so the dialogs
1087            have more meaningful titles.
1088    
1089            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
1090            Classification method name from GetProperties to GetClassData.
1091    
1092            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
1093            instead of accessing now non-existent class variables.
1094    
1095    2003-02-24  Bernhard Herzog  <[email protected]>
1096    
1097            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
1098            unneeded Shape() call. Rendering is substantially faster without
1099            it and it avoids some problems with broken shape files.
1100    
1101    2003-02-20  Frank Koormann   <[email protected]>
1102    
1103            Force minimal size of identify and label dialogs. The autosizing
1104            looked too ugly.
1105    
1106            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
1107            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
1108            Set size of listctrl.
1109            * Thuban/UI/identifyview.py (IdentifyView.__init__):
1110            Set size of dialog.
1111    
1112    2003-02-19  Jonathan Coles   <[email protected]>
1113    
1114            * test/test_classification.py, test/test_layer.py,
1115            test/test_load.py, test/test_map.py, test/test_session.py:
1116            Updated the tests to use the new functions that are in the
1117            respective classes.
1118    
1119            * Thuban/Model/classification.py (Classification):
1120            Uses the new ClassData* classes. Modification messages are
1121            passed up to the parent layer (if it exists).
1122            (ClassData): New class to encapsulate the common data in each
1123            classification property.
1124            (ClassDataDefault): Represents the Default class. data.
1125            (ClassDataPoint): Represents a single class. data point
1126            (ClassDataRange): Represents a class. range
1127            (ClassDataMap): Represents a class. map (unused).
1128    
1129            * Thuban/Model/color.py: Added Color.None to represent something
1130            with no color. Color.Black represents the color black.
1131            (NoColor): Helper class derived from Color to represent something
1132            with no color.
1133    
1134            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
1135            stroke_width attributes. Made the 'classification' attribute private.
1136            New methods for setting/getting the classification.
1137    
1138            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
1139            to get the classifcation and use the new ClassData* classes to
1140            hold the classification data. Use Str2Num to convert numbers
1141            properly.
1142    
1143            * Thuban/Model/save.py (Saver): Use new Color and Classification
1144            methods
1145    
1146            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
1147            custom grid.
1148            (ClassTable): Support for editing Values and Labels and for
1149            changing what type (point or range) of data is stored in each
1150            property based on how the user enters the data.
1151            (Classifier): Support for saving the new classifications and
1152            launching the dialog to edit a property.
1153            (SelectPropertiesDialog): New class for editing the visual
1154            properties of a classification (stroke color, width, and fill color)
1155            (ClassPreviewer): Took the Draw method from ClassRenderer and
1156            made most of it into this new class. Intend to use this class in
1157            the SelectPropertiesDialog for previewing changes.
1158    
1159            * Thuban/UI/renderer.py: Use new Color and Classification methods.
1160    
1161            * Thuban/UI/tree.py: Formatting changes.
1162    
1163            * Doc/thuban.dtd: Add 'label' element
1164    
1165            * Thuban/common.py: New. Contains common routines used throughout
1166            the code.
1167            (Str2Num): Takes a string and converts it to the "best" type of
1168            number.
1169    
1170    2003-02-14  Bernhard Herzog  <[email protected]>
1171    
1172            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
1173            dragging flag is always set to 0 even when the tool implementation
1174            raises an exception
1175    
1176    2003-02-11  Bernhard Herzog  <[email protected]>
1177    
1178            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
1179            method to create a splash screen.
1180            (ThubanApplication.ShowMainWindow): New. Show the main window.
1181            Needed so the splash screen can display the mainwindow
1182            (ThubanApplication.OnInit): Call the
1183            new splash_screen method to determine whether the application
1184            should display a splash screen. If it displays a splash screen do
1185            not immediately show the main window.
1186    
1187    2003-02-11  Jonathan Coles  <[email protected]>
1188    
1189            * Thuban/Model/classification.py: Added import line to fix
1190            feature conflicts between running on python2.2 and python2.1.
1191    
1192            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
1193            onto the clinfo parameter, so removed the deepcopy().
1194    
1195    2003-02-10  Jonathan Coles  <[email protected]>
1196    
1197            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
1198            Added element_open variable to track opening and closing of tags
1199            so that tags that don't span more than one line are closed with
1200            /> instead of </tag_name>. Use the GetDefault*() methods of
1201            the Classification class.
1202    
1203            * Thuban/Model/classification.py (Classificaton): Added set and
1204            get methods for the default data. The class also takes a layer
1205            reference so that modification messages can be sent. Fixed the
1206            methods to use the new ClassData class.
1207            (ClassData): New class to encapsulate the classification data
1208    
1209            * Thuban/Model/layer.py (Layer): Remove the
1210            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
1211            SetDefault*() methods on the layer's classification object.
1212            (Layer.__init__): Use the new SetDefault*() methods in the
1213            Classification class.
1214    
1215            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
1216            object instead of a dictionary.
1217    
1218            * Thuban/UI/classifier.py (ClassRenderer): New class to
1219            draw the classifications in the dialog box's table.
1220            (Classifier): Modified to use the ClassRenderer class.
1221    
1222            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
1223            methods of the Classification class.
1224    
1225            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
1226            of the ClassData class.
1227    
1228            * test/test_classification.py, test/test_layer.py,
1229            test/test_map.py, test/test_session.py: Fix the tests to work
1230            with the above code changes.
1231    
1232    2003-02-03  Jonathan Coles  <[email protected]>
1233    
1234            * Thuban/Model/classification.py (Classification): Added getNull()
1235            to return the NullData reference
1236    
1237            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
1238            Layer.SetStrokeWidth): Modified these functions to change the
1239            null data in the classification rather than keep these values
1240            directly in the Layer class. Menu options to change these values
1241            work again.
1242    
1243    2003-01-28  Jonathan Coles  <[email protected]>
1244    
1245            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
1246            Fixed crashing problem on some systems. Dialog box shows
1247            classification data.
1248    
1249            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
1250            Colors in the tree view.
1251    
1252            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
1253            the tree info for classifications. Commented out unnecessary lines.
1254    
1255            * Thuban/Model/classification.py (Classification.TreeInfo): New
1256            function to add information about the classification into the
1257            tree view.
1258    
1259    2003-01-27  Jan-Oliver Wagner <[email protected]>
1260    
1261            * Thuban/__init__.py (_): New.
1262    
1263            * Thuban/Model/classification.py, Thuban/Model/extension.py,
1264            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
1265            Thuban/Model/session.py, Thuban/UI/application.py,
1266            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
1267            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
1268            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
1269            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
1270            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
1271    
1272    2003-01-27  Jonathan Coles  <[email protected]>
1273    
1274            * Thuban/Model/layer.py: Classification initialization calls.
1275    
1276            * Thuban/Model/classification.py: Created class to encapsulate
1277            a layer classification. Supports specific data points and
1278            ranges.
1279    
1280            * Thuban/Model/load.py: Added support for loading classification
1281            information.
1282    
1283            * Thuban/Model/save.py: Added support for saving classification
1284            information.
1285    
1286            * Thuban/UI/classifier.py: Initial class for a dialog box for
1287            specifying classification information.
1288    
1289            * Thuban/UI/mainwindows.py: Support for opening the classifier
1290            dialog.
1291    
1292            * Thuban/UI/renderer.py: Support for drawing a layer with the
1293            classification information.
1294    
1295            * Data/iceland_sample_class.thuban: iceland_sample with
1296            classification data.
1297    
1298            * test/test_classification: Tests for the Classification class.
1299    
1300    2002-12-09  Bernhard Herzog  <[email protected]>
1301    
1302            * test/test_command.py: New. Tests for the command classes.
1303    
1304            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
1305            (Command.IsTool): New method to distinguish between command
1306            switching tools and other commands.
1307    
1308            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
1309            the tool to avoid direct assignments to instance variables
1310            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
1311            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
1312            change the tool
1313    
1314            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
1315            active tool's command turns insensitive, disable the tool.
1316            (_tool_command): Use the new ToolCommand class
1317    
1318            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
1319            SelectTool method to change the tool
1320            (iconfile): Use the ToolCommand class
1321    
1322  2002-12-03  Bernhard Herzog  <[email protected]>  2002-12-03  Bernhard Herzog  <[email protected]>
1323    
1324          * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle          * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
# Line 10  Line 1331 
1331          * Thuban/UI/mainwindow.py: Altered the order of tools in the          * Thuban/UI/mainwindow.py: Altered the order of tools in the
1332          toolbar: First now are all navigation tools (Zoom In/Out, Pan,          toolbar: First now are all navigation tools (Zoom In/Out, Pan,
1333          Full Extent).          Full Extent).
1334        
1335  2002-10-23  Bernhard Herzog  <[email protected]>  2002-10-23  Bernhard Herzog  <[email protected]>
1336    
1337          * setup.py (setup call): version now 0.1.3          * setup.py (setup call): version now 0.1.3
# Line 121  Line 1442 
1442          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1443          VIEW_POSITION          VIEW_POSITION
1444    
1445  2002-09-04  Frank Koormann   <[email protected]>  2002-09-04  Frank Koormann  <[email protected]>
1446    
1447          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1448    
# Line 208  Line 1529 
1529    
1530          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
1531          records.          records.
1532          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
1533    
1534          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1535          into the underlying table.          into the underlying table.
# Line 246  Line 1567 
1567          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1568          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
1569    
1570  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
1571    
1572          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1573          tree window already open          tree window already open
# Line 374  Line 1695 
1695          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
1696          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
1697          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
1698          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1699          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
1700    
1701          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 435  Line 1756 
1756          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
1757          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
1758          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
1759          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
1760          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
1761    
1762  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 516  Line 1837 
1837          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1838          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1839    
1840  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1841    
1842          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1843          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 745  Line 2066 
2066          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
2067          position in the statusbar          position in the statusbar
2068    
2069  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
2070    
2071          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
2072    
2073  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
2074            
2075          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
2076    
2077          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
2078    
2079          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
2080    
2081  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
2082            box
2083    
2084    2002-04-21  Jan-Oliver Wagner <[email protected]>
2085    
2086          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
2087    
2088          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
2089    
2090          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
2091          icon; added map_full_extend as tool          icon; added map_full_extend as tool
2092    
2093  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
2094    
2095          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
2096          saving _new_ sessions          saving _new_ sessions
# Line 870  Line 2192 
2192    
2193          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
2194          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
2195    
2196  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
2197    
2198          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
2199          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
2200    
2201          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
2202          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
2203          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
2204          too.          too.
# Line 987  Line 2308 
2308          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
2309          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
2310    
2311          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2312          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
2313          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
2314          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
2315          the application's OnInit method          the application's OnInit method
# Line 1004  Line 2325 
2325          layer to the tableview dialog.          layer to the tableview dialog.
2326    
2327          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
2328          (TableGrid):          (TableGrid):
2329          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
2330          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
2331          (TableFrame.__init__):          (TableFrame.__init__):
# Line 1071  Line 2392 
2392  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
2393    
2394          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2395            
2396          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2397          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
2398            
2399          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2400          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
2401          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 1121  Line 2442 
2442          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
2443          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
2444          link_file method          link_file method
2445            
2446          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2447          the window when the first layer is added to the map.          the window when the first layer is added to the map.
2448    
# Line 1158  Line 2479 
2479          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
2480          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2481          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
2482            
2483          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
2484          installer          installer
2485    

Legend:
Removed from v.354  
changed lines
  Added in v.705

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26