/[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 478 by jonathan, Thu Mar 6 16:45:32 2003 UTC revision 701 by bh, Thu Apr 17 16:18:48 2003 UTC
# Line 1  Line 1 
1    2003-04-17  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
4            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
5            anymore.
6            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
7            (Layer.ShapeType, Layer.Shape): No need to call
8            self.open_shapefile since it's always called in __init__
9    
10            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
11            In wxPython 2.4 there's no need to extend MainLoop anymore since
12            wxPython itself makes sure OnExit is called.
13    
14    2003-04-16  Jonathan Coles   <[email protected]>
15    
16            Initial putback of projection management code. Includes new
17            classes to read and write projection files. The current load
18            and save classes were abstracted a bit so they could be reused.
19            The Projection class was extended to provide new methods and
20            have a name.
21    
22            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
23            general XML reading methods that were part of ProcessSession.
24    
25            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
26            name.
27            (ProjFile): New. Represents a file that contains projection
28            information.
29    
30            * Thuban/Model/resource.py: New. Contains general utilities
31            for read and writing projection files.
32    
33            * Thuban/Model/save.py (XMLSaver): New. Contains all the
34            general XML writing methods that were part of SessionSaver.
35            (SessionSaver): Renamed from Saver.
36    
37            * test/test_proj.py: New test cases for the projection
38            file read and write functions.
39    
40    2003-04-16  Jonathan Coles   <[email protected]>
41    
42            * Thuban/Model/classification.py: Use repr() around values
43            in the ClassGroup*.__repr__() methods so it is clearer when
44            a value is a string and when it is a number.
45    
46            * test/test_load.py: Rework the classification test to test
47            that we can load old files.
48            (testLabels): Test a file where the groups have labels.
49    
50    2003-04-16  Bernhard Herzog  <[email protected]>
51    
52            Safer implementation of the performance enhancements of the
53            low-level renderer:
54            
55            * extensions/thuban/wxproj.cpp (extract_projection)
56            (extract_pointer): Rename extract_projection to extract_pointer
57            and redefine its purpose to return the pointer stored in a CObject
58            returned by the object's cobject method. Update all callers.
59            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
60            handling of these low-level parameters so that each s_draw_info
61            instance is handled as a CObject at python level that also
62            contains real references to the actual python objects which
63            contain the values in the struct. Add free_draw_info as the
64            destructor.
65            (draw_polygon_shape): Add the py_draw_info parameter which must a
66            cobject containing an s_draw_info pointer.
67    
68            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
69            method to instantiat the low-level render parameter
70            (MapRenderer.draw_shape_layer): Use the new method. Remove some
71            commented out code.
72            (MapRenderer.draw_polygon_shape): Make the first parameter not the
73            layer but the low-level render parameter
74            (ScreenRenderer.draw_shape_layer): Use the low-level render
75            parameter.
76    
77    2003-04-15  Jonathan Coles   <[email protected]>
78    
79            * Thuban/Model/classification.py: Implemented __repr__ for
80            the ClassGroup* classes to make debugging a bit easier.
81            (ClassGroup.SetLabel): Check that the string is an instance
82            of StringTypes not StringType. Accounts for Unicode strings.
83    
84            * Thuban/Model/color.py: Implemented __repr__ to make
85            debugging a bit easier.
86    
87            * Thuban/Model/save.py (Saver.write_classification): Need to
88            save the group label.
89    
90            * test/test_load.py (testClassification): New. Loads the
91            iceland_sample_test.thuban file and checks if it was loaded
92            correctly.
93    
94    2003-04-15  Jonathan Coles   <[email protected]>
95    
96            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
97            to improve rendering performance by initializing the variables
98            that are not change each time draw_polygon_shape() is called.
99            The values are stored in a global struct draw_info.
100            (draw_polygon_shape): Removed initialization code that is
101            now in draw_polygon_init().
102    
103            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
104            drawing initialization call to draw_polygon_init()
105            (MapRenderer.draw_polygon_shape): Use new signature of
106            draw_polygon_shape.
107    
108            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
109            weirdness by setting the range to (1, maxint).
110    
111            * Thuban/Model/classification.py (ClassGroupProperties): Make
112            instance variables private and optimize comparison operator
113            by first checking if the color references are the same.
114            (ClassGroupSingleton): Make instance variables private.
115            (ClassGroupRange): Make instance variables private.
116    
117            * HOWTO-Release: Filled in missing steps for releasing packages.
118    
119    2003-04-15  Bernhard Herzog  <[email protected]>
120    
121            First stab at internationalized messages:
122    
123            * Thuban/__init__.py (_): Implement the translation function for
124            real using the python gettext module.
125    
126            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
127            translate empty strings.
128    
129            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
130            Add a missing space to a warning message
131    
132            * po/README: New. Notes about the management of the translation
133            files.
134    
135            * po/Makefile: New. Makefile to help manage the translation files.
136    
137            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
138    
139            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
140            translations and support files in po/
141    
142            * setup.py (data_files): Add the *.mo files to the data_files too
143    
144            * README: Add note about the translations when building from CVS
145    
146    2003-04-14  Jonathan Coles   <[email protected]>
147    
148            * Thuban/UI/dock.py: Fixes some window resizing problems most
149            noticable under windows. Always assume the button bitmaps will
150            be there. Code clean up.
151            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
152            images for the dock/undock button to the same images.
153            Work around for RTbug #1801.
154    
155            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
156            be allowed to grow within the sizer. Fixes a bug under Windows
157            where the toolbar wasn't being drawn.
158    
159    2003-04-14  Frank Koormann   <[email protected]>
160    
161            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
162            Updated design to try to make the button functionality more
163            transparent.
164    
165    2003-04-14  Jonathan Coles   <[email protected]>
166    
167            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
168            finalize the intialization of the panel.
169    
170            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
171            creation of the panel. Should be the last thing called in the
172            initializer of a subclass.
173    
174            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
175            set the current selections in the combo boxes. This is needed
176            under Windows.
177    
178            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
179            level panel to the dialog so that the background colors are
180            consistent under Windows.
181    
182    2003-04-11  Jonathan Coles   <[email protected]>
183    
184            * Thuban/UI/classgen.py: Change color ramps to start at white
185            not black.
186    
187            * Thuban/UI/legend.py: Enable/disable the legend buttons when
188            the legend changes. Fixes RTbug #1793.
189    
190            * test/test_classification.py: Added test for copying of
191            classifications.
192    
193    2003-04-11  Jonathan Coles   <[email protected]>
194    
195            * Thuban/UI/resource.py: New. Centralize the loading of resources
196            such as bitmaps.
197    
198            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
199            added images to the move buttons, added 'reverse' button.
200            (CustomRampPanel.__init__): Added images to the move buttons.
201            (GreyRamp): New. Generates a ramp from white to black.
202            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
203    
204            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
205            ID_PROPERTY_*.
206            (Classifier.__init__): Minor changes to the layout.
207            (Classifier._OnTitleChanged): Listen for when the user edits the
208            title and update the dialog's title and the layer's title.
209    
210            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
211    
212            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
213            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
214            if the layer's title changes.
215    
216            * Thuban/UI/mainwindow.py: Added new menu item and associated code
217            to open a dialog to rename the map.
218            (MainWindow): Use new resource class to import bitmaps.
219    
220    2003-04-11  Jonathan Coles   <[email protected]>
221    
222            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
223            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
224            Resources/Bitmaps/group_use_none.xpm,
225            Resources/Bitmaps/group_use_not.xpm,
226            Resources/Bitmaps/hide_layer.xpm,
227            Resources/Bitmaps/layer_properties.xpm,
228            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
229            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
230            New.
231    
232    2003-04-10  Jonathan Coles   <[email protected]>
233    
234            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
235            Should pass group to ClassGroup constructor.
236    
237    2003-04-10  Jonathan Coles   <[email protected]>
238    
239            * Thuban/Model/classification.py: (ClassGroup): Move all the common
240            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
241            here. Implement SetVisible(), IsVisible().
242            (ClassGroup.__init__): Add group parameter which acts as a copy
243            constructor.
244    
245            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
246            "Visible" check boxes.
247            (Classifier): Rename the buttons and refactor the code to match
248            the new labels.
249    
250            * Thuban/UI/legend.py: Classify button is now called "Properties".
251            Refactored the code to change variable names.
252            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
253    
254            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
255            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
256            renamed to MainWindow.LayerEditProperties.
257            (MainWindow.ToggleLegend): Don't include map name in legend title.
258            (MainWindow.SetMap): Added the map name to the window title.
259            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
260            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
261            Functionality is found in the layer properties dialog.
262    
263            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
264            draw visible groups.
265    
266    2003-04-09  Jonathan Coles   <[email protected]>
267    
268            * Thuban/UI/classgen.py: Modifications to allow simple
269            addition and selection of new color schemes.
270            (MonochromaticRamp): New. Generates a ramp between two colors.
271            (RedRamp): New. Generates a ramp of all red.
272            (GreenRamp): New. Generates a ramp of all green.
273            (BlueRamp): New. Generates a ramp of all blue.
274    
275    2003-04-09  Jonathan Coles   <[email protected]>
276    
277            * Thuban/Model/classification.py (Classification.__deepcopy__):
278            Need to copy over field and fieldType attributes.
279    
280            * Thuban/Model/table.py (Table.field_range): New. Retrive the
281            maximum and minimum values over the entire table for a given
282            field.
283            (Table.GetUniqueValues): New. Retrieve all the unique values
284            in the table for a given field.
285    
286            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
287            (GenUniquePanel): New. Controls to allow the user to select
288            which unique field values they would like in the classification.
289            (CustomRampPanel): Code that was in ClassGenDialog that allows
290            the user to select the properties for a custom ramp.
291            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
292    
293            * Thuban/UI/classifier.py: Removed a lot of debugging code.
294            (Classifier._SetClassification): Callback method so that the
295            class generator can set the classification in the grid.
296            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
297            editing of a group properties class into a wxWindows control.
298    
299            * Thuban/UI/dock.py: It was decided that if the user closes
300            a dockable window the window should simply hide itself. That
301            way if the user wants to show the dock again it appears in the
302            same place as it was when it was closed.
303            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
304            (DockableWindow._OnButtonClose): Hide the window instead of
305            destroying it.
306            (DockableWindow._OnClose): Hide the window instead of
307            destroying it.
308    
309            * Thuban/UI/legend.py (LegendTree): Use a private method to
310            consistently set the font and style of the text. Fixes RTbug #1786.
311    
312            * Thuban/UI/mainwindow.py: Import just the Classifier class.
313    
314    2003-04-07  Bernhard Herzog  <[email protected]>
315    
316            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
317            to the map module
318    
319    2003-04-07  Bernhard Herzog  <[email protected]>
320    
321            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
322            favor of ToggleSessionTree
323            (MainWindow.ToggleSessionTree): New method to toggle visibility of
324            the session tree.
325            (MainWindow.SessionTreeShown): New method to return whether the
326            session tree is currently shown.
327            (MainWindow.ToggleLegend): New method to toggle visibility of the
328            legend
329            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
330            LegendShown
331            (MainWindow.LegendShown): New method to return whether the legend
332            is currently shown.
333            (_method_command): Add checked parameter so we can define check
334            menu items
335            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
336            mainwindow methods.
337            (show_session_tree, show_legend commands): Removed.
338            (toggle_session_tree, toggle_legend commands): New commands to
339            toggle the visibility of the dialogs
340    
341    2003-04-07  Jonathan Coles   <[email protected]>
342    
343            * Thuban/UI/classgen.py: Fix Windows problem.
344    
345            * Thuban/UI/dock.py: Fix Windows problem.
346    
347            * Thuban/UI/mainwindow.py: Use False instead of false.
348            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
349    
350    2003-04-07  Jonathan Coles   <[email protected]>
351    
352            Since we now say that the order of the groups in a classification
353            matters, it makes sense to be able to manipulate that order. Most
354            of the changes to Thuban/Model/classification.py are to that end.
355    
356            * Thuban/Model/classification.py (Classification.AppendGroup,
357            Classification.InsertGroup, Classification.ReplaceGroup,
358            Classification.RemoveGroup, Classification.GetGroup): Do as the
359            names imply.
360            (Classification.FindGroup): This was called GetGroup, but GetGroup
361            takes an index, while FindGroup takes a value.
362            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
363            REFERENCE. Currently there is a cyclic reference between the layer
364            and its classification. If the classification doesn't need to know
365            its owning layer we can change this, since it may make sense to be
366            able to use the same classification with different layers.
367    
368            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
369    
370            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
371            not AddGroup()
372    
373            * Thuban/UI/classifier.py: Now that we can depend on the order in
374            a Classification and have methods to manipulate that order we don't
375            need to use our own data structures in the grid. We can simply make
376            the grid/table access the information they need from a copy of
377            the classification object.
378            (Classifier._OnCloseBtn): Event handler for when the user clicks
379            'Close'. This is needed so if the user applies changes and then
380            continues to change the table the user has the option of discarding
381            the most recent changes and keeping what they applied.
382    
383            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
384            into the same group.
385    
386            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
387            with a really old version of proj, PJ_VERSION won't even be defined.
388            If it isn't defined then just compile so that the function always
389            returns Py_False.
390    
391            * test/test_classification.py: Fix tests to use the renamed methods.
392            Still need to write tests for the new methods.
393    
394    2003-04-04  Jonathan Coles   <[email protected]>
395    
396            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
397            call to SetSelection out of the method and before the call
398            to __SelectField in __init__. This prevents a recursion of events
399            when _OnFieldSelect is triggered by the user.
400    
401    2003-04-04  Jonathan Coles   <[email protected]>
402    
403            * Thuban/Model/classification.py: Rename Color.None to
404            Color.Transparent.
405            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
406            Don't bother copying the color, since Colors are immutable.
407    
408            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
409            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
410            Thuban/UI/renderer.py, Thuban/UI/view.py:
411            Rename Color.None to Color.Transparent.
412        
413            * test/test_classification.py, test/test_load.py: Rename Color.None
414            to Color.Transparent.
415    
416    2003-04-04  Jonathan Coles   <[email protected]>
417    
418            * Thuban/Model/classification.py: Fix assert calls.
419            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
420            Copy the color parameter rather than hold onto a reference.
421    
422            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
423            the color object.
424            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
425            are sure there exists only one refernce to Color.None in the system.
426            This allows us to use 'is' rather than the comparision functions.
427            
428            * Thuban/Model/save.py: Fix assert calls.
429            
430            * Thuban/UI/classifier.py: Fix assert calls.
431            (ClassGrid._OnCellDClick): Call up to the classifier to open the
432            dialog to edit the groups properties.
433            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
434            correctly if a cell is resized.
435            (ClassTable.SetClassification): New. Changes the classification
436            that is in the table.
437            (ClassTable.__SetRow): Allow groups to be prepended.
438            (Classifier): New code for opening the EditProperties and
439            GenerateRanges dialogs.
440            (SelectPropertiesDialog.__GetColor): Only set the color in the
441            color dialog if the current color is not None.
442            
443            * Thuban/UI/dock.py: Fix assert calls.
444            
445            * Thuban/UI/legend.py: Fix assert calls.
446            
447            * Thuban/UI/renderer.py: Fix assert calls.
448            
449            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
450            classifications.
451            (GenRangePanel): Panel specific to range generation.
452            (GenSingletonPanel): Panel specific to singleton generation.
453            (ClassGenerator): Class responsible for actually generating
454            the classification from the data gathered in the dialog box.
455            (PropertyRamp): Generates properties whose values range from
456            a starting property to an ending property.
457    
458    2003-04-03  Bernhard Herzog  <[email protected]>
459    
460            * test/support.py (print_garbage_information): New function that
461            prints information about still connected messages and memory
462            leaks.
463            (run_suite): Removed.
464            (run_tests): New function for use as a replacement of
465            unittest.main in the test_* files. This one calls
466            print_garbage_information at the end.
467    
468            * test/runtests.py (main): Use support.print_garbage_information
469    
470            * test/test_layer.py: Use support.run_tests instead of
471            unittest.main so we get memory leak information
472            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
473            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
474            (TestLayerLegend.test_visibility): Call the layer's Destroy method
475            to fix a memory leak.
476    
477            * test/test_classification.py: Use support.run_tests instead of
478            unittest.main so we get memory leak information
479            (TestClassification.test_classification): Call the layer's Destroy
480            method to fix a memory leak.
481    
482    2003-04-02  Bernhard Herzog  <[email protected]>
483    
484            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
485            Handle the reference counts of the return value and errors in
486            PyArg_ParseTuple correctly.
487    
488            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
489            sure the filename is absolute to avoid problems when saving the
490            session again
491    
492            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
493    
494    2003-04-01  Jonathan Coles   <[email protected]>
495    
496            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
497            that there actually are points in the returned list of points
498            before trying to index into the list. The list may be empty if
499            the shape is a Null Shape.
500    
501    2003-04-01  Bernhard Herzog  <[email protected]>
502    
503            * test/test_map.py: Don't use from <module> import *
504    
505    2003-04-01  Jonathan Coles   <[email protected]>
506    
507            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
508            LAYER_LEGEND_CHANGED
509    
510            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
511            self.Destroy() to close the window after yesterday's changes.
512    
513            * test/test_map.py, test/test_session.py: Fix messages that
514            are sent from maps and layers.
515    
516    2003-03-31  Jonathan Coles   <[email protected]>
517    
518            * Thuban/UI/classifier.py: Commented out some debugging statements.
519            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
520            RTbug #1769.
521    
522            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
523            position (although position doesn't work yet under GTK).
524            (DockableWindow.Destroy): New. Called when the window must be
525            closed. Namely needed when the DockFrame closes and must close
526            its children.
527            (DockFrame): Listen for EVT_CLOSE and destroy all children.
528    
529            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
530            when then window is told to close.
531            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
532            comment in source for more info.
533    
534            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
535    
536            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
537            symmetry with other such methods.
538            (MainWindow.ShowLegend): Show the legend docked by default.
539    
540    2003-03-28  Jonathan Coles   <[email protected]>
541    
542            * Thuban/UI/classifier.py: Support for highlighting a specific
543            group within the grid when the classification dialog is opened.
544            Also contains a lot of debugging printouts which will later
545            be removed.
546    
547            * Thuban/UI/dock.py: Complete rework on the dock code so that
548            that it is fairly removed from the rest of the Thuban application.
549            It is easy to add new docks which the rest of the program having
550            to be aware of them.
551    
552            * Thuban/UI/legend.py: Modifications to support selecting a
553            specific group in the classification dialog. Changed how layers
554            are drawn when the layer is visible/invisible.
555    
556            * Thuban/UI/mainwindow.py: Removed legend specific code and
557            replaced it with calls to the new dock code.
558    
559            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
560            to check if scale > 0. Trying to track down a divide by zero.
561    
562    2003-03-26  Jonathan Coles   <[email protected]>
563    
564            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
565            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
566            now part of DockableWindow.
567            (LegendPanel.DoOnSelChanged): Select the current layer in the
568            map.
569            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
570            with the selected layer and/or group.
571    
572    2003-03-26  Jonathan Coles   <[email protected]>
573    
574            This putback contains the code for dockable windows. There is
575            no support in wxWindows as of this date for windows that can
576            attach themselves to other windows.
577    
578            The current model contains a DockableWindow which has a parent
579            window for when it is detached and a dock window that it puts
580            its contents in when it is docked. The contents of a DockableWindow
581            must be a DockPanel. DockPanel itself derives from wxPanel.
582    
583            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
584            message, not a LAYER_LEGEND_CHANGED message.
585    
586            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
587    
588            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
589            as one of the style properties for the fieldTypeText item to
590            be sure that its size is correct when the text changes.
591    
592            * Thuban/UI/dock.py: New. Classes for the DockPanel and
593            DockableWindow.
594    
595            * Thuban/UI/legend.py: Added some more buttons and made the
596            LegendPanel a DockPanel.
597    
598            * Thuban/UI/mainwindow.py: Added sash windows to the main window
599            and supporting functions for manipulating the sashes.
600            (MainWindow.ShowLegend): Create a DockableWindow with the
601            LegendPanel as the contents.
602    
603            * Thuban/UI/messages.py: Added DOCKABLE_* messages
604    
605            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
606            not LAYER_LEGEND_CHANGED, messages.
607    
608    2003-03-25  Jonathan Coles   <[email protected]>
609    
610            * setup.py: Added custom script bdist_rpm_build_script so that
611            when the rpm is built the path to wx-config is correct.
612    
613            * setup.cfg: Added line saying to use the custom build script
614    
615    2003-03-20  Jonathan Coles   <[email protected]>
616    
617            Initial implementation of the Legend.
618    
619            * Thuban/UI/legend.py: New. Creates a window that shows the map's
620            Legend information and allows the user to add/modify classifications
621            and how the layers are drawn on the map.
622    
623            * setup.py: New command 'build_docs' which currently uses
624            happydoc to generate html documentation for Thuban.
625    
626            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
627            Returns a string which is appropriately describes the group.
628    
629            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
630            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
631    
632            * Thuban/Model/map.py (Map): Rename messages and use new, more
633            specific, messages.
634    
635            * Thuban/Model/messages.py: New message to indicate that a layer's
636            data has changed (LAYER_CHANGED). New map messages to indicate
637            when layers have been added/removed/changed or if the stacking order
638            of the layers has changed.
639    
640            * Thuban/Model/session.py: Rename and use new messages.
641    
642            * Thuban/UI/classifier.py: Remember if any changes have actually
643            been applied so that if the dialog is cancelled without an application
644            of changes we don't have to set a new classification.
645            (ClassDataPreviewer): Pulled out the window specific code and put it
646            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
647            symbols on any DC.
648            
649            * Thuban/UI/mainwindow.py: New code to open the legend.
650    
651            * Thuban/UI/view.py: Use new message names.
652    
653    2003-03-19  Jonathan Coles   <[email protected]>
654    
655            * Thuban/UI/main.py (verify_versions): New. Checks the versions
656            of Python, wxPython, and some other libraries.
657    
658            * extensions/thuban/wxproj.cpp (check_version): Checks the given
659            version against what wxproj was compiled with.
660            (check_version_gtk): If wxproj was compiled with gtk then check
661            the given version against the version of the gtk library
662            currently being used.
663    
664    2003-03-14  Bernhard Herzog  <[email protected]>
665    
666            * test/test_command.py: Run the tests when the module is run as a
667            script
668    
669    2003-03-14  Bernhard Herzog  <[email protected]>
670    
671            Implement selection of multiple selected shapes in the same layer:
672    
673            - Introduce a new class to hold the selection. This basically
674              replaces the interactor which was nothing more than the
675              selection anyway. A major difference is of course that the new
676              selection class supports multiple selected shapes in one layer
677            
678            - Move the object that represents the selection from the
679              application to the canvas. The canvas is a better place than the
680              application because the selection represents which shapes and
681              layer of the map displayed by the canvas are selected and
682              affects how the map is drawn.
683    
684            - Make the selection and its messages publicly available through
685              the mainwindow.
686    
687            - The non-modal dialogs do not get a reference to the interactor
688              anymore as they can simply refer to their parent, the
689              mainwindow, for the what the interactor had to offer.
690    
691            * Thuban/UI/selection.py: New module with a class to represent the
692            selection.
693    
694            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
695            these unused messages
696    
697            * Thuban/UI/application.py (ThubanApplication.OnInit)
698            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
699            interactor is gone now.
700            (ThubanApplication.CreateMainWindow): There is no interactor
701            anymore so we pass None as the interactor argument for now for
702            compatibility.
703    
704            * Thuban/UI/view.py (MapCanvas.delegated_messages)
705            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
706            Unsubscribe, delegate messages according to the delegated_messages
707            class variable.
708            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
709            attributes from instance variables as described with the
710            delegated_methods class variable.
711            (MapCanvas.__init__): New instance variable selection holding the
712            current selection
713            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
714            pass them on to the renderer
715            (MapCanvas.SetMap): Clear the selection when a different map is
716            selected.
717            (MapCanvas.shape_selected): Simple force a complete redraw. The
718            selection class now takes care of only issueing SHAPES_SELECTED
719            messages when the set of selected shapes actually does change.
720            (MapCanvas.SelectShapeAt): The selection is now managed in
721            self.selection
722    
723            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
724            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
725            Unsubscribe, delegate messages according to the delegated_messages
726            class variable.
727            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
728            attributes from instance variables as described with the
729            delegated_methods class variable.
730            (MainWindow.__init__): The interactor as ivar is gone. The
731            parameter is still there for compatibility. The selection messages
732            now come from the canvas.
733            (MainWindow.current_layer, MainWindow.has_selected_layer):
734            Delegate to the the canvas.
735            (MainWindow.LayerShowTable, MainWindow.Classify)
736            (MainWindow.identify_view_on_demand): The dialogs don't need the
737            interactor parameter anymore.
738    
739            * Thuban/UI/tableview.py (TableFrame.__init__)
740            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
741            (LayerTableFrame.row_selected): The interactor is gone. It's job
742            from the dialog's point of view is now done by the mainwindow,
743            i.e. the parent. Subscribe to SHAPES_SELECTED instead
744            of SELECTED_SHAPE
745            
746            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
747            is gone. It's job from the dialog's point of view is now done by
748            the mainwindow, i.e. the parent.
749            
750            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
751            gone. It's job from the dialog's point of view is now done by the
752            mainwindow, i.e. the parent.
753    
754            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
755            gone. It's job from the dialog's point of view is now done by the
756            mainwindow, i.e. the parent.
757            (SessionTreeCtrl.__init__): New parameter mainwindow which is
758            stored as self.mainwindow. The mainwindow is need so that the tree
759            can still subscribe to the selection messages.
760            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
761            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
762            selection is now accessible through the mainwindow. Subscribe to
763            SHAPES_SELECTED instead of SELECTED_SHAPE
764    
765            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
766            SHAPES_SELECTED message now.
767            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
768            so deal with multiple shapes
769            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
770            gone. It's job from the dialog's point of view is now done by the
771            mainwindow, i.e. the parent.
772    
773            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
774            parameter is now a list of shape ids.
775            (RecordTable.SetTable): The second parameter is now a list of
776            indices.
777    
778            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
779            selected_shape parameter and ivar to selected_shapes. It's now a
780            list of shape ids.
781            (MapRenderer.draw_label_layer): Deal with multiple selected
782            shapes. Rearrange the code a bit so that the setup and shape type
783            distinctions are only executed once.
784    
785            * test/test_selection.py: Test cases for the selection class
786    
787    2003-03-11  Jonathan Coles   <[email protected]>
788    
789            * Thuban/Model/load.py: Temporary fix so that the xml reader
790            doesn't cause Thuban to crash.
791    
792            * Thuban/Model/layer.py: Handle the cyclic references between
793            a layer and its classification better, and be sure to disconnect
794            the classification from the layer when the layer is destroyed
795            so that we don't maintain a cyclic reference that may not be
796            garbage collected.
797    
798            * Thuban/Model/classification.py: See comment for layer.py.
799    
800    2003-03-12  Jan-Oliver Wagner <[email protected]>
801    
802            * HOWTO-Release: New. Information on the steps for releasing
803            a new version of Thuban.
804    
805    2003-03-11  Jonathan Coles   <[email protected]>
806    
807            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
808            Use True instead of true.
809            (Classifier): Should have a single panel in which all the controls lie.
810    
811            * Thuban/UI/proj4dialog.py: Add normal border.
812    
813            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
814    
815            * Thuban/UI/mainwindow.py: Use True instead of true.
816    
817            * setup.py: Update some definitions to use wxWindows2.4 files
818    
819            * Data/iceland_sample_class.thuban: Fixed file so that the
820            field_type information is present.
821    
822    2003-03-10  Jonathan Coles   <[email protected]>
823    
824            * Thuban/UI/classifier.py (Classifier.__init__): Make the
825            field type label grow so that when the text changes the
826            size is updated correctly. This may be a wxWindows bug.
827    
828    2003-03-10  Jonathan Coles   <[email protected]>
829    
830            * Thuban/UI/application.py: Changed SESSION_CHANGED to
831            SESSION_REPLACED.
832    
833            * Thuban/UI/classifier.py: Wrap text with _().
834            (ClassGrid.CreateTable): Set dimensions and size hints here,
835            instead of in Reset, so we only set the size once.
836    
837            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
838    
839            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
840            Call Close() instead of Shutdown().
841    
842            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
843    
844            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
845            Go back to using OnClose() instead of Shutdown().
846    
847    2003-03-10  Jonathan Coles   <[email protected]>
848    
849            * Thuban/UI/classifier.py (Classifier): SelectField() needed
850            to know the old field index as well as the new one.
851    
852    2003-03-10  Jonathan Coles   <[email protected]>
853    
854            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
855            to correctly set the table information and call this from
856            __init__ and from _OnFieldSelect so that all the information
857            is up to date when the dialog opens and when a field is changed.
858    
859    2003-03-10  Jonathan Coles   <[email protected]>
860    
861            * Thuban/Model/classification.py (Classification): Don't use
862            layer's message function directly, use the ClassChanged() method
863            when then classification changes. SetField/SetFieldType/SetLayer
864            must keep the information about field name and field type in
865            sync when an owning layer is set or removed.
866    
867            * Thuban/Model/layer.py: Added ClassChanged() so that the
868            classification can tell the layer when its data has changed.
869            (Layer.SetClassification): Accepts None as an arguement to
870            remove the current classification and correctly handles
871            adding a new classification.
872    
873            * Thuban/Model/load.py: Comment out print statement
874    
875            * test/test_classification.py, test/test_save.py: New and
876            improved tests.
877    
878    2003-03-07  Jonathan Coles   <[email protected]>
879    
880            * Thuban/Model/classification.py: Implemented __copy__ and
881            __deepcopy__ for ClassGroup* and ClassGroupProperites so
882            they can easily be copied by the classifier dialog.
883            (ClassGroupProperites.__init__): The default line color should
884            have been Color.Black.
885    
886            * Thuban/UI/classifier.py: Setting and Getting table values now
887            uses a consistent set of functions.
888            (Classifier): Now non-modal. Has field type label which changes
889            as the field changes. Keep track of buttons in a list so that
890            we can enable/disable the buttons when the None field is selected.
891            (SelectPropertiesDialog): Add buttons to make the colors transparent.
892    
893            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
894            does what OnClose did, but can be called by the application to
895            close a window. Needed when a session changes, and we have to
896            close the classifier windows.
897    
898            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
899            Shuts down open dialogs. Used when a new session is created
900            or a session is opened.
901            (MainWindow.SaveSession): Should only call application.SaveSession()
902            if we don't call SaveSessionAs first.
903            (MainWindow.Classify): Allow different classifier dialogs for
904            different layers.
905    
906            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
907            the parent class handle it. Add Shutdown() to unsubscibe from
908            event notification and call the parent Shutdown(). This was
909            necessary so the application can close the tree window.
910    
911  2003-03-06  Jonathan Coles   <[email protected]>  2003-03-06  Jonathan Coles   <[email protected]>
912    
913          * Thuban/Model/classification.py: Minor documentation changes,          * Thuban/Model/classification.py: Minor documentation changes,

Legend:
Removed from v.478  
changed lines
  Added in v.701

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26