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

Legend:
Removed from v.271  
changed lines
  Added in v.552

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26