/[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 152 by bh, Tue May 7 17:01:49 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]>
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)
920            (_tool_command): Put the code that generates the "checked"
921            callback into a separate function so that we can reuse it
922            elsewhere
923    
924            * Thuban/Model/save.py (Saver): New class to handle serializing a
925            session into an XML file. The main reason to introduce a class is
926            that applications built on Thuban can derive from it so that they
927            can save additional information in a session file.
928            (save_session): Delegate almost all the work to the Saver class.
929            Rename the filename argument to file because it may be a file like
930            object now.
931    
932            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
933            code. Remove the little test code which would be executed when the
934            module is run as a script which didn't work anymore since it can't
935            import the other Thuban modules.
936            (ProcessSession, load_session): Refactor the ProcessSession to
937            have one method for each element start and end tag so that derived
938            classes can easily override the processing of individual tags.
939            Also, always parse with namespaces enabled because applications
940            built on top of Thuban will likely use namespaces if they extend
941            the session file format.
942    
943    2002-08-21  Bernhard Herzog  <[email protected]>
944    
945            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
946            because thubaninit_contents will do it for us.
947    
948    2002-08-16  Jan-Oliver Wagner <[email protected]>
949    
950            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
951            tree window already open
952    
953    2002-08-15  Bernhard Herzog  <[email protected]>
954    
955            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
956            with self.
957    
958            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
959            when we have actually captured it.
960    
961            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
962            shapefile and destroy the table.
963    
964            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
965    
966    2002-08-14  Bernhard Herzog  <[email protected]>
967    
968            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
969            instance variable columns
970            (RecordTable.GetTypeName): row and col may be negative in some
971            cases.
972    
973            * setup.py (InstallLocal.initialize_options)
974            (InstallLocal.finalize_options, InstallLocal.user_options): New
975            option create-init-file to build a thubaninit.py when running
976            install_local
977            (InstallLocal.run): Create the thubaninit.py module when requested
978            (thubaninit_contents): Split the template into several parts and
979            create a new function thubaninit_contents that creates the
980            contents of a thubaninit module.
981            (ThubanInstall.run): Use the new function to create the thubaninit
982            module.
983    
984    2002-07-30  Bernhard Herzog  <[email protected]>
985    
986            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
987            cleanup.
988            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
989    
990            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
991            direct base class' Destroy method.
992    
993            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
994            layers.
995            (Map.Destroy): Destroy the label_layer as well and call the
996            inherited Desatroymethod first so that no more messages are
997            issued.
998            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
999            message if the stacking order actually has changed. Add
1000            doc-strings.
1001            (Map.BoundingBox): Correct the doc-string.
1002            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
1003            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
1004    
1005            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
1006            all labels.
1007    
1008    2002-07-29  Bernhard Herzog  <[email protected]>
1009    
1010            * Thuban/Model/map.py (Map.subscribe_layer_channels)
1011            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
1012            to a layer's channels into separate methods.
1013            (Map.RemoveLayer, Map.AddLayer): Call the new methods
1014            (Map.Destroy): Unsubscribe from a layer's channels before
1015            destroying it.
1016    
1017            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
1018            selected_layer parameter to searched_layer which is the layer to
1019            search in.
1020            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
1021            search to that layer. Return the selected layer and shape.
1022    
1023            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
1024            typo
1025    
1026    2002-07-24  Bernhard Herzog  <[email protected]>
1027    
1028            * Thuban/UI/application.py (ThubanApplication.create_session):
1029            Extend the doc string.
1030            (ThubanApplication.subscribe_session)
1031            (ThubanApplication.unsubscribe_session): New methods to
1032            subscribe/unsubscribe to/from session channels.
1033            (ThubanApplication.SetSession): Call the new methods here.
1034            (ThubanApplication.maps_changed, ThubanApplication.set_map):
1035            Renamed set_map to maps_changed. Its now a subscriber for
1036            MAPS_CHANGED.
1037    
1038            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
1039            x-coordinate in case of simple clicks
1040    
1041            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
1042            don't pass it as a parameter
1043    
1044            * Thuban/Model/session.py (Session.RemoveMap): New
1045    
1046            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1047            window size into a parameter.
1048    
1049    2002-07-23  Bernhard Herzog  <[email protected]>
1050    
1051            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1052            just commands.
1053    
1054            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
1055            parameter list a bit to allow setting the window title and the
1056            initial message in the status bar. Update the callers.
1057    
1058            * Thuban/UI/application.py (ThubanApplication.OnInit)
1059            (ThubanApplication.CreateMainWindow): Put the mainwindow
1060            instantiation into a separate method so that it can be overridden
1061            by a subclass.
1062    
1063    2002-07-19  Bernhard Herzog  <[email protected]>
1064    
1065            * Thuban/Model/session.py: Issue a CHANGED message every time
1066            another changed message is issued to make it easier to get
1067            notified of changes.
1068            (Session): Update the doc string
1069            (Session.forward): Issue changed-events as CHANGED as well.
1070            (Session.changed): Overwrite the inherited version to issue
1071            CHANGED events as well.
1072    
1073            * Thuban/UI/tree.py: We can now simply subscribe to the session's
1074            CHANGED channel to be informed of changes.
1075            (SessionTreeCtrl.session_channels): Not needed any longer.
1076            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1077            Only have to (un)subscribe CHANGED
1078    
1079            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1080    
1081            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
1082            for the wxPython locale bug to __init__.py so that it's
1083            automatically executed by anybody using UI code from Thuban.
1084    
1085    2002-07-18  Bernhard Herzog  <[email protected]>
1086    
1087            * Thuban/UI/main.py (main): app no longer needs to be global
1088    
1089            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
1090            as parameter and store it in an instance variable
1091            (MainWindow.invoke_command, MainWindow.update_command_ui)
1092            (MainWindow.save_modified_session, MainWindow.NewSession)
1093            (MainWindow.OpenSession, MainWindow.SaveSession)
1094            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
1095            application object.
1096    
1097            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
1098            the main window with self.
1099    
1100            * Thuban/UI/context.py: New module with the context class
1101    
1102            * Thuban/UI/command.py (Command): Update doc string.
1103    
1104            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
1105            MainWindow.update_command_ui): Pass an instance of the context
1106            class to the command's methods
1107            (check_current_tool, call_method): Handle the new context
1108            implementation
1109    
1110            * Examples/simple_extensions/simple_tool.py (simple_tool,
1111            check_simple_tool): Handle the new context implementation
1112    
1113            * Examples/simple_extensions/simple_command.py (simple_command):
1114            Handle the new context implementation. Update the comments about
1115            the context.
1116    
1117            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
1118            doc-string
1119            (ThubanApplication.Session): New method to return the session
1120            object
1121    
1122            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
1123            interactor's selected_layer may not be a layer of the current
1124            session when the tree is updated while a new session is being set.
1125    
1126    2002-07-17  Bernhard Herzog  <[email protected]>
1127    
1128            * Thuban/UI/tree.py (color_string): Removed. No longer used.
1129            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
1130            update_tree into update_tree and add_items. The tree now uses a
1131            more generic way to display the contents of the tree.
1132            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
1133    
1134            * Thuban/Model/layer.py (Layer.TreeInfo),
1135            Thuban/Model/extension.py (Extension.TreeInfo),
1136            Thuban/Model/map.py (Map.TreeInfo),
1137            Thuban/Model/session.py (Session.TreeInfo):
1138            Add TreeInfo methods to implement the new tree view update scheme
1139    
1140    2002-07-16  Bernhard Herzog  <[email protected]>
1141    
1142            * Thuban/UI/application.py: Don't use "import from" for the
1143            MainWindow. It can't always be resolved.
1144            (ThubanApplication.OnInit): change reference to MainWindow
1145            accordingly.
1146    
1147            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
1148            completely
1149    
1150    2002-07-10  Bernhard Herzog  <[email protected]>
1151    
1152            * setup.py (create_init_module): New configurable variable whose
1153            default depends on the platform we're running on.
1154            (ThubanInstall.initialize_options): Initialize
1155            self.create_init_module from the global create_init_module
1156            (ThubanInstall.user_options): indictate that the options
1157            create-init-module and init-module-dir have arguments.
1158    
1159            * setup.py: In the setup call change the version number to include
1160            cvs.
1161    
1162            * MANIFEST.in: Add the files in Examples
1163    
1164    2002-07-09  Bernhard Herzog  <[email protected]>
1165    
1166            * setup.py: In the setup call, use the thuban homepage as the
1167            value of the url parameter.
1168    
1169            * Examples: New subdirectory for examples.
1170    
1171            * Examples/simple_extensions/simple_tool.xpm,
1172            Examples/simple_extensions/simple_tool.py,
1173            Examples/simple_extensions/simple_command.py,
1174            Examples/simple_extensions/README: Simple examples showing how to
1175            add new commands and tools.
1176    
1177            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
1178            bdist_rpm that we also have an install script.
1179            (bdist_inno): Add 2002 to the copyright notice.
1180    
1181            * setup.py: Create a file in python's site-packages directory to
1182            make installation of Thuban as a library easier.
1183            (ThubanInstall.user_options): Add two new options,
1184            create-init-module and init-module-dir
1185            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
1186            filenames for installation in the default directories.
1187            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
1188            the inherited methods to capture some filenames before they're
1189            transformed too much by distutils.
1190            (ThubanInstall.run): Create the init module if requested.
1191            (ThubanInstall.thuban_init_filename): New method to return the
1192            full name of the init module.
1193            (ThubanInstall.get_outputs): Append the filename of the init
1194            module.
1195    
1196    2002-07-08  Bernhard Herzog  <[email protected]>
1197    
1198            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
1199            handle the prefix properly which means that the default for the
1200            installation prefix should be /usr for RPMs and /usr/local when
1201            doing a normal source install.
1202            (bdist_rpm_install_script): Script to override the default install
1203            commands in the specfile generated by the bdist_rpm command.
1204            (thuban_bdist_rpm.user_options): Add a prefix option
1205            (thuban_bdist_rpm.initialize_options): Init the prefix option.
1206            Create the script files for the spec files as empty files here
1207            (thuban_bdist_rpm._make_spec_file): Override the inherited method
1208            to fill the script files with content.
1209    
1210            * Thuban/Model/save.py (relative_filename): Wrapper around
1211            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
1212            argument. save_session now automatically uses this version,
1213            solving a problem when saving to a relative filename.
1214    
1215            * setup.py: In the setup call, make sure that the library
1216            directories are under $prefix/lib not directly under $prefix.
1217    
1218    2002-06-20  Jan-Oliver Wagner <[email protected]>
1219    
1220            * Thuban/Model/extension.py: new module to handle extension objects.
1221            * Thuban/Model/messages.py: new messages for extensions.
1222            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
1223            Session.AddExtension): new for handling extensions.
1224            Also some other minor changes to round up extension handling.
1225            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
1226            of Extension titles and title and names of its objects.
1227    
1228    2002-05-29  Bernhard Herzog  <[email protected]>
1229    
1230            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
1231            the events for a command.
1232            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
1233            Call bind_command_events to bind the events. add_toolbar_command
1234            can now bind events too so that it's possible to have commands
1235            that are only available through the toolbar.
1236            (MainWindow.init_ids): New instance variable events_bound to keep
1237            track of for which commands events have been bound.
1238    
1239    2002-05-28  Bernhard Herzog  <[email protected]>
1240    
1241            * Thuban/UI/menu.py: New module to build and manage menus.
1242    
1243            * Thuban/UI/mainwindow.py: Remove some unused imports.
1244            (MainWindow.__init__, main_menu): move the definition of the main
1245            menu from __init__ to the Menu instance main_menu.
1246            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
1247            build the menu bar and sub-menus from a menu description.
1248    
1249            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
1250            startup file
1251            (ThubanApplication.read_startup_files): New method to run
1252            ~/.thuban/thubanstart.py
1253    
1254            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
1255            Move the toolbar definition to the Menu instance main_toolbar.
1256            (MainWindow.build_toolbar): New method to build the toolbar
1257            similar to the build_menu methods
1258    
1259    2002-05-23  Bernhard Herzog  <[email protected]>
1260    
1261            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1262            layer_outline_color. Fix it in the definition of the command too.
1263    
1264            * Thuban/UI/command.py (Command): Fix typo in doc string
1265    
1266    2002-05-22  Bernhard Herzog  <[email protected]>
1267    
1268            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1269            in the docstring
1270    
1271    2002-05-15  Bernhard Herzog  <[email protected]>
1272    
1273            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
1274            when the shapefile is empty.
1275            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
1276            now return None for empty shapefiles. Update doc-strings.
1277    
1278            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
1279            the layer's bbox being None.
1280    
1281            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
1282            layer's bbox being None.
1283    
1284            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
1285            necessary.
1286            (MapCanvas.__init__): New instance variables, last_selected_layer
1287            and last_selected_shape to determine how the selection has
1288            changed.
1289    
1290            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
1291            AutoSizeColumns because it will cause a traversal of the entire
1292            table which for large .dbf files will take a very long time.
1293    
1294    2002-05-14  Bernhard Herzog  <[email protected]>
1295    
1296            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
1297            maximum depth for the tree than shapelib does by default.
1298    
1299    2002-05-10  Bernhard Herzog  <[email protected]>
1300    
1301            * setup.py (py_modules): The shptree modules doesn't have a
1302            wrapper, so don't include it in the py_modules
1303    
1304    2002-05-08  Bernhard Herzog  <[email protected]>
1305    
1306            * extensions/shapelib/shptree.c (compare_ints): Make arguments
1307            const void * as in the qsort prototype
1308            (SHPTreeFindLikelyShapes): Remove some unused variables.
1309    
1310            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
1311            maintains to redraw the window during a drag.
1312            (MapCanvas.unprojected_rect_around_point): New method to determine
1313            a small region around a point for hit-testing.
1314            (MapCanvas.find_shape_at): Only test the shapes in a small region
1315            around the point.
1316    
1317            * setup.py: Increment the version to 0.1.2
1318    
1319            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
1320            debug print and set session to None after unsubscribing
1321    
1322  2002-05-07  Bernhard Herzog  <[email protected]>  2002-05-07  Bernhard Herzog  <[email protected]>
1323    
1324            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
1325            the file to have a .thuban extension.
1326    
1327          * Thuban/UI/tree.py (session_channels): New class constant with          * Thuban/UI/tree.py (session_channels): New class constant with
1328          all the session channels to subscribe to to update the tree          all the session channels to subscribe to to update the tree
1329          (SessionTreeCtrl.session_changed): Remember the session so that we          (SessionTreeCtrl.session_changed): Remember the session so that we
# Line 120  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            * 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]>  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 245  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 362  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 379  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 446  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 496  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 533  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.152  
changed lines
  Added in v.552

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26