/[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 16 by bh, Fri Aug 31 15:36:39 2001 UTC revision 495 by jonathan, Mon Mar 10 10:54:26 2003 UTC
# Line 1  Line 1 
1    2003-03-10  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
4            to correctly set the table information and call this from
5            __init__ and from _OnFieldSelect so that all the information
6            is up to date when the dialog opens and when a field is changed.
7    
8    2003-03-10  Jonathan Coles   <[email protected]>
9    
10            * Thuban/Model/classification.py (Classification): Don't use
11            layer's message function directly, use the ClassChanged() method
12            when then classification changes. SetField/SetFieldType/SetLayer
13            must keep the information about field name and field type in
14            sync when an owning layer is set or removed.
15    
16            * Thuban/Model/layer.py: Added ClassChanged() so that the
17            classification can tell the layer when its data has changed.
18            (Layer.SetClassification): Accepts None as an arguement to
19            remove the current classification and correctly handles
20            adding a new classification.
21    
22            * Thuban/Model/load.py: Comment out print statement
23    
24            * test/test_classification.py, test/test_save.py: New and
25            improved tests.
26    
27    2003-03-07  Jonathan Coles   <[email protected]>
28    
29            * Thuban/Model/classification.py: Implemented __copy__ and
30            __deepcopy__ for ClassGroup* and ClassGroupProperites so
31            they can easily be copied by the classifier dialog.
32            (ClassGroupProperites.__init__): The default line color should
33            have been Color.Black.
34    
35            * Thuban/UI/classifier.py: Setting and Getting table values now
36            uses a consistent set of functions.
37            (Classifier): Now non-modal. Has field type label which changes
38            as the field changes. Keep track of buttons in a list so that
39            we can enable/disable the buttons when the None field is selected.
40            (SelectPropertiesDialog): Add buttons to make the colors transparent.
41    
42            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
43            does what OnClose did, but can be called by the application to
44            close a window. Needed when a session changes, and we have to
45            close the classifier windows.
46    
47            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
48            Shuts down open dialogs. Used when a new session is created
49            or a session is opened.
50            (MainWindow.SaveSession): Should only call application.SaveSession()
51            if we don't call SaveSessionAs first.
52            (MainWindow.Classify): Allow different classifier dialogs for
53            different layers.
54    
55            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
56            the parent class handle it. Add Shutdown() to unsubscibe from
57            event notification and call the parent Shutdown(). This was
58            necessary so the application can close the tree window.
59    
60    2003-03-06  Jonathan Coles   <[email protected]>
61    
62            * Thuban/Model/classification.py: Minor documentation changes,
63            Addition of __eq__ and __ne__ methods.
64            (Classification.SetLayer): prevent recursion between this method
65            and Layer.SetClassification().
66    
67            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
68    
69            * Thuban/Model/layer.py (SetClassification): prevent recursion
70            between this method and Classification.SetLayer().
71    
72            * test/test_classification.py, test/test_load.py,
73            test/test_session.py: Fixed and added tests for the classification
74            classes.
75    
76    2003-03-06  Bernhard Herzog  <[email protected]>
77    
78            * Thuban/UI/classifier.py (ClassGrid.__init__)
79            (ClassGrid.CreateTable): Move the SetSelectionMode call to
80            CreateTable because otherwise it triggers an assertion in
81            wxPython/wxGTK 2.4.
82    
83    2003-03-05  Jonathan Coles   <[email protected]>
84    
85            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
86    
87            * Thuban/Model/load.py: import FIELDTYPE constants from table.
88    
89            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
90    
91            * Thuban/Model/table.py: Put FIELDTYPE constants back.
92    
93    2003-03-05  Jonathan Coles   <[email protected]>
94    
95            * Thuban/UI/classifier.py: Added class documentation.
96            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
97            Store just the groups in the table and generate the other
98            column information when it is requested. Add "None" field
99            to pull-down to select no classification.
100    
101            * Thuban/common.py: Moved FIELDTYPE constants from table.py
102            (Str2Num): Only catch ValueError exceptions.
103    
104            * Thuban/Model/classification.py: Class documentation. Renaming
105            of methods with Stroke to Line. Groups are stored in a single
106            list with the default as the first element. Groups are searched
107            in the order they appear in the list.
108    
109            * Thuban/Model/color.py: Documentation.
110    
111            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
112            the kind of data represented by a field.
113    
114            * Thuban/Model/load.py (ProcessSession): Use proper string
115            conversion function; fixes RTbug #1713.
116    
117            * Thuban/Model/save.py (Saver): Store field type information.
118    
119            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
120            (Table): Add field_info_by_name() to retrieve field information
121            by specifying the field name, not the number.
122    
123            * Thuban/UI/mainwindow.py: Function name changes.
124    
125            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
126            get the layer classification once. Don't try to classify
127            values when the field is None: just use the default properties.
128    
129            * Thuban/UI/view.py: Function name changes.
130    
131            * Doc/thuban.dtd: Add field_type attribute to a classification.
132    
133    2003-03-04  Bernhard Herzog  <[email protected]>
134    
135            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
136            the fill and stroke layer attributes optional with suitable
137            default values. Add the stroke_width layer attribute. Use correct
138            syntax for empty elements. Make the attribute list for labels
139            refer to the label element.
140    
141    2003-03-04  Bernhard Herzog  <[email protected]>
142    
143            * setup.py (thuban_build_py.build): Add a comment about distutils in
144            Python 2.3 containing some of the functionality we implement in
145            setup.py ourselves.
146    
147            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
148            before the selection mode. Doing it the other way round triggers
149            an assertion in wxWindows.
150    
151            * Thuban/Model/save.py (escape): Fix typo in doc-string
152    
153            * Thuban/Model/classification.py: Remove unnecessary wxPython
154            import
155    
156    2003-03-04  Jonathan Coles   <[email protected]>
157    
158            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
159            Parameter 'value' should default to None.
160    
161            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
162            the class attribute __classification is now private.
163    
164            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
165            Classifier to ClassGrid. Added support for removing selected rows,
166            which including code for keeping track of when cells are selected,
167            and deselected.
168            (ClassTable): Support for added/removing rows. Fixed a problem
169            with __ParseInput whereby it would not allow strings (only numbers)
170            to be entered.
171            (Classifier): Added button and supporting code for removing
172            selected rows.
173    
174    2003-02-27  Jonathan Coles   <[email protected]>
175    
176            * Thuban/common.py: Moved color conversion functions into
177            Thuban/UI/common.py.
178            (Str2Num): Now converts the float (not the string) to a long/int
179            so that an exception isn't thrown.
180    
181            * Thuban/UI/common.py: Common functions used in several UI modules
182    
183            * Thuban/Model/classification.py: Changed the class hierarchy
184            so that a Classification consists of Groups which return
185            Properties when a value matches a Group.
186    
187            * Thuban/Model/layer.py: Fixed name resolution problem.
188    
189            * Thuban/Model/load.py: Use new Classification and Group functions.
190    
191            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
192            failure.
193            (Saver.write_classification): Use new Classification and Group
194            functions.
195    
196            * Thuban/UI/classifier.py: Changes to use new Classification and Group
197            functions. Fix to create a tuple with a single value instead of
198            simply returning the value.
199    
200            * Thuban/UI/renderer.py: Use new Classification and Group functions.
201            Use common.py functions.
202    
203            * Thuban/UI/tree.py: Use common.py functions.
204            
205            * test/test_classification.py: Use new Classification and Group
206            classes.
207    
208    2003-02-24  Jonathan Coles   <[email protected]>
209    
210            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
211            functions from Thuban color objects to wxWindow colour objects.
212    
213            * Thuban/Model/classification.py (Classification): Renamed
214            GetProperties() to GetClassData(). Used the new iterator
215            in TreeInfo().
216            (ClassIterator): Iterator implementation to iterate over the
217            ClassData objects in a classification object.
218    
219            * Thuban/Model/save.py (Saver.write_classificaton): Uses
220            the new iterator to save the classification information.
221    
222            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
223            for changing the stroke and fill colors and previewing the
224            changes.
225    
226            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
227            MainWindow.SaveSessionAs): Text string changes so the dialogs
228            have more meaningful titles.
229    
230            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
231            Classification method name from GetProperties to GetClassData.
232    
233            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
234            instead of accessing now non-existent class variables.
235    
236    2003-02-24  Bernhard Herzog  <[email protected]>
237    
238            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
239            unneeded Shape() call. Rendering is substantially faster without
240            it and it avoids some problems with broken shape files.
241    
242    2003-02-20  Frank Koormann   <[email protected]>
243    
244            Force minimal size of identify and label dialogs. The autosizing
245            looked too ugly.
246    
247            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
248            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
249            Set size of listctrl.
250            * Thuban/UI/identifyview.py (IdentifyView.__init__):
251            Set size of dialog.
252    
253    2003-02-19  Jonathan Coles   <[email protected]>
254    
255            * test/test_classification.py, test/test_layer.py,
256            test/test_load.py, test/test_map.py, test/test_session.py:
257            Updated the tests to use the new functions that are in the
258            respective classes.
259    
260            * Thuban/Model/classification.py (Classification):
261            Uses the new ClassData* classes. Modification messages are
262            passed up to the parent layer (if it exists).
263            (ClassData): New class to encapsulate the common data in each
264            classification property.
265            (ClassDataDefault): Represents the Default class. data.
266            (ClassDataPoint): Represents a single class. data point
267            (ClassDataRange): Represents a class. range
268            (ClassDataMap): Represents a class. map (unused).
269    
270            * Thuban/Model/color.py: Added Color.None to represent something
271            with no color. Color.Black represents the color black.
272            (NoColor): Helper class derived from Color to represent something
273            with no color.
274    
275            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
276            stroke_width attributes. Made the 'classification' attribute private.
277            New methods for setting/getting the classification.
278    
279            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
280            to get the classifcation and use the new ClassData* classes to
281            hold the classification data. Use Str2Num to convert numbers
282            properly.
283    
284            * Thuban/Model/save.py (Saver): Use new Color and Classification
285            methods
286    
287            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
288            custom grid.
289            (ClassTable): Support for editing Values and Labels and for
290            changing what type (point or range) of data is stored in each
291            property based on how the user enters the data.
292            (Classifier): Support for saving the new classifications and
293            launching the dialog to edit a property.
294            (SelectPropertiesDialog): New class for editing the visual
295            properties of a classification (stroke color, width, and fill color)
296            (ClassPreviewer): Took the Draw method from ClassRenderer and
297            made most of it into this new class. Intend to use this class in
298            the SelectPropertiesDialog for previewing changes.
299    
300            * Thuban/UI/renderer.py: Use new Color and Classification methods.
301    
302            * Thuban/UI/tree.py: Formatting changes.
303    
304            * Doc/thuban.dtd: Add 'label' element
305    
306            * Thuban/common.py: New. Contains common routines used throughout
307            the code.
308            (Str2Num): Takes a string and converts it to the "best" type of
309            number.
310    
311    2003-02-14  Bernhard Herzog  <[email protected]>
312    
313            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
314            dragging flag is always set to 0 even when the tool implementation
315            raises an exception
316    
317    2003-02-11  Bernhard Herzog  <[email protected]>
318    
319            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
320            method to create a splash screen.
321            (ThubanApplication.ShowMainWindow): New. Show the main window.
322            Needed so the splash screen can display the mainwindow
323            (ThubanApplication.OnInit): Call the
324            new splash_screen method to determine whether the application
325            should display a splash screen. If it displays a splash screen do
326            not immediately show the main window.
327    
328    2003-02-11  Jonathan Coles  <[email protected]>
329    
330            * Thuban/Model/classification.py: Added import line to fix
331            feature conflicts between running on python2.2 and python2.1.
332    
333            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
334            onto the clinfo parameter, so removed the deepcopy().
335    
336    2003-02-10  Jonathan Coles  <[email protected]>
337    
338            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
339            Added element_open variable to track opening and closing of tags
340            so that tags that don't span more than one line are closed with
341            /> instead of </tag_name>. Use the GetDefault*() methods of
342            the Classification class.
343    
344            * Thuban/Model/classification.py (Classificaton): Added set and
345            get methods for the default data. The class also takes a layer
346            reference so that modification messages can be sent. Fixed the
347            methods to use the new ClassData class.
348            (ClassData): New class to encapsulate the classification data
349    
350            * Thuban/Model/layer.py (Layer): Remove the
351            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
352            SetDefault*() methods on the layer's classification object.
353            (Layer.__init__): Use the new SetDefault*() methods in the
354            Classification class.
355    
356            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
357            object instead of a dictionary.
358    
359            * Thuban/UI/classifier.py (ClassRenderer): New class to
360            draw the classifications in the dialog box's table.
361            (Classifier): Modified to use the ClassRenderer class.
362    
363            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
364            methods of the Classification class.
365    
366            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
367            of the ClassData class.
368    
369            * test/test_classification.py, test/test_layer.py,
370            test/test_map.py, test/test_session.py: Fix the tests to work
371            with the above code changes.
372    
373    2003-02-03  Jonathan Coles  <[email protected]>
374    
375            * Thuban/Model/classification.py (Classification): Added getNull()
376            to return the NullData reference
377    
378            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
379            Layer.SetStrokeWidth): Modified these functions to change the
380            null data in the classification rather than keep these values
381            directly in the Layer class. Menu options to change these values
382            work again.
383    
384    2003-01-28  Jonathan Coles  <[email protected]>
385    
386            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
387            Fixed crashing problem on some systems. Dialog box shows
388            classification data.
389    
390            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
391            Colors in the tree view.
392    
393            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
394            the tree info for classifications. Commented out unnecessary lines.
395    
396            * Thuban/Model/classification.py (Classification.TreeInfo): New
397            function to add information about the classification into the
398            tree view.
399    
400    2003-01-27  Jan-Oliver Wagner <[email protected]>
401    
402            * Thuban/__init__.py (_): New.
403    
404            * Thuban/Model/classification.py, Thuban/Model/extension.py,
405            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
406            Thuban/Model/session.py, Thuban/UI/application.py,
407            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
408            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
409            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
410            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
411            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
412    
413    2003-01-27  Jonathan Coles  <[email protected]>
414    
415            * Thuban/Model/layer.py: Classification initialization calls.
416    
417            * Thuban/Model/classification.py: Created class to encapsulate
418            a layer classification. Supports specific data points and
419            ranges.
420    
421            * Thuban/Model/load.py: Added support for loading classification
422            information.
423    
424            * Thuban/Model/save.py: Added support for saving classification
425            information.
426    
427            * Thuban/UI/classifier.py: Initial class for a dialog box for
428            specifying classification information.
429    
430            * Thuban/UI/mainwindows.py: Support for opening the classifier
431            dialog.
432    
433            * Thuban/UI/renderer.py: Support for drawing a layer with the
434            classification information.
435    
436            * Data/iceland_sample_class.thuban: iceland_sample with
437            classification data.
438    
439            * test/test_classification: Tests for the Classification class.
440    
441    2002-12-09  Bernhard Herzog  <[email protected]>
442    
443            * test/test_command.py: New. Tests for the command classes.
444    
445            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
446            (Command.IsTool): New method to distinguish between command
447            switching tools and other commands.
448    
449            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
450            the tool to avoid direct assignments to instance variables
451            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
452            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
453            change the tool
454    
455            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
456            active tool's command turns insensitive, disable the tool.
457            (_tool_command): Use the new ToolCommand class
458    
459            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
460            SelectTool method to change the tool
461            (iconfile): Use the ToolCommand class
462    
463    2002-12-03  Bernhard Herzog  <[email protected]>
464    
465            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
466            the case of selected items that are not children of Layers or Maps
467            properly. Previously this bug would trigger an assertion in
468            wxWindows.
469    
470    2002-11-06  Frank Koormann  <[email protected]>
471    
472            * Thuban/UI/mainwindow.py: Altered the order of tools in the
473            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
474            Full Extent).
475    
476    2002-10-23  Bernhard Herzog  <[email protected]>
477    
478            * setup.py (setup call): version now 0.1.3
479    
480            * MANIFEST.in: Add the files in test/
481    
482            * test/README: Add note about tests requiring the iceland data
483    
484            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
485            copyright notice.
486    
487    2002-10-18  Bernhard Herzog  <[email protected]>
488    
489            * test/test_map.py
490            (TestMapWithContents.test_projected_bounding_box): Use an explicit
491            epsilon.
492    
493            * test/support.py (FloatComparisonMixin.assertFloatEqual)
494            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
495            message if the assertion fails and don't return the return value
496            of self.assert_. In assertFloatSeqEqual the return meant that not
497            all items of the sequence were compared.
498    
499    2002-09-20  Bernhard Herzog  <[email protected]>
500    
501            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
502    
503            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
504    
505            * test/test_map.py (TestMapWithContents.test_tree_info): Create
506            the string with the bounding box on the fly because of platform
507            differences in the way %g is handled.
508    
509            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
510            DBFfile too because Thuban layers can't yet cope missing DBF
511            files.
512    
513    2002-09-20  Bernhard Herzog  <[email protected]>
514    
515            * test/test_menu.py: Use initthuban instead of
516            add_thuban_dir_to_path to initialize Thuban.
517    
518            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
519            Mixin class for float comparisons
520            (SubscriberMixin): New. Mixin class to test messages sent through
521            the Connector class
522    
523            * test/README: Fix a typo and add the -v flag to the command for
524            individual tests
525    
526            * test/test_session.py: New. Test cases for Thuban.Model.session
527    
528            * test/test_proj.py: New. Test cases for Thuban.Model.proj
529    
530            * test/test_map.py: New. Test cases for Thuban.Model.map
531    
532            * test/test_layer.py: New. Test cases for Thuban.Model.layer
533    
534            * test/test_label.py: New. Test cases for Thuban.Model.label
535    
536            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
537    
538            * test/test_color.py: New. Test cases for Thuban.Model.color
539    
540            * test/test_base.py: New. Test cases for Thuban.Model.base
541    
542    2002-09-13  Bernhard Herzog  <[email protected]>
543    
544            * Thuban/Model/session.py (Session.forwarded_channels): Forward
545            the CHANGED channel too.
546    
547            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
548            CHANGED channel too.
549            (Map.__init__): Call the Modifiable constructor as well.
550    
551            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
552            event if the modified flag changes.
553            (Modifiable.changed): Tweak the doc-string.
554    
555            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
556            (MainWindow.set_position_text): Put the code that puts the text
557            with the mouse position into the status bar into the new method
558            set_position_text so that it can overwritten in derived classes.
559    
560    2002-09-12  Bernhard Herzog  <[email protected]>
561    
562            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
563            message box on the main window.
564    
565    2002-09-11  Bernhard Herzog  <[email protected]>
566    
567            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
568            the 'E' because it's less likely to interfere with other menu
569            entries.
570            (MainWindow.build_menu): remove an incorrect comment.
571    
572    2002-09-10  Bernhard Herzog  <[email protected]>
573    
574            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
575            (_tool_command): Add sensitive parameter
576            (_has_visible_map): Sensitivity callback to tools and other
577            commands that require a visible map. Use it in map_zoom_in_tool,
578            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
579            and map_full_extent
580    
581    2002-09-06  Bernhard Herzog  <[email protected]>
582    
583            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
584            VIEW_POSITION
585    
586    2002-09-04  Frank Koormann  <[email protected]>
587    
588            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
589    
590    2002-09-02  Bernhard Herzog  <[email protected]>
591    
592            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
593            wxWindows already and our implementation doesn't work correctly
594            with wxGTK 2.3:
595            (MapCanvas.__init__): Remove the instance variable
596            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
597            be drawin
598            (MapCanvas.OnIdle): Removed.
599    
600            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
601            a parameter to determine the size of the rectangle.
602            (MapCanvas.find_shape_at): Create the box around the point on a
603            layer by layer basis and make the size depend on the shape type.
604            This solves a problem with the selection of point shapes at the
605            border of the layer's bounding box
606    
607    2002-08-30  Bernhard Herzog  <[email protected]>
608    
609            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
610            for the sensitivity  of remove layer.
611            (_can_remove_layer): New. Sensitivity callback for remove layer
612            (Command layer_remove): Use _can_remove_layer
613    
614            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
615            determine whether a given layer can be deleted.
616    
617            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
618            (MapCanvas.do_redraw): Get rid of the unused update_region
619            instance variable
620    
621            * Thuban/UI/view.py: Add/update some doc-strings.
622    
623            * test/: new subdirectory with a bunch of unit tests.
624    
625            * test/README, test/test_table.py, test/test_save.py,
626            test/test_menu.py, test/test_load.py: Initial set of tests and
627            brief instructions on how to run them
628    
629    2002-08-29  Bernhard Herzog  <[email protected]>
630    
631            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
632            arcs with multiple parts.
633    
634            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
635            Handle degenrate rectangles.
636    
637            * Thuban/Model/table.py: Make writing records work correctly:
638            (Table.__init__): Keep track of whether the DBF is open for
639            writing
640            (Table.write_record): Open the DBF file for writing when necessary
641    
642    2002-08-27  Bernhard Herzog  <[email protected]>
643    
644            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
645            dbf files only for reading by default. Use a new writable dbf
646            object for writing.
647    
648    2002-08-26  Bernhard Herzog  <[email protected]>
649    
650            * Thuban/UI/mainwindow.py: Refactor the context creation:
651            (MainWindow.Context): New method to return a context
652            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
653            new method
654    
655            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
656            layer table specific code from TableGrid into LayerTableGrid
657            (TableFrame, LayerTableFrame): Split the layer table specific code
658            from TableFrame into LayerTableFrame
659            (LayerTableGrid.select_shape): Remove a debug print
660    
661            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
662            LayerTableFrame
663    
664    2002-08-23  Bernhard Herzog  <[email protected]>
665    
666            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
667            absolute filename.
668    
669    2002-08-22  Bernhard Herzog  <[email protected]>
670    
671            * Thuban/Model/table.py (Table.write_record): New method to write
672            records.
673            (Table.__init__): Open the DBF file for writing too.
674    
675            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
676            into the underlying table.
677    
678            * extensions/shapelib/shapefil.h (DBFCommit),
679            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
680            commit any changes made to the DBF file.
681    
682            * Thuban/UI/mainwindow.py (make_check_current_tool)
683            (_tool_command): Put the code that generates the "checked"
684            callback into a separate function so that we can reuse it
685            elsewhere
686    
687            * Thuban/Model/save.py (Saver): New class to handle serializing a
688            session into an XML file. The main reason to introduce a class is
689            that applications built on Thuban can derive from it so that they
690            can save additional information in a session file.
691            (save_session): Delegate almost all the work to the Saver class.
692            Rename the filename argument to file because it may be a file like
693            object now.
694    
695            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
696            code. Remove the little test code which would be executed when the
697            module is run as a script which didn't work anymore since it can't
698            import the other Thuban modules.
699            (ProcessSession, load_session): Refactor the ProcessSession to
700            have one method for each element start and end tag so that derived
701            classes can easily override the processing of individual tags.
702            Also, always parse with namespaces enabled because applications
703            built on top of Thuban will likely use namespaces if they extend
704            the session file format.
705    
706    2002-08-21  Bernhard Herzog  <[email protected]>
707    
708            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
709            because thubaninit_contents will do it for us.
710    
711    2002-08-16  Jan-Oliver Wagner <[email protected]>
712    
713            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
714            tree window already open
715    
716    2002-08-15  Bernhard Herzog  <[email protected]>
717    
718            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
719            with self.
720    
721            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
722            when we have actually captured it.
723    
724            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
725            shapefile and destroy the table.
726    
727            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
728    
729    2002-08-14  Bernhard Herzog  <[email protected]>
730    
731            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
732            instance variable columns
733            (RecordTable.GetTypeName): row and col may be negative in some
734            cases.
735    
736            * setup.py (InstallLocal.initialize_options)
737            (InstallLocal.finalize_options, InstallLocal.user_options): New
738            option create-init-file to build a thubaninit.py when running
739            install_local
740            (InstallLocal.run): Create the thubaninit.py module when requested
741            (thubaninit_contents): Split the template into several parts and
742            create a new function thubaninit_contents that creates the
743            contents of a thubaninit module.
744            (ThubanInstall.run): Use the new function to create the thubaninit
745            module.
746    
747    2002-07-30  Bernhard Herzog  <[email protected]>
748    
749            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
750            cleanup.
751            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
752    
753            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
754            direct base class' Destroy method.
755    
756            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
757            layers.
758            (Map.Destroy): Destroy the label_layer as well and call the
759            inherited Desatroymethod first so that no more messages are
760            issued.
761            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
762            message if the stacking order actually has changed. Add
763            doc-strings.
764            (Map.BoundingBox): Correct the doc-string.
765            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
766            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
767    
768            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
769            all labels.
770    
771    2002-07-29  Bernhard Herzog  <[email protected]>
772    
773            * Thuban/Model/map.py (Map.subscribe_layer_channels)
774            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
775            to a layer's channels into separate methods.
776            (Map.RemoveLayer, Map.AddLayer): Call the new methods
777            (Map.Destroy): Unsubscribe from a layer's channels before
778            destroying it.
779    
780            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
781            selected_layer parameter to searched_layer which is the layer to
782            search in.
783            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
784            search to that layer. Return the selected layer and shape.
785    
786            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
787            typo
788    
789    2002-07-24  Bernhard Herzog  <[email protected]>
790    
791            * Thuban/UI/application.py (ThubanApplication.create_session):
792            Extend the doc string.
793            (ThubanApplication.subscribe_session)
794            (ThubanApplication.unsubscribe_session): New methods to
795            subscribe/unsubscribe to/from session channels.
796            (ThubanApplication.SetSession): Call the new methods here.
797            (ThubanApplication.maps_changed, ThubanApplication.set_map):
798            Renamed set_map to maps_changed. Its now a subscriber for
799            MAPS_CHANGED.
800    
801            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
802            x-coordinate in case of simple clicks
803    
804            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
805            don't pass it as a parameter
806    
807            * Thuban/Model/session.py (Session.RemoveMap): New
808    
809            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
810            window size into a parameter.
811    
812    2002-07-23  Bernhard Herzog  <[email protected]>
813    
814            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
815            just commands.
816    
817            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
818            parameter list a bit to allow setting the window title and the
819            initial message in the status bar. Update the callers.
820    
821            * Thuban/UI/application.py (ThubanApplication.OnInit)
822            (ThubanApplication.CreateMainWindow): Put the mainwindow
823            instantiation into a separate method so that it can be overridden
824            by a subclass.
825    
826    2002-07-19  Bernhard Herzog  <[email protected]>
827    
828            * Thuban/Model/session.py: Issue a CHANGED message every time
829            another changed message is issued to make it easier to get
830            notified of changes.
831            (Session): Update the doc string
832            (Session.forward): Issue changed-events as CHANGED as well.
833            (Session.changed): Overwrite the inherited version to issue
834            CHANGED events as well.
835    
836            * Thuban/UI/tree.py: We can now simply subscribe to the session's
837            CHANGED channel to be informed of changes.
838            (SessionTreeCtrl.session_channels): Not needed any longer.
839            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
840            Only have to (un)subscribe CHANGED
841    
842            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
843    
844            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
845            for the wxPython locale bug to __init__.py so that it's
846            automatically executed by anybody using UI code from Thuban.
847    
848    2002-07-18  Bernhard Herzog  <[email protected]>
849    
850            * Thuban/UI/main.py (main): app no longer needs to be global
851    
852            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
853            as parameter and store it in an instance variable
854            (MainWindow.invoke_command, MainWindow.update_command_ui)
855            (MainWindow.save_modified_session, MainWindow.NewSession)
856            (MainWindow.OpenSession, MainWindow.SaveSession)
857            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
858            application object.
859    
860            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
861            the main window with self.
862    
863            * Thuban/UI/context.py: New module with the context class
864    
865            * Thuban/UI/command.py (Command): Update doc string.
866    
867            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
868            MainWindow.update_command_ui): Pass an instance of the context
869            class to the command's methods
870            (check_current_tool, call_method): Handle the new context
871            implementation
872    
873            * Examples/simple_extensions/simple_tool.py (simple_tool,
874            check_simple_tool): Handle the new context implementation
875    
876            * Examples/simple_extensions/simple_command.py (simple_command):
877            Handle the new context implementation. Update the comments about
878            the context.
879    
880            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
881            doc-string
882            (ThubanApplication.Session): New method to return the session
883            object
884    
885            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
886            interactor's selected_layer may not be a layer of the current
887            session when the tree is updated while a new session is being set.
888    
889    2002-07-17  Bernhard Herzog  <[email protected]>
890    
891            * Thuban/UI/tree.py (color_string): Removed. No longer used.
892            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
893            update_tree into update_tree and add_items. The tree now uses a
894            more generic way to display the contents of the tree.
895            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
896    
897            * Thuban/Model/layer.py (Layer.TreeInfo),
898            Thuban/Model/extension.py (Extension.TreeInfo),
899            Thuban/Model/map.py (Map.TreeInfo),
900            Thuban/Model/session.py (Session.TreeInfo):
901            Add TreeInfo methods to implement the new tree view update scheme
902    
903    2002-07-16  Bernhard Herzog  <[email protected]>
904    
905            * Thuban/UI/application.py: Don't use "import from" for the
906            MainWindow. It can't always be resolved.
907            (ThubanApplication.OnInit): change reference to MainWindow
908            accordingly.
909    
910            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
911            completely
912    
913    2002-07-10  Bernhard Herzog  <[email protected]>
914    
915            * setup.py (create_init_module): New configurable variable whose
916            default depends on the platform we're running on.
917            (ThubanInstall.initialize_options): Initialize
918            self.create_init_module from the global create_init_module
919            (ThubanInstall.user_options): indictate that the options
920            create-init-module and init-module-dir have arguments.
921    
922            * setup.py: In the setup call change the version number to include
923            cvs.
924    
925            * MANIFEST.in: Add the files in Examples
926    
927    2002-07-09  Bernhard Herzog  <[email protected]>
928    
929            * setup.py: In the setup call, use the thuban homepage as the
930            value of the url parameter.
931    
932            * Examples: New subdirectory for examples.
933    
934            * Examples/simple_extensions/simple_tool.xpm,
935            Examples/simple_extensions/simple_tool.py,
936            Examples/simple_extensions/simple_command.py,
937            Examples/simple_extensions/README: Simple examples showing how to
938            add new commands and tools.
939    
940            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
941            bdist_rpm that we also have an install script.
942            (bdist_inno): Add 2002 to the copyright notice.
943    
944            * setup.py: Create a file in python's site-packages directory to
945            make installation of Thuban as a library easier.
946            (ThubanInstall.user_options): Add two new options,
947            create-init-module and init-module-dir
948            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
949            filenames for installation in the default directories.
950            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
951            the inherited methods to capture some filenames before they're
952            transformed too much by distutils.
953            (ThubanInstall.run): Create the init module if requested.
954            (ThubanInstall.thuban_init_filename): New method to return the
955            full name of the init module.
956            (ThubanInstall.get_outputs): Append the filename of the init
957            module.
958    
959    2002-07-08  Bernhard Herzog  <[email protected]>
960    
961            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
962            handle the prefix properly which means that the default for the
963            installation prefix should be /usr for RPMs and /usr/local when
964            doing a normal source install.
965            (bdist_rpm_install_script): Script to override the default install
966            commands in the specfile generated by the bdist_rpm command.
967            (thuban_bdist_rpm.user_options): Add a prefix option
968            (thuban_bdist_rpm.initialize_options): Init the prefix option.
969            Create the script files for the spec files as empty files here
970            (thuban_bdist_rpm._make_spec_file): Override the inherited method
971            to fill the script files with content.
972    
973            * Thuban/Model/save.py (relative_filename): Wrapper around
974            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
975            argument. save_session now automatically uses this version,
976            solving a problem when saving to a relative filename.
977    
978            * setup.py: In the setup call, make sure that the library
979            directories are under $prefix/lib not directly under $prefix.
980    
981    2002-06-20  Jan-Oliver Wagner <[email protected]>
982    
983            * Thuban/Model/extension.py: new module to handle extension objects.
984            * Thuban/Model/messages.py: new messages for extensions.
985            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
986            Session.AddExtension): new for handling extensions.
987            Also some other minor changes to round up extension handling.
988            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
989            of Extension titles and title and names of its objects.
990    
991    2002-05-29  Bernhard Herzog  <[email protected]>
992    
993            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
994            the events for a command.
995            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
996            Call bind_command_events to bind the events. add_toolbar_command
997            can now bind events too so that it's possible to have commands
998            that are only available through the toolbar.
999            (MainWindow.init_ids): New instance variable events_bound to keep
1000            track of for which commands events have been bound.
1001    
1002    2002-05-28  Bernhard Herzog  <[email protected]>
1003    
1004            * Thuban/UI/menu.py: New module to build and manage menus.
1005    
1006            * Thuban/UI/mainwindow.py: Remove some unused imports.
1007            (MainWindow.__init__, main_menu): move the definition of the main
1008            menu from __init__ to the Menu instance main_menu.
1009            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
1010            build the menu bar and sub-menus from a menu description.
1011    
1012            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
1013            startup file
1014            (ThubanApplication.read_startup_files): New method to run
1015            ~/.thuban/thubanstart.py
1016    
1017            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
1018            Move the toolbar definition to the Menu instance main_toolbar.
1019            (MainWindow.build_toolbar): New method to build the toolbar
1020            similar to the build_menu methods
1021    
1022    2002-05-23  Bernhard Herzog  <[email protected]>
1023    
1024            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1025            layer_outline_color. Fix it in the definition of the command too.
1026    
1027            * Thuban/UI/command.py (Command): Fix typo in doc string
1028    
1029    2002-05-22  Bernhard Herzog  <[email protected]>
1030    
1031            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1032            in the docstring
1033    
1034    2002-05-15  Bernhard Herzog  <[email protected]>
1035    
1036            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
1037            when the shapefile is empty.
1038            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
1039            now return None for empty shapefiles. Update doc-strings.
1040    
1041            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
1042            the layer's bbox being None.
1043    
1044            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
1045            layer's bbox being None.
1046    
1047            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
1048            necessary.
1049            (MapCanvas.__init__): New instance variables, last_selected_layer
1050            and last_selected_shape to determine how the selection has
1051            changed.
1052    
1053            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
1054            AutoSizeColumns because it will cause a traversal of the entire
1055            table which for large .dbf files will take a very long time.
1056    
1057    2002-05-14  Bernhard Herzog  <[email protected]>
1058    
1059            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
1060            maximum depth for the tree than shapelib does by default.
1061    
1062    2002-05-10  Bernhard Herzog  <[email protected]>
1063    
1064            * setup.py (py_modules): The shptree modules doesn't have a
1065            wrapper, so don't include it in the py_modules
1066    
1067    2002-05-08  Bernhard Herzog  <[email protected]>
1068    
1069            * extensions/shapelib/shptree.c (compare_ints): Make arguments
1070            const void * as in the qsort prototype
1071            (SHPTreeFindLikelyShapes): Remove some unused variables.
1072    
1073            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
1074            maintains to redraw the window during a drag.
1075            (MapCanvas.unprojected_rect_around_point): New method to determine
1076            a small region around a point for hit-testing.
1077            (MapCanvas.find_shape_at): Only test the shapes in a small region
1078            around the point.
1079    
1080            * setup.py: Increment the version to 0.1.2
1081    
1082            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
1083            debug print and set session to None after unsubscribing
1084    
1085    2002-05-07  Bernhard Herzog  <[email protected]>
1086    
1087            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
1088            the file to have a .thuban extension.
1089    
1090            * Thuban/UI/tree.py (session_channels): New class constant with
1091            all the session channels to subscribe to to update the tree
1092            (SessionTreeCtrl.session_changed): Remember the session so that we
1093            can unsubscribe properly. Use the new class constant to
1094            unsubscribe from the old session and subscribe to the new one.
1095            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
1096            subscriptions of the SessionTreeCtrl.
1097            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
1098    
1099            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
1100            Session Tree" command to the file menu.
1101    
1102            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
1103            as update_region to the renderer.
1104    
1105            * Thuban/UI/renderer.py
1106            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
1107            update box is now directly a tuple, not a wxRect anymore.
1108    
1109            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
1110            prints.
1111    
1112    2002-05-07  Bernhard Herzog  <[email protected]>
1113    
1114            * setup.py: Add the shptree extension module. See
1115            extensions/pyshapelib/ChangeLog for more details.
1116    
1117            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
1118            extensions/shapelib/dbfopen.c: Really update to the versions of
1119            shapelib 1.2.9. For some reason it wasn't really done on
1120            2002-04-11.
1121    
1122            * extensions/shapelib/shptree.c: Modified version of shptree.c of
1123            shapelib 1.2.9. The only real difference is the use of qsort
1124            instead of a bubble sort implementation
1125    
1126            * Thuban/Model/layer.py (Layer.__init__): New instance variable
1127            shapetree to hold the shapelib quadtree for the shapefile
1128            (Layer.open_shapefile): Create the quad tree.
1129            (Layer.ShapesInRegion): New method to return the ids of shapes in
1130            a given region using the quad tree.
1131    
1132            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
1133            comment
1134            (draw_polygon_shape): Accept both arcs and polygons.
1135            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
1136            the api.
1137    
1138            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
1139            return the shape ids to be rendered in a given layer.
1140            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
1141            ids. Use draw_polygon_shape to draw arc shapes as well.
1142            (ScreenRenderer.RenderMap): New parameter for the rectangle that
1143            has to be updated
1144            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
1145            calling it's ShapesInRegion method.
1146    
1147            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1148            update_region for the update region.
1149            (MapCanvas.OnPaint): Maintain the update region
1150            (MapCanvas.do_redraw): Pass the bounding box of the update_region
1151            to the renderer when drawing the bitmap. Reset the update_region.
1152    
1153    2002-05-03  Bernhard Herzog  <[email protected]>
1154    
1155            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
1156            MainWindow.OpenSession): Change the file extension of the session
1157            files to .thuban
1158    
1159            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
1160            Move the map channels to be forwarded by the session into the
1161            class constant with forwarded_channels. Also add
1162            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
1163            forwarded_channels
1164    
1165            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
1166            typo and some rewording).
1167    
1168    2002-05-02  Bernhard Herzog  <[email protected]>
1169    
1170            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
1171            around to speed up most redraws:
1172            (MapCanvas.__init__): New instance variable bitmap which holds the
1173            bitmap
1174            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
1175            self.bitmap to draw.
1176            (MapCanvas.full_redraw): New method to force a full redraw
1177            including the bitmap
1178            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
1179            make sure the bitmap is redrawn.
1180            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
1181            MapCanvas.shape_selected): Call full_redraw instead of readraw to
1182            make sure the bitmap is redrawn.
1183            (MapCanvas.OnSize): New method to handle size events so that the
1184            bitmap can be redrawn.
1185    
1186    2002-04-29  Bernhard Herzog  <[email protected]>
1187    
1188            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1189            canvas' VIEW_POSITION event
1190            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
1191            Update the text in the status-bar accordingly.
1192    
1193            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
1194            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
1195            called.
1196            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
1197            current_position
1198            (MapCanvas.set_current_position): New method to set
1199            current_position. Issue a VIEW_POSITION event
1200            (MapCanvas.CurrentPosition): New public method to return the value
1201            of current_position. Should be called when the VIEW_POSITION event
1202            is processed.
1203            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
1204            Update the position.
1205            (MapCanvas.OnLeaveWindow): Set the position to None.
1206    
1207            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1208            position in the statusbar
1209    
1210    2002-04-26  Frank Koormann <[email protected]>
1211    
1212            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1213    
1214    2002-04-24  Frank Koormann <[email protected]>
1215    
1216            * Resources/Bitmaps/identify.xpm: shadow added
1217    
1218            * Resources/Bitmaps/fullextent.xpm: new
1219    
1220    2002-04-22  Jan-Oliver Wagner <[email protected]>
1221    
1222            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1223            box
1224    
1225    2002-04-21  Jan-Oliver Wagner <[email protected]>
1226    
1227            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1228    
1229            * Thuban/UI/tree.py (update_tree): added added map extent
1230    
1231            * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1232            icon; added map_full_extend as tool
1233    
1234    2002-04-19  Jan-Oliver Wagner <[email protected]>
1235    
1236            * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1237            saving _new_ sessions
1238    
1239            * Thuban/Model/session.py (create_empty_session): new session
1240            don't have a filename (set to None)
1241    
1242            * Thuban/UI/tree.py (update_tree): added filename and modified flag
1243    
1244            * Thuban/Model/load.py (ProcessSession): convert projection
1245            parameters from unicode to regular string
1246    
1247            * Data/iceland_sample.session: Added UTM Zone 26 projection.
1248    
1249    2002-04-11  Bernhard Herzog  <[email protected]>
1250    
1251            * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
1252            extensions/shapelib/dbfopen.c: Update to the versions of shapelib
1253            1.2.9
1254    
1255            * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
1256            the pyshapelib directoy into the list of include dirs, so that
1257            pyshapelib_api.h can be found.
1258    
1259            * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
1260            holds the pyshapelib C-API
1261            (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
1262            pyshapelib_api to access the shapelib functions.
1263            (initwxproj): Import the c_api from the shapelib module and
1264            initialize pyshapelib_api.
1265    
1266    2002-04-04  Bernhard Herzog  <[email protected]>
1267    
1268            * setup.py (thuban_bdist_rpm.initialize_options): Use
1269            initialize_options to create the scripts for the rpm.
1270    
1271            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
1272    
1273    2002-04-03  Bernhard Herzog  <[email protected]>
1274    
1275            * setup.py: Increment version to 0.1.1
1276    
1277            * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
1278            Layer" and "Remove Layer" commands from the layer menu to the map
1279            menu
1280    
1281    2002-02-15  Bernhard Herzog  <[email protected]>
1282    
1283            * Thuban/Model/layer.py (Layer.Shape): list append only takes one
1284            argument (python <= 1.5.2 erroneously accepted multiuple
1285            arguments)
1286    
1287    2002-02-04  Bernhard Herzog  <[email protected]>
1288    
1289            * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
1290            RecordGrid in the identifyview.
1291            (IdentifyView.__init__): Use IdentifyGridCtrl instead of
1292            IdentifyListCtrl. The grid allows editing of the values.
1293    
1294            * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
1295            implementing a grid for a single row of a thuban table.
1296    
1297            * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
1298            layers by default. Easier to use than the previous default of only
1299            searching through the select layer which meant that if no layer
1300            was selected, you couldn't select a shape.
1301    
1302            * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
1303    
1304            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
1305            stroke_width attribute
1306    
1307            * Thuban/Model/save.py (save_session): Write the new stroke_width
1308            attribute
1309    
1310            * Thuban/Model/load.py (ProcessSession.startElement): Read the
1311            stroke_width attribute
1312    
1313            * Thuban/Model/layer.py (Layer.__init__): New parameter and
1314            instance variable stroke_width
1315            (Layer.SetStrokeWidth): Set the stroke_width.
1316    
1317    2002-02-01  Bernhard Herzog  <[email protected]>
1318    
1319            * extensions/thuban/wxproj.cpp (project_points): Fix two
1320            off-by-one errors in the last loop that joins the various parts
1321            together.
1322    
1323    2002-01-14  Bernhard Herzog  <[email protected]>
1324    
1325            * setup.py (data_dist.make_distribution): Fix some typos
1326    
1327    2001-09-18  Bernhard Herzog  <[email protected]>
1328    
1329            * README: Slight tweaking in preparation for the 0.1 release
1330    
1331            * setup.cfg: Add section for sdist to create both tgz and zip
1332            archives
1333    
1334            * setup.py: increase version number to 0.1
1335            (data_dist): New command class for data distribution
1336    
1337    2001-09-14  Bernhard Herzog  <[email protected]>
1338    
1339            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1340            Handle the case of no layer (i.e. layer is None) properly.
1341    
1342            * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1343            Set the initial selection of the combo boxes to reflect the
1344            projection we're starting with in a way that works on windows,
1345            too.
1346    
1347            * Thuban/Lib/connector.py (Connector.print_connections): Print the
1348            puiblisher's ids in hex to make it easier to compare them to the
1349            standard repr of python methods
1350    
1351            * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
1352            messages
1353    
1354    2001-09-13  Bernhard Herzog  <[email protected]>
1355    
1356            * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
1357            deselect the layer if no layer is selected
1358    
1359            * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
1360            idle time when there actually is something to draw. If there's
1361            nothing to draw simply clear the window
1362            (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
1363            (MapCanvas.SetMap): force a redraw in all cases because
1364            FitMapToWindow doesn't always do it.
1365            (MapCanvas.ZoomFactor): Add an optional parameter, center, to
1366            specify the point to move into the center of the window
1367            (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
1368            dragged, zoon in/out by a factor of 2
1369            (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
1370            index, i.e. reversed drawing order) so that objects appearing to
1371            be in from of others are selected first. This is probably mostly
1372            relevant for point shapes where the symbols used may overlap
1373    
1374            * Thuban/Model/session.py (create_empty_session): Unset the
1375            modified bit before returning it
1376    
1377            * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
1378            create_empty_session session to create the new, empty session.
1379    
1380            * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
1381            the tool bitmaps.
1382            (MainWindow.OnClose, MainWindow.save_modified_session): Separate
1383            the code that asks whether the session should be saved into the
1384            new method save_modified_session.
1385            (MainWindow.OpenSession, MainWindow.NewSession): Use the new
1386            method to save modified session here too.
1387    
1388    2001-09-11  Bernhard Herzog  <[email protected]>
1389    
1390            * setup.py (InnoIconItem): fix typo
1391    
1392            (thuban_bdist_inno.run):
1393            (bdist_inno.run): Move the decision not to create symlinks on
1394            non-nt platforms to thuban_bdist_inno and do it unconditinally
1395            since we never want to create the symlinks here
1396    
1397    2001-09-10  Bernhard Herzog  <[email protected]>
1398    
1399            * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
1400            identify view immediately
1401    
1402            * Thuban/UI/controls.py: New file with two classes RecordListCtrl
1403            and SelectableRecordListCtrl that implement the code shared by the
1404            identify view and the label dialog
1405    
1406            * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
1407            new class RecordListCtrl
1408    
1409            * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
1410            return value of GetValue is None instead of using it as a boolean
1411            directly so that Zero numbers are handled properly.
1412            (LabelListCtrl): Derive from the new class
1413            SelectableRecordListCtrl
1414    
1415            * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
1416            (Proj4Dialog.dialogLayout): Make the window resizable and set the
1417            size of the text control explicitly to make the sizers work on
1418            both Windows and X.
1419    
1420    2001-09-07  Bernhard Herzog  <[email protected]>
1421    
1422            * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
1423            that can limit the search to the currently selected layer.
1424            (MapCanvas.SelectShapeAt): Make sure that the currently selected
1425            layer stays selected even when no shape is found
1426            (MapCanvas.FitRectToWindow): If the rect has zero with or zero
1427            height do nothing (avoids zero division errors)
1428    
1429    2001-09-06  Bernhard Herzog  <[email protected]>
1430    
1431            * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
1432            Correct the spelling of SessionTreeCtrl. dabbrev is too damn
1433            convenient :-)
1434            (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
1435            a new instvar layer_to_item to map layers to tree items
1436            (SessionTreeCtrl.layer_selected): Select the appropriate tree item
1437            to match the current selection in the interactor
1438    
1439            * Thuban/UI/interactor.py (Interactor.SelectedLayer):
1440            (Interactor.HasSelectedLayer): New methods to query the current
1441            selection
1442    
1443            * Thuban/UI/mainwindow.py (MainWindow.current_layer):
1444            (MainWindow.has_selected_layer): Simply call the appropriate
1445            interactor method
1446    
1447            * Thuban/UI/mainwindow.py (MainWindow.__init__):
1448            (MainWindow.LayerShowTable):
1449            (MainWindow.identify_view_on_demand): Store the interactor in an
1450            instvar and use that reference instead of going through main.app
1451    
1452            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1453            * Thuban/UI/application.py (ThubanApplication.OnInit):
1454            * Thuban/UI/main.py (main): Create the session tree view in main
1455            with the new mainwindow method ShowSessionTree and not directly
1456            the application's OnInit method
1457    
1458            * Thuban/UI/tree.py (myTreeCtrlPanel):
1459            (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
1460            TreeCtrl isntead of a panel. This affects most method since we now
1461            refer to self instead of self.tree
1462            (SessionTreeView): New class implementing a non-modal dialog
1463            showing the session tree.
1464    
1465            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
1466            layer to the tableview dialog.
1467    
1468            * Thuban/UI/tableview.py: Add some doc-strings
1469            (TableGrid):
1470            (TableGrid.OnRangeSelect):
1471            (TableGrid.OnSelectCell):
1472            (TableFrame.__init__):
1473            (TableFrame.row_selected):
1474            Selecting rows in the grid view now updates the selected shapes
1475            through the TableFrame. To achieve this we derive TableGrid from
1476            Publisher and introduce the message type ROW_SELECTED which the
1477            TableFrame subscribes to and which is issued by OnRangeSelect and
1478            OnSelectCell
1479    
1480            (DataTable.SelectRow): Removed because it's no longer needed in
1481            the row/shape selection scheme
1482    
1483            * Thuban/UI/dialogs.py: New file implementing common classes for
1484            dialogs
1485    
1486            * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
1487            the SELECTED_SHAPE message anymore. This is now handled by the
1488            parent.
1489            (TableGrid.select_shape): Only update the selection if the shape
1490            is not None.
1491            (TableFrame): Inherit from the new NonModalDialog class.
1492            (TableFrame.__init__, TableFrame.select_shape): Handle the
1493            SELECT_SHAPE message.
1494            (TableFrame.OnClose): Extend the inherited method to unsubscribe
1495            SELECT_SHAPE
1496    
1497            * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
1498            (MainWindow.add_dialog):
1499            (MainWindow.dialog_open):
1500            (MainWindow.remove_dialog):
1501            (MainWindow.get_open_dialog): New methods to maintain a dictionary
1502            of opened non-modal dialogs.
1503    
1504            (MainWindow.__init__): Initialize the new non-modal dictionary
1505            management code
1506            (MainWindow.LayerShowTable): maintain separate dialogs for each
1507            table using the non-modal dialog management code to only open a
1508            view once for each table.
1509    
1510            (MainWindow.IdentifyTool):
1511            (MainWindow.__init__):
1512            (MainWindow.identify_view_on_demand): Don't open the identify view
1513            in IdentifyTool anymore. This will be done automatically by the
1514            new method identify_view_on_demand which handles the
1515            SELECTED_SHAPE message so that the identify view will be opened on
1516            demand
1517    
1518            * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
1519            the interactor argument. The SELECTED_SHAPE message is now handled
1520            by the parent.
1521            (IdentifyView.__init__): Add the interactor argument so that we
1522            can handle the SELECTED_SHAPE message here
1523            (IdentifyView.selected_shape): New method to handle the
1524            SELECTED_SHAPE messages
1525    
1526            * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
1527            NonModalDialog class
1528            (IdentifyView.OnClose): Extend the inherited version to
1529            unsubscribe SELECT_SHAPE
1530    
1531            * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
1532    
1533    2001-09-05  Bernhard Herzog  <[email protected]>
1534    
1535            * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1536    
1537            * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1538            interactor to pass through to the MapCanvas
1539    
1540            * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1541            argument to the MainWindow constructor to get rid of the ugly hack
1542            that made main.app available early just so that the mapcanvas
1543            could access the interactor object.
1544    
1545    2001-09-04  Bernhard Herzog  <[email protected]>
1546    
1547            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
1548            that runs a modal message box
1549            (MainWindow.OnClose): Use the new method
1550            (MainWindow.RemoveLayer): Just do nothing in case no layer is
1551            selected. The command should be grayed out anyway, so there's no
1552            need to pop up a message box.
1553            (MainWindow.AddLayer): Pop up a message box with an error message
1554            if the shape file can't be opened
1555    
1556            * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
1557            immediately. This will cause an exception in case the file can't
1558            be opened and we can display an appropriate message.
1559    
1560            * MANIFEST.in: Add extensions/pyprojection/LICENSE
1561    
1562            * setup.py (thuban_bdist_rpm): New class implementing a Thuban
1563            specific bdist_rpm command.
1564    
1565            * Thuban/UI/main.py: Catch ImportError exceptions when importing
1566            the locale module because it may not be available on some
1567            installations.
1568    
1569            * extensions/pyprojection/LICENSE: Copy of the license text in
1570            Projection.i. Having it in a separate file makes it easier to
1571            refer to license text in e.g. RPMs
1572    
1573    2001-09-03  Bernhard Herzog  <[email protected]>
1574    
1575            * setup.py: use wx-config instead of wxgtk-config because it's
1576            more generic
1577    
1578            * setup.py (ThubanInstall.get_outputs): Add the symlink in
1579            <prefix>/bin to the outputs
1580            (ThubanInstall.link_file): New method to link files. We need this
1581            because the standard copy_files refuses to link non-existing
1582            files.
1583            (ThubanInstall.run): Remove the leading install root from the
1584            script filename if an install root was specified and use the new
1585            link_file method
1586    
1587            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1588            the window when the first layer is added to the map.
1589    
1590            * setup.py (ThubanInstall.run): Honor the build root (self.root)
1591            when linking thuban.py to <prefix>/bin
1592    
1593  2001-08-31  Bernhard Herzog  <[email protected]>  2001-08-31  Bernhard Herzog  <[email protected]>
1594    
1595          * setup.py: In the setup call, the install parameters shouldn't          * setup.py: In the setup call, the install parameters shouldn't
# Line 28  Line 1620 
1620          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
1621          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
1622          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
1623            
1624          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
1625          installer          installer
1626    

Legend:
Removed from v.16  
changed lines
  Added in v.495

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26