/[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 285 by bh, Tue Aug 27 14:08:43 2002 UTC revision 523 by jan, Wed Mar 12 17:08:23 2003 UTC
# Line 1  Line 1 
1    2003-03-12  Jan-Oliver Wagner <[email protected]>
2    
3            * HOWTO-Release: New. Information on the steps for releasing
4            a new version of Thuban.
5    
6    2003-03-11  Jonathan Coles   <[email protected]>
7    
8            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
9            Use True instead of true.
10            (Classifier): Should have a single panel in which all the controls lie.
11    
12            * Thuban/UI/proj4dialog.py: Add normal border.
13    
14            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
15    
16            * Thuban/UI/mainwindow.py: Use True instead of true.
17    
18            * setup.py: Update some definitions to use wxWindows2.4 files
19    
20            * Data/iceland_sample_class.thuban: Fixed file so that the
21            field_type information is present.
22    
23    2003-03-10  Jonathan Coles   <[email protected]>
24    
25            * Thuban/UI/classifier.py (Classifier.__init__): Make the
26            field type label grow so that when the text changes the
27            size is updated correctly. This may be a wxWindows bug.
28    
29    2003-03-10  Jonathan Coles   <[email protected]>
30    
31            * Thuban/UI/application.py: Changed SESSION_CHANGED to
32            SESSION_REPLACED.
33    
34            * Thuban/UI/classifier.py: Wrap text with _().
35            (ClassGrid.CreateTable): Set dimensions and size hints here,
36            instead of in Reset, so we only set the size once.
37    
38            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
39    
40            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
41            Call Close() instead of Shutdown().
42    
43            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
44    
45            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
46            Go back to using OnClose() instead of Shutdown().
47    
48    2003-03-10  Jonathan Coles   <[email protected]>
49    
50            * Thuban/UI/classifier.py (Classifier): SelectField() needed
51            to know the old field index as well as the new one.
52    
53    2003-03-10  Jonathan Coles   <[email protected]>
54    
55            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
56            to correctly set the table information and call this from
57            __init__ and from _OnFieldSelect so that all the information
58            is up to date when the dialog opens and when a field is changed.
59    
60    2003-03-10  Jonathan Coles   <[email protected]>
61    
62            * Thuban/Model/classification.py (Classification): Don't use
63            layer's message function directly, use the ClassChanged() method
64            when then classification changes. SetField/SetFieldType/SetLayer
65            must keep the information about field name and field type in
66            sync when an owning layer is set or removed.
67    
68            * Thuban/Model/layer.py: Added ClassChanged() so that the
69            classification can tell the layer when its data has changed.
70            (Layer.SetClassification): Accepts None as an arguement to
71            remove the current classification and correctly handles
72            adding a new classification.
73    
74            * Thuban/Model/load.py: Comment out print statement
75    
76            * test/test_classification.py, test/test_save.py: New and
77            improved tests.
78    
79    2003-03-07  Jonathan Coles   <[email protected]>
80    
81            * Thuban/Model/classification.py: Implemented __copy__ and
82            __deepcopy__ for ClassGroup* and ClassGroupProperites so
83            they can easily be copied by the classifier dialog.
84            (ClassGroupProperites.__init__): The default line color should
85            have been Color.Black.
86    
87            * Thuban/UI/classifier.py: Setting and Getting table values now
88            uses a consistent set of functions.
89            (Classifier): Now non-modal. Has field type label which changes
90            as the field changes. Keep track of buttons in a list so that
91            we can enable/disable the buttons when the None field is selected.
92            (SelectPropertiesDialog): Add buttons to make the colors transparent.
93    
94            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
95            does what OnClose did, but can be called by the application to
96            close a window. Needed when a session changes, and we have to
97            close the classifier windows.
98    
99            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
100            Shuts down open dialogs. Used when a new session is created
101            or a session is opened.
102            (MainWindow.SaveSession): Should only call application.SaveSession()
103            if we don't call SaveSessionAs first.
104            (MainWindow.Classify): Allow different classifier dialogs for
105            different layers.
106    
107            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
108            the parent class handle it. Add Shutdown() to unsubscibe from
109            event notification and call the parent Shutdown(). This was
110            necessary so the application can close the tree window.
111    
112    2003-03-06  Jonathan Coles   <[email protected]>
113    
114            * Thuban/Model/classification.py: Minor documentation changes,
115            Addition of __eq__ and __ne__ methods.
116            (Classification.SetLayer): prevent recursion between this method
117            and Layer.SetClassification().
118    
119            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
120    
121            * Thuban/Model/layer.py (SetClassification): prevent recursion
122            between this method and Classification.SetLayer().
123    
124            * test/test_classification.py, test/test_load.py,
125            test/test_session.py: Fixed and added tests for the classification
126            classes.
127    
128    2003-03-06  Bernhard Herzog  <[email protected]>
129    
130            * Thuban/UI/classifier.py (ClassGrid.__init__)
131            (ClassGrid.CreateTable): Move the SetSelectionMode call to
132            CreateTable because otherwise it triggers an assertion in
133            wxPython/wxGTK 2.4.
134    
135    2003-03-05  Jonathan Coles   <[email protected]>
136    
137            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
138    
139            * Thuban/Model/load.py: import FIELDTYPE constants from table.
140    
141            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
142    
143            * Thuban/Model/table.py: Put FIELDTYPE constants back.
144    
145    2003-03-05  Jonathan Coles   <[email protected]>
146    
147            * Thuban/UI/classifier.py: Added class documentation.
148            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
149            Store just the groups in the table and generate the other
150            column information when it is requested. Add "None" field
151            to pull-down to select no classification.
152    
153            * Thuban/common.py: Moved FIELDTYPE constants from table.py
154            (Str2Num): Only catch ValueError exceptions.
155    
156            * Thuban/Model/classification.py: Class documentation. Renaming
157            of methods with Stroke to Line. Groups are stored in a single
158            list with the default as the first element. Groups are searched
159            in the order they appear in the list.
160    
161            * Thuban/Model/color.py: Documentation.
162    
163            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
164            the kind of data represented by a field.
165    
166            * Thuban/Model/load.py (ProcessSession): Use proper string
167            conversion function; fixes RTbug #1713.
168    
169            * Thuban/Model/save.py (Saver): Store field type information.
170    
171            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
172            (Table): Add field_info_by_name() to retrieve field information
173            by specifying the field name, not the number.
174    
175            * Thuban/UI/mainwindow.py: Function name changes.
176    
177            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
178            get the layer classification once. Don't try to classify
179            values when the field is None: just use the default properties.
180    
181            * Thuban/UI/view.py: Function name changes.
182    
183            * Doc/thuban.dtd: Add field_type attribute to a classification.
184    
185    2003-03-04  Bernhard Herzog  <[email protected]>
186    
187            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
188            the fill and stroke layer attributes optional with suitable
189            default values. Add the stroke_width layer attribute. Use correct
190            syntax for empty elements. Make the attribute list for labels
191            refer to the label element.
192    
193    2003-03-04  Bernhard Herzog  <[email protected]>
194    
195            * setup.py (thuban_build_py.build): Add a comment about distutils in
196            Python 2.3 containing some of the functionality we implement in
197            setup.py ourselves.
198    
199            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
200            before the selection mode. Doing it the other way round triggers
201            an assertion in wxWindows.
202    
203            * Thuban/Model/save.py (escape): Fix typo in doc-string
204    
205            * Thuban/Model/classification.py: Remove unnecessary wxPython
206            import
207    
208    2003-03-04  Jonathan Coles   <[email protected]>
209    
210            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
211            Parameter 'value' should default to None.
212    
213            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
214            the class attribute __classification is now private.
215    
216            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
217            Classifier to ClassGrid. Added support for removing selected rows,
218            which including code for keeping track of when cells are selected,
219            and deselected.
220            (ClassTable): Support for added/removing rows. Fixed a problem
221            with __ParseInput whereby it would not allow strings (only numbers)
222            to be entered.
223            (Classifier): Added button and supporting code for removing
224            selected rows.
225    
226    2003-02-27  Jonathan Coles   <[email protected]>
227    
228            * Thuban/common.py: Moved color conversion functions into
229            Thuban/UI/common.py.
230            (Str2Num): Now converts the float (not the string) to a long/int
231            so that an exception isn't thrown.
232    
233            * Thuban/UI/common.py: Common functions used in several UI modules
234    
235            * Thuban/Model/classification.py: Changed the class hierarchy
236            so that a Classification consists of Groups which return
237            Properties when a value matches a Group.
238    
239            * Thuban/Model/layer.py: Fixed name resolution problem.
240    
241            * Thuban/Model/load.py: Use new Classification and Group functions.
242    
243            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
244            failure.
245            (Saver.write_classification): Use new Classification and Group
246            functions.
247    
248            * Thuban/UI/classifier.py: Changes to use new Classification and Group
249            functions. Fix to create a tuple with a single value instead of
250            simply returning the value.
251    
252            * Thuban/UI/renderer.py: Use new Classification and Group functions.
253            Use common.py functions.
254    
255            * Thuban/UI/tree.py: Use common.py functions.
256            
257            * test/test_classification.py: Use new Classification and Group
258            classes.
259    
260    2003-02-24  Jonathan Coles   <[email protected]>
261    
262            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
263            functions from Thuban color objects to wxWindow colour objects.
264    
265            * Thuban/Model/classification.py (Classification): Renamed
266            GetProperties() to GetClassData(). Used the new iterator
267            in TreeInfo().
268            (ClassIterator): Iterator implementation to iterate over the
269            ClassData objects in a classification object.
270    
271            * Thuban/Model/save.py (Saver.write_classificaton): Uses
272            the new iterator to save the classification information.
273    
274            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
275            for changing the stroke and fill colors and previewing the
276            changes.
277    
278            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
279            MainWindow.SaveSessionAs): Text string changes so the dialogs
280            have more meaningful titles.
281    
282            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
283            Classification method name from GetProperties to GetClassData.
284    
285            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
286            instead of accessing now non-existent class variables.
287    
288    2003-02-24  Bernhard Herzog  <[email protected]>
289    
290            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
291            unneeded Shape() call. Rendering is substantially faster without
292            it and it avoids some problems with broken shape files.
293    
294    2003-02-20  Frank Koormann   <[email protected]>
295    
296            Force minimal size of identify and label dialogs. The autosizing
297            looked too ugly.
298    
299            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
300            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
301            Set size of listctrl.
302            * Thuban/UI/identifyview.py (IdentifyView.__init__):
303            Set size of dialog.
304    
305    2003-02-19  Jonathan Coles   <[email protected]>
306    
307            * test/test_classification.py, test/test_layer.py,
308            test/test_load.py, test/test_map.py, test/test_session.py:
309            Updated the tests to use the new functions that are in the
310            respective classes.
311    
312            * Thuban/Model/classification.py (Classification):
313            Uses the new ClassData* classes. Modification messages are
314            passed up to the parent layer (if it exists).
315            (ClassData): New class to encapsulate the common data in each
316            classification property.
317            (ClassDataDefault): Represents the Default class. data.
318            (ClassDataPoint): Represents a single class. data point
319            (ClassDataRange): Represents a class. range
320            (ClassDataMap): Represents a class. map (unused).
321    
322            * Thuban/Model/color.py: Added Color.None to represent something
323            with no color. Color.Black represents the color black.
324            (NoColor): Helper class derived from Color to represent something
325            with no color.
326    
327            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
328            stroke_width attributes. Made the 'classification' attribute private.
329            New methods for setting/getting the classification.
330    
331            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
332            to get the classifcation and use the new ClassData* classes to
333            hold the classification data. Use Str2Num to convert numbers
334            properly.
335    
336            * Thuban/Model/save.py (Saver): Use new Color and Classification
337            methods
338    
339            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
340            custom grid.
341            (ClassTable): Support for editing Values and Labels and for
342            changing what type (point or range) of data is stored in each
343            property based on how the user enters the data.
344            (Classifier): Support for saving the new classifications and
345            launching the dialog to edit a property.
346            (SelectPropertiesDialog): New class for editing the visual
347            properties of a classification (stroke color, width, and fill color)
348            (ClassPreviewer): Took the Draw method from ClassRenderer and
349            made most of it into this new class. Intend to use this class in
350            the SelectPropertiesDialog for previewing changes.
351    
352            * Thuban/UI/renderer.py: Use new Color and Classification methods.
353    
354            * Thuban/UI/tree.py: Formatting changes.
355    
356            * Doc/thuban.dtd: Add 'label' element
357    
358            * Thuban/common.py: New. Contains common routines used throughout
359            the code.
360            (Str2Num): Takes a string and converts it to the "best" type of
361            number.
362    
363    2003-02-14  Bernhard Herzog  <[email protected]>
364    
365            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
366            dragging flag is always set to 0 even when the tool implementation
367            raises an exception
368    
369    2003-02-11  Bernhard Herzog  <[email protected]>
370    
371            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
372            method to create a splash screen.
373            (ThubanApplication.ShowMainWindow): New. Show the main window.
374            Needed so the splash screen can display the mainwindow
375            (ThubanApplication.OnInit): Call the
376            new splash_screen method to determine whether the application
377            should display a splash screen. If it displays a splash screen do
378            not immediately show the main window.
379    
380    2003-02-11  Jonathan Coles  <[email protected]>
381    
382            * Thuban/Model/classification.py: Added import line to fix
383            feature conflicts between running on python2.2 and python2.1.
384    
385            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
386            onto the clinfo parameter, so removed the deepcopy().
387    
388    2003-02-10  Jonathan Coles  <[email protected]>
389    
390            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
391            Added element_open variable to track opening and closing of tags
392            so that tags that don't span more than one line are closed with
393            /> instead of </tag_name>. Use the GetDefault*() methods of
394            the Classification class.
395    
396            * Thuban/Model/classification.py (Classificaton): Added set and
397            get methods for the default data. The class also takes a layer
398            reference so that modification messages can be sent. Fixed the
399            methods to use the new ClassData class.
400            (ClassData): New class to encapsulate the classification data
401    
402            * Thuban/Model/layer.py (Layer): Remove the
403            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
404            SetDefault*() methods on the layer's classification object.
405            (Layer.__init__): Use the new SetDefault*() methods in the
406            Classification class.
407    
408            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
409            object instead of a dictionary.
410    
411            * Thuban/UI/classifier.py (ClassRenderer): New class to
412            draw the classifications in the dialog box's table.
413            (Classifier): Modified to use the ClassRenderer class.
414    
415            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
416            methods of the Classification class.
417    
418            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
419            of the ClassData class.
420    
421            * test/test_classification.py, test/test_layer.py,
422            test/test_map.py, test/test_session.py: Fix the tests to work
423            with the above code changes.
424    
425    2003-02-03  Jonathan Coles  <[email protected]>
426    
427            * Thuban/Model/classification.py (Classification): Added getNull()
428            to return the NullData reference
429    
430            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
431            Layer.SetStrokeWidth): Modified these functions to change the
432            null data in the classification rather than keep these values
433            directly in the Layer class. Menu options to change these values
434            work again.
435    
436    2003-01-28  Jonathan Coles  <[email protected]>
437    
438            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
439            Fixed crashing problem on some systems. Dialog box shows
440            classification data.
441    
442            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
443            Colors in the tree view.
444    
445            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
446            the tree info for classifications. Commented out unnecessary lines.
447    
448            * Thuban/Model/classification.py (Classification.TreeInfo): New
449            function to add information about the classification into the
450            tree view.
451    
452    2003-01-27  Jan-Oliver Wagner <[email protected]>
453    
454            * Thuban/__init__.py (_): New.
455    
456            * Thuban/Model/classification.py, Thuban/Model/extension.py,
457            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
458            Thuban/Model/session.py, Thuban/UI/application.py,
459            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
460            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
461            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
462            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
463            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
464    
465    2003-01-27  Jonathan Coles  <[email protected]>
466    
467            * Thuban/Model/layer.py: Classification initialization calls.
468    
469            * Thuban/Model/classification.py: Created class to encapsulate
470            a layer classification. Supports specific data points and
471            ranges.
472    
473            * Thuban/Model/load.py: Added support for loading classification
474            information.
475    
476            * Thuban/Model/save.py: Added support for saving classification
477            information.
478    
479            * Thuban/UI/classifier.py: Initial class for a dialog box for
480            specifying classification information.
481    
482            * Thuban/UI/mainwindows.py: Support for opening the classifier
483            dialog.
484    
485            * Thuban/UI/renderer.py: Support for drawing a layer with the
486            classification information.
487    
488            * Data/iceland_sample_class.thuban: iceland_sample with
489            classification data.
490    
491            * test/test_classification: Tests for the Classification class.
492    
493    2002-12-09  Bernhard Herzog  <[email protected]>
494    
495            * test/test_command.py: New. Tests for the command classes.
496    
497            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
498            (Command.IsTool): New method to distinguish between command
499            switching tools and other commands.
500    
501            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
502            the tool to avoid direct assignments to instance variables
503            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
504            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
505            change the tool
506    
507            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
508            active tool's command turns insensitive, disable the tool.
509            (_tool_command): Use the new ToolCommand class
510    
511            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
512            SelectTool method to change the tool
513            (iconfile): Use the ToolCommand class
514    
515    2002-12-03  Bernhard Herzog  <[email protected]>
516    
517            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
518            the case of selected items that are not children of Layers or Maps
519            properly. Previously this bug would trigger an assertion in
520            wxWindows.
521    
522    2002-11-06  Frank Koormann  <[email protected]>
523    
524            * Thuban/UI/mainwindow.py: Altered the order of tools in the
525            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
526            Full Extent).
527    
528    2002-10-23  Bernhard Herzog  <[email protected]>
529    
530            * setup.py (setup call): version now 0.1.3
531    
532            * MANIFEST.in: Add the files in test/
533    
534            * test/README: Add note about tests requiring the iceland data
535    
536            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
537            copyright notice.
538    
539    2002-10-18  Bernhard Herzog  <[email protected]>
540    
541            * test/test_map.py
542            (TestMapWithContents.test_projected_bounding_box): Use an explicit
543            epsilon.
544    
545            * test/support.py (FloatComparisonMixin.assertFloatEqual)
546            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
547            message if the assertion fails and don't return the return value
548            of self.assert_. In assertFloatSeqEqual the return meant that not
549            all items of the sequence were compared.
550    
551    2002-09-20  Bernhard Herzog  <[email protected]>
552    
553            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
554    
555            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
556    
557            * test/test_map.py (TestMapWithContents.test_tree_info): Create
558            the string with the bounding box on the fly because of platform
559            differences in the way %g is handled.
560    
561            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
562            DBFfile too because Thuban layers can't yet cope missing DBF
563            files.
564    
565    2002-09-20  Bernhard Herzog  <[email protected]>
566    
567            * test/test_menu.py: Use initthuban instead of
568            add_thuban_dir_to_path to initialize Thuban.
569    
570            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
571            Mixin class for float comparisons
572            (SubscriberMixin): New. Mixin class to test messages sent through
573            the Connector class
574    
575            * test/README: Fix a typo and add the -v flag to the command for
576            individual tests
577    
578            * test/test_session.py: New. Test cases for Thuban.Model.session
579    
580            * test/test_proj.py: New. Test cases for Thuban.Model.proj
581    
582            * test/test_map.py: New. Test cases for Thuban.Model.map
583    
584            * test/test_layer.py: New. Test cases for Thuban.Model.layer
585    
586            * test/test_label.py: New. Test cases for Thuban.Model.label
587    
588            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
589    
590            * test/test_color.py: New. Test cases for Thuban.Model.color
591    
592            * test/test_base.py: New. Test cases for Thuban.Model.base
593    
594    2002-09-13  Bernhard Herzog  <[email protected]>
595    
596            * Thuban/Model/session.py (Session.forwarded_channels): Forward
597            the CHANGED channel too.
598    
599            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
600            CHANGED channel too.
601            (Map.__init__): Call the Modifiable constructor as well.
602    
603            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
604            event if the modified flag changes.
605            (Modifiable.changed): Tweak the doc-string.
606    
607            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
608            (MainWindow.set_position_text): Put the code that puts the text
609            with the mouse position into the status bar into the new method
610            set_position_text so that it can overwritten in derived classes.
611    
612    2002-09-12  Bernhard Herzog  <[email protected]>
613    
614            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
615            message box on the main window.
616    
617    2002-09-11  Bernhard Herzog  <[email protected]>
618    
619            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
620            the 'E' because it's less likely to interfere with other menu
621            entries.
622            (MainWindow.build_menu): remove an incorrect comment.
623    
624    2002-09-10  Bernhard Herzog  <[email protected]>
625    
626            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
627            (_tool_command): Add sensitive parameter
628            (_has_visible_map): Sensitivity callback to tools and other
629            commands that require a visible map. Use it in map_zoom_in_tool,
630            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
631            and map_full_extent
632    
633    2002-09-06  Bernhard Herzog  <[email protected]>
634    
635            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
636            VIEW_POSITION
637    
638    2002-09-04  Frank Koormann  <[email protected]>
639    
640            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
641    
642    2002-09-02  Bernhard Herzog  <[email protected]>
643    
644            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
645            wxWindows already and our implementation doesn't work correctly
646            with wxGTK 2.3:
647            (MapCanvas.__init__): Remove the instance variable
648            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
649            be drawin
650            (MapCanvas.OnIdle): Removed.
651    
652            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
653            a parameter to determine the size of the rectangle.
654            (MapCanvas.find_shape_at): Create the box around the point on a
655            layer by layer basis and make the size depend on the shape type.
656            This solves a problem with the selection of point shapes at the
657            border of the layer's bounding box
658    
659    2002-08-30  Bernhard Herzog  <[email protected]>
660    
661            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
662            for the sensitivity  of remove layer.
663            (_can_remove_layer): New. Sensitivity callback for remove layer
664            (Command layer_remove): Use _can_remove_layer
665    
666            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
667            determine whether a given layer can be deleted.
668    
669            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
670            (MapCanvas.do_redraw): Get rid of the unused update_region
671            instance variable
672    
673            * Thuban/UI/view.py: Add/update some doc-strings.
674    
675            * test/: new subdirectory with a bunch of unit tests.
676    
677            * test/README, test/test_table.py, test/test_save.py,
678            test/test_menu.py, test/test_load.py: Initial set of tests and
679            brief instructions on how to run them
680    
681    2002-08-29  Bernhard Herzog  <[email protected]>
682    
683            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
684            arcs with multiple parts.
685    
686            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
687            Handle degenrate rectangles.
688    
689            * Thuban/Model/table.py: Make writing records work correctly:
690            (Table.__init__): Keep track of whether the DBF is open for
691            writing
692            (Table.write_record): Open the DBF file for writing when necessary
693    
694  2002-08-27  Bernhard Herzog  <[email protected]>  2002-08-27  Bernhard Herzog  <[email protected]>
695    
696          * Thuban/Model/table.py (Table.write_record, Table.__init__): Open          * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
# Line 29  Line 722 
722    
723          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
724          records.          records.
725          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
726    
727          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
728          into the underlying table.          into the underlying table.
# Line 67  Line 760 
760          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
761          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
762    
763  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
764    
765          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
766          tree window already open          tree window already open
# Line 195  Line 888 
888          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
889          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
890          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
891          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
892          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
893    
894          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 256  Line 949 
949          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
950          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
951          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
952          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
953          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
954    
955  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 337  Line 1030 
1030          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1031          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1032    
1033  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1034    
1035          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1036          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 566  Line 1259 
1259          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1260          position in the statusbar          position in the statusbar
1261    
1262  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1263    
1264          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1265    
1266  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1267            
1268          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1269    
1270          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1271    
1272          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1273    
1274            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1275            box
1276    
1277  2002-04-21      Jan-Oliver Wagner <[email protected]>  2002-04-21  Jan-Oliver Wagner <[email protected]>
1278    
1279          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1280    
1281          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1282    
1283          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1284          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1285    
1286  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1287    
1288          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1289          saving _new_ sessions          saving _new_ sessions
# Line 691  Line 1385 
1385    
1386          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1387          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1388    
1389  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1390    
1391          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1392          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1393    
1394          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1395          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1396          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1397          too.          too.
# Line 808  Line 1501 
1501          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
1502          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
1503    
1504          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1505          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
1506          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
1507          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
1508          the application's OnInit method          the application's OnInit method
# Line 825  Line 1518 
1518          layer to the tableview dialog.          layer to the tableview dialog.
1519    
1520          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
1521          (TableGrid):          (TableGrid):
1522          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
1523          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
1524          (TableFrame.__init__):          (TableFrame.__init__):
# Line 892  Line 1585 
1585  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
1586    
1587          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1588            
1589          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1590          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
1591            
1592          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1593          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
1594          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 942  Line 1635 
1635          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
1636          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
1637          link_file method          link_file method
1638            
1639          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1640          the window when the first layer is added to the map.          the window when the first layer is added to the map.
1641    
# Line 979  Line 1672 
1672          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
1673          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
1674          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
1675            
1676          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
1677          installer          installer
1678    

Legend:
Removed from v.285  
changed lines
  Added in v.523

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26