/[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 326 by bh, Fri Sep 20 13:56:09 2002 UTC revision 575 by jonathan, Mon Mar 31 18:30:51 2003 UTC
# Line 1  Line 1 
1    2003-03-31  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/classifier.py: Commented out some debugging statements.
4            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
5            RTbug #1769.
6    
7            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
8            position (although position doesn't work yet under GTK).
9            (DockableWindow.Destroy): New. Called when the window must be
10            closed. Namely needed when the DockFrame closes and must close
11            its children.
12            (DockFrame): Listen for EVT_CLOSE and destroy all children.
13    
14            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
15            when then window is told to close.
16            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
17            comment in source for more info.
18    
19            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
20    
21            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
22            symmetry with other such methods.
23            (MainWindow.ShowLegend): Show the legend docked by default.
24    
25    2003-03-28  Jonathan Coles   <[email protected]>
26    
27            * Thuban/UI/classifier.py: Support for highlighting a specific
28            group within the grid when the classification dialog is opened.
29            Also contains a lot of debugging printouts which will later
30            be removed.
31    
32            * Thuban/UI/dock.py: Complete rework on the dock code so that
33            that it is fairly removed from the rest of the Thuban application.
34            It is easy to add new docks which the rest of the program having
35            to be aware of them.
36    
37            * Thuban/UI/legend.py: Modifications to support selecting a
38            specific group in the classification dialog. Changed how layers
39            are drawn when the layer is visible/invisible.
40    
41            * Thuban/UI/mainwindow.py: Removed legend specific code and
42            replaced it with calls to the new dock code.
43    
44            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
45            to check if scale > 0. Trying to track down a divide by zero.
46    
47    2003-03-26  Jonathan Coles   <[email protected]>
48    
49            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
50            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
51            now part of DockableWindow.
52            (LegendPanel.DoOnSelChanged): Select the current layer in the
53            map.
54            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
55            with the selected layer and/or group.
56    
57    2003-03-26  Jonathan Coles   <[email protected]>
58    
59            This putback contains the code for dockable windows. There is
60            no support in wxWindows as of this date for windows that can
61            attach themselves to other windows.
62    
63            The current model contains a DockableWindow which has a parent
64            window for when it is detached and a dock window that it puts
65            its contents in when it is docked. The contents of a DockableWindow
66            must be a DockPanel. DockPanel itself derives from wxPanel.
67    
68            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
69            message, not a LAYER_LEGEND_CHANGED message.
70    
71            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
72    
73            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
74            as one of the style properties for the fieldTypeText item to
75            be sure that its size is correct when the text changes.
76    
77            * Thuban/UI/dock.py: New. Classes for the DockPanel and
78            DockableWindow.
79    
80            * Thuban/UI/legend.py: Added some more buttons and made the
81            LegendPanel a DockPanel.
82    
83            * Thuban/UI/mainwindow.py: Added sash windows to the main window
84            and supporting functions for manipulating the sashes.
85            (MainWindow.ShowLegend): Create a DockableWindow with the
86            LegendPanel as the contents.
87    
88            * Thuban/UI/messages.py: Added DOCKABLE_* messages
89    
90            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
91            not LAYER_LEGEND_CHANGED, messages.
92    
93    2003-03-25  Jonathan Coles   <[email protected]>
94    
95            * setup.py: Added custom script bdist_rpm_build_script so that
96            when the rpm is built the path to wx-config is correct.
97    
98            * setup.cfg: Added line saying to use the custom build script
99    
100    2003-03-20  Jonathan Coles   <[email protected]>
101    
102            Initial implementation of the Legend.
103    
104            * Thuban/UI/legend.py: New. Creates a window that shows the map's
105            Legend information and allows the user to add/modify classifications
106            and how the layers are drawn on the map.
107    
108            * setup.py: New command 'build_docs' which currently uses
109            happydoc to generate html documentation for Thuban.
110    
111            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
112            Returns a string which is appropriately describes the group.
113    
114            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
115            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
116    
117            * Thuban/Model/map.py (Map): Rename messages and use new, more
118            specific, messages.
119    
120            * Thuban/Model/messages.py: New message to indicate that a layer's
121            data has changed (LAYER_CHANGED). New map messages to indicate
122            when layers have been added/removed/changed or if the stacking order
123            of the layers has changed.
124    
125            * Thuban/Model/session.py: Rename and use new messages.
126    
127            * Thuban/UI/classifier.py: Remember if any changes have actually
128            been applied so that if the dialog is cancelled without an application
129            of changes we don't have to set a new classification.
130            (ClassDataPreviewer): Pulled out the window specific code and put it
131            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
132            symbols on any DC.
133            
134            * Thuban/UI/mainwindow.py: New code to open the legend.
135    
136            * Thuban/UI/view.py: Use new message names.
137    
138    2003-03-19  Jonathan Coles   <[email protected]>
139    
140            * Thuban/UI/main.py (verify_versions): New. Checks the versions
141            of Python, wxPython, and some other libraries.
142    
143            * extensions/thuban/wxproj.cpp (check_version): Checks the given
144            version against what wxproj was compiled with.
145            (check_version_gtk): If wxproj was compiled with gtk then check
146            the given version against the version of the gtk library
147            currently being used.
148    
149    2003-03-14  Bernhard Herzog  <[email protected]>
150    
151            * test/test_command.py: Run the tests when the module is run as a
152            script
153    
154    2003-03-14  Bernhard Herzog  <[email protected]>
155    
156            Implement selection of multiple selected shapes in the same layer:
157    
158            - Introduce a new class to hold the selection. This basically
159              replaces the interactor which was nothing more than the
160              selection anyway. A major difference is of course that the new
161              selection class supports multiple selected shapes in one layer
162            
163            - Move the object that represents the selection from the
164              application to the canvas. The canvas is a better place than the
165              application because the selection represents which shapes and
166              layer of the map displayed by the canvas are selected and
167              affects how the map is drawn.
168    
169            - Make the selection and its messages publicly available through
170              the mainwindow.
171    
172            - The non-modal dialogs do not get a reference to the interactor
173              anymore as they can simply refer to their parent, the
174              mainwindow, for the what the interactor had to offer.
175    
176            * Thuban/UI/selection.py: New module with a class to represent the
177            selection.
178    
179            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
180            these unused messages
181    
182            * Thuban/UI/application.py (ThubanApplication.OnInit)
183            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
184            interactor is gone now.
185            (ThubanApplication.CreateMainWindow): There is no interactor
186            anymore so we pass None as the interactor argument for now for
187            compatibility.
188    
189            * Thuban/UI/view.py (MapCanvas.delegated_messages)
190            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
191            Unsubscribe, delegate messages according to the delegated_messages
192            class variable.
193            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
194            attributes from instance variables as described with the
195            delegated_methods class variable.
196            (MapCanvas.__init__): New instance variable selection holding the
197            current selection
198            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
199            pass them on to the renderer
200            (MapCanvas.SetMap): Clear the selection when a different map is
201            selected.
202            (MapCanvas.shape_selected): Simple force a complete redraw. The
203            selection class now takes care of only issueing SHAPES_SELECTED
204            messages when the set of selected shapes actually does change.
205            (MapCanvas.SelectShapeAt): The selection is now managed in
206            self.selection
207    
208            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
209            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
210            Unsubscribe, delegate messages according to the delegated_messages
211            class variable.
212            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
213            attributes from instance variables as described with the
214            delegated_methods class variable.
215            (MainWindow.__init__): The interactor as ivar is gone. The
216            parameter is still there for compatibility. The selection messages
217            now come from the canvas.
218            (MainWindow.current_layer, MainWindow.has_selected_layer):
219            Delegate to the the canvas.
220            (MainWindow.LayerShowTable, MainWindow.Classify)
221            (MainWindow.identify_view_on_demand): The dialogs don't need the
222            interactor parameter anymore.
223    
224            * Thuban/UI/tableview.py (TableFrame.__init__)
225            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
226            (LayerTableFrame.row_selected): The interactor is gone. It's job
227            from the dialog's point of view is now done by the mainwindow,
228            i.e. the parent. Subscribe to SHAPES_SELECTED instead
229            of SELECTED_SHAPE
230            
231            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
232            is gone. It's job from the dialog's point of view is now done by
233            the mainwindow, i.e. the parent.
234            
235            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
236            gone. It's job from the dialog's point of view is now done by the
237            mainwindow, i.e. the parent.
238    
239            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
240            gone. It's job from the dialog's point of view is now done by the
241            mainwindow, i.e. the parent.
242            (SessionTreeCtrl.__init__): New parameter mainwindow which is
243            stored as self.mainwindow. The mainwindow is need so that the tree
244            can still subscribe to the selection messages.
245            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
246            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
247            selection is now accessible through the mainwindow. Subscribe to
248            SHAPES_SELECTED instead of SELECTED_SHAPE
249    
250            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
251            SHAPES_SELECTED message now.
252            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
253            so deal with multiple shapes
254            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
255            gone. It's job from the dialog's point of view is now done by the
256            mainwindow, i.e. the parent.
257    
258            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
259            parameter is now a list of shape ids.
260            (RecordTable.SetTable): The second parameter is now a list of
261            indices.
262    
263            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
264            selected_shape parameter and ivar to selected_shapes. It's now a
265            list of shape ids.
266            (MapRenderer.draw_label_layer): Deal with multiple selected
267            shapes. Rearrange the code a bit so that the setup and shape type
268            distinctions are only executed once.
269    
270            * test/test_selection.py: Test cases for the selection class
271    
272    2003-03-11  Jonathan Coles   <[email protected]>
273    
274            * Thuban/Model/load.py: Temporary fix so that the xml reader
275            doesn't cause Thuban to crash.
276    
277            * Thuban/Model/layer.py: Handle the cyclic references between
278            a layer and its classification better, and be sure to disconnect
279            the classification from the layer when the layer is destroyed
280            so that we don't maintain a cyclic reference that may not be
281            garbage collected.
282    
283            * Thuban/Model/classification.py: See comment for layer.py.
284    
285    2003-03-12  Jan-Oliver Wagner <[email protected]>
286    
287            * HOWTO-Release: New. Information on the steps for releasing
288            a new version of Thuban.
289    
290    2003-03-11  Jonathan Coles   <[email protected]>
291    
292            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
293            Use True instead of true.
294            (Classifier): Should have a single panel in which all the controls lie.
295    
296            * Thuban/UI/proj4dialog.py: Add normal border.
297    
298            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
299    
300            * Thuban/UI/mainwindow.py: Use True instead of true.
301    
302            * setup.py: Update some definitions to use wxWindows2.4 files
303    
304            * Data/iceland_sample_class.thuban: Fixed file so that the
305            field_type information is present.
306    
307    2003-03-10  Jonathan Coles   <[email protected]>
308    
309            * Thuban/UI/classifier.py (Classifier.__init__): Make the
310            field type label grow so that when the text changes the
311            size is updated correctly. This may be a wxWindows bug.
312    
313    2003-03-10  Jonathan Coles   <[email protected]>
314    
315            * Thuban/UI/application.py: Changed SESSION_CHANGED to
316            SESSION_REPLACED.
317    
318            * Thuban/UI/classifier.py: Wrap text with _().
319            (ClassGrid.CreateTable): Set dimensions and size hints here,
320            instead of in Reset, so we only set the size once.
321    
322            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
323    
324            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
325            Call Close() instead of Shutdown().
326    
327            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
328    
329            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
330            Go back to using OnClose() instead of Shutdown().
331    
332    2003-03-10  Jonathan Coles   <[email protected]>
333    
334            * Thuban/UI/classifier.py (Classifier): SelectField() needed
335            to know the old field index as well as the new one.
336    
337    2003-03-10  Jonathan Coles   <[email protected]>
338    
339            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
340            to correctly set the table information and call this from
341            __init__ and from _OnFieldSelect so that all the information
342            is up to date when the dialog opens and when a field is changed.
343    
344    2003-03-10  Jonathan Coles   <[email protected]>
345    
346            * Thuban/Model/classification.py (Classification): Don't use
347            layer's message function directly, use the ClassChanged() method
348            when then classification changes. SetField/SetFieldType/SetLayer
349            must keep the information about field name and field type in
350            sync when an owning layer is set or removed.
351    
352            * Thuban/Model/layer.py: Added ClassChanged() so that the
353            classification can tell the layer when its data has changed.
354            (Layer.SetClassification): Accepts None as an arguement to
355            remove the current classification and correctly handles
356            adding a new classification.
357    
358            * Thuban/Model/load.py: Comment out print statement
359    
360            * test/test_classification.py, test/test_save.py: New and
361            improved tests.
362    
363    2003-03-07  Jonathan Coles   <[email protected]>
364    
365            * Thuban/Model/classification.py: Implemented __copy__ and
366            __deepcopy__ for ClassGroup* and ClassGroupProperites so
367            they can easily be copied by the classifier dialog.
368            (ClassGroupProperites.__init__): The default line color should
369            have been Color.Black.
370    
371            * Thuban/UI/classifier.py: Setting and Getting table values now
372            uses a consistent set of functions.
373            (Classifier): Now non-modal. Has field type label which changes
374            as the field changes. Keep track of buttons in a list so that
375            we can enable/disable the buttons when the None field is selected.
376            (SelectPropertiesDialog): Add buttons to make the colors transparent.
377    
378            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
379            does what OnClose did, but can be called by the application to
380            close a window. Needed when a session changes, and we have to
381            close the classifier windows.
382    
383            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
384            Shuts down open dialogs. Used when a new session is created
385            or a session is opened.
386            (MainWindow.SaveSession): Should only call application.SaveSession()
387            if we don't call SaveSessionAs first.
388            (MainWindow.Classify): Allow different classifier dialogs for
389            different layers.
390    
391            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
392            the parent class handle it. Add Shutdown() to unsubscibe from
393            event notification and call the parent Shutdown(). This was
394            necessary so the application can close the tree window.
395    
396    2003-03-06  Jonathan Coles   <[email protected]>
397    
398            * Thuban/Model/classification.py: Minor documentation changes,
399            Addition of __eq__ and __ne__ methods.
400            (Classification.SetLayer): prevent recursion between this method
401            and Layer.SetClassification().
402    
403            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
404    
405            * Thuban/Model/layer.py (SetClassification): prevent recursion
406            between this method and Classification.SetLayer().
407    
408            * test/test_classification.py, test/test_load.py,
409            test/test_session.py: Fixed and added tests for the classification
410            classes.
411    
412    2003-03-06  Bernhard Herzog  <[email protected]>
413    
414            * Thuban/UI/classifier.py (ClassGrid.__init__)
415            (ClassGrid.CreateTable): Move the SetSelectionMode call to
416            CreateTable because otherwise it triggers an assertion in
417            wxPython/wxGTK 2.4.
418    
419    2003-03-05  Jonathan Coles   <[email protected]>
420    
421            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
422    
423            * Thuban/Model/load.py: import FIELDTYPE constants from table.
424    
425            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
426    
427            * Thuban/Model/table.py: Put FIELDTYPE constants back.
428    
429    2003-03-05  Jonathan Coles   <[email protected]>
430    
431            * Thuban/UI/classifier.py: Added class documentation.
432            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
433            Store just the groups in the table and generate the other
434            column information when it is requested. Add "None" field
435            to pull-down to select no classification.
436    
437            * Thuban/common.py: Moved FIELDTYPE constants from table.py
438            (Str2Num): Only catch ValueError exceptions.
439    
440            * Thuban/Model/classification.py: Class documentation. Renaming
441            of methods with Stroke to Line. Groups are stored in a single
442            list with the default as the first element. Groups are searched
443            in the order they appear in the list.
444    
445            * Thuban/Model/color.py: Documentation.
446    
447            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
448            the kind of data represented by a field.
449    
450            * Thuban/Model/load.py (ProcessSession): Use proper string
451            conversion function; fixes RTbug #1713.
452    
453            * Thuban/Model/save.py (Saver): Store field type information.
454    
455            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
456            (Table): Add field_info_by_name() to retrieve field information
457            by specifying the field name, not the number.
458    
459            * Thuban/UI/mainwindow.py: Function name changes.
460    
461            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
462            get the layer classification once. Don't try to classify
463            values when the field is None: just use the default properties.
464    
465            * Thuban/UI/view.py: Function name changes.
466    
467            * Doc/thuban.dtd: Add field_type attribute to a classification.
468    
469    2003-03-04  Bernhard Herzog  <[email protected]>
470    
471            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
472            the fill and stroke layer attributes optional with suitable
473            default values. Add the stroke_width layer attribute. Use correct
474            syntax for empty elements. Make the attribute list for labels
475            refer to the label element.
476    
477    2003-03-04  Bernhard Herzog  <[email protected]>
478    
479            * setup.py (thuban_build_py.build): Add a comment about distutils in
480            Python 2.3 containing some of the functionality we implement in
481            setup.py ourselves.
482    
483            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
484            before the selection mode. Doing it the other way round triggers
485            an assertion in wxWindows.
486    
487            * Thuban/Model/save.py (escape): Fix typo in doc-string
488    
489            * Thuban/Model/classification.py: Remove unnecessary wxPython
490            import
491    
492    2003-03-04  Jonathan Coles   <[email protected]>
493    
494            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
495            Parameter 'value' should default to None.
496    
497            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
498            the class attribute __classification is now private.
499    
500            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
501            Classifier to ClassGrid. Added support for removing selected rows,
502            which including code for keeping track of when cells are selected,
503            and deselected.
504            (ClassTable): Support for added/removing rows. Fixed a problem
505            with __ParseInput whereby it would not allow strings (only numbers)
506            to be entered.
507            (Classifier): Added button and supporting code for removing
508            selected rows.
509    
510    2003-02-27  Jonathan Coles   <[email protected]>
511    
512            * Thuban/common.py: Moved color conversion functions into
513            Thuban/UI/common.py.
514            (Str2Num): Now converts the float (not the string) to a long/int
515            so that an exception isn't thrown.
516    
517            * Thuban/UI/common.py: Common functions used in several UI modules
518    
519            * Thuban/Model/classification.py: Changed the class hierarchy
520            so that a Classification consists of Groups which return
521            Properties when a value matches a Group.
522    
523            * Thuban/Model/layer.py: Fixed name resolution problem.
524    
525            * Thuban/Model/load.py: Use new Classification and Group functions.
526    
527            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
528            failure.
529            (Saver.write_classification): Use new Classification and Group
530            functions.
531    
532            * Thuban/UI/classifier.py: Changes to use new Classification and Group
533            functions. Fix to create a tuple with a single value instead of
534            simply returning the value.
535    
536            * Thuban/UI/renderer.py: Use new Classification and Group functions.
537            Use common.py functions.
538    
539            * Thuban/UI/tree.py: Use common.py functions.
540            
541            * test/test_classification.py: Use new Classification and Group
542            classes.
543    
544    2003-02-24  Jonathan Coles   <[email protected]>
545    
546            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
547            functions from Thuban color objects to wxWindow colour objects.
548    
549            * Thuban/Model/classification.py (Classification): Renamed
550            GetProperties() to GetClassData(). Used the new iterator
551            in TreeInfo().
552            (ClassIterator): Iterator implementation to iterate over the
553            ClassData objects in a classification object.
554    
555            * Thuban/Model/save.py (Saver.write_classificaton): Uses
556            the new iterator to save the classification information.
557    
558            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
559            for changing the stroke and fill colors and previewing the
560            changes.
561    
562            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
563            MainWindow.SaveSessionAs): Text string changes so the dialogs
564            have more meaningful titles.
565    
566            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
567            Classification method name from GetProperties to GetClassData.
568    
569            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
570            instead of accessing now non-existent class variables.
571    
572    2003-02-24  Bernhard Herzog  <[email protected]>
573    
574            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
575            unneeded Shape() call. Rendering is substantially faster without
576            it and it avoids some problems with broken shape files.
577    
578    2003-02-20  Frank Koormann   <[email protected]>
579    
580            Force minimal size of identify and label dialogs. The autosizing
581            looked too ugly.
582    
583            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
584            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
585            Set size of listctrl.
586            * Thuban/UI/identifyview.py (IdentifyView.__init__):
587            Set size of dialog.
588    
589    2003-02-19  Jonathan Coles   <[email protected]>
590    
591            * test/test_classification.py, test/test_layer.py,
592            test/test_load.py, test/test_map.py, test/test_session.py:
593            Updated the tests to use the new functions that are in the
594            respective classes.
595    
596            * Thuban/Model/classification.py (Classification):
597            Uses the new ClassData* classes. Modification messages are
598            passed up to the parent layer (if it exists).
599            (ClassData): New class to encapsulate the common data in each
600            classification property.
601            (ClassDataDefault): Represents the Default class. data.
602            (ClassDataPoint): Represents a single class. data point
603            (ClassDataRange): Represents a class. range
604            (ClassDataMap): Represents a class. map (unused).
605    
606            * Thuban/Model/color.py: Added Color.None to represent something
607            with no color. Color.Black represents the color black.
608            (NoColor): Helper class derived from Color to represent something
609            with no color.
610    
611            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
612            stroke_width attributes. Made the 'classification' attribute private.
613            New methods for setting/getting the classification.
614    
615            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
616            to get the classifcation and use the new ClassData* classes to
617            hold the classification data. Use Str2Num to convert numbers
618            properly.
619    
620            * Thuban/Model/save.py (Saver): Use new Color and Classification
621            methods
622    
623            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
624            custom grid.
625            (ClassTable): Support for editing Values and Labels and for
626            changing what type (point or range) of data is stored in each
627            property based on how the user enters the data.
628            (Classifier): Support for saving the new classifications and
629            launching the dialog to edit a property.
630            (SelectPropertiesDialog): New class for editing the visual
631            properties of a classification (stroke color, width, and fill color)
632            (ClassPreviewer): Took the Draw method from ClassRenderer and
633            made most of it into this new class. Intend to use this class in
634            the SelectPropertiesDialog for previewing changes.
635    
636            * Thuban/UI/renderer.py: Use new Color and Classification methods.
637    
638            * Thuban/UI/tree.py: Formatting changes.
639    
640            * Doc/thuban.dtd: Add 'label' element
641    
642            * Thuban/common.py: New. Contains common routines used throughout
643            the code.
644            (Str2Num): Takes a string and converts it to the "best" type of
645            number.
646    
647    2003-02-14  Bernhard Herzog  <[email protected]>
648    
649            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
650            dragging flag is always set to 0 even when the tool implementation
651            raises an exception
652    
653    2003-02-11  Bernhard Herzog  <[email protected]>
654    
655            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
656            method to create a splash screen.
657            (ThubanApplication.ShowMainWindow): New. Show the main window.
658            Needed so the splash screen can display the mainwindow
659            (ThubanApplication.OnInit): Call the
660            new splash_screen method to determine whether the application
661            should display a splash screen. If it displays a splash screen do
662            not immediately show the main window.
663    
664    2003-02-11  Jonathan Coles  <[email protected]>
665    
666            * Thuban/Model/classification.py: Added import line to fix
667            feature conflicts between running on python2.2 and python2.1.
668    
669            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
670            onto the clinfo parameter, so removed the deepcopy().
671    
672    2003-02-10  Jonathan Coles  <[email protected]>
673    
674            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
675            Added element_open variable to track opening and closing of tags
676            so that tags that don't span more than one line are closed with
677            /> instead of </tag_name>. Use the GetDefault*() methods of
678            the Classification class.
679    
680            * Thuban/Model/classification.py (Classificaton): Added set and
681            get methods for the default data. The class also takes a layer
682            reference so that modification messages can be sent. Fixed the
683            methods to use the new ClassData class.
684            (ClassData): New class to encapsulate the classification data
685    
686            * Thuban/Model/layer.py (Layer): Remove the
687            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
688            SetDefault*() methods on the layer's classification object.
689            (Layer.__init__): Use the new SetDefault*() methods in the
690            Classification class.
691    
692            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
693            object instead of a dictionary.
694    
695            * Thuban/UI/classifier.py (ClassRenderer): New class to
696            draw the classifications in the dialog box's table.
697            (Classifier): Modified to use the ClassRenderer class.
698    
699            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
700            methods of the Classification class.
701    
702            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
703            of the ClassData class.
704    
705            * test/test_classification.py, test/test_layer.py,
706            test/test_map.py, test/test_session.py: Fix the tests to work
707            with the above code changes.
708    
709    2003-02-03  Jonathan Coles  <[email protected]>
710    
711            * Thuban/Model/classification.py (Classification): Added getNull()
712            to return the NullData reference
713    
714            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
715            Layer.SetStrokeWidth): Modified these functions to change the
716            null data in the classification rather than keep these values
717            directly in the Layer class. Menu options to change these values
718            work again.
719    
720    2003-01-28  Jonathan Coles  <[email protected]>
721    
722            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
723            Fixed crashing problem on some systems. Dialog box shows
724            classification data.
725    
726            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
727            Colors in the tree view.
728    
729            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
730            the tree info for classifications. Commented out unnecessary lines.
731    
732            * Thuban/Model/classification.py (Classification.TreeInfo): New
733            function to add information about the classification into the
734            tree view.
735    
736    2003-01-27  Jan-Oliver Wagner <[email protected]>
737    
738            * Thuban/__init__.py (_): New.
739    
740            * Thuban/Model/classification.py, Thuban/Model/extension.py,
741            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
742            Thuban/Model/session.py, Thuban/UI/application.py,
743            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
744            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
745            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
746            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
747            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
748    
749    2003-01-27  Jonathan Coles  <[email protected]>
750    
751            * Thuban/Model/layer.py: Classification initialization calls.
752    
753            * Thuban/Model/classification.py: Created class to encapsulate
754            a layer classification. Supports specific data points and
755            ranges.
756    
757            * Thuban/Model/load.py: Added support for loading classification
758            information.
759    
760            * Thuban/Model/save.py: Added support for saving classification
761            information.
762    
763            * Thuban/UI/classifier.py: Initial class for a dialog box for
764            specifying classification information.
765    
766            * Thuban/UI/mainwindows.py: Support for opening the classifier
767            dialog.
768    
769            * Thuban/UI/renderer.py: Support for drawing a layer with the
770            classification information.
771    
772            * Data/iceland_sample_class.thuban: iceland_sample with
773            classification data.
774    
775            * test/test_classification: Tests for the Classification class.
776    
777    2002-12-09  Bernhard Herzog  <[email protected]>
778    
779            * test/test_command.py: New. Tests for the command classes.
780    
781            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
782            (Command.IsTool): New method to distinguish between command
783            switching tools and other commands.
784    
785            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
786            the tool to avoid direct assignments to instance variables
787            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
788            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
789            change the tool
790    
791            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
792            active tool's command turns insensitive, disable the tool.
793            (_tool_command): Use the new ToolCommand class
794    
795            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
796            SelectTool method to change the tool
797            (iconfile): Use the ToolCommand class
798    
799    2002-12-03  Bernhard Herzog  <[email protected]>
800    
801            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
802            the case of selected items that are not children of Layers or Maps
803            properly. Previously this bug would trigger an assertion in
804            wxWindows.
805    
806    2002-11-06  Frank Koormann  <[email protected]>
807    
808            * Thuban/UI/mainwindow.py: Altered the order of tools in the
809            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
810            Full Extent).
811    
812    2002-10-23  Bernhard Herzog  <[email protected]>
813    
814            * setup.py (setup call): version now 0.1.3
815    
816            * MANIFEST.in: Add the files in test/
817    
818            * test/README: Add note about tests requiring the iceland data
819    
820            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
821            copyright notice.
822    
823    2002-10-18  Bernhard Herzog  <[email protected]>
824    
825            * test/test_map.py
826            (TestMapWithContents.test_projected_bounding_box): Use an explicit
827            epsilon.
828    
829            * test/support.py (FloatComparisonMixin.assertFloatEqual)
830            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
831            message if the assertion fails and don't return the return value
832            of self.assert_. In assertFloatSeqEqual the return meant that not
833            all items of the sequence were compared.
834    
835    2002-09-20  Bernhard Herzog  <[email protected]>
836    
837            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
838    
839            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
840    
841            * test/test_map.py (TestMapWithContents.test_tree_info): Create
842            the string with the bounding box on the fly because of platform
843            differences in the way %g is handled.
844    
845            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
846            DBFfile too because Thuban layers can't yet cope missing DBF
847            files.
848    
849  2002-09-20  Bernhard Herzog  <[email protected]>  2002-09-20  Bernhard Herzog  <[email protected]>
850    
851          * test/test_menu.py: Use initthuban instead of          * test/test_menu.py: Use initthuban instead of
# Line 11  Line 859 
859          * test/README: Fix a typo and add the -v flag to the command for          * test/README: Fix a typo and add the -v flag to the command for
860          individual tests          individual tests
861    
862            * test/test_session.py: New. Test cases for Thuban.Model.session
863    
864            * test/test_proj.py: New. Test cases for Thuban.Model.proj
865    
866            * test/test_map.py: New. Test cases for Thuban.Model.map
867    
868            * test/test_layer.py: New. Test cases for Thuban.Model.layer
869    
870            * test/test_label.py: New. Test cases for Thuban.Model.label
871    
872            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
873    
874            * test/test_color.py: New. Test cases for Thuban.Model.color
875    
876            * test/test_base.py: New. Test cases for Thuban.Model.base
877    
878  2002-09-13  Bernhard Herzog  <[email protected]>  2002-09-13  Bernhard Herzog  <[email protected]>
879    
880          * Thuban/Model/session.py (Session.forwarded_channels): Forward          * Thuban/Model/session.py (Session.forwarded_channels): Forward
# Line 55  Line 919 
919          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
920          VIEW_POSITION          VIEW_POSITION
921    
922  2002-09-04  Frank Koormann   <[email protected]>  2002-09-04  Frank Koormann  <[email protected]>
923    
924          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
925    
# Line 142  Line 1006 
1006    
1007          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
1008          records.          records.
1009          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
1010    
1011          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1012          into the underlying table.          into the underlying table.
# Line 180  Line 1044 
1044          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1045          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
1046    
1047  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
1048    
1049          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1050          tree window already open          tree window already open
# Line 308  Line 1172 
1172          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
1173          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
1174          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
1175          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1176          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
1177    
1178          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 369  Line 1233 
1233          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
1234          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
1235          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
1236          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
1237          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
1238    
1239  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 450  Line 1314 
1314          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1315          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1316    
1317  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1318    
1319          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1320          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 679  Line 1543 
1543          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1544          position in the statusbar          position in the statusbar
1545    
1546  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1547    
1548          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1549    
1550  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1551            
1552          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1553    
1554          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1555    
1556          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1557    
1558            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1559            box
1560    
1561  2002-04-21      Jan-Oliver Wagner <[email protected]>  2002-04-21  Jan-Oliver Wagner <[email protected]>
1562    
1563          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1564    
1565          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1566    
1567          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1568          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1569    
1570  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1571    
1572          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1573          saving _new_ sessions          saving _new_ sessions
# Line 804  Line 1669 
1669    
1670          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1671          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1672    
1673  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1674    
1675          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1676          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1677    
1678          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1679          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1680          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1681          too.          too.
# Line 921  Line 1785 
1785          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
1786          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
1787    
1788          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1789          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
1790          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
1791          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
1792          the application's OnInit method          the application's OnInit method
# Line 938  Line 1802 
1802          layer to the tableview dialog.          layer to the tableview dialog.
1803    
1804          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
1805          (TableGrid):          (TableGrid):
1806          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
1807          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
1808          (TableFrame.__init__):          (TableFrame.__init__):
# Line 1005  Line 1869 
1869  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
1870    
1871          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1872            
1873          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1874          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
1875            
1876          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1877          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
1878          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 1055  Line 1919 
1919          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
1920          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
1921          link_file method          link_file method
1922            
1923          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1924          the window when the first layer is added to the map.          the window when the first layer is added to the map.
1925    
# Line 1092  Line 1956 
1956          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
1957          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
1958          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
1959            
1960          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
1961          installer          installer
1962    

Legend:
Removed from v.326  
changed lines
  Added in v.575

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26