/[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 402 by bh, Tue Feb 11 15:19:47 2003 UTC revision 591 by bh, Wed Apr 2 15:03:30 2003 UTC
# Line 1  Line 1 
1    2003-04-02  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
4    
5    2003-04-01  Jonathan Coles   <[email protected]>
6    
7            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
8            that there actually are points in the returned list of points
9            before trying to index into the list. The list may be empty if
10            the shape is a Null Shape.
11    
12    2003-04-01  Bernhard Herzog  <[email protected]>
13    
14            * test/test_map.py: Don't use from <module> import *
15    
16    2003-04-01  Jonathan Coles   <[email protected]>
17    
18            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
19            LAYER_LEGEND_CHANGED
20    
21            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
22            self.Destroy() to close the window after yesterday's changes.
23    
24            * test/test_map.py, test/test_session.py: Fix messages that
25            are sent from maps and layers.
26    
27    2003-03-31  Jonathan Coles   <[email protected]>
28    
29            * Thuban/UI/classifier.py: Commented out some debugging statements.
30            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
31            RTbug #1769.
32    
33            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
34            position (although position doesn't work yet under GTK).
35            (DockableWindow.Destroy): New. Called when the window must be
36            closed. Namely needed when the DockFrame closes and must close
37            its children.
38            (DockFrame): Listen for EVT_CLOSE and destroy all children.
39    
40            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
41            when then window is told to close.
42            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
43            comment in source for more info.
44    
45            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
46    
47            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
48            symmetry with other such methods.
49            (MainWindow.ShowLegend): Show the legend docked by default.
50    
51    2003-03-28  Jonathan Coles   <[email protected]>
52    
53            * Thuban/UI/classifier.py: Support for highlighting a specific
54            group within the grid when the classification dialog is opened.
55            Also contains a lot of debugging printouts which will later
56            be removed.
57    
58            * Thuban/UI/dock.py: Complete rework on the dock code so that
59            that it is fairly removed from the rest of the Thuban application.
60            It is easy to add new docks which the rest of the program having
61            to be aware of them.
62    
63            * Thuban/UI/legend.py: Modifications to support selecting a
64            specific group in the classification dialog. Changed how layers
65            are drawn when the layer is visible/invisible.
66    
67            * Thuban/UI/mainwindow.py: Removed legend specific code and
68            replaced it with calls to the new dock code.
69    
70            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
71            to check if scale > 0. Trying to track down a divide by zero.
72    
73    2003-03-26  Jonathan Coles   <[email protected]>
74    
75            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
76            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
77            now part of DockableWindow.
78            (LegendPanel.DoOnSelChanged): Select the current layer in the
79            map.
80            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
81            with the selected layer and/or group.
82    
83    2003-03-26  Jonathan Coles   <[email protected]>
84    
85            This putback contains the code for dockable windows. There is
86            no support in wxWindows as of this date for windows that can
87            attach themselves to other windows.
88    
89            The current model contains a DockableWindow which has a parent
90            window for when it is detached and a dock window that it puts
91            its contents in when it is docked. The contents of a DockableWindow
92            must be a DockPanel. DockPanel itself derives from wxPanel.
93    
94            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
95            message, not a LAYER_LEGEND_CHANGED message.
96    
97            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
98    
99            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
100            as one of the style properties for the fieldTypeText item to
101            be sure that its size is correct when the text changes.
102    
103            * Thuban/UI/dock.py: New. Classes for the DockPanel and
104            DockableWindow.
105    
106            * Thuban/UI/legend.py: Added some more buttons and made the
107            LegendPanel a DockPanel.
108    
109            * Thuban/UI/mainwindow.py: Added sash windows to the main window
110            and supporting functions for manipulating the sashes.
111            (MainWindow.ShowLegend): Create a DockableWindow with the
112            LegendPanel as the contents.
113    
114            * Thuban/UI/messages.py: Added DOCKABLE_* messages
115    
116            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
117            not LAYER_LEGEND_CHANGED, messages.
118    
119    2003-03-25  Jonathan Coles   <[email protected]>
120    
121            * setup.py: Added custom script bdist_rpm_build_script so that
122            when the rpm is built the path to wx-config is correct.
123    
124            * setup.cfg: Added line saying to use the custom build script
125    
126    2003-03-20  Jonathan Coles   <[email protected]>
127    
128            Initial implementation of the Legend.
129    
130            * Thuban/UI/legend.py: New. Creates a window that shows the map's
131            Legend information and allows the user to add/modify classifications
132            and how the layers are drawn on the map.
133    
134            * setup.py: New command 'build_docs' which currently uses
135            happydoc to generate html documentation for Thuban.
136    
137            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
138            Returns a string which is appropriately describes the group.
139    
140            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
141            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
142    
143            * Thuban/Model/map.py (Map): Rename messages and use new, more
144            specific, messages.
145    
146            * Thuban/Model/messages.py: New message to indicate that a layer's
147            data has changed (LAYER_CHANGED). New map messages to indicate
148            when layers have been added/removed/changed or if the stacking order
149            of the layers has changed.
150    
151            * Thuban/Model/session.py: Rename and use new messages.
152    
153            * Thuban/UI/classifier.py: Remember if any changes have actually
154            been applied so that if the dialog is cancelled without an application
155            of changes we don't have to set a new classification.
156            (ClassDataPreviewer): Pulled out the window specific code and put it
157            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
158            symbols on any DC.
159            
160            * Thuban/UI/mainwindow.py: New code to open the legend.
161    
162            * Thuban/UI/view.py: Use new message names.
163    
164    2003-03-19  Jonathan Coles   <[email protected]>
165    
166            * Thuban/UI/main.py (verify_versions): New. Checks the versions
167            of Python, wxPython, and some other libraries.
168    
169            * extensions/thuban/wxproj.cpp (check_version): Checks the given
170            version against what wxproj was compiled with.
171            (check_version_gtk): If wxproj was compiled with gtk then check
172            the given version against the version of the gtk library
173            currently being used.
174    
175    2003-03-14  Bernhard Herzog  <[email protected]>
176    
177            * test/test_command.py: Run the tests when the module is run as a
178            script
179    
180    2003-03-14  Bernhard Herzog  <[email protected]>
181    
182            Implement selection of multiple selected shapes in the same layer:
183    
184            - Introduce a new class to hold the selection. This basically
185              replaces the interactor which was nothing more than the
186              selection anyway. A major difference is of course that the new
187              selection class supports multiple selected shapes in one layer
188            
189            - Move the object that represents the selection from the
190              application to the canvas. The canvas is a better place than the
191              application because the selection represents which shapes and
192              layer of the map displayed by the canvas are selected and
193              affects how the map is drawn.
194    
195            - Make the selection and its messages publicly available through
196              the mainwindow.
197    
198            - The non-modal dialogs do not get a reference to the interactor
199              anymore as they can simply refer to their parent, the
200              mainwindow, for the what the interactor had to offer.
201    
202            * Thuban/UI/selection.py: New module with a class to represent the
203            selection.
204    
205            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
206            these unused messages
207    
208            * Thuban/UI/application.py (ThubanApplication.OnInit)
209            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
210            interactor is gone now.
211            (ThubanApplication.CreateMainWindow): There is no interactor
212            anymore so we pass None as the interactor argument for now for
213            compatibility.
214    
215            * Thuban/UI/view.py (MapCanvas.delegated_messages)
216            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
217            Unsubscribe, delegate messages according to the delegated_messages
218            class variable.
219            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
220            attributes from instance variables as described with the
221            delegated_methods class variable.
222            (MapCanvas.__init__): New instance variable selection holding the
223            current selection
224            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
225            pass them on to the renderer
226            (MapCanvas.SetMap): Clear the selection when a different map is
227            selected.
228            (MapCanvas.shape_selected): Simple force a complete redraw. The
229            selection class now takes care of only issueing SHAPES_SELECTED
230            messages when the set of selected shapes actually does change.
231            (MapCanvas.SelectShapeAt): The selection is now managed in
232            self.selection
233    
234            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
235            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
236            Unsubscribe, delegate messages according to the delegated_messages
237            class variable.
238            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
239            attributes from instance variables as described with the
240            delegated_methods class variable.
241            (MainWindow.__init__): The interactor as ivar is gone. The
242            parameter is still there for compatibility. The selection messages
243            now come from the canvas.
244            (MainWindow.current_layer, MainWindow.has_selected_layer):
245            Delegate to the the canvas.
246            (MainWindow.LayerShowTable, MainWindow.Classify)
247            (MainWindow.identify_view_on_demand): The dialogs don't need the
248            interactor parameter anymore.
249    
250            * Thuban/UI/tableview.py (TableFrame.__init__)
251            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
252            (LayerTableFrame.row_selected): The interactor is gone. It's job
253            from the dialog's point of view is now done by the mainwindow,
254            i.e. the parent. Subscribe to SHAPES_SELECTED instead
255            of SELECTED_SHAPE
256            
257            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
258            is gone. It's job from the dialog's point of view is now done by
259            the mainwindow, i.e. the parent.
260            
261            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
262            gone. It's job from the dialog's point of view is now done by the
263            mainwindow, i.e. the parent.
264    
265            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
266            gone. It's job from the dialog's point of view is now done by the
267            mainwindow, i.e. the parent.
268            (SessionTreeCtrl.__init__): New parameter mainwindow which is
269            stored as self.mainwindow. The mainwindow is need so that the tree
270            can still subscribe to the selection messages.
271            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
272            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
273            selection is now accessible through the mainwindow. Subscribe to
274            SHAPES_SELECTED instead of SELECTED_SHAPE
275    
276            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
277            SHAPES_SELECTED message now.
278            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
279            so deal with multiple shapes
280            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
281            gone. It's job from the dialog's point of view is now done by the
282            mainwindow, i.e. the parent.
283    
284            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
285            parameter is now a list of shape ids.
286            (RecordTable.SetTable): The second parameter is now a list of
287            indices.
288    
289            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
290            selected_shape parameter and ivar to selected_shapes. It's now a
291            list of shape ids.
292            (MapRenderer.draw_label_layer): Deal with multiple selected
293            shapes. Rearrange the code a bit so that the setup and shape type
294            distinctions are only executed once.
295    
296            * test/test_selection.py: Test cases for the selection class
297    
298    2003-03-11  Jonathan Coles   <[email protected]>
299    
300            * Thuban/Model/load.py: Temporary fix so that the xml reader
301            doesn't cause Thuban to crash.
302    
303            * Thuban/Model/layer.py: Handle the cyclic references between
304            a layer and its classification better, and be sure to disconnect
305            the classification from the layer when the layer is destroyed
306            so that we don't maintain a cyclic reference that may not be
307            garbage collected.
308    
309            * Thuban/Model/classification.py: See comment for layer.py.
310    
311    2003-03-12  Jan-Oliver Wagner <[email protected]>
312    
313            * HOWTO-Release: New. Information on the steps for releasing
314            a new version of Thuban.
315    
316    2003-03-11  Jonathan Coles   <[email protected]>
317    
318            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
319            Use True instead of true.
320            (Classifier): Should have a single panel in which all the controls lie.
321    
322            * Thuban/UI/proj4dialog.py: Add normal border.
323    
324            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
325    
326            * Thuban/UI/mainwindow.py: Use True instead of true.
327    
328            * setup.py: Update some definitions to use wxWindows2.4 files
329    
330            * Data/iceland_sample_class.thuban: Fixed file so that the
331            field_type information is present.
332    
333    2003-03-10  Jonathan Coles   <[email protected]>
334    
335            * Thuban/UI/classifier.py (Classifier.__init__): Make the
336            field type label grow so that when the text changes the
337            size is updated correctly. This may be a wxWindows bug.
338    
339    2003-03-10  Jonathan Coles   <[email protected]>
340    
341            * Thuban/UI/application.py: Changed SESSION_CHANGED to
342            SESSION_REPLACED.
343    
344            * Thuban/UI/classifier.py: Wrap text with _().
345            (ClassGrid.CreateTable): Set dimensions and size hints here,
346            instead of in Reset, so we only set the size once.
347    
348            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
349    
350            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
351            Call Close() instead of Shutdown().
352    
353            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
354    
355            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
356            Go back to using OnClose() instead of Shutdown().
357    
358    2003-03-10  Jonathan Coles   <[email protected]>
359    
360            * Thuban/UI/classifier.py (Classifier): SelectField() needed
361            to know the old field index as well as the new one.
362    
363    2003-03-10  Jonathan Coles   <[email protected]>
364    
365            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
366            to correctly set the table information and call this from
367            __init__ and from _OnFieldSelect so that all the information
368            is up to date when the dialog opens and when a field is changed.
369    
370    2003-03-10  Jonathan Coles   <[email protected]>
371    
372            * Thuban/Model/classification.py (Classification): Don't use
373            layer's message function directly, use the ClassChanged() method
374            when then classification changes. SetField/SetFieldType/SetLayer
375            must keep the information about field name and field type in
376            sync when an owning layer is set or removed.
377    
378            * Thuban/Model/layer.py: Added ClassChanged() so that the
379            classification can tell the layer when its data has changed.
380            (Layer.SetClassification): Accepts None as an arguement to
381            remove the current classification and correctly handles
382            adding a new classification.
383    
384            * Thuban/Model/load.py: Comment out print statement
385    
386            * test/test_classification.py, test/test_save.py: New and
387            improved tests.
388    
389    2003-03-07  Jonathan Coles   <[email protected]>
390    
391            * Thuban/Model/classification.py: Implemented __copy__ and
392            __deepcopy__ for ClassGroup* and ClassGroupProperites so
393            they can easily be copied by the classifier dialog.
394            (ClassGroupProperites.__init__): The default line color should
395            have been Color.Black.
396    
397            * Thuban/UI/classifier.py: Setting and Getting table values now
398            uses a consistent set of functions.
399            (Classifier): Now non-modal. Has field type label which changes
400            as the field changes. Keep track of buttons in a list so that
401            we can enable/disable the buttons when the None field is selected.
402            (SelectPropertiesDialog): Add buttons to make the colors transparent.
403    
404            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
405            does what OnClose did, but can be called by the application to
406            close a window. Needed when a session changes, and we have to
407            close the classifier windows.
408    
409            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
410            Shuts down open dialogs. Used when a new session is created
411            or a session is opened.
412            (MainWindow.SaveSession): Should only call application.SaveSession()
413            if we don't call SaveSessionAs first.
414            (MainWindow.Classify): Allow different classifier dialogs for
415            different layers.
416    
417            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
418            the parent class handle it. Add Shutdown() to unsubscibe from
419            event notification and call the parent Shutdown(). This was
420            necessary so the application can close the tree window.
421    
422    2003-03-06  Jonathan Coles   <[email protected]>
423    
424            * Thuban/Model/classification.py: Minor documentation changes,
425            Addition of __eq__ and __ne__ methods.
426            (Classification.SetLayer): prevent recursion between this method
427            and Layer.SetClassification().
428    
429            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
430    
431            * Thuban/Model/layer.py (SetClassification): prevent recursion
432            between this method and Classification.SetLayer().
433    
434            * test/test_classification.py, test/test_load.py,
435            test/test_session.py: Fixed and added tests for the classification
436            classes.
437    
438    2003-03-06  Bernhard Herzog  <[email protected]>
439    
440            * Thuban/UI/classifier.py (ClassGrid.__init__)
441            (ClassGrid.CreateTable): Move the SetSelectionMode call to
442            CreateTable because otherwise it triggers an assertion in
443            wxPython/wxGTK 2.4.
444    
445    2003-03-05  Jonathan Coles   <[email protected]>
446    
447            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
448    
449            * Thuban/Model/load.py: import FIELDTYPE constants from table.
450    
451            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
452    
453            * Thuban/Model/table.py: Put FIELDTYPE constants back.
454    
455    2003-03-05  Jonathan Coles   <[email protected]>
456    
457            * Thuban/UI/classifier.py: Added class documentation.
458            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
459            Store just the groups in the table and generate the other
460            column information when it is requested. Add "None" field
461            to pull-down to select no classification.
462    
463            * Thuban/common.py: Moved FIELDTYPE constants from table.py
464            (Str2Num): Only catch ValueError exceptions.
465    
466            * Thuban/Model/classification.py: Class documentation. Renaming
467            of methods with Stroke to Line. Groups are stored in a single
468            list with the default as the first element. Groups are searched
469            in the order they appear in the list.
470    
471            * Thuban/Model/color.py: Documentation.
472    
473            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
474            the kind of data represented by a field.
475    
476            * Thuban/Model/load.py (ProcessSession): Use proper string
477            conversion function; fixes RTbug #1713.
478    
479            * Thuban/Model/save.py (Saver): Store field type information.
480    
481            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
482            (Table): Add field_info_by_name() to retrieve field information
483            by specifying the field name, not the number.
484    
485            * Thuban/UI/mainwindow.py: Function name changes.
486    
487            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
488            get the layer classification once. Don't try to classify
489            values when the field is None: just use the default properties.
490    
491            * Thuban/UI/view.py: Function name changes.
492    
493            * Doc/thuban.dtd: Add field_type attribute to a classification.
494    
495    2003-03-04  Bernhard Herzog  <[email protected]>
496    
497            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
498            the fill and stroke layer attributes optional with suitable
499            default values. Add the stroke_width layer attribute. Use correct
500            syntax for empty elements. Make the attribute list for labels
501            refer to the label element.
502    
503    2003-03-04  Bernhard Herzog  <[email protected]>
504    
505            * setup.py (thuban_build_py.build): Add a comment about distutils in
506            Python 2.3 containing some of the functionality we implement in
507            setup.py ourselves.
508    
509            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
510            before the selection mode. Doing it the other way round triggers
511            an assertion in wxWindows.
512    
513            * Thuban/Model/save.py (escape): Fix typo in doc-string
514    
515            * Thuban/Model/classification.py: Remove unnecessary wxPython
516            import
517    
518    2003-03-04  Jonathan Coles   <[email protected]>
519    
520            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
521            Parameter 'value' should default to None.
522    
523            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
524            the class attribute __classification is now private.
525    
526            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
527            Classifier to ClassGrid. Added support for removing selected rows,
528            which including code for keeping track of when cells are selected,
529            and deselected.
530            (ClassTable): Support for added/removing rows. Fixed a problem
531            with __ParseInput whereby it would not allow strings (only numbers)
532            to be entered.
533            (Classifier): Added button and supporting code for removing
534            selected rows.
535    
536    2003-02-27  Jonathan Coles   <[email protected]>
537    
538            * Thuban/common.py: Moved color conversion functions into
539            Thuban/UI/common.py.
540            (Str2Num): Now converts the float (not the string) to a long/int
541            so that an exception isn't thrown.
542    
543            * Thuban/UI/common.py: Common functions used in several UI modules
544    
545            * Thuban/Model/classification.py: Changed the class hierarchy
546            so that a Classification consists of Groups which return
547            Properties when a value matches a Group.
548    
549            * Thuban/Model/layer.py: Fixed name resolution problem.
550    
551            * Thuban/Model/load.py: Use new Classification and Group functions.
552    
553            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
554            failure.
555            (Saver.write_classification): Use new Classification and Group
556            functions.
557    
558            * Thuban/UI/classifier.py: Changes to use new Classification and Group
559            functions. Fix to create a tuple with a single value instead of
560            simply returning the value.
561    
562            * Thuban/UI/renderer.py: Use new Classification and Group functions.
563            Use common.py functions.
564    
565            * Thuban/UI/tree.py: Use common.py functions.
566            
567            * test/test_classification.py: Use new Classification and Group
568            classes.
569    
570    2003-02-24  Jonathan Coles   <[email protected]>
571    
572            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
573            functions from Thuban color objects to wxWindow colour objects.
574    
575            * Thuban/Model/classification.py (Classification): Renamed
576            GetProperties() to GetClassData(). Used the new iterator
577            in TreeInfo().
578            (ClassIterator): Iterator implementation to iterate over the
579            ClassData objects in a classification object.
580    
581            * Thuban/Model/save.py (Saver.write_classificaton): Uses
582            the new iterator to save the classification information.
583    
584            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
585            for changing the stroke and fill colors and previewing the
586            changes.
587    
588            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
589            MainWindow.SaveSessionAs): Text string changes so the dialogs
590            have more meaningful titles.
591    
592            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
593            Classification method name from GetProperties to GetClassData.
594    
595            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
596            instead of accessing now non-existent class variables.
597    
598    2003-02-24  Bernhard Herzog  <[email protected]>
599    
600            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
601            unneeded Shape() call. Rendering is substantially faster without
602            it and it avoids some problems with broken shape files.
603    
604    2003-02-20  Frank Koormann   <[email protected]>
605    
606            Force minimal size of identify and label dialogs. The autosizing
607            looked too ugly.
608    
609            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
610            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
611            Set size of listctrl.
612            * Thuban/UI/identifyview.py (IdentifyView.__init__):
613            Set size of dialog.
614    
615    2003-02-19  Jonathan Coles   <[email protected]>
616    
617            * test/test_classification.py, test/test_layer.py,
618            test/test_load.py, test/test_map.py, test/test_session.py:
619            Updated the tests to use the new functions that are in the
620            respective classes.
621    
622            * Thuban/Model/classification.py (Classification):
623            Uses the new ClassData* classes. Modification messages are
624            passed up to the parent layer (if it exists).
625            (ClassData): New class to encapsulate the common data in each
626            classification property.
627            (ClassDataDefault): Represents the Default class. data.
628            (ClassDataPoint): Represents a single class. data point
629            (ClassDataRange): Represents a class. range
630            (ClassDataMap): Represents a class. map (unused).
631    
632            * Thuban/Model/color.py: Added Color.None to represent something
633            with no color. Color.Black represents the color black.
634            (NoColor): Helper class derived from Color to represent something
635            with no color.
636    
637            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
638            stroke_width attributes. Made the 'classification' attribute private.
639            New methods for setting/getting the classification.
640    
641            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
642            to get the classifcation and use the new ClassData* classes to
643            hold the classification data. Use Str2Num to convert numbers
644            properly.
645    
646            * Thuban/Model/save.py (Saver): Use new Color and Classification
647            methods
648    
649            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
650            custom grid.
651            (ClassTable): Support for editing Values and Labels and for
652            changing what type (point or range) of data is stored in each
653            property based on how the user enters the data.
654            (Classifier): Support for saving the new classifications and
655            launching the dialog to edit a property.
656            (SelectPropertiesDialog): New class for editing the visual
657            properties of a classification (stroke color, width, and fill color)
658            (ClassPreviewer): Took the Draw method from ClassRenderer and
659            made most of it into this new class. Intend to use this class in
660            the SelectPropertiesDialog for previewing changes.
661    
662            * Thuban/UI/renderer.py: Use new Color and Classification methods.
663    
664            * Thuban/UI/tree.py: Formatting changes.
665    
666            * Doc/thuban.dtd: Add 'label' element
667    
668            * Thuban/common.py: New. Contains common routines used throughout
669            the code.
670            (Str2Num): Takes a string and converts it to the "best" type of
671            number.
672    
673    2003-02-14  Bernhard Herzog  <[email protected]>
674    
675            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
676            dragging flag is always set to 0 even when the tool implementation
677            raises an exception
678    
679  2003-02-11  Bernhard Herzog  <[email protected]>  2003-02-11  Bernhard Herzog  <[email protected]>
680    
681          * Thuban/UI/application.py (ThubanApplication.splash_screen): New          * Thuban/UI/application.py (ThubanApplication.splash_screen): New
# Line 19  Line 697 
697    
698  2003-02-10  Jonathan Coles  <[email protected]>  2003-02-10  Jonathan Coles  <[email protected]>
699    
700          * Thuban/Model/save.py (Saver.open_element, Saver.close_element):          * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
701          Added element_open variable to track opening and closing of tags          Added element_open variable to track opening and closing of tags
702          so that tags that don't span more than one line are closed with          so that tags that don't span more than one line are closed with
703          /> instead of </tag_name>. Use the GetDefault*() methods of          /> instead of </tag_name>. Use the GetDefault*() methods of
# Line 32  Line 710 
710          (ClassData): New class to encapsulate the classification data          (ClassData): New class to encapsulate the classification data
711    
712          * Thuban/Model/layer.py (Layer): Remove the          * Thuban/Model/layer.py (Layer): Remove the
713          Set[Fill|Stroke|StrokeWidth]() methods. Code should call the          Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
714          SetDefault*() methods on the layer's classification object.          SetDefault*() methods on the layer's classification object.
715          (Layer.__init__): Use the new SetDefault*() methods in the          (Layer.__init__): Use the new SetDefault*() methods in the
716          Classification class.          Classification class.
717    
718          * Thuban/Model/load.py (ProcessSession): Use the new ClassData          * Thuban/Model/load.py (ProcessSession): Use the new ClassData
719          object instead of a dictionary.          object instead of a dictionary.
720    
721          * Thuban/UI/classifier.py (ClassRenderer): New class to          * Thuban/UI/classifier.py (ClassRenderer): New class to
722          draw the classifications in the dialog box's table.          draw the classifications in the dialog box's table.
723          (Classifier): Modified to use the ClassRenderer class.          (Classifier): Modified to use the ClassRenderer class.
724    
725          * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()          * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
726          methods of the Classification class.              methods of the Classification class.
727    
728          * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods          * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
729          of the ClassData class.          of the ClassData class.
# Line 68  Line 746 
746  2003-01-28  Jonathan Coles  <[email protected]>  2003-01-28  Jonathan Coles  <[email protected]>
747    
748          * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.          * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
749          Fixed crashing problem on some systems. Dialog box shows          Fixed crashing problem on some systems. Dialog box shows
750          classification data.          classification data.
751    
752          * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing          * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
# Line 81  Line 759 
759          function to add information about the classification into the          function to add information about the classification into the
760          tree view.          tree view.
761    
762  2003-01-27      Jan-Oliver Wagner <[email protected]>  2003-01-27  Jan-Oliver Wagner <[email protected]>
763    
764          * Thuban/__init__.py (_): New.          * Thuban/__init__.py (_): New.
765    
766          * Thuban/Model/classification.py, Thuban/Model/extension.py,          * Thuban/Model/classification.py, Thuban/Model/extension.py,
767          Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,          Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
768          Thuban/Model/session.py, Thuban/UI/application.py, Thuban/UI/classifier.py,          Thuban/Model/session.py, Thuban/UI/application.py,
769          Thuban/UI/context.py, Thuban/UI/controls.py, Thuban/UI/identifyview.py,          Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
770          Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, Thuban/UI/menu.py,          Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
771          Thuban/UI/proj4dialog.py, Thuban/UI/renderer.py, Thuban/UI/tree.py,          Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
772          Thuban/Lib/connector.py, Thuban/Lib/fileutil.py:          Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
773          Replace user string by _() for i18n.          Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
774    
775  2003-01-27  Jonathan Coles  <[email protected]>  2003-01-27  Jonathan Coles  <[email protected]>
776    
777    * Thuban/Model/layer.py: Classification initialization calls.          * Thuban/Model/layer.py: Classification initialization calls.
778    
779    * Thuban/Model/classification.py: Created class to encapsulate          * Thuban/Model/classification.py: Created class to encapsulate
780    a layer classification. Supports specific data points and          a layer classification. Supports specific data points and
781    ranges.          ranges.
782    
783    * Thuban/Model/load.py: Added support for loading classification          * Thuban/Model/load.py: Added support for loading classification
784    information.          information.
785    
786    * Thuban/Model/save.py: Added support for saving classification          * Thuban/Model/save.py: Added support for saving classification
787    information.          information.
788    
789    * Thuban/UI/classifier.py: Initial class for a dialog box for          * Thuban/UI/classifier.py: Initial class for a dialog box for
790    specifying classification information.          specifying classification information.
791    
792    * Thuban/UI/mainwindows.py: Support for opening the classifier          * Thuban/UI/mainwindows.py: Support for opening the classifier
793    dialog.          dialog.
794    
795    * Thuban/UI/renderer.py: Support for drawing a layer with the          * Thuban/UI/renderer.py: Support for drawing a layer with the
796    classification information.          classification information.
797    
798    * Data/iceland_sample_class.thuban: iceland_sample with          * Data/iceland_sample_class.thuban: iceland_sample with
799    classification data.          classification data.
800    
801    * test/test_classification: Tests for the Classification class.          * test/test_classification: Tests for the Classification class.
802    
803  2002-12-09  Bernhard Herzog  <[email protected]>  2002-12-09  Bernhard Herzog  <[email protected]>
804    
# Line 156  Line 834 
834          * Thuban/UI/mainwindow.py: Altered the order of tools in the          * Thuban/UI/mainwindow.py: Altered the order of tools in the
835          toolbar: First now are all navigation tools (Zoom In/Out, Pan,          toolbar: First now are all navigation tools (Zoom In/Out, Pan,
836          Full Extent).          Full Extent).
837        
838  2002-10-23  Bernhard Herzog  <[email protected]>  2002-10-23  Bernhard Herzog  <[email protected]>
839    
840          * setup.py (setup call): version now 0.1.3          * setup.py (setup call): version now 0.1.3
# Line 267  Line 945 
945          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
946          VIEW_POSITION          VIEW_POSITION
947    
948  2002-09-04  Frank Koormann   <[email protected]>  2002-09-04  Frank Koormann  <[email protected]>
949    
950          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
951    
# Line 354  Line 1032 
1032    
1033          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
1034          records.          records.
1035          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
1036    
1037          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1038          into the underlying table.          into the underlying table.
# Line 392  Line 1070 
1070          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1071          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
1072    
1073  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
1074    
1075          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1076          tree window already open          tree window already open
# Line 520  Line 1198 
1198          * 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
1199          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
1200          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
1201          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1202          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
1203    
1204          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 581  Line 1259 
1259          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
1260          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
1261          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
1262          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
1263          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
1264    
1265  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 662  Line 1340 
1340          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1341          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1342    
1343  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1344    
1345          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1346          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 891  Line 1569 
1569          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1570          position in the statusbar          position in the statusbar
1571    
1572  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1573    
1574          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1575    
1576  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1577            
1578          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1579    
1580          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1581    
1582          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1583    
1584  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1585            box
1586    
1587    2002-04-21  Jan-Oliver Wagner <[email protected]>
1588    
1589          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1590    
1591          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1592    
1593          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1594          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1595    
1596  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1597    
1598          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1599          saving _new_ sessions          saving _new_ sessions
# Line 1016  Line 1695 
1695    
1696          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1697          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1698    
1699  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1700    
1701          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1702          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1703    
1704          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1705          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1706          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1707          too.          too.
# Line 1133  Line 1811 
1811          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
1812          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
1813    
1814          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1815          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
1816          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
1817          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
1818          the application's OnInit method          the application's OnInit method
# Line 1150  Line 1828 
1828          layer to the tableview dialog.          layer to the tableview dialog.
1829    
1830          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
1831          (TableGrid):          (TableGrid):
1832          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
1833          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
1834          (TableFrame.__init__):          (TableFrame.__init__):
# Line 1217  Line 1895 
1895  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
1896    
1897          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1898            
1899          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1900          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
1901            
1902          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1903          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
1904          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 1267  Line 1945 
1945          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
1946          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
1947          link_file method          link_file method
1948            
1949          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1950          the window when the first layer is added to the map.          the window when the first layer is added to the map.
1951    
# Line 1304  Line 1982 
1982          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
1983          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
1984          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
1985            
1986          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
1987          installer          installer
1988    

Legend:
Removed from v.402  
changed lines
  Added in v.591

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26