/[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 423 by frank, Thu Feb 20 16:23:59 2003 UTC revision 612 by jonathan, Mon Apr 7 08:55:01 2003 UTC
# Line 1  Line 1 
1    2003-04-07  Jonathan Coles   <[email protected]>
2    
3            Since we now say that the order of the groups in a classification
4            matters, it makes sense to be able to manipulate that order. Most
5            of the changes to Thuban/Model/classification.py are to that end.
6    
7            * Thuban/Model/classification.py (Classification.AppendGroup,
8            Classification.InsertGroup, Classification.ReplaceGroup,
9            Classification.RemoveGroup, Classification.GetGroup): Do as the
10            names imply.
11            (Classification.FindGroup): This was called GetGroup, but GetGroup
12            takes an index, while FindGroup takes a value.
13            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
14            REFERENCE. Currently there is a cyclic reference between the layer
15            and its classification. If the classification doesn't need to know
16            its owning layer we can change this, since it may make sense to be
17            able to use the same classification with different layers.
18    
19            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
20    
21            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
22            not AddGroup()
23    
24            * Thuban/UI/classifier.py: Now that we can depend on the order in
25            a Classification and have methods to manipulate that order we don't
26            need to use our own data structures in the grid. We can simply make
27            the grid/table access the information they need from a copy of
28            the classification object.
29            (Classifier._OnCloseBtn): Event handler for when the user clicks
30            'Close'. This is needed so if the user applies changes and then
31            continues to change the table the user has the option of discarding
32            the most recent changes and keeping what they applied.
33    
34            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
35            into the same group.
36    
37            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
38            with a really old version of proj, PJ_VERSION won't even be defined.
39            If it isn't defined then just compile so that the function always
40            returns Py_False.
41    
42            * test/test_classification.py: Fix tests to use the renamed methods.
43            Still need to write tests for the new methods.
44    
45    2003-04-04  Jonathan Coles   <[email protected]>
46    
47            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
48            call to SetSelection out of the method and before the call
49            to __SelectField in __init__. This prevents a recursion of events
50            when _OnFieldSelect is triggered by the user.
51    
52    2003-04-04  Jonathan Coles   <[email protected]>
53    
54            * Thuban/Model/classification.py: Rename Color.None to
55            Color.Transparent.
56            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
57            Don't bother copying the color, since Colors are immutable.
58    
59            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
60            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
61            Thuban/UI/renderer.py, Thuban/UI/view.py:
62            Rename Color.None to Color.Transparent.
63        
64            * test/test_classification.py, test/test_load.py: Rename Color.None
65            to Color.Transparent.
66    
67    2003-04-04  Jonathan Coles   <[email protected]>
68    
69            * Thuban/Model/classification.py: Fix assert calls.
70            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
71            Copy the color parameter rather than hold onto a reference.
72    
73            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
74            the color object.
75            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
76            are sure there exists only one refernce to Color.None in the system.
77            This allows us to use 'is' rather than the comparision functions.
78            
79            * Thuban/Model/save.py: Fix assert calls.
80            
81            * Thuban/UI/classifier.py: Fix assert calls.
82            (ClassGrid._OnCellDClick): Call up to the classifier to open the
83            dialog to edit the groups properties.
84            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
85            correctly if a cell is resized.
86            (ClassTable.SetClassification): New. Changes the classification
87            that is in the table.
88            (ClassTable.__SetRow): Allow groups to be prepended.
89            (Classifier): New code for opening the EditProperties and
90            GenerateRanges dialogs.
91            (SelectPropertiesDialog.__GetColor): Only set the color in the
92            color dialog if the current color is not None.
93            
94            * Thuban/UI/dock.py: Fix assert calls.
95            
96            * Thuban/UI/legend.py: Fix assert calls.
97            
98            * Thuban/UI/renderer.py: Fix assert calls.
99            
100            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
101            classifications.
102            (GenRangePanel): Panel specific to range generation.
103            (GenSingletonPanel): Panel specific to singleton generation.
104            (ClassGenerator): Class responsible for actually generating
105            the classification from the data gathered in the dialog box.
106            (PropertyRamp): Generates properties whose values range from
107            a starting property to an ending property.
108    
109    2003-04-03  Bernhard Herzog  <[email protected]>
110    
111            * test/support.py (print_garbage_information): New function that
112            prints information about still connected messages and memory
113            leaks.
114            (run_suite): Removed.
115            (run_tests): New function for use as a replacement of
116            unittest.main in the test_* files. This one calls
117            print_garbage_information at the end.
118    
119            * test/runtests.py (main): Use support.print_garbage_information
120    
121            * test/test_layer.py: Use support.run_tests instead of
122            unittest.main so we get memory leak information
123            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
124            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
125            (TestLayerLegend.test_visibility): Call the layer's Destroy method
126            to fix a memory leak.
127    
128            * test/test_classification.py: Use support.run_tests instead of
129            unittest.main so we get memory leak information
130            (TestClassification.test_classification): Call the layer's Destroy
131            method to fix a memory leak.
132    
133    2003-04-02  Bernhard Herzog  <[email protected]>
134    
135            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
136            Handle the reference counts of the return value and errors in
137            PyArg_ParseTuple correctly.
138    
139            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
140            sure the filename is absolute to avoid problems when saving the
141            session again
142    
143            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
144    
145    2003-04-01  Jonathan Coles   <[email protected]>
146    
147            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
148            that there actually are points in the returned list of points
149            before trying to index into the list. The list may be empty if
150            the shape is a Null Shape.
151    
152    2003-04-01  Bernhard Herzog  <[email protected]>
153    
154            * test/test_map.py: Don't use from <module> import *
155    
156    2003-04-01  Jonathan Coles   <[email protected]>
157    
158            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
159            LAYER_LEGEND_CHANGED
160    
161            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
162            self.Destroy() to close the window after yesterday's changes.
163    
164            * test/test_map.py, test/test_session.py: Fix messages that
165            are sent from maps and layers.
166    
167    2003-03-31  Jonathan Coles   <[email protected]>
168    
169            * Thuban/UI/classifier.py: Commented out some debugging statements.
170            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
171            RTbug #1769.
172    
173            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
174            position (although position doesn't work yet under GTK).
175            (DockableWindow.Destroy): New. Called when the window must be
176            closed. Namely needed when the DockFrame closes and must close
177            its children.
178            (DockFrame): Listen for EVT_CLOSE and destroy all children.
179    
180            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
181            when then window is told to close.
182            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
183            comment in source for more info.
184    
185            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
186    
187            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
188            symmetry with other such methods.
189            (MainWindow.ShowLegend): Show the legend docked by default.
190    
191    2003-03-28  Jonathan Coles   <[email protected]>
192    
193            * Thuban/UI/classifier.py: Support for highlighting a specific
194            group within the grid when the classification dialog is opened.
195            Also contains a lot of debugging printouts which will later
196            be removed.
197    
198            * Thuban/UI/dock.py: Complete rework on the dock code so that
199            that it is fairly removed from the rest of the Thuban application.
200            It is easy to add new docks which the rest of the program having
201            to be aware of them.
202    
203            * Thuban/UI/legend.py: Modifications to support selecting a
204            specific group in the classification dialog. Changed how layers
205            are drawn when the layer is visible/invisible.
206    
207            * Thuban/UI/mainwindow.py: Removed legend specific code and
208            replaced it with calls to the new dock code.
209    
210            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
211            to check if scale > 0. Trying to track down a divide by zero.
212    
213    2003-03-26  Jonathan Coles   <[email protected]>
214    
215            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
216            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
217            now part of DockableWindow.
218            (LegendPanel.DoOnSelChanged): Select the current layer in the
219            map.
220            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
221            with the selected layer and/or group.
222    
223    2003-03-26  Jonathan Coles   <[email protected]>
224    
225            This putback contains the code for dockable windows. There is
226            no support in wxWindows as of this date for windows that can
227            attach themselves to other windows.
228    
229            The current model contains a DockableWindow which has a parent
230            window for when it is detached and a dock window that it puts
231            its contents in when it is docked. The contents of a DockableWindow
232            must be a DockPanel. DockPanel itself derives from wxPanel.
233    
234            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
235            message, not a LAYER_LEGEND_CHANGED message.
236    
237            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
238    
239            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
240            as one of the style properties for the fieldTypeText item to
241            be sure that its size is correct when the text changes.
242    
243            * Thuban/UI/dock.py: New. Classes for the DockPanel and
244            DockableWindow.
245    
246            * Thuban/UI/legend.py: Added some more buttons and made the
247            LegendPanel a DockPanel.
248    
249            * Thuban/UI/mainwindow.py: Added sash windows to the main window
250            and supporting functions for manipulating the sashes.
251            (MainWindow.ShowLegend): Create a DockableWindow with the
252            LegendPanel as the contents.
253    
254            * Thuban/UI/messages.py: Added DOCKABLE_* messages
255    
256            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
257            not LAYER_LEGEND_CHANGED, messages.
258    
259    2003-03-25  Jonathan Coles   <[email protected]>
260    
261            * setup.py: Added custom script bdist_rpm_build_script so that
262            when the rpm is built the path to wx-config is correct.
263    
264            * setup.cfg: Added line saying to use the custom build script
265    
266    2003-03-20  Jonathan Coles   <[email protected]>
267    
268            Initial implementation of the Legend.
269    
270            * Thuban/UI/legend.py: New. Creates a window that shows the map's
271            Legend information and allows the user to add/modify classifications
272            and how the layers are drawn on the map.
273    
274            * setup.py: New command 'build_docs' which currently uses
275            happydoc to generate html documentation for Thuban.
276    
277            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
278            Returns a string which is appropriately describes the group.
279    
280            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
281            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
282    
283            * Thuban/Model/map.py (Map): Rename messages and use new, more
284            specific, messages.
285    
286            * Thuban/Model/messages.py: New message to indicate that a layer's
287            data has changed (LAYER_CHANGED). New map messages to indicate
288            when layers have been added/removed/changed or if the stacking order
289            of the layers has changed.
290    
291            * Thuban/Model/session.py: Rename and use new messages.
292    
293            * Thuban/UI/classifier.py: Remember if any changes have actually
294            been applied so that if the dialog is cancelled without an application
295            of changes we don't have to set a new classification.
296            (ClassDataPreviewer): Pulled out the window specific code and put it
297            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
298            symbols on any DC.
299            
300            * Thuban/UI/mainwindow.py: New code to open the legend.
301    
302            * Thuban/UI/view.py: Use new message names.
303    
304    2003-03-19  Jonathan Coles   <[email protected]>
305    
306            * Thuban/UI/main.py (verify_versions): New. Checks the versions
307            of Python, wxPython, and some other libraries.
308    
309            * extensions/thuban/wxproj.cpp (check_version): Checks the given
310            version against what wxproj was compiled with.
311            (check_version_gtk): If wxproj was compiled with gtk then check
312            the given version against the version of the gtk library
313            currently being used.
314    
315    2003-03-14  Bernhard Herzog  <[email protected]>
316    
317            * test/test_command.py: Run the tests when the module is run as a
318            script
319    
320    2003-03-14  Bernhard Herzog  <[email protected]>
321    
322            Implement selection of multiple selected shapes in the same layer:
323    
324            - Introduce a new class to hold the selection. This basically
325              replaces the interactor which was nothing more than the
326              selection anyway. A major difference is of course that the new
327              selection class supports multiple selected shapes in one layer
328            
329            - Move the object that represents the selection from the
330              application to the canvas. The canvas is a better place than the
331              application because the selection represents which shapes and
332              layer of the map displayed by the canvas are selected and
333              affects how the map is drawn.
334    
335            - Make the selection and its messages publicly available through
336              the mainwindow.
337    
338            - The non-modal dialogs do not get a reference to the interactor
339              anymore as they can simply refer to their parent, the
340              mainwindow, for the what the interactor had to offer.
341    
342            * Thuban/UI/selection.py: New module with a class to represent the
343            selection.
344    
345            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
346            these unused messages
347    
348            * Thuban/UI/application.py (ThubanApplication.OnInit)
349            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
350            interactor is gone now.
351            (ThubanApplication.CreateMainWindow): There is no interactor
352            anymore so we pass None as the interactor argument for now for
353            compatibility.
354    
355            * Thuban/UI/view.py (MapCanvas.delegated_messages)
356            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
357            Unsubscribe, delegate messages according to the delegated_messages
358            class variable.
359            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
360            attributes from instance variables as described with the
361            delegated_methods class variable.
362            (MapCanvas.__init__): New instance variable selection holding the
363            current selection
364            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
365            pass them on to the renderer
366            (MapCanvas.SetMap): Clear the selection when a different map is
367            selected.
368            (MapCanvas.shape_selected): Simple force a complete redraw. The
369            selection class now takes care of only issueing SHAPES_SELECTED
370            messages when the set of selected shapes actually does change.
371            (MapCanvas.SelectShapeAt): The selection is now managed in
372            self.selection
373    
374            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
375            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
376            Unsubscribe, delegate messages according to the delegated_messages
377            class variable.
378            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
379            attributes from instance variables as described with the
380            delegated_methods class variable.
381            (MainWindow.__init__): The interactor as ivar is gone. The
382            parameter is still there for compatibility. The selection messages
383            now come from the canvas.
384            (MainWindow.current_layer, MainWindow.has_selected_layer):
385            Delegate to the the canvas.
386            (MainWindow.LayerShowTable, MainWindow.Classify)
387            (MainWindow.identify_view_on_demand): The dialogs don't need the
388            interactor parameter anymore.
389    
390            * Thuban/UI/tableview.py (TableFrame.__init__)
391            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
392            (LayerTableFrame.row_selected): The interactor is gone. It's job
393            from the dialog's point of view is now done by the mainwindow,
394            i.e. the parent. Subscribe to SHAPES_SELECTED instead
395            of SELECTED_SHAPE
396            
397            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
398            is gone. It's job from the dialog's point of view is now done by
399            the mainwindow, i.e. the parent.
400            
401            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
402            gone. It's job from the dialog's point of view is now done by the
403            mainwindow, i.e. the parent.
404    
405            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
406            gone. It's job from the dialog's point of view is now done by the
407            mainwindow, i.e. the parent.
408            (SessionTreeCtrl.__init__): New parameter mainwindow which is
409            stored as self.mainwindow. The mainwindow is need so that the tree
410            can still subscribe to the selection messages.
411            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
412            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
413            selection is now accessible through the mainwindow. Subscribe to
414            SHAPES_SELECTED instead of SELECTED_SHAPE
415    
416            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
417            SHAPES_SELECTED message now.
418            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
419            so deal with multiple shapes
420            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
421            gone. It's job from the dialog's point of view is now done by the
422            mainwindow, i.e. the parent.
423    
424            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
425            parameter is now a list of shape ids.
426            (RecordTable.SetTable): The second parameter is now a list of
427            indices.
428    
429            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
430            selected_shape parameter and ivar to selected_shapes. It's now a
431            list of shape ids.
432            (MapRenderer.draw_label_layer): Deal with multiple selected
433            shapes. Rearrange the code a bit so that the setup and shape type
434            distinctions are only executed once.
435    
436            * test/test_selection.py: Test cases for the selection class
437    
438    2003-03-11  Jonathan Coles   <[email protected]>
439    
440            * Thuban/Model/load.py: Temporary fix so that the xml reader
441            doesn't cause Thuban to crash.
442    
443            * Thuban/Model/layer.py: Handle the cyclic references between
444            a layer and its classification better, and be sure to disconnect
445            the classification from the layer when the layer is destroyed
446            so that we don't maintain a cyclic reference that may not be
447            garbage collected.
448    
449            * Thuban/Model/classification.py: See comment for layer.py.
450    
451    2003-03-12  Jan-Oliver Wagner <[email protected]>
452    
453            * HOWTO-Release: New. Information on the steps for releasing
454            a new version of Thuban.
455    
456    2003-03-11  Jonathan Coles   <[email protected]>
457    
458            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
459            Use True instead of true.
460            (Classifier): Should have a single panel in which all the controls lie.
461    
462            * Thuban/UI/proj4dialog.py: Add normal border.
463    
464            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
465    
466            * Thuban/UI/mainwindow.py: Use True instead of true.
467    
468            * setup.py: Update some definitions to use wxWindows2.4 files
469    
470            * Data/iceland_sample_class.thuban: Fixed file so that the
471            field_type information is present.
472    
473    2003-03-10  Jonathan Coles   <[email protected]>
474    
475            * Thuban/UI/classifier.py (Classifier.__init__): Make the
476            field type label grow so that when the text changes the
477            size is updated correctly. This may be a wxWindows bug.
478    
479    2003-03-10  Jonathan Coles   <[email protected]>
480    
481            * Thuban/UI/application.py: Changed SESSION_CHANGED to
482            SESSION_REPLACED.
483    
484            * Thuban/UI/classifier.py: Wrap text with _().
485            (ClassGrid.CreateTable): Set dimensions and size hints here,
486            instead of in Reset, so we only set the size once.
487    
488            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
489    
490            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
491            Call Close() instead of Shutdown().
492    
493            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
494    
495            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
496            Go back to using OnClose() instead of Shutdown().
497    
498    2003-03-10  Jonathan Coles   <[email protected]>
499    
500            * Thuban/UI/classifier.py (Classifier): SelectField() needed
501            to know the old field index as well as the new one.
502    
503    2003-03-10  Jonathan Coles   <[email protected]>
504    
505            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
506            to correctly set the table information and call this from
507            __init__ and from _OnFieldSelect so that all the information
508            is up to date when the dialog opens and when a field is changed.
509    
510    2003-03-10  Jonathan Coles   <[email protected]>
511    
512            * Thuban/Model/classification.py (Classification): Don't use
513            layer's message function directly, use the ClassChanged() method
514            when then classification changes. SetField/SetFieldType/SetLayer
515            must keep the information about field name and field type in
516            sync when an owning layer is set or removed.
517    
518            * Thuban/Model/layer.py: Added ClassChanged() so that the
519            classification can tell the layer when its data has changed.
520            (Layer.SetClassification): Accepts None as an arguement to
521            remove the current classification and correctly handles
522            adding a new classification.
523    
524            * Thuban/Model/load.py: Comment out print statement
525    
526            * test/test_classification.py, test/test_save.py: New and
527            improved tests.
528    
529    2003-03-07  Jonathan Coles   <[email protected]>
530    
531            * Thuban/Model/classification.py: Implemented __copy__ and
532            __deepcopy__ for ClassGroup* and ClassGroupProperites so
533            they can easily be copied by the classifier dialog.
534            (ClassGroupProperites.__init__): The default line color should
535            have been Color.Black.
536    
537            * Thuban/UI/classifier.py: Setting and Getting table values now
538            uses a consistent set of functions.
539            (Classifier): Now non-modal. Has field type label which changes
540            as the field changes. Keep track of buttons in a list so that
541            we can enable/disable the buttons when the None field is selected.
542            (SelectPropertiesDialog): Add buttons to make the colors transparent.
543    
544            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
545            does what OnClose did, but can be called by the application to
546            close a window. Needed when a session changes, and we have to
547            close the classifier windows.
548    
549            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
550            Shuts down open dialogs. Used when a new session is created
551            or a session is opened.
552            (MainWindow.SaveSession): Should only call application.SaveSession()
553            if we don't call SaveSessionAs first.
554            (MainWindow.Classify): Allow different classifier dialogs for
555            different layers.
556    
557            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
558            the parent class handle it. Add Shutdown() to unsubscibe from
559            event notification and call the parent Shutdown(). This was
560            necessary so the application can close the tree window.
561    
562    2003-03-06  Jonathan Coles   <[email protected]>
563    
564            * Thuban/Model/classification.py: Minor documentation changes,
565            Addition of __eq__ and __ne__ methods.
566            (Classification.SetLayer): prevent recursion between this method
567            and Layer.SetClassification().
568    
569            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
570    
571            * Thuban/Model/layer.py (SetClassification): prevent recursion
572            between this method and Classification.SetLayer().
573    
574            * test/test_classification.py, test/test_load.py,
575            test/test_session.py: Fixed and added tests for the classification
576            classes.
577    
578    2003-03-06  Bernhard Herzog  <[email protected]>
579    
580            * Thuban/UI/classifier.py (ClassGrid.__init__)
581            (ClassGrid.CreateTable): Move the SetSelectionMode call to
582            CreateTable because otherwise it triggers an assertion in
583            wxPython/wxGTK 2.4.
584    
585    2003-03-05  Jonathan Coles   <[email protected]>
586    
587            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
588    
589            * Thuban/Model/load.py: import FIELDTYPE constants from table.
590    
591            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
592    
593            * Thuban/Model/table.py: Put FIELDTYPE constants back.
594    
595    2003-03-05  Jonathan Coles   <[email protected]>
596    
597            * Thuban/UI/classifier.py: Added class documentation.
598            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
599            Store just the groups in the table and generate the other
600            column information when it is requested. Add "None" field
601            to pull-down to select no classification.
602    
603            * Thuban/common.py: Moved FIELDTYPE constants from table.py
604            (Str2Num): Only catch ValueError exceptions.
605    
606            * Thuban/Model/classification.py: Class documentation. Renaming
607            of methods with Stroke to Line. Groups are stored in a single
608            list with the default as the first element. Groups are searched
609            in the order they appear in the list.
610    
611            * Thuban/Model/color.py: Documentation.
612    
613            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
614            the kind of data represented by a field.
615    
616            * Thuban/Model/load.py (ProcessSession): Use proper string
617            conversion function; fixes RTbug #1713.
618    
619            * Thuban/Model/save.py (Saver): Store field type information.
620    
621            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
622            (Table): Add field_info_by_name() to retrieve field information
623            by specifying the field name, not the number.
624    
625            * Thuban/UI/mainwindow.py: Function name changes.
626    
627            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
628            get the layer classification once. Don't try to classify
629            values when the field is None: just use the default properties.
630    
631            * Thuban/UI/view.py: Function name changes.
632    
633            * Doc/thuban.dtd: Add field_type attribute to a classification.
634    
635    2003-03-04  Bernhard Herzog  <[email protected]>
636    
637            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
638            the fill and stroke layer attributes optional with suitable
639            default values. Add the stroke_width layer attribute. Use correct
640            syntax for empty elements. Make the attribute list for labels
641            refer to the label element.
642    
643    2003-03-04  Bernhard Herzog  <[email protected]>
644    
645            * setup.py (thuban_build_py.build): Add a comment about distutils in
646            Python 2.3 containing some of the functionality we implement in
647            setup.py ourselves.
648    
649            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
650            before the selection mode. Doing it the other way round triggers
651            an assertion in wxWindows.
652    
653            * Thuban/Model/save.py (escape): Fix typo in doc-string
654    
655            * Thuban/Model/classification.py: Remove unnecessary wxPython
656            import
657    
658    2003-03-04  Jonathan Coles   <[email protected]>
659    
660            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
661            Parameter 'value' should default to None.
662    
663            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
664            the class attribute __classification is now private.
665    
666            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
667            Classifier to ClassGrid. Added support for removing selected rows,
668            which including code for keeping track of when cells are selected,
669            and deselected.
670            (ClassTable): Support for added/removing rows. Fixed a problem
671            with __ParseInput whereby it would not allow strings (only numbers)
672            to be entered.
673            (Classifier): Added button and supporting code for removing
674            selected rows.
675    
676    2003-02-27  Jonathan Coles   <[email protected]>
677    
678            * Thuban/common.py: Moved color conversion functions into
679            Thuban/UI/common.py.
680            (Str2Num): Now converts the float (not the string) to a long/int
681            so that an exception isn't thrown.
682    
683            * Thuban/UI/common.py: Common functions used in several UI modules
684    
685            * Thuban/Model/classification.py: Changed the class hierarchy
686            so that a Classification consists of Groups which return
687            Properties when a value matches a Group.
688    
689            * Thuban/Model/layer.py: Fixed name resolution problem.
690    
691            * Thuban/Model/load.py: Use new Classification and Group functions.
692    
693            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
694            failure.
695            (Saver.write_classification): Use new Classification and Group
696            functions.
697    
698            * Thuban/UI/classifier.py: Changes to use new Classification and Group
699            functions. Fix to create a tuple with a single value instead of
700            simply returning the value.
701    
702            * Thuban/UI/renderer.py: Use new Classification and Group functions.
703            Use common.py functions.
704    
705            * Thuban/UI/tree.py: Use common.py functions.
706            
707            * test/test_classification.py: Use new Classification and Group
708            classes.
709    
710    2003-02-24  Jonathan Coles   <[email protected]>
711    
712            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
713            functions from Thuban color objects to wxWindow colour objects.
714    
715            * Thuban/Model/classification.py (Classification): Renamed
716            GetProperties() to GetClassData(). Used the new iterator
717            in TreeInfo().
718            (ClassIterator): Iterator implementation to iterate over the
719            ClassData objects in a classification object.
720    
721            * Thuban/Model/save.py (Saver.write_classificaton): Uses
722            the new iterator to save the classification information.
723    
724            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
725            for changing the stroke and fill colors and previewing the
726            changes.
727    
728            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
729            MainWindow.SaveSessionAs): Text string changes so the dialogs
730            have more meaningful titles.
731    
732            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
733            Classification method name from GetProperties to GetClassData.
734    
735            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
736            instead of accessing now non-existent class variables.
737    
738    2003-02-24  Bernhard Herzog  <[email protected]>
739    
740            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
741            unneeded Shape() call. Rendering is substantially faster without
742            it and it avoids some problems with broken shape files.
743    
744  2003-02-20  Frank Koormann   <[email protected]>  2003-02-20  Frank Koormann   <[email protected]>
745    
746          Force minimal size of identify and label dialogs. The autosizing          Force minimal size of identify and label dialogs. The autosizing

Legend:
Removed from v.423  
changed lines
  Added in v.612

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26