/[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 252 by bh, Tue Jul 30 14:18:59 2002 UTC revision 634 by jonathan, Wed Apr 9 15:41:58 2003 UTC
# Line 1  Line 1 
1    2003-04-09  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/classgen.py: Modifications to allow simple
4            addition and selection of new color schemes.
5            (MonochromaticRamp): New. Generates a ramp between two colors.
6            (RedRamp): New. Generates a ramp of all red.
7            (GreenRamp): New. Generates a ramp of all green.
8            (BlueRamp): New. Generates a ramp of all blue.
9    
10    2003-04-09  Jonathan Coles   <[email protected]>
11    
12            * Thuban/Model/classification.py (Classification.__deepcopy__):
13            Need to copy over field and fieldType attributes.
14    
15            * Thuban/Model/table.py (Table.field_range): New. Retrive the
16            maximum and minimum values over the entire table for a given
17            field.
18            (Table.GetUniqueValues): New. Retrieve all the unique values
19            in the table for a given field.
20    
21            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
22            (GenUniquePanel): New. Controls to allow the user to select
23            which unique field values they would like in the classification.
24            (CustomRampPanel): Code that was in ClassGenDialog that allows
25            the user to select the properties for a custom ramp.
26            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
27    
28            * Thuban/UI/classifier.py: Removed a lot of debugging code.
29            (Classifier._SetClassification): Callback method so that the
30            class generator can set the classification in the grid.
31            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
32            editing of a group properties class into a wxWindows control.
33    
34            * Thuban/UI/dock.py: It was decided that if the user closes
35            a dockable window the window should simply hide itself. That
36            way if the user wants to show the dock again it appears in the
37            same place as it was when it was closed.
38            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
39            (DockableWindow._OnButtonClose): Hide the window instead of
40            destroying it.
41            (DockableWindow._OnClose): Hide the window instead of
42            destroying it.
43    
44            * Thuban/UI/legend.py (LegendTree): Use a private method to
45            consistently set the font and style of the text. Fixes RTbug #1786.
46    
47            * Thuban/UI/mainwindow.py: Import just the Classifier class.
48    
49    2003-04-07  Bernhard Herzog  <[email protected]>
50    
51            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
52            to the map module
53    
54    2003-04-07  Bernhard Herzog  <[email protected]>
55    
56            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
57            favor of ToggleSessionTree
58            (MainWindow.ToggleSessionTree): New method to toggle visibility of
59            the session tree.
60            (MainWindow.SessionTreeShown): New method to return whether the
61            session tree is currently shown.
62            (MainWindow.ToggleLegend): New method to toggle visibility of the
63            legend
64            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
65            LegendShown
66            (MainWindow.LegendShown): New method to return whether the legend
67            is currently shown.
68            (_method_command): Add checked parameter so we can define check
69            menu items
70            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
71            mainwindow methods.
72            (show_session_tree, show_legend commands): Removed.
73            (toggle_session_tree, toggle_legend commands): New commands to
74            toggle the visibility of the dialogs
75    
76    2003-04-07  Jonathan Coles   <[email protected]>
77    
78            * Thuban/UI/classgen.py: Fix Windows problem.
79    
80            * Thuban/UI/dock.py: Fix Windows problem.
81    
82            * Thuban/UI/mainwindow.py: Use False instead of false.
83            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
84    
85    2003-04-07  Jonathan Coles   <[email protected]>
86    
87            Since we now say that the order of the groups in a classification
88            matters, it makes sense to be able to manipulate that order. Most
89            of the changes to Thuban/Model/classification.py are to that end.
90    
91            * Thuban/Model/classification.py (Classification.AppendGroup,
92            Classification.InsertGroup, Classification.ReplaceGroup,
93            Classification.RemoveGroup, Classification.GetGroup): Do as the
94            names imply.
95            (Classification.FindGroup): This was called GetGroup, but GetGroup
96            takes an index, while FindGroup takes a value.
97            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
98            REFERENCE. Currently there is a cyclic reference between the layer
99            and its classification. If the classification doesn't need to know
100            its owning layer we can change this, since it may make sense to be
101            able to use the same classification with different layers.
102    
103            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
104    
105            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
106            not AddGroup()
107    
108            * Thuban/UI/classifier.py: Now that we can depend on the order in
109            a Classification and have methods to manipulate that order we don't
110            need to use our own data structures in the grid. We can simply make
111            the grid/table access the information they need from a copy of
112            the classification object.
113            (Classifier._OnCloseBtn): Event handler for when the user clicks
114            'Close'. This is needed so if the user applies changes and then
115            continues to change the table the user has the option of discarding
116            the most recent changes and keeping what they applied.
117    
118            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
119            into the same group.
120    
121            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
122            with a really old version of proj, PJ_VERSION won't even be defined.
123            If it isn't defined then just compile so that the function always
124            returns Py_False.
125    
126            * test/test_classification.py: Fix tests to use the renamed methods.
127            Still need to write tests for the new methods.
128    
129    2003-04-04  Jonathan Coles   <[email protected]>
130    
131            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
132            call to SetSelection out of the method and before the call
133            to __SelectField in __init__. This prevents a recursion of events
134            when _OnFieldSelect is triggered by the user.
135    
136    2003-04-04  Jonathan Coles   <[email protected]>
137    
138            * Thuban/Model/classification.py: Rename Color.None to
139            Color.Transparent.
140            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
141            Don't bother copying the color, since Colors are immutable.
142    
143            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
144            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
145            Thuban/UI/renderer.py, Thuban/UI/view.py:
146            Rename Color.None to Color.Transparent.
147        
148            * test/test_classification.py, test/test_load.py: Rename Color.None
149            to Color.Transparent.
150    
151    2003-04-04  Jonathan Coles   <[email protected]>
152    
153            * Thuban/Model/classification.py: Fix assert calls.
154            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
155            Copy the color parameter rather than hold onto a reference.
156    
157            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
158            the color object.
159            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
160            are sure there exists only one refernce to Color.None in the system.
161            This allows us to use 'is' rather than the comparision functions.
162            
163            * Thuban/Model/save.py: Fix assert calls.
164            
165            * Thuban/UI/classifier.py: Fix assert calls.
166            (ClassGrid._OnCellDClick): Call up to the classifier to open the
167            dialog to edit the groups properties.
168            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
169            correctly if a cell is resized.
170            (ClassTable.SetClassification): New. Changes the classification
171            that is in the table.
172            (ClassTable.__SetRow): Allow groups to be prepended.
173            (Classifier): New code for opening the EditProperties and
174            GenerateRanges dialogs.
175            (SelectPropertiesDialog.__GetColor): Only set the color in the
176            color dialog if the current color is not None.
177            
178            * Thuban/UI/dock.py: Fix assert calls.
179            
180            * Thuban/UI/legend.py: Fix assert calls.
181            
182            * Thuban/UI/renderer.py: Fix assert calls.
183            
184            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
185            classifications.
186            (GenRangePanel): Panel specific to range generation.
187            (GenSingletonPanel): Panel specific to singleton generation.
188            (ClassGenerator): Class responsible for actually generating
189            the classification from the data gathered in the dialog box.
190            (PropertyRamp): Generates properties whose values range from
191            a starting property to an ending property.
192    
193    2003-04-03  Bernhard Herzog  <[email protected]>
194    
195            * test/support.py (print_garbage_information): New function that
196            prints information about still connected messages and memory
197            leaks.
198            (run_suite): Removed.
199            (run_tests): New function for use as a replacement of
200            unittest.main in the test_* files. This one calls
201            print_garbage_information at the end.
202    
203            * test/runtests.py (main): Use support.print_garbage_information
204    
205            * test/test_layer.py: Use support.run_tests instead of
206            unittest.main so we get memory leak information
207            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
208            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
209            (TestLayerLegend.test_visibility): Call the layer's Destroy method
210            to fix a memory leak.
211    
212            * test/test_classification.py: Use support.run_tests instead of
213            unittest.main so we get memory leak information
214            (TestClassification.test_classification): Call the layer's Destroy
215            method to fix a memory leak.
216    
217    2003-04-02  Bernhard Herzog  <[email protected]>
218    
219            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
220            Handle the reference counts of the return value and errors in
221            PyArg_ParseTuple correctly.
222    
223            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
224            sure the filename is absolute to avoid problems when saving the
225            session again
226    
227            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
228    
229    2003-04-01  Jonathan Coles   <[email protected]>
230    
231            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
232            that there actually are points in the returned list of points
233            before trying to index into the list. The list may be empty if
234            the shape is a Null Shape.
235    
236    2003-04-01  Bernhard Herzog  <[email protected]>
237    
238            * test/test_map.py: Don't use from <module> import *
239    
240    2003-04-01  Jonathan Coles   <[email protected]>
241    
242            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
243            LAYER_LEGEND_CHANGED
244    
245            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
246            self.Destroy() to close the window after yesterday's changes.
247    
248            * test/test_map.py, test/test_session.py: Fix messages that
249            are sent from maps and layers.
250    
251    2003-03-31  Jonathan Coles   <[email protected]>
252    
253            * Thuban/UI/classifier.py: Commented out some debugging statements.
254            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
255            RTbug #1769.
256    
257            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
258            position (although position doesn't work yet under GTK).
259            (DockableWindow.Destroy): New. Called when the window must be
260            closed. Namely needed when the DockFrame closes and must close
261            its children.
262            (DockFrame): Listen for EVT_CLOSE and destroy all children.
263    
264            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
265            when then window is told to close.
266            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
267            comment in source for more info.
268    
269            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
270    
271            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
272            symmetry with other such methods.
273            (MainWindow.ShowLegend): Show the legend docked by default.
274    
275    2003-03-28  Jonathan Coles   <[email protected]>
276    
277            * Thuban/UI/classifier.py: Support for highlighting a specific
278            group within the grid when the classification dialog is opened.
279            Also contains a lot of debugging printouts which will later
280            be removed.
281    
282            * Thuban/UI/dock.py: Complete rework on the dock code so that
283            that it is fairly removed from the rest of the Thuban application.
284            It is easy to add new docks which the rest of the program having
285            to be aware of them.
286    
287            * Thuban/UI/legend.py: Modifications to support selecting a
288            specific group in the classification dialog. Changed how layers
289            are drawn when the layer is visible/invisible.
290    
291            * Thuban/UI/mainwindow.py: Removed legend specific code and
292            replaced it with calls to the new dock code.
293    
294            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
295            to check if scale > 0. Trying to track down a divide by zero.
296    
297    2003-03-26  Jonathan Coles   <[email protected]>
298    
299            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
300            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
301            now part of DockableWindow.
302            (LegendPanel.DoOnSelChanged): Select the current layer in the
303            map.
304            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
305            with the selected layer and/or group.
306    
307    2003-03-26  Jonathan Coles   <[email protected]>
308    
309            This putback contains the code for dockable windows. There is
310            no support in wxWindows as of this date for windows that can
311            attach themselves to other windows.
312    
313            The current model contains a DockableWindow which has a parent
314            window for when it is detached and a dock window that it puts
315            its contents in when it is docked. The contents of a DockableWindow
316            must be a DockPanel. DockPanel itself derives from wxPanel.
317    
318            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
319            message, not a LAYER_LEGEND_CHANGED message.
320    
321            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
322    
323            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
324            as one of the style properties for the fieldTypeText item to
325            be sure that its size is correct when the text changes.
326    
327            * Thuban/UI/dock.py: New. Classes for the DockPanel and
328            DockableWindow.
329    
330            * Thuban/UI/legend.py: Added some more buttons and made the
331            LegendPanel a DockPanel.
332    
333            * Thuban/UI/mainwindow.py: Added sash windows to the main window
334            and supporting functions for manipulating the sashes.
335            (MainWindow.ShowLegend): Create a DockableWindow with the
336            LegendPanel as the contents.
337    
338            * Thuban/UI/messages.py: Added DOCKABLE_* messages
339    
340            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
341            not LAYER_LEGEND_CHANGED, messages.
342    
343    2003-03-25  Jonathan Coles   <[email protected]>
344    
345            * setup.py: Added custom script bdist_rpm_build_script so that
346            when the rpm is built the path to wx-config is correct.
347    
348            * setup.cfg: Added line saying to use the custom build script
349    
350    2003-03-20  Jonathan Coles   <[email protected]>
351    
352            Initial implementation of the Legend.
353    
354            * Thuban/UI/legend.py: New. Creates a window that shows the map's
355            Legend information and allows the user to add/modify classifications
356            and how the layers are drawn on the map.
357    
358            * setup.py: New command 'build_docs' which currently uses
359            happydoc to generate html documentation for Thuban.
360    
361            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
362            Returns a string which is appropriately describes the group.
363    
364            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
365            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
366    
367            * Thuban/Model/map.py (Map): Rename messages and use new, more
368            specific, messages.
369    
370            * Thuban/Model/messages.py: New message to indicate that a layer's
371            data has changed (LAYER_CHANGED). New map messages to indicate
372            when layers have been added/removed/changed or if the stacking order
373            of the layers has changed.
374    
375            * Thuban/Model/session.py: Rename and use new messages.
376    
377            * Thuban/UI/classifier.py: Remember if any changes have actually
378            been applied so that if the dialog is cancelled without an application
379            of changes we don't have to set a new classification.
380            (ClassDataPreviewer): Pulled out the window specific code and put it
381            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
382            symbols on any DC.
383            
384            * Thuban/UI/mainwindow.py: New code to open the legend.
385    
386            * Thuban/UI/view.py: Use new message names.
387    
388    2003-03-19  Jonathan Coles   <[email protected]>
389    
390            * Thuban/UI/main.py (verify_versions): New. Checks the versions
391            of Python, wxPython, and some other libraries.
392    
393            * extensions/thuban/wxproj.cpp (check_version): Checks the given
394            version against what wxproj was compiled with.
395            (check_version_gtk): If wxproj was compiled with gtk then check
396            the given version against the version of the gtk library
397            currently being used.
398    
399    2003-03-14  Bernhard Herzog  <[email protected]>
400    
401            * test/test_command.py: Run the tests when the module is run as a
402            script
403    
404    2003-03-14  Bernhard Herzog  <[email protected]>
405    
406            Implement selection of multiple selected shapes in the same layer:
407    
408            - Introduce a new class to hold the selection. This basically
409              replaces the interactor which was nothing more than the
410              selection anyway. A major difference is of course that the new
411              selection class supports multiple selected shapes in one layer
412            
413            - Move the object that represents the selection from the
414              application to the canvas. The canvas is a better place than the
415              application because the selection represents which shapes and
416              layer of the map displayed by the canvas are selected and
417              affects how the map is drawn.
418    
419            - Make the selection and its messages publicly available through
420              the mainwindow.
421    
422            - The non-modal dialogs do not get a reference to the interactor
423              anymore as they can simply refer to their parent, the
424              mainwindow, for the what the interactor had to offer.
425    
426            * Thuban/UI/selection.py: New module with a class to represent the
427            selection.
428    
429            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
430            these unused messages
431    
432            * Thuban/UI/application.py (ThubanApplication.OnInit)
433            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
434            interactor is gone now.
435            (ThubanApplication.CreateMainWindow): There is no interactor
436            anymore so we pass None as the interactor argument for now for
437            compatibility.
438    
439            * Thuban/UI/view.py (MapCanvas.delegated_messages)
440            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
441            Unsubscribe, delegate messages according to the delegated_messages
442            class variable.
443            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
444            attributes from instance variables as described with the
445            delegated_methods class variable.
446            (MapCanvas.__init__): New instance variable selection holding the
447            current selection
448            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
449            pass them on to the renderer
450            (MapCanvas.SetMap): Clear the selection when a different map is
451            selected.
452            (MapCanvas.shape_selected): Simple force a complete redraw. The
453            selection class now takes care of only issueing SHAPES_SELECTED
454            messages when the set of selected shapes actually does change.
455            (MapCanvas.SelectShapeAt): The selection is now managed in
456            self.selection
457    
458            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
459            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
460            Unsubscribe, delegate messages according to the delegated_messages
461            class variable.
462            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
463            attributes from instance variables as described with the
464            delegated_methods class variable.
465            (MainWindow.__init__): The interactor as ivar is gone. The
466            parameter is still there for compatibility. The selection messages
467            now come from the canvas.
468            (MainWindow.current_layer, MainWindow.has_selected_layer):
469            Delegate to the the canvas.
470            (MainWindow.LayerShowTable, MainWindow.Classify)
471            (MainWindow.identify_view_on_demand): The dialogs don't need the
472            interactor parameter anymore.
473    
474            * Thuban/UI/tableview.py (TableFrame.__init__)
475            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
476            (LayerTableFrame.row_selected): The interactor is gone. It's job
477            from the dialog's point of view is now done by the mainwindow,
478            i.e. the parent. Subscribe to SHAPES_SELECTED instead
479            of SELECTED_SHAPE
480            
481            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
482            is gone. It's job from the dialog's point of view is now done by
483            the mainwindow, i.e. the parent.
484            
485            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
486            gone. It's job from the dialog's point of view is now done by the
487            mainwindow, i.e. the parent.
488    
489            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
490            gone. It's job from the dialog's point of view is now done by the
491            mainwindow, i.e. the parent.
492            (SessionTreeCtrl.__init__): New parameter mainwindow which is
493            stored as self.mainwindow. The mainwindow is need so that the tree
494            can still subscribe to the selection messages.
495            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
496            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
497            selection is now accessible through the mainwindow. Subscribe to
498            SHAPES_SELECTED instead of SELECTED_SHAPE
499    
500            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
501            SHAPES_SELECTED message now.
502            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
503            so deal with multiple shapes
504            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
505            gone. It's job from the dialog's point of view is now done by the
506            mainwindow, i.e. the parent.
507    
508            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
509            parameter is now a list of shape ids.
510            (RecordTable.SetTable): The second parameter is now a list of
511            indices.
512    
513            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
514            selected_shape parameter and ivar to selected_shapes. It's now a
515            list of shape ids.
516            (MapRenderer.draw_label_layer): Deal with multiple selected
517            shapes. Rearrange the code a bit so that the setup and shape type
518            distinctions are only executed once.
519    
520            * test/test_selection.py: Test cases for the selection class
521    
522    2003-03-11  Jonathan Coles   <[email protected]>
523    
524            * Thuban/Model/load.py: Temporary fix so that the xml reader
525            doesn't cause Thuban to crash.
526    
527            * Thuban/Model/layer.py: Handle the cyclic references between
528            a layer and its classification better, and be sure to disconnect
529            the classification from the layer when the layer is destroyed
530            so that we don't maintain a cyclic reference that may not be
531            garbage collected.
532    
533            * Thuban/Model/classification.py: See comment for layer.py.
534    
535    2003-03-12  Jan-Oliver Wagner <[email protected]>
536    
537            * HOWTO-Release: New. Information on the steps for releasing
538            a new version of Thuban.
539    
540    2003-03-11  Jonathan Coles   <[email protected]>
541    
542            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
543            Use True instead of true.
544            (Classifier): Should have a single panel in which all the controls lie.
545    
546            * Thuban/UI/proj4dialog.py: Add normal border.
547    
548            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
549    
550            * Thuban/UI/mainwindow.py: Use True instead of true.
551    
552            * setup.py: Update some definitions to use wxWindows2.4 files
553    
554            * Data/iceland_sample_class.thuban: Fixed file so that the
555            field_type information is present.
556    
557    2003-03-10  Jonathan Coles   <[email protected]>
558    
559            * Thuban/UI/classifier.py (Classifier.__init__): Make the
560            field type label grow so that when the text changes the
561            size is updated correctly. This may be a wxWindows bug.
562    
563    2003-03-10  Jonathan Coles   <[email protected]>
564    
565            * Thuban/UI/application.py: Changed SESSION_CHANGED to
566            SESSION_REPLACED.
567    
568            * Thuban/UI/classifier.py: Wrap text with _().
569            (ClassGrid.CreateTable): Set dimensions and size hints here,
570            instead of in Reset, so we only set the size once.
571    
572            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
573    
574            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
575            Call Close() instead of Shutdown().
576    
577            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
578    
579            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
580            Go back to using OnClose() instead of Shutdown().
581    
582    2003-03-10  Jonathan Coles   <[email protected]>
583    
584            * Thuban/UI/classifier.py (Classifier): SelectField() needed
585            to know the old field index as well as the new one.
586    
587    2003-03-10  Jonathan Coles   <[email protected]>
588    
589            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
590            to correctly set the table information and call this from
591            __init__ and from _OnFieldSelect so that all the information
592            is up to date when the dialog opens and when a field is changed.
593    
594    2003-03-10  Jonathan Coles   <[email protected]>
595    
596            * Thuban/Model/classification.py (Classification): Don't use
597            layer's message function directly, use the ClassChanged() method
598            when then classification changes. SetField/SetFieldType/SetLayer
599            must keep the information about field name and field type in
600            sync when an owning layer is set or removed.
601    
602            * Thuban/Model/layer.py: Added ClassChanged() so that the
603            classification can tell the layer when its data has changed.
604            (Layer.SetClassification): Accepts None as an arguement to
605            remove the current classification and correctly handles
606            adding a new classification.
607    
608            * Thuban/Model/load.py: Comment out print statement
609    
610            * test/test_classification.py, test/test_save.py: New and
611            improved tests.
612    
613    2003-03-07  Jonathan Coles   <[email protected]>
614    
615            * Thuban/Model/classification.py: Implemented __copy__ and
616            __deepcopy__ for ClassGroup* and ClassGroupProperites so
617            they can easily be copied by the classifier dialog.
618            (ClassGroupProperites.__init__): The default line color should
619            have been Color.Black.
620    
621            * Thuban/UI/classifier.py: Setting and Getting table values now
622            uses a consistent set of functions.
623            (Classifier): Now non-modal. Has field type label which changes
624            as the field changes. Keep track of buttons in a list so that
625            we can enable/disable the buttons when the None field is selected.
626            (SelectPropertiesDialog): Add buttons to make the colors transparent.
627    
628            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
629            does what OnClose did, but can be called by the application to
630            close a window. Needed when a session changes, and we have to
631            close the classifier windows.
632    
633            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
634            Shuts down open dialogs. Used when a new session is created
635            or a session is opened.
636            (MainWindow.SaveSession): Should only call application.SaveSession()
637            if we don't call SaveSessionAs first.
638            (MainWindow.Classify): Allow different classifier dialogs for
639            different layers.
640    
641            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
642            the parent class handle it. Add Shutdown() to unsubscibe from
643            event notification and call the parent Shutdown(). This was
644            necessary so the application can close the tree window.
645    
646    2003-03-06  Jonathan Coles   <[email protected]>
647    
648            * Thuban/Model/classification.py: Minor documentation changes,
649            Addition of __eq__ and __ne__ methods.
650            (Classification.SetLayer): prevent recursion between this method
651            and Layer.SetClassification().
652    
653            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
654    
655            * Thuban/Model/layer.py (SetClassification): prevent recursion
656            between this method and Classification.SetLayer().
657    
658            * test/test_classification.py, test/test_load.py,
659            test/test_session.py: Fixed and added tests for the classification
660            classes.
661    
662    2003-03-06  Bernhard Herzog  <[email protected]>
663    
664            * Thuban/UI/classifier.py (ClassGrid.__init__)
665            (ClassGrid.CreateTable): Move the SetSelectionMode call to
666            CreateTable because otherwise it triggers an assertion in
667            wxPython/wxGTK 2.4.
668    
669    2003-03-05  Jonathan Coles   <[email protected]>
670    
671            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
672    
673            * Thuban/Model/load.py: import FIELDTYPE constants from table.
674    
675            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
676    
677            * Thuban/Model/table.py: Put FIELDTYPE constants back.
678    
679    2003-03-05  Jonathan Coles   <[email protected]>
680    
681            * Thuban/UI/classifier.py: Added class documentation.
682            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
683            Store just the groups in the table and generate the other
684            column information when it is requested. Add "None" field
685            to pull-down to select no classification.
686    
687            * Thuban/common.py: Moved FIELDTYPE constants from table.py
688            (Str2Num): Only catch ValueError exceptions.
689    
690            * Thuban/Model/classification.py: Class documentation. Renaming
691            of methods with Stroke to Line. Groups are stored in a single
692            list with the default as the first element. Groups are searched
693            in the order they appear in the list.
694    
695            * Thuban/Model/color.py: Documentation.
696    
697            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
698            the kind of data represented by a field.
699    
700            * Thuban/Model/load.py (ProcessSession): Use proper string
701            conversion function; fixes RTbug #1713.
702    
703            * Thuban/Model/save.py (Saver): Store field type information.
704    
705            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
706            (Table): Add field_info_by_name() to retrieve field information
707            by specifying the field name, not the number.
708    
709            * Thuban/UI/mainwindow.py: Function name changes.
710    
711            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
712            get the layer classification once. Don't try to classify
713            values when the field is None: just use the default properties.
714    
715            * Thuban/UI/view.py: Function name changes.
716    
717            * Doc/thuban.dtd: Add field_type attribute to a classification.
718    
719    2003-03-04  Bernhard Herzog  <[email protected]>
720    
721            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
722            the fill and stroke layer attributes optional with suitable
723            default values. Add the stroke_width layer attribute. Use correct
724            syntax for empty elements. Make the attribute list for labels
725            refer to the label element.
726    
727    2003-03-04  Bernhard Herzog  <[email protected]>
728    
729            * setup.py (thuban_build_py.build): Add a comment about distutils in
730            Python 2.3 containing some of the functionality we implement in
731            setup.py ourselves.
732    
733            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
734            before the selection mode. Doing it the other way round triggers
735            an assertion in wxWindows.
736    
737            * Thuban/Model/save.py (escape): Fix typo in doc-string
738    
739            * Thuban/Model/classification.py: Remove unnecessary wxPython
740            import
741    
742    2003-03-04  Jonathan Coles   <[email protected]>
743    
744            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
745            Parameter 'value' should default to None.
746    
747            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
748            the class attribute __classification is now private.
749    
750            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
751            Classifier to ClassGrid. Added support for removing selected rows,
752            which including code for keeping track of when cells are selected,
753            and deselected.
754            (ClassTable): Support for added/removing rows. Fixed a problem
755            with __ParseInput whereby it would not allow strings (only numbers)
756            to be entered.
757            (Classifier): Added button and supporting code for removing
758            selected rows.
759    
760    2003-02-27  Jonathan Coles   <[email protected]>
761    
762            * Thuban/common.py: Moved color conversion functions into
763            Thuban/UI/common.py.
764            (Str2Num): Now converts the float (not the string) to a long/int
765            so that an exception isn't thrown.
766    
767            * Thuban/UI/common.py: Common functions used in several UI modules
768    
769            * Thuban/Model/classification.py: Changed the class hierarchy
770            so that a Classification consists of Groups which return
771            Properties when a value matches a Group.
772    
773            * Thuban/Model/layer.py: Fixed name resolution problem.
774    
775            * Thuban/Model/load.py: Use new Classification and Group functions.
776    
777            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
778            failure.
779            (Saver.write_classification): Use new Classification and Group
780            functions.
781    
782            * Thuban/UI/classifier.py: Changes to use new Classification and Group
783            functions. Fix to create a tuple with a single value instead of
784            simply returning the value.
785    
786            * Thuban/UI/renderer.py: Use new Classification and Group functions.
787            Use common.py functions.
788    
789            * Thuban/UI/tree.py: Use common.py functions.
790            
791            * test/test_classification.py: Use new Classification and Group
792            classes.
793    
794    2003-02-24  Jonathan Coles   <[email protected]>
795    
796            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
797            functions from Thuban color objects to wxWindow colour objects.
798    
799            * Thuban/Model/classification.py (Classification): Renamed
800            GetProperties() to GetClassData(). Used the new iterator
801            in TreeInfo().
802            (ClassIterator): Iterator implementation to iterate over the
803            ClassData objects in a classification object.
804    
805            * Thuban/Model/save.py (Saver.write_classificaton): Uses
806            the new iterator to save the classification information.
807    
808            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
809            for changing the stroke and fill colors and previewing the
810            changes.
811    
812            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
813            MainWindow.SaveSessionAs): Text string changes so the dialogs
814            have more meaningful titles.
815    
816            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
817            Classification method name from GetProperties to GetClassData.
818    
819            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
820            instead of accessing now non-existent class variables.
821    
822    2003-02-24  Bernhard Herzog  <[email protected]>
823    
824            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
825            unneeded Shape() call. Rendering is substantially faster without
826            it and it avoids some problems with broken shape files.
827    
828    2003-02-20  Frank Koormann   <[email protected]>
829    
830            Force minimal size of identify and label dialogs. The autosizing
831            looked too ugly.
832    
833            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
834            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
835            Set size of listctrl.
836            * Thuban/UI/identifyview.py (IdentifyView.__init__):
837            Set size of dialog.
838    
839    2003-02-19  Jonathan Coles   <[email protected]>
840    
841            * test/test_classification.py, test/test_layer.py,
842            test/test_load.py, test/test_map.py, test/test_session.py:
843            Updated the tests to use the new functions that are in the
844            respective classes.
845    
846            * Thuban/Model/classification.py (Classification):
847            Uses the new ClassData* classes. Modification messages are
848            passed up to the parent layer (if it exists).
849            (ClassData): New class to encapsulate the common data in each
850            classification property.
851            (ClassDataDefault): Represents the Default class. data.
852            (ClassDataPoint): Represents a single class. data point
853            (ClassDataRange): Represents a class. range
854            (ClassDataMap): Represents a class. map (unused).
855    
856            * Thuban/Model/color.py: Added Color.None to represent something
857            with no color. Color.Black represents the color black.
858            (NoColor): Helper class derived from Color to represent something
859            with no color.
860    
861            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
862            stroke_width attributes. Made the 'classification' attribute private.
863            New methods for setting/getting the classification.
864    
865            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
866            to get the classifcation and use the new ClassData* classes to
867            hold the classification data. Use Str2Num to convert numbers
868            properly.
869    
870            * Thuban/Model/save.py (Saver): Use new Color and Classification
871            methods
872    
873            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
874            custom grid.
875            (ClassTable): Support for editing Values and Labels and for
876            changing what type (point or range) of data is stored in each
877            property based on how the user enters the data.
878            (Classifier): Support for saving the new classifications and
879            launching the dialog to edit a property.
880            (SelectPropertiesDialog): New class for editing the visual
881            properties of a classification (stroke color, width, and fill color)
882            (ClassPreviewer): Took the Draw method from ClassRenderer and
883            made most of it into this new class. Intend to use this class in
884            the SelectPropertiesDialog for previewing changes.
885    
886            * Thuban/UI/renderer.py: Use new Color and Classification methods.
887    
888            * Thuban/UI/tree.py: Formatting changes.
889    
890            * Doc/thuban.dtd: Add 'label' element
891    
892            * Thuban/common.py: New. Contains common routines used throughout
893            the code.
894            (Str2Num): Takes a string and converts it to the "best" type of
895            number.
896    
897    2003-02-14  Bernhard Herzog  <[email protected]>
898    
899            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
900            dragging flag is always set to 0 even when the tool implementation
901            raises an exception
902    
903    2003-02-11  Bernhard Herzog  <[email protected]>
904    
905            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
906            method to create a splash screen.
907            (ThubanApplication.ShowMainWindow): New. Show the main window.
908            Needed so the splash screen can display the mainwindow
909            (ThubanApplication.OnInit): Call the
910            new splash_screen method to determine whether the application
911            should display a splash screen. If it displays a splash screen do
912            not immediately show the main window.
913    
914    2003-02-11  Jonathan Coles  <[email protected]>
915    
916            * Thuban/Model/classification.py: Added import line to fix
917            feature conflicts between running on python2.2 and python2.1.
918    
919            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
920            onto the clinfo parameter, so removed the deepcopy().
921    
922    2003-02-10  Jonathan Coles  <[email protected]>
923    
924            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
925            Added element_open variable to track opening and closing of tags
926            so that tags that don't span more than one line are closed with
927            /> instead of </tag_name>. Use the GetDefault*() methods of
928            the Classification class.
929    
930            * Thuban/Model/classification.py (Classificaton): Added set and
931            get methods for the default data. The class also takes a layer
932            reference so that modification messages can be sent. Fixed the
933            methods to use the new ClassData class.
934            (ClassData): New class to encapsulate the classification data
935    
936            * Thuban/Model/layer.py (Layer): Remove the
937            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
938            SetDefault*() methods on the layer's classification object.
939            (Layer.__init__): Use the new SetDefault*() methods in the
940            Classification class.
941    
942            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
943            object instead of a dictionary.
944    
945            * Thuban/UI/classifier.py (ClassRenderer): New class to
946            draw the classifications in the dialog box's table.
947            (Classifier): Modified to use the ClassRenderer class.
948    
949            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
950            methods of the Classification class.
951    
952            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
953            of the ClassData class.
954    
955            * test/test_classification.py, test/test_layer.py,
956            test/test_map.py, test/test_session.py: Fix the tests to work
957            with the above code changes.
958    
959    2003-02-03  Jonathan Coles  <[email protected]>
960    
961            * Thuban/Model/classification.py (Classification): Added getNull()
962            to return the NullData reference
963    
964            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
965            Layer.SetStrokeWidth): Modified these functions to change the
966            null data in the classification rather than keep these values
967            directly in the Layer class. Menu options to change these values
968            work again.
969    
970    2003-01-28  Jonathan Coles  <[email protected]>
971    
972            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
973            Fixed crashing problem on some systems. Dialog box shows
974            classification data.
975    
976            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
977            Colors in the tree view.
978    
979            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
980            the tree info for classifications. Commented out unnecessary lines.
981    
982            * Thuban/Model/classification.py (Classification.TreeInfo): New
983            function to add information about the classification into the
984            tree view.
985    
986    2003-01-27  Jan-Oliver Wagner <[email protected]>
987    
988            * Thuban/__init__.py (_): New.
989    
990            * Thuban/Model/classification.py, Thuban/Model/extension.py,
991            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
992            Thuban/Model/session.py, Thuban/UI/application.py,
993            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
994            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
995            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
996            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
997            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
998    
999    2003-01-27  Jonathan Coles  <[email protected]>
1000    
1001            * Thuban/Model/layer.py: Classification initialization calls.
1002    
1003            * Thuban/Model/classification.py: Created class to encapsulate
1004            a layer classification. Supports specific data points and
1005            ranges.
1006    
1007            * Thuban/Model/load.py: Added support for loading classification
1008            information.
1009    
1010            * Thuban/Model/save.py: Added support for saving classification
1011            information.
1012    
1013            * Thuban/UI/classifier.py: Initial class for a dialog box for
1014            specifying classification information.
1015    
1016            * Thuban/UI/mainwindows.py: Support for opening the classifier
1017            dialog.
1018    
1019            * Thuban/UI/renderer.py: Support for drawing a layer with the
1020            classification information.
1021    
1022            * Data/iceland_sample_class.thuban: iceland_sample with
1023            classification data.
1024    
1025            * test/test_classification: Tests for the Classification class.
1026    
1027    2002-12-09  Bernhard Herzog  <[email protected]>
1028    
1029            * test/test_command.py: New. Tests for the command classes.
1030    
1031            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
1032            (Command.IsTool): New method to distinguish between command
1033            switching tools and other commands.
1034    
1035            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
1036            the tool to avoid direct assignments to instance variables
1037            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
1038            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
1039            change the tool
1040    
1041            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
1042            active tool's command turns insensitive, disable the tool.
1043            (_tool_command): Use the new ToolCommand class
1044    
1045            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
1046            SelectTool method to change the tool
1047            (iconfile): Use the ToolCommand class
1048    
1049    2002-12-03  Bernhard Herzog  <[email protected]>
1050    
1051            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
1052            the case of selected items that are not children of Layers or Maps
1053            properly. Previously this bug would trigger an assertion in
1054            wxWindows.
1055    
1056    2002-11-06  Frank Koormann  <[email protected]>
1057    
1058            * Thuban/UI/mainwindow.py: Altered the order of tools in the
1059            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
1060            Full Extent).
1061    
1062    2002-10-23  Bernhard Herzog  <[email protected]>
1063    
1064            * setup.py (setup call): version now 0.1.3
1065    
1066            * MANIFEST.in: Add the files in test/
1067    
1068            * test/README: Add note about tests requiring the iceland data
1069    
1070            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
1071            copyright notice.
1072    
1073    2002-10-18  Bernhard Herzog  <[email protected]>
1074    
1075            * test/test_map.py
1076            (TestMapWithContents.test_projected_bounding_box): Use an explicit
1077            epsilon.
1078    
1079            * test/support.py (FloatComparisonMixin.assertFloatEqual)
1080            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
1081            message if the assertion fails and don't return the return value
1082            of self.assert_. In assertFloatSeqEqual the return meant that not
1083            all items of the sequence were compared.
1084    
1085    2002-09-20  Bernhard Herzog  <[email protected]>
1086    
1087            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
1088    
1089            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
1090    
1091            * test/test_map.py (TestMapWithContents.test_tree_info): Create
1092            the string with the bounding box on the fly because of platform
1093            differences in the way %g is handled.
1094    
1095            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
1096            DBFfile too because Thuban layers can't yet cope missing DBF
1097            files.
1098    
1099    2002-09-20  Bernhard Herzog  <[email protected]>
1100    
1101            * test/test_menu.py: Use initthuban instead of
1102            add_thuban_dir_to_path to initialize Thuban.
1103    
1104            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
1105            Mixin class for float comparisons
1106            (SubscriberMixin): New. Mixin class to test messages sent through
1107            the Connector class
1108    
1109            * test/README: Fix a typo and add the -v flag to the command for
1110            individual tests
1111    
1112            * test/test_session.py: New. Test cases for Thuban.Model.session
1113    
1114            * test/test_proj.py: New. Test cases for Thuban.Model.proj
1115    
1116            * test/test_map.py: New. Test cases for Thuban.Model.map
1117    
1118            * test/test_layer.py: New. Test cases for Thuban.Model.layer
1119    
1120            * test/test_label.py: New. Test cases for Thuban.Model.label
1121    
1122            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
1123    
1124            * test/test_color.py: New. Test cases for Thuban.Model.color
1125    
1126            * test/test_base.py: New. Test cases for Thuban.Model.base
1127    
1128    2002-09-13  Bernhard Herzog  <[email protected]>
1129    
1130            * Thuban/Model/session.py (Session.forwarded_channels): Forward
1131            the CHANGED channel too.
1132    
1133            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
1134            CHANGED channel too.
1135            (Map.__init__): Call the Modifiable constructor as well.
1136    
1137            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
1138            event if the modified flag changes.
1139            (Modifiable.changed): Tweak the doc-string.
1140    
1141            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
1142            (MainWindow.set_position_text): Put the code that puts the text
1143            with the mouse position into the status bar into the new method
1144            set_position_text so that it can overwritten in derived classes.
1145    
1146    2002-09-12  Bernhard Herzog  <[email protected]>
1147    
1148            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
1149            message box on the main window.
1150    
1151    2002-09-11  Bernhard Herzog  <[email protected]>
1152    
1153            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
1154            the 'E' because it's less likely to interfere with other menu
1155            entries.
1156            (MainWindow.build_menu): remove an incorrect comment.
1157    
1158    2002-09-10  Bernhard Herzog  <[email protected]>
1159    
1160            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
1161            (_tool_command): Add sensitive parameter
1162            (_has_visible_map): Sensitivity callback to tools and other
1163            commands that require a visible map. Use it in map_zoom_in_tool,
1164            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
1165            and map_full_extent
1166    
1167    2002-09-06  Bernhard Herzog  <[email protected]>
1168    
1169            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1170            VIEW_POSITION
1171    
1172    2002-09-04  Frank Koormann  <[email protected]>
1173    
1174            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1175    
1176    2002-09-02  Bernhard Herzog  <[email protected]>
1177    
1178            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
1179            wxWindows already and our implementation doesn't work correctly
1180            with wxGTK 2.3:
1181            (MapCanvas.__init__): Remove the instance variable
1182            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
1183            be drawin
1184            (MapCanvas.OnIdle): Removed.
1185    
1186            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
1187            a parameter to determine the size of the rectangle.
1188            (MapCanvas.find_shape_at): Create the box around the point on a
1189            layer by layer basis and make the size depend on the shape type.
1190            This solves a problem with the selection of point shapes at the
1191            border of the layer's bounding box
1192    
1193    2002-08-30  Bernhard Herzog  <[email protected]>
1194    
1195            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
1196            for the sensitivity  of remove layer.
1197            (_can_remove_layer): New. Sensitivity callback for remove layer
1198            (Command layer_remove): Use _can_remove_layer
1199    
1200            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
1201            determine whether a given layer can be deleted.
1202    
1203            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1204            (MapCanvas.do_redraw): Get rid of the unused update_region
1205            instance variable
1206    
1207            * Thuban/UI/view.py: Add/update some doc-strings.
1208    
1209            * test/: new subdirectory with a bunch of unit tests.
1210    
1211            * test/README, test/test_table.py, test/test_save.py,
1212            test/test_menu.py, test/test_load.py: Initial set of tests and
1213            brief instructions on how to run them
1214    
1215    2002-08-29  Bernhard Herzog  <[email protected]>
1216    
1217            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1218            arcs with multiple parts.
1219    
1220            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1221            Handle degenrate rectangles.
1222    
1223            * Thuban/Model/table.py: Make writing records work correctly:
1224            (Table.__init__): Keep track of whether the DBF is open for
1225            writing
1226            (Table.write_record): Open the DBF file for writing when necessary
1227    
1228    2002-08-27  Bernhard Herzog  <[email protected]>
1229    
1230            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
1231            dbf files only for reading by default. Use a new writable dbf
1232            object for writing.
1233    
1234    2002-08-26  Bernhard Herzog  <[email protected]>
1235    
1236            * Thuban/UI/mainwindow.py: Refactor the context creation:
1237            (MainWindow.Context): New method to return a context
1238            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
1239            new method
1240    
1241            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
1242            layer table specific code from TableGrid into LayerTableGrid
1243            (TableFrame, LayerTableFrame): Split the layer table specific code
1244            from TableFrame into LayerTableFrame
1245            (LayerTableGrid.select_shape): Remove a debug print
1246    
1247            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1248            LayerTableFrame
1249    
1250    2002-08-23  Bernhard Herzog  <[email protected]>
1251    
1252            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
1253            absolute filename.
1254    
1255    2002-08-22  Bernhard Herzog  <[email protected]>
1256    
1257            * Thuban/Model/table.py (Table.write_record): New method to write
1258            records.
1259            (Table.__init__): Open the DBF file for writing too.
1260    
1261            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1262            into the underlying table.
1263    
1264            * extensions/shapelib/shapefil.h (DBFCommit),
1265            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
1266            commit any changes made to the DBF file.
1267    
1268            * Thuban/UI/mainwindow.py (make_check_current_tool)
1269            (_tool_command): Put the code that generates the "checked"
1270            callback into a separate function so that we can reuse it
1271            elsewhere
1272    
1273            * Thuban/Model/save.py (Saver): New class to handle serializing a
1274            session into an XML file. The main reason to introduce a class is
1275            that applications built on Thuban can derive from it so that they
1276            can save additional information in a session file.
1277            (save_session): Delegate almost all the work to the Saver class.
1278            Rename the filename argument to file because it may be a file like
1279            object now.
1280    
1281            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
1282            code. Remove the little test code which would be executed when the
1283            module is run as a script which didn't work anymore since it can't
1284            import the other Thuban modules.
1285            (ProcessSession, load_session): Refactor the ProcessSession to
1286            have one method for each element start and end tag so that derived
1287            classes can easily override the processing of individual tags.
1288            Also, always parse with namespaces enabled because applications
1289            built on top of Thuban will likely use namespaces if they extend
1290            the session file format.
1291    
1292    2002-08-21  Bernhard Herzog  <[email protected]>
1293    
1294            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1295            because thubaninit_contents will do it for us.
1296    
1297    2002-08-16  Jan-Oliver Wagner <[email protected]>
1298    
1299            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1300            tree window already open
1301    
1302    2002-08-15  Bernhard Herzog  <[email protected]>
1303    
1304            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
1305            with self.
1306    
1307            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
1308            when we have actually captured it.
1309    
1310            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
1311            shapefile and destroy the table.
1312    
1313            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
1314    
1315    2002-08-14  Bernhard Herzog  <[email protected]>
1316    
1317            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
1318            instance variable columns
1319            (RecordTable.GetTypeName): row and col may be negative in some
1320            cases.
1321    
1322            * setup.py (InstallLocal.initialize_options)
1323            (InstallLocal.finalize_options, InstallLocal.user_options): New
1324            option create-init-file to build a thubaninit.py when running
1325            install_local
1326            (InstallLocal.run): Create the thubaninit.py module when requested
1327            (thubaninit_contents): Split the template into several parts and
1328            create a new function thubaninit_contents that creates the
1329            contents of a thubaninit module.
1330            (ThubanInstall.run): Use the new function to create the thubaninit
1331            module.
1332    
1333  2002-07-30  Bernhard Herzog  <[email protected]>  2002-07-30  Bernhard Herzog  <[email protected]>
1334    
1335          * Thuban/UI/application.py (ThubanApplication.OnExit): Do some          * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
# Line 90  Line 1422 
1422          * 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
1423          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
1424          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
1425          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1426          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
1427    
1428          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 151  Line 1483 
1483          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
1484          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
1485          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
1486          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
1487          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
1488    
1489  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 232  Line 1564 
1564          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1565          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1566    
1567  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1568    
1569          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1570          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 461  Line 1793 
1793          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1794          position in the statusbar          position in the statusbar
1795    
1796  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1797    
1798          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1799    
1800  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1801            
1802          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1803    
1804          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1805    
1806          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1807    
1808  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1809            box
1810    
1811    2002-04-21  Jan-Oliver Wagner <[email protected]>
1812    
1813          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1814    
1815          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1816    
1817          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1818          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1819    
1820  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1821    
1822          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1823          saving _new_ sessions          saving _new_ sessions
# Line 586  Line 1919 
1919    
1920          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1921          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1922    
1923  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1924    
1925          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1926          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1927    
1928          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1929          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1930          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1931          too.          too.
# Line 703  Line 2035 
2035          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
2036          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
2037    
2038          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2039          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
2040          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
2041          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
2042          the application's OnInit method          the application's OnInit method
# Line 720  Line 2052 
2052          layer to the tableview dialog.          layer to the tableview dialog.
2053    
2054          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
2055          (TableGrid):          (TableGrid):
2056          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
2057          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
2058          (TableFrame.__init__):          (TableFrame.__init__):
# Line 787  Line 2119 
2119  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
2120    
2121          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2122            
2123          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2124          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
2125            
2126          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2127          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
2128          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 837  Line 2169 
2169          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
2170          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
2171          link_file method          link_file method
2172            
2173          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2174          the window when the first layer is added to the map.          the window when the first layer is added to the map.
2175    
# Line 874  Line 2206 
2206          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
2207          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2208          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
2209            
2210          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
2211          installer          installer
2212    

Legend:
Removed from v.252  
changed lines
  Added in v.634

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26