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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26