/[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 447 by jonathan, Thu Feb 27 16:05:51 2003 UTC revision 595 by bh, Wed Apr 2 18:28:09 2003 UTC
# Line 1  Line 1 
1    2003-04-02  Bernhard Herzog  <[email protected]>
2    
3            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
4            Handle the reference counts of the return value and errors in
5            PyArg_ParseTuple correctly.
6    
7            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
8            sure the filename is absolute to avoid problems when saving the
9            session again
10    
11            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
12    
13    2003-04-01  Jonathan Coles   <[email protected]>
14    
15            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
16            that there actually are points in the returned list of points
17            before trying to index into the list. The list may be empty if
18            the shape is a Null Shape.
19    
20    2003-04-01  Bernhard Herzog  <[email protected]>
21    
22            * test/test_map.py: Don't use from <module> import *
23    
24    2003-04-01  Jonathan Coles   <[email protected]>
25    
26            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
27            LAYER_LEGEND_CHANGED
28    
29            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
30            self.Destroy() to close the window after yesterday's changes.
31    
32            * test/test_map.py, test/test_session.py: Fix messages that
33            are sent from maps and layers.
34    
35    2003-03-31  Jonathan Coles   <[email protected]>
36    
37            * Thuban/UI/classifier.py: Commented out some debugging statements.
38            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
39            RTbug #1769.
40    
41            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
42            position (although position doesn't work yet under GTK).
43            (DockableWindow.Destroy): New. Called when the window must be
44            closed. Namely needed when the DockFrame closes and must close
45            its children.
46            (DockFrame): Listen for EVT_CLOSE and destroy all children.
47    
48            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
49            when then window is told to close.
50            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
51            comment in source for more info.
52    
53            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
54    
55            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
56            symmetry with other such methods.
57            (MainWindow.ShowLegend): Show the legend docked by default.
58    
59    2003-03-28  Jonathan Coles   <[email protected]>
60    
61            * Thuban/UI/classifier.py: Support for highlighting a specific
62            group within the grid when the classification dialog is opened.
63            Also contains a lot of debugging printouts which will later
64            be removed.
65    
66            * Thuban/UI/dock.py: Complete rework on the dock code so that
67            that it is fairly removed from the rest of the Thuban application.
68            It is easy to add new docks which the rest of the program having
69            to be aware of them.
70    
71            * Thuban/UI/legend.py: Modifications to support selecting a
72            specific group in the classification dialog. Changed how layers
73            are drawn when the layer is visible/invisible.
74    
75            * Thuban/UI/mainwindow.py: Removed legend specific code and
76            replaced it with calls to the new dock code.
77    
78            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
79            to check if scale > 0. Trying to track down a divide by zero.
80    
81    2003-03-26  Jonathan Coles   <[email protected]>
82    
83            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
84            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
85            now part of DockableWindow.
86            (LegendPanel.DoOnSelChanged): Select the current layer in the
87            map.
88            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
89            with the selected layer and/or group.
90    
91    2003-03-26  Jonathan Coles   <[email protected]>
92    
93            This putback contains the code for dockable windows. There is
94            no support in wxWindows as of this date for windows that can
95            attach themselves to other windows.
96    
97            The current model contains a DockableWindow which has a parent
98            window for when it is detached and a dock window that it puts
99            its contents in when it is docked. The contents of a DockableWindow
100            must be a DockPanel. DockPanel itself derives from wxPanel.
101    
102            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
103            message, not a LAYER_LEGEND_CHANGED message.
104    
105            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
106    
107            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
108            as one of the style properties for the fieldTypeText item to
109            be sure that its size is correct when the text changes.
110    
111            * Thuban/UI/dock.py: New. Classes for the DockPanel and
112            DockableWindow.
113    
114            * Thuban/UI/legend.py: Added some more buttons and made the
115            LegendPanel a DockPanel.
116    
117            * Thuban/UI/mainwindow.py: Added sash windows to the main window
118            and supporting functions for manipulating the sashes.
119            (MainWindow.ShowLegend): Create a DockableWindow with the
120            LegendPanel as the contents.
121    
122            * Thuban/UI/messages.py: Added DOCKABLE_* messages
123    
124            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
125            not LAYER_LEGEND_CHANGED, messages.
126    
127    2003-03-25  Jonathan Coles   <[email protected]>
128    
129            * setup.py: Added custom script bdist_rpm_build_script so that
130            when the rpm is built the path to wx-config is correct.
131    
132            * setup.cfg: Added line saying to use the custom build script
133    
134    2003-03-20  Jonathan Coles   <[email protected]>
135    
136            Initial implementation of the Legend.
137    
138            * Thuban/UI/legend.py: New. Creates a window that shows the map's
139            Legend information and allows the user to add/modify classifications
140            and how the layers are drawn on the map.
141    
142            * setup.py: New command 'build_docs' which currently uses
143            happydoc to generate html documentation for Thuban.
144    
145            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
146            Returns a string which is appropriately describes the group.
147    
148            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
149            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
150    
151            * Thuban/Model/map.py (Map): Rename messages and use new, more
152            specific, messages.
153    
154            * Thuban/Model/messages.py: New message to indicate that a layer's
155            data has changed (LAYER_CHANGED). New map messages to indicate
156            when layers have been added/removed/changed or if the stacking order
157            of the layers has changed.
158    
159            * Thuban/Model/session.py: Rename and use new messages.
160    
161            * Thuban/UI/classifier.py: Remember if any changes have actually
162            been applied so that if the dialog is cancelled without an application
163            of changes we don't have to set a new classification.
164            (ClassDataPreviewer): Pulled out the window specific code and put it
165            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
166            symbols on any DC.
167            
168            * Thuban/UI/mainwindow.py: New code to open the legend.
169    
170            * Thuban/UI/view.py: Use new message names.
171    
172    2003-03-19  Jonathan Coles   <[email protected]>
173    
174            * Thuban/UI/main.py (verify_versions): New. Checks the versions
175            of Python, wxPython, and some other libraries.
176    
177            * extensions/thuban/wxproj.cpp (check_version): Checks the given
178            version against what wxproj was compiled with.
179            (check_version_gtk): If wxproj was compiled with gtk then check
180            the given version against the version of the gtk library
181            currently being used.
182    
183    2003-03-14  Bernhard Herzog  <[email protected]>
184    
185            * test/test_command.py: Run the tests when the module is run as a
186            script
187    
188    2003-03-14  Bernhard Herzog  <[email protected]>
189    
190            Implement selection of multiple selected shapes in the same layer:
191    
192            - Introduce a new class to hold the selection. This basically
193              replaces the interactor which was nothing more than the
194              selection anyway. A major difference is of course that the new
195              selection class supports multiple selected shapes in one layer
196            
197            - Move the object that represents the selection from the
198              application to the canvas. The canvas is a better place than the
199              application because the selection represents which shapes and
200              layer of the map displayed by the canvas are selected and
201              affects how the map is drawn.
202    
203            - Make the selection and its messages publicly available through
204              the mainwindow.
205    
206            - The non-modal dialogs do not get a reference to the interactor
207              anymore as they can simply refer to their parent, the
208              mainwindow, for the what the interactor had to offer.
209    
210            * Thuban/UI/selection.py: New module with a class to represent the
211            selection.
212    
213            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
214            these unused messages
215    
216            * Thuban/UI/application.py (ThubanApplication.OnInit)
217            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
218            interactor is gone now.
219            (ThubanApplication.CreateMainWindow): There is no interactor
220            anymore so we pass None as the interactor argument for now for
221            compatibility.
222    
223            * Thuban/UI/view.py (MapCanvas.delegated_messages)
224            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
225            Unsubscribe, delegate messages according to the delegated_messages
226            class variable.
227            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
228            attributes from instance variables as described with the
229            delegated_methods class variable.
230            (MapCanvas.__init__): New instance variable selection holding the
231            current selection
232            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
233            pass them on to the renderer
234            (MapCanvas.SetMap): Clear the selection when a different map is
235            selected.
236            (MapCanvas.shape_selected): Simple force a complete redraw. The
237            selection class now takes care of only issueing SHAPES_SELECTED
238            messages when the set of selected shapes actually does change.
239            (MapCanvas.SelectShapeAt): The selection is now managed in
240            self.selection
241    
242            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
243            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
244            Unsubscribe, delegate messages according to the delegated_messages
245            class variable.
246            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
247            attributes from instance variables as described with the
248            delegated_methods class variable.
249            (MainWindow.__init__): The interactor as ivar is gone. The
250            parameter is still there for compatibility. The selection messages
251            now come from the canvas.
252            (MainWindow.current_layer, MainWindow.has_selected_layer):
253            Delegate to the the canvas.
254            (MainWindow.LayerShowTable, MainWindow.Classify)
255            (MainWindow.identify_view_on_demand): The dialogs don't need the
256            interactor parameter anymore.
257    
258            * Thuban/UI/tableview.py (TableFrame.__init__)
259            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
260            (LayerTableFrame.row_selected): The interactor is gone. It's job
261            from the dialog's point of view is now done by the mainwindow,
262            i.e. the parent. Subscribe to SHAPES_SELECTED instead
263            of SELECTED_SHAPE
264            
265            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
266            is gone. It's job from the dialog's point of view is now done by
267            the mainwindow, i.e. the parent.
268            
269            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
270            gone. It's job from the dialog's point of view is now done by the
271            mainwindow, i.e. the parent.
272    
273            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
274            gone. It's job from the dialog's point of view is now done by the
275            mainwindow, i.e. the parent.
276            (SessionTreeCtrl.__init__): New parameter mainwindow which is
277            stored as self.mainwindow. The mainwindow is need so that the tree
278            can still subscribe to the selection messages.
279            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
280            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
281            selection is now accessible through the mainwindow. Subscribe to
282            SHAPES_SELECTED instead of SELECTED_SHAPE
283    
284            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
285            SHAPES_SELECTED message now.
286            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
287            so deal with multiple shapes
288            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
289            gone. It's job from the dialog's point of view is now done by the
290            mainwindow, i.e. the parent.
291    
292            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
293            parameter is now a list of shape ids.
294            (RecordTable.SetTable): The second parameter is now a list of
295            indices.
296    
297            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
298            selected_shape parameter and ivar to selected_shapes. It's now a
299            list of shape ids.
300            (MapRenderer.draw_label_layer): Deal with multiple selected
301            shapes. Rearrange the code a bit so that the setup and shape type
302            distinctions are only executed once.
303    
304            * test/test_selection.py: Test cases for the selection class
305    
306    2003-03-11  Jonathan Coles   <[email protected]>
307    
308            * Thuban/Model/load.py: Temporary fix so that the xml reader
309            doesn't cause Thuban to crash.
310    
311            * Thuban/Model/layer.py: Handle the cyclic references between
312            a layer and its classification better, and be sure to disconnect
313            the classification from the layer when the layer is destroyed
314            so that we don't maintain a cyclic reference that may not be
315            garbage collected.
316    
317            * Thuban/Model/classification.py: See comment for layer.py.
318    
319    2003-03-12  Jan-Oliver Wagner <[email protected]>
320    
321            * HOWTO-Release: New. Information on the steps for releasing
322            a new version of Thuban.
323    
324    2003-03-11  Jonathan Coles   <[email protected]>
325    
326            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
327            Use True instead of true.
328            (Classifier): Should have a single panel in which all the controls lie.
329    
330            * Thuban/UI/proj4dialog.py: Add normal border.
331    
332            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
333    
334            * Thuban/UI/mainwindow.py: Use True instead of true.
335    
336            * setup.py: Update some definitions to use wxWindows2.4 files
337    
338            * Data/iceland_sample_class.thuban: Fixed file so that the
339            field_type information is present.
340    
341    2003-03-10  Jonathan Coles   <[email protected]>
342    
343            * Thuban/UI/classifier.py (Classifier.__init__): Make the
344            field type label grow so that when the text changes the
345            size is updated correctly. This may be a wxWindows bug.
346    
347    2003-03-10  Jonathan Coles   <[email protected]>
348    
349            * Thuban/UI/application.py: Changed SESSION_CHANGED to
350            SESSION_REPLACED.
351    
352            * Thuban/UI/classifier.py: Wrap text with _().
353            (ClassGrid.CreateTable): Set dimensions and size hints here,
354            instead of in Reset, so we only set the size once.
355    
356            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
357    
358            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
359            Call Close() instead of Shutdown().
360    
361            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
362    
363            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
364            Go back to using OnClose() instead of Shutdown().
365    
366    2003-03-10  Jonathan Coles   <[email protected]>
367    
368            * Thuban/UI/classifier.py (Classifier): SelectField() needed
369            to know the old field index as well as the new one.
370    
371    2003-03-10  Jonathan Coles   <[email protected]>
372    
373            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
374            to correctly set the table information and call this from
375            __init__ and from _OnFieldSelect so that all the information
376            is up to date when the dialog opens and when a field is changed.
377    
378    2003-03-10  Jonathan Coles   <[email protected]>
379    
380            * Thuban/Model/classification.py (Classification): Don't use
381            layer's message function directly, use the ClassChanged() method
382            when then classification changes. SetField/SetFieldType/SetLayer
383            must keep the information about field name and field type in
384            sync when an owning layer is set or removed.
385    
386            * Thuban/Model/layer.py: Added ClassChanged() so that the
387            classification can tell the layer when its data has changed.
388            (Layer.SetClassification): Accepts None as an arguement to
389            remove the current classification and correctly handles
390            adding a new classification.
391    
392            * Thuban/Model/load.py: Comment out print statement
393    
394            * test/test_classification.py, test/test_save.py: New and
395            improved tests.
396    
397    2003-03-07  Jonathan Coles   <[email protected]>
398    
399            * Thuban/Model/classification.py: Implemented __copy__ and
400            __deepcopy__ for ClassGroup* and ClassGroupProperites so
401            they can easily be copied by the classifier dialog.
402            (ClassGroupProperites.__init__): The default line color should
403            have been Color.Black.
404    
405            * Thuban/UI/classifier.py: Setting and Getting table values now
406            uses a consistent set of functions.
407            (Classifier): Now non-modal. Has field type label which changes
408            as the field changes. Keep track of buttons in a list so that
409            we can enable/disable the buttons when the None field is selected.
410            (SelectPropertiesDialog): Add buttons to make the colors transparent.
411    
412            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
413            does what OnClose did, but can be called by the application to
414            close a window. Needed when a session changes, and we have to
415            close the classifier windows.
416    
417            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
418            Shuts down open dialogs. Used when a new session is created
419            or a session is opened.
420            (MainWindow.SaveSession): Should only call application.SaveSession()
421            if we don't call SaveSessionAs first.
422            (MainWindow.Classify): Allow different classifier dialogs for
423            different layers.
424    
425            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
426            the parent class handle it. Add Shutdown() to unsubscibe from
427            event notification and call the parent Shutdown(). This was
428            necessary so the application can close the tree window.
429    
430    2003-03-06  Jonathan Coles   <[email protected]>
431    
432            * Thuban/Model/classification.py: Minor documentation changes,
433            Addition of __eq__ and __ne__ methods.
434            (Classification.SetLayer): prevent recursion between this method
435            and Layer.SetClassification().
436    
437            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
438    
439            * Thuban/Model/layer.py (SetClassification): prevent recursion
440            between this method and Classification.SetLayer().
441    
442            * test/test_classification.py, test/test_load.py,
443            test/test_session.py: Fixed and added tests for the classification
444            classes.
445    
446    2003-03-06  Bernhard Herzog  <[email protected]>
447    
448            * Thuban/UI/classifier.py (ClassGrid.__init__)
449            (ClassGrid.CreateTable): Move the SetSelectionMode call to
450            CreateTable because otherwise it triggers an assertion in
451            wxPython/wxGTK 2.4.
452    
453    2003-03-05  Jonathan Coles   <[email protected]>
454    
455            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
456    
457            * Thuban/Model/load.py: import FIELDTYPE constants from table.
458    
459            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
460    
461            * Thuban/Model/table.py: Put FIELDTYPE constants back.
462    
463    2003-03-05  Jonathan Coles   <[email protected]>
464    
465            * Thuban/UI/classifier.py: Added class documentation.
466            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
467            Store just the groups in the table and generate the other
468            column information when it is requested. Add "None" field
469            to pull-down to select no classification.
470    
471            * Thuban/common.py: Moved FIELDTYPE constants from table.py
472            (Str2Num): Only catch ValueError exceptions.
473    
474            * Thuban/Model/classification.py: Class documentation. Renaming
475            of methods with Stroke to Line. Groups are stored in a single
476            list with the default as the first element. Groups are searched
477            in the order they appear in the list.
478    
479            * Thuban/Model/color.py: Documentation.
480    
481            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
482            the kind of data represented by a field.
483    
484            * Thuban/Model/load.py (ProcessSession): Use proper string
485            conversion function; fixes RTbug #1713.
486    
487            * Thuban/Model/save.py (Saver): Store field type information.
488    
489            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
490            (Table): Add field_info_by_name() to retrieve field information
491            by specifying the field name, not the number.
492    
493            * Thuban/UI/mainwindow.py: Function name changes.
494    
495            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
496            get the layer classification once. Don't try to classify
497            values when the field is None: just use the default properties.
498    
499            * Thuban/UI/view.py: Function name changes.
500    
501            * Doc/thuban.dtd: Add field_type attribute to a classification.
502    
503    2003-03-04  Bernhard Herzog  <[email protected]>
504    
505            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
506            the fill and stroke layer attributes optional with suitable
507            default values. Add the stroke_width layer attribute. Use correct
508            syntax for empty elements. Make the attribute list for labels
509            refer to the label element.
510    
511    2003-03-04  Bernhard Herzog  <[email protected]>
512    
513            * setup.py (thuban_build_py.build): Add a comment about distutils in
514            Python 2.3 containing some of the functionality we implement in
515            setup.py ourselves.
516    
517            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
518            before the selection mode. Doing it the other way round triggers
519            an assertion in wxWindows.
520    
521            * Thuban/Model/save.py (escape): Fix typo in doc-string
522    
523            * Thuban/Model/classification.py: Remove unnecessary wxPython
524            import
525    
526    2003-03-04  Jonathan Coles   <[email protected]>
527    
528            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
529            Parameter 'value' should default to None.
530    
531            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
532            the class attribute __classification is now private.
533    
534            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
535            Classifier to ClassGrid. Added support for removing selected rows,
536            which including code for keeping track of when cells are selected,
537            and deselected.
538            (ClassTable): Support for added/removing rows. Fixed a problem
539            with __ParseInput whereby it would not allow strings (only numbers)
540            to be entered.
541            (Classifier): Added button and supporting code for removing
542            selected rows.
543    
544  2003-02-27  Jonathan Coles   <[email protected]>  2003-02-27  Jonathan Coles   <[email protected]>
545    
546          * Thuban/common.py: Moved color conversion functions into          * Thuban/common.py: Moved color conversion functions into

Legend:
Removed from v.447  
changed lines
  Added in v.595

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26