/[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 210 by bh, Tue Jul 9 16:17:38 2002 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]>  2002-07-09  Bernhard Herzog  <[email protected]>
928    
929          * setup.py: In the setup call, use the thuban homepage as the          * setup.py: In the setup call, use the thuban homepage as the
# Line 52  Line 978 
978          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
979          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
980    
981  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
982    
983          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
984          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 281  Line 1207 
1207          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1208          position in the statusbar          position in the statusbar
1209    
1210  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1211    
1212          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1213    
1214  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1215            
1216          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1217    
1218          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1219    
1220          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1221    
1222  2002-04-21      Jan-Oliver Wagner <[email protected]>          * 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          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1228    
1229          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1230    
1231          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1232          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1233    
1234  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1235    
1236          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1237          saving _new_ sessions          saving _new_ sessions
# Line 406  Line 1333 
1333    
1334          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1335          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1336    
1337  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1338    
1339          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1340          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1341    
1342          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1343          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1344          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1345          too.          too.
# Line 523  Line 1449 
1449          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
1450          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
1451    
1452          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1453          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
1454          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
1455          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
1456          the application's OnInit method          the application's OnInit method
# Line 540  Line 1466 
1466          layer to the tableview dialog.          layer to the tableview dialog.
1467    
1468          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
1469          (TableGrid):          (TableGrid):
1470          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
1471          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
1472          (TableFrame.__init__):          (TableFrame.__init__):
# Line 607  Line 1533 
1533  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
1534    
1535          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1536            
1537          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1538          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
1539            
1540          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1541          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
1542          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 657  Line 1583 
1583          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
1584          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
1585          link_file method          link_file method
1586            
1587          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1588          the window when the first layer is added to the map.          the window when the first layer is added to the map.
1589    
# Line 694  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.210  
changed lines
  Added in v.495

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26