/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Annotation of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 693 - (hide annotations)
Wed Apr 16 16:39:03 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 95640 byte(s)
updated ChangeLog

1 jonathan 688 2003-04-16 Jonathan Coles <[email protected]>
2    
3 jonathan 693 Initial putback of projection management code. Includes new
4     classes to read and write projection files. The current load
5     and save classes were abstracted a bit so they could be reused.
6     The Projection class was extended to provide new methods and
7     have a name.
8    
9     * Thuban/Model/load.py (XMLProcessor): New. Contains all the
10     general XML reading methods that were part of ProcessSession.
11    
12     * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
13     name.
14     (ProjFile): New. Represents a file that contains projection
15     information.
16    
17     * Thuban/Model/resource.py: New. Contains general utilities
18     for read and writing projection files.
19    
20     * Thuban/Model/save.py (XMLSaver): New. Contains all the
21     general XML writing methods that were part of SessionSaver.
22     (SessionSaver): Renamed from Saver.
23    
24     * test/test_proj.py: New test cases for the projection
25     file read and write functions.
26    
27     2003-04-16 Jonathan Coles <[email protected]>
28    
29 jonathan 688 * Thuban/Model/classification.py: Use repr() around values
30     in the ClassGroup*.__repr__() methods so it is clearer when
31     a value is a string and when it is a number.
32    
33     * test/test_load.py: Rework the classification test to test
34     that we can load old files.
35     (testLabels): Test a file where the groups have labels.
36    
37 bh 687 2003-04-16 Bernhard Herzog <[email protected]>
38    
39     Safer implementation of the performance enhancements of the
40     low-level renderer:
41    
42     * extensions/thuban/wxproj.cpp (extract_projection)
43     (extract_pointer): Rename extract_projection to extract_pointer
44     and redefine its purpose to return the pointer stored in a CObject
45     returned by the object's cobject method. Update all callers.
46     (s_draw_info, free_draw_info, draw_polygon_init): Implement the
47     handling of these low-level parameters so that each s_draw_info
48     instance is handled as a CObject at python level that also
49     contains real references to the actual python objects which
50     contain the values in the struct. Add free_draw_info as the
51     destructor.
52     (draw_polygon_shape): Add the py_draw_info parameter which must a
53     cobject containing an s_draw_info pointer.
54    
55     * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
56     method to instantiat the low-level render parameter
57     (MapRenderer.draw_shape_layer): Use the new method. Remove some
58     commented out code.
59     (MapRenderer.draw_polygon_shape): Make the first parameter not the
60     layer but the low-level render parameter
61     (ScreenRenderer.draw_shape_layer): Use the low-level render
62     parameter.
63    
64 jonathan 673 2003-04-15 Jonathan Coles <[email protected]>
65    
66 jonathan 680 * Thuban/Model/classification.py: Implemented __repr__ for
67     the ClassGroup* classes to make debugging a bit easier.
68     (ClassGroup.SetLabel): Check that the string is an instance
69     of StringTypes not StringType. Accounts for Unicode strings.
70    
71     * Thuban/Model/color.py: Implemented __repr__ to make
72     debugging a bit easier.
73    
74     * Thuban/Model/save.py (Saver.write_classification): Need to
75     save the group label.
76    
77     * test/test_load.py (testClassification): New. Loads the
78     iceland_sample_test.thuban file and checks if it was loaded
79     correctly.
80    
81     2003-04-15 Jonathan Coles <[email protected]>
82    
83 jonathan 673 * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
84     to improve rendering performance by initializing the variables
85     that are not change each time draw_polygon_shape() is called.
86     The values are stored in a global struct draw_info.
87     (draw_polygon_shape): Removed initialization code that is
88     now in draw_polygon_init().
89    
90     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
91 jonathan 674 drawing initialization call to draw_polygon_init()
92     (MapRenderer.draw_polygon_shape): Use new signature of
93     draw_polygon_shape.
94 jonathan 673
95 jonathan 674 * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
96     weirdness by setting the range to (1, maxint).
97 jonathan 673
98 jonathan 674 * Thuban/Model/classification.py (ClassGroupProperties): Make
99     instance variables private and optimize comparison operator
100     by first checking if the color references are the same.
101     (ClassGroupSingleton): Make instance variables private.
102     (ClassGroupRange): Make instance variables private.
103 jonathan 673
104 jonathan 674 * HOWTO-Release: Filled in missing steps for releasing packages.
105    
106 bh 672 2003-04-15 Bernhard Herzog <[email protected]>
107    
108     First stab at internationalized messages:
109    
110     * Thuban/__init__.py (_): Implement the translation function for
111     real using the python gettext module.
112    
113     * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
114     translate empty strings.
115    
116     * Thuban/UI/application.py (ThubanApplication.read_startup_files):
117     Add a missing space to a warning message
118    
119     * po/README: New. Notes about the management of the translation
120     files.
121    
122     * po/Makefile: New. Makefile to help manage the translation files.
123    
124     * po/es.po: New. Spanish translation by Daniel Calvelo Aros
125    
126     * MANIFEST.in: Include the *.mo files in Resources/Locale and the
127     translations and support files in po/
128    
129     * setup.py (data_files): Add the *.mo files to the data_files too
130    
131     * README: Add note about the translations when building from CVS
132    
133 jonathan 669 2003-04-14 Jonathan Coles <[email protected]>
134    
135     * Thuban/UI/dock.py: Fixes some window resizing problems most
136     noticable under windows. Always assume the button bitmaps will
137     be there. Code clean up.
138     (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
139     images for the dock/undock button to the same images.
140     Work around for RTbug #1801.
141    
142     * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
143     be allowed to grow within the sizer. Fixes a bug under Windows
144     where the toolbar wasn't being drawn.
145    
146 frank 664 2003-04-14 Frank Koormann <[email protected]>
147    
148     * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
149     Updated design to try to make the button functionality more
150     transparent.
151    
152 jonathan 662 2003-04-14 Jonathan Coles <[email protected]>
153    
154     * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
155     finalize the intialization of the panel.
156    
157     * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
158     creation of the panel. Should be the last thing called in the
159     initializer of a subclass.
160    
161     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
162     set the current selections in the combo boxes. This is needed
163     under Windows.
164    
165     * Thuban/UI/classifier.py (Classifier.__init__): Add a top
166     level panel to the dialog so that the background colors are
167     consistent under Windows.
168    
169 jonathan 646 2003-04-11 Jonathan Coles <[email protected]>
170    
171 jonathan 662 * Thuban/UI/classgen.py: Change color ramps to start at white
172     not black.
173    
174     * Thuban/UI/legend.py: Enable/disable the legend buttons when
175     the legend changes. Fixes RTbug #1793.
176    
177     * test/test_classification.py: Added test for copying of
178     classifications.
179    
180     2003-04-11 Jonathan Coles <[email protected]>
181    
182 jonathan 647 * Thuban/UI/resource.py: New. Centralize the loading of resources
183     such as bitmaps.
184    
185     * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
186     added images to the move buttons, added 'reverse' button.
187     (CustomRampPanel.__init__): Added images to the move buttons.
188     (GreyRamp): New. Generates a ramp from white to black.
189     (HotToColdRamp): New. Generates a ramp from cold to hot colors.
190    
191     * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
192     ID_PROPERTY_*.
193     (Classifier.__init__): Minor changes to the layout.
194     (Classifier._OnTitleChanged): Listen for when the user edits the
195     title and update the dialog's title and the layer's title.
196    
197     * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
198    
199     * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
200     (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
201     if the layer's title changes.
202    
203     * Thuban/UI/mainwindow.py: Added new menu item and associated code
204     to open a dialog to rename the map.
205     (MainWindow): Use new resource class to import bitmaps.
206    
207     2003-04-11 Jonathan Coles <[email protected]>
208    
209 jonathan 646 * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
210 jonathan 647 Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
211     Resources/Bitmaps/group_use_none.xpm,
212     Resources/Bitmaps/group_use_not.xpm,
213     Resources/Bitmaps/hide_layer.xpm,
214     Resources/Bitmaps/layer_properties.xpm,
215     Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
216     Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
217     New.
218 jonathan 646
219 jonathan 636 2003-04-10 Jonathan Coles <[email protected]>
220    
221 jonathan 644 * Thuban/Model/classification.py: (ClassGroupRange.__init__):
222     Should pass group to ClassGroup constructor.
223    
224     2003-04-10 Jonathan Coles <[email protected]>
225    
226 jonathan 636 * Thuban/Model/classification.py: (ClassGroup): Move all the common
227     methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
228     here. Implement SetVisible(), IsVisible().
229     (ClassGroup.__init__): Add group parameter which acts as a copy
230     constructor.
231    
232     * Thuban/UI/classifier.py (ClassTable): Add a new column for the
233     "Visible" check boxes.
234     (Classifier): Rename the buttons and refactor the code to match
235     the new labels.
236    
237     * Thuban/UI/legend.py: Classify button is now called "Properties".
238     Refactored the code to change variable names.
239     (LegendTree.__FillTreeLayer): Only list a group if it is visible.
240    
241     * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
242     MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
243     renamed to MainWindow.LayerEditProperties.
244     (MainWindow.ToggleLegend): Don't include map name in legend title.
245     (MainWindow.SetMap): Added the map name to the window title.
246     (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
247     MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
248     Functionality is found in the layer properties dialog.
249    
250     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
251     draw visible groups.
252    
253 jonathan 626 2003-04-09 Jonathan Coles <[email protected]>
254    
255 jonathan 634 * Thuban/UI/classgen.py: Modifications to allow simple
256     addition and selection of new color schemes.
257     (MonochromaticRamp): New. Generates a ramp between two colors.
258     (RedRamp): New. Generates a ramp of all red.
259     (GreenRamp): New. Generates a ramp of all green.
260     (BlueRamp): New. Generates a ramp of all blue.
261    
262     2003-04-09 Jonathan Coles <[email protected]>
263    
264 jonathan 626 * Thuban/Model/classification.py (Classification.__deepcopy__):
265     Need to copy over field and fieldType attributes.
266    
267     * Thuban/Model/table.py (Table.field_range): New. Retrive the
268     maximum and minimum values over the entire table for a given
269     field.
270     (Table.GetUniqueValues): New. Retrieve all the unique values
271     in the table for a given field.
272    
273     * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
274     (GenUniquePanel): New. Controls to allow the user to select
275     which unique field values they would like in the classification.
276     (CustomRampPanel): Code that was in ClassGenDialog that allows
277     the user to select the properties for a custom ramp.
278     (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
279    
280     * Thuban/UI/classifier.py: Removed a lot of debugging code.
281     (Classifier._SetClassification): Callback method so that the
282     class generator can set the classification in the grid.
283     (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
284     editing of a group properties class into a wxWindows control.
285    
286     * Thuban/UI/dock.py: It was decided that if the user closes
287     a dockable window the window should simply hide itself. That
288     way if the user wants to show the dock again it appears in the
289     same place as it was when it was closed.
290     (DockableWindow.Destroy): Call renamed method OnDockDestroy().
291     (DockableWindow._OnButtonClose): Hide the window instead of
292     destroying it.
293     (DockableWindow._OnClose): Hide the window instead of
294     destroying it.
295    
296     * Thuban/UI/legend.py (LegendTree): Use a private method to
297     consistently set the font and style of the text. Fixes RTbug #1786.
298    
299     * Thuban/UI/mainwindow.py: Import just the Classifier class.
300    
301 bh 623 2003-04-07 Bernhard Herzog <[email protected]>
302    
303 bh 625 * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
304     to the map module
305    
306     2003-04-07 Bernhard Herzog <[email protected]>
307    
308 bh 623 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
309     favor of ToggleSessionTree
310     (MainWindow.ToggleSessionTree): New method to toggle visibility of
311     the session tree.
312     (MainWindow.SessionTreeShown): New method to return whether the
313     session tree is currently shown.
314     (MainWindow.ToggleLegend): New method to toggle visibility of the
315     legend
316     (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
317     LegendShown
318     (MainWindow.LegendShown): New method to return whether the legend
319     is currently shown.
320     (_method_command): Add checked parameter so we can define check
321     menu items
322     (_has_tree_window_shown, _has_legend_shown): Use the appropriate
323     mainwindow methods.
324     (show_session_tree, show_legend commands): Removed.
325     (toggle_session_tree, toggle_legend commands): New commands to
326     toggle the visibility of the dialogs
327    
328 jonathan 612 2003-04-07 Jonathan Coles <[email protected]>
329    
330 jonathan 619 * Thuban/UI/classgen.py: Fix Windows problem.
331    
332     * Thuban/UI/dock.py: Fix Windows problem.
333    
334     * Thuban/UI/mainwindow.py: Use False instead of false.
335     (MainWindow.ShowLegend): Remove unnecessary switch parameter.
336    
337     2003-04-07 Jonathan Coles <[email protected]>
338    
339 jonathan 612 Since we now say that the order of the groups in a classification
340     matters, it makes sense to be able to manipulate that order. Most
341     of the changes to Thuban/Model/classification.py are to that end.
342    
343     * Thuban/Model/classification.py (Classification.AppendGroup,
344     Classification.InsertGroup, Classification.ReplaceGroup,
345     Classification.RemoveGroup, Classification.GetGroup): Do as the
346     names imply.
347     (Classification.FindGroup): This was called GetGroup, but GetGroup
348     takes an index, while FindGroup takes a value.
349     (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
350     REFERENCE. Currently there is a cyclic reference between the layer
351     and its classification. If the classification doesn't need to know
352     its owning layer we can change this, since it may make sense to be
353     able to use the same classification with different layers.
354    
355     * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
356    
357     * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
358     not AddGroup()
359    
360     * Thuban/UI/classifier.py: Now that we can depend on the order in
361     a Classification and have methods to manipulate that order we don't
362     need to use our own data structures in the grid. We can simply make
363     the grid/table access the information they need from a copy of
364     the classification object.
365     (Classifier._OnCloseBtn): Event handler for when the user clicks
366     'Close'. This is needed so if the user applies changes and then
367     continues to change the table the user has the option of discarding
368     the most recent changes and keeping what they applied.
369    
370     * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
371     into the same group.
372    
373     * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
374     with a really old version of proj, PJ_VERSION won't even be defined.
375     If it isn't defined then just compile so that the function always
376     returns Py_False.
377    
378     * test/test_classification.py: Fix tests to use the renamed methods.
379     Still need to write tests for the new methods.
380    
381 jonathan 601 2003-04-04 Jonathan Coles <[email protected]>
382 jonathan 608
383 jonathan 612 * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
384     call to SetSelection out of the method and before the call
385     to __SelectField in __init__. This prevents a recursion of events
386     when _OnFieldSelect is triggered by the user.
387    
388     2003-04-04 Jonathan Coles <[email protected]>
389    
390 jonathan 608 * Thuban/Model/classification.py: Rename Color.None to
391     Color.Transparent.
392     (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
393     Don't bother copying the color, since Colors are immutable.
394    
395     * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
396     Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
397     Thuban/UI/renderer.py, Thuban/UI/view.py:
398     Rename Color.None to Color.Transparent.
399    
400     * test/test_classification.py, test/test_load.py: Rename Color.None
401     to Color.Transparent.
402    
403     2003-04-04 Jonathan Coles <[email protected]>
404 jonathan 603
405     * Thuban/Model/classification.py: Fix assert calls.
406     (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
407     Copy the color parameter rather than hold onto a reference.
408 jonathan 601
409 jonathan 603 * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
410     the color object.
411     (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
412     are sure there exists only one refernce to Color.None in the system.
413     This allows us to use 'is' rather than the comparision functions.
414    
415     * Thuban/Model/save.py: Fix assert calls.
416    
417     * Thuban/UI/classifier.py: Fix assert calls.
418     (ClassGrid._OnCellDClick): Call up to the classifier to open the
419     dialog to edit the groups properties.
420     (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
421     correctly if a cell is resized.
422     (ClassTable.SetClassification): New. Changes the classification
423     that is in the table.
424     (ClassTable.__SetRow): Allow groups to be prepended.
425     (Classifier): New code for opening the EditProperties and
426     GenerateRanges dialogs.
427     (SelectPropertiesDialog.__GetColor): Only set the color in the
428     color dialog if the current color is not None.
429    
430     * Thuban/UI/dock.py: Fix assert calls.
431    
432     * Thuban/UI/legend.py: Fix assert calls.
433    
434     * Thuban/UI/renderer.py: Fix assert calls.
435    
436     * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
437     classifications.
438     (GenRangePanel): Panel specific to range generation.
439     (GenSingletonPanel): Panel specific to singleton generation.
440     (ClassGenerator): Class responsible for actually generating
441     the classification from the data gathered in the dialog box.
442     (PropertyRamp): Generates properties whose values range from
443     a starting property to an ending property.
444 jonathan 601
445 bh 600 2003-04-03 Bernhard Herzog <[email protected]>
446    
447     * test/support.py (print_garbage_information): New function that
448     prints information about still connected messages and memory
449     leaks.
450     (run_suite): Removed.
451     (run_tests): New function for use as a replacement of
452     unittest.main in the test_* files. This one calls
453     print_garbage_information at the end.
454    
455     * test/runtests.py (main): Use support.print_garbage_information
456    
457     * test/test_layer.py: Use support.run_tests instead of
458     unittest.main so we get memory leak information
459     (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
460     (TestLayer.test_point_layer, TestLayer.test_empty_layer)
461     (TestLayerLegend.test_visibility): Call the layer's Destroy method
462     to fix a memory leak.
463    
464     * test/test_classification.py: Use support.run_tests instead of
465     unittest.main so we get memory leak information
466     (TestClassification.test_classification): Call the layer's Destroy
467     method to fix a memory leak.
468    
469 bh 591 2003-04-02 Bernhard Herzog <[email protected]>
470    
471 bh 595 * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
472     Handle the reference counts of the return value and errors in
473     PyArg_ParseTuple correctly.
474    
475 bh 593 * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
476     sure the filename is absolute to avoid problems when saving the
477     session again
478    
479 bh 591 * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
480    
481 jonathan 587 2003-04-01 Jonathan Coles <[email protected]>
482    
483 jonathan 589 * Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
484 jonathan 587 that there actually are points in the returned list of points
485     before trying to index into the list. The list may be empty if
486     the shape is a Null Shape.
487    
488 bh 586 2003-04-01 Bernhard Herzog <[email protected]>
489    
490     * test/test_map.py: Don't use from <module> import *
491    
492 jonathan 581 2003-04-01 Jonathan Coles <[email protected]>
493    
494     * Thuban/Model/session.py: Use LAYER_CHANGED instead of
495     LAYER_LEGEND_CHANGED
496    
497     * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
498     self.Destroy() to close the window after yesterday's changes.
499    
500     * test/test_map.py, test/test_session.py: Fix messages that
501     are sent from maps and layers.
502    
503 jonathan 575 2003-03-31 Jonathan Coles <[email protected]>
504    
505     * Thuban/UI/classifier.py: Commented out some debugging statements.
506     (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
507     RTbug #1769.
508    
509     * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
510     position (although position doesn't work yet under GTK).
511     (DockableWindow.Destroy): New. Called when the window must be
512     closed. Namely needed when the DockFrame closes and must close
513     its children.
514     (DockFrame): Listen for EVT_CLOSE and destroy all children.
515    
516     * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
517     when then window is told to close.
518     (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
519     comment in source for more info.
520    
521     * Thuban/UI/main.py: Show the legend by default when Thuban starts.
522    
523     * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
524     symmetry with other such methods.
525     (MainWindow.ShowLegend): Show the legend docked by default.
526    
527 jonathan 569 2003-03-28 Jonathan Coles <[email protected]>
528    
529     * Thuban/UI/classifier.py: Support for highlighting a specific
530     group within the grid when the classification dialog is opened.
531     Also contains a lot of debugging printouts which will later
532     be removed.
533    
534     * Thuban/UI/dock.py: Complete rework on the dock code so that
535     that it is fairly removed from the rest of the Thuban application.
536     It is easy to add new docks which the rest of the program having
537     to be aware of them.
538    
539     * Thuban/UI/legend.py: Modifications to support selecting a
540     specific group in the classification dialog. Changed how layers
541     are drawn when the layer is visible/invisible.
542    
543     * Thuban/UI/mainwindow.py: Removed legend specific code and
544     replaced it with calls to the new dock code.
545    
546     * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
547     to check if scale > 0. Trying to track down a divide by zero.
548    
549 jonathan 557 2003-03-26 Jonathan Coles <[email protected]>
550    
551 jonathan 567 * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
552     (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
553     now part of DockableWindow.
554     (LegendPanel.DoOnSelChanged): Select the current layer in the
555     map.
556     (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
557     with the selected layer and/or group.
558    
559     2003-03-26 Jonathan Coles <[email protected]>
560    
561 jonathan 557 This putback contains the code for dockable windows. There is
562     no support in wxWindows as of this date for windows that can
563     attach themselves to other windows.
564    
565     The current model contains a DockableWindow which has a parent
566     window for when it is detached and a dock window that it puts
567     its contents in when it is docked. The contents of a DockableWindow
568     must be a DockPanel. DockPanel itself derives from wxPanel.
569    
570     * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
571     message, not a LAYER_LEGEND_CHANGED message.
572    
573     * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
574    
575     * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
576     as one of the style properties for the fieldTypeText item to
577     be sure that its size is correct when the text changes.
578    
579     * Thuban/UI/dock.py: New. Classes for the DockPanel and
580     DockableWindow.
581    
582     * Thuban/UI/legend.py: Added some more buttons and made the
583     LegendPanel a DockPanel.
584    
585     * Thuban/UI/mainwindow.py: Added sash windows to the main window
586     and supporting functions for manipulating the sashes.
587     (MainWindow.ShowLegend): Create a DockableWindow with the
588     LegendPanel as the contents.
589    
590     * Thuban/UI/messages.py: Added DOCKABLE_* messages
591    
592     * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
593     not LAYER_LEGEND_CHANGED, messages.
594    
595 jonathan 554 2003-03-25 Jonathan Coles <[email protected]>
596    
597     * setup.py: Added custom script bdist_rpm_build_script so that
598     when the rpm is built the path to wx-config is correct.
599    
600     * setup.cfg: Added line saying to use the custom build script
601    
602 jonathan 552 2003-03-20 Jonathan Coles <[email protected]>
603    
604     Initial implementation of the Legend.
605    
606     * Thuban/UI/legend.py: New. Creates a window that shows the map's
607     Legend information and allows the user to add/modify classifications
608     and how the layers are drawn on the map.
609    
610     * setup.py: New command 'build_docs' which currently uses
611     happydoc to generate html documentation for Thuban.
612    
613     * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
614     Returns a string which is appropriately describes the group.
615    
616     * Thuban/Model/layer.py (Layer.SetClassification): Generate a
617     LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
618    
619     * Thuban/Model/map.py (Map): Rename messages and use new, more
620     specific, messages.
621    
622     * Thuban/Model/messages.py: New message to indicate that a layer's
623     data has changed (LAYER_CHANGED). New map messages to indicate
624     when layers have been added/removed/changed or if the stacking order
625     of the layers has changed.
626    
627     * Thuban/Model/session.py: Rename and use new messages.
628    
629     * Thuban/UI/classifier.py: Remember if any changes have actually
630     been applied so that if the dialog is cancelled without an application
631     of changes we don't have to set a new classification.
632     (ClassDataPreviewer): Pulled out the window specific code and put it
633     ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
634     symbols on any DC.
635    
636     * Thuban/UI/mainwindow.py: New code to open the legend.
637    
638     * Thuban/UI/view.py: Use new message names.
639    
640 jonathan 541 2003-03-19 Jonathan Coles <[email protected]>
641    
642     * Thuban/UI/main.py (verify_versions): New. Checks the versions
643     of Python, wxPython, and some other libraries.
644    
645     * extensions/thuban/wxproj.cpp (check_version): Checks the given
646     version against what wxproj was compiled with.
647     (check_version_gtk): If wxproj was compiled with gtk then check
648     the given version against the version of the gtk library
649     currently being used.
650    
651 bh 538 2003-03-14 Bernhard Herzog <[email protected]>
652    
653     * test/test_command.py: Run the tests when the module is run as a
654     script
655    
656     2003-03-14 Bernhard Herzog <[email protected]>
657    
658     Implement selection of multiple selected shapes in the same layer:
659    
660     - Introduce a new class to hold the selection. This basically
661     replaces the interactor which was nothing more than the
662     selection anyway. A major difference is of course that the new
663     selection class supports multiple selected shapes in one layer
664    
665     - Move the object that represents the selection from the
666     application to the canvas. The canvas is a better place than the
667     application because the selection represents which shapes and
668     layer of the map displayed by the canvas are selected and
669     affects how the map is drawn.
670    
671     - Make the selection and its messages publicly available through
672     the mainwindow.
673    
674     - The non-modal dialogs do not get a reference to the interactor
675     anymore as they can simply refer to their parent, the
676     mainwindow, for the what the interactor had to offer.
677    
678     * Thuban/UI/selection.py: New module with a class to represent the
679     selection.
680    
681     * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
682     these unused messages
683    
684     * Thuban/UI/application.py (ThubanApplication.OnInit)
685     (ThubanApplication.OnExit, ThubanApplication.SetSession): The
686     interactor is gone now.
687     (ThubanApplication.CreateMainWindow): There is no interactor
688     anymore so we pass None as the interactor argument for now for
689     compatibility.
690    
691     * Thuban/UI/view.py (MapCanvas.delegated_messages)
692     (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
693     Unsubscribe, delegate messages according to the delegated_messages
694     class variable.
695     (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
696     attributes from instance variables as described with the
697     delegated_methods class variable.
698     (MapCanvas.__init__): New instance variable selection holding the
699     current selection
700     (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
701     pass them on to the renderer
702     (MapCanvas.SetMap): Clear the selection when a different map is
703     selected.
704     (MapCanvas.shape_selected): Simple force a complete redraw. The
705     selection class now takes care of only issueing SHAPES_SELECTED
706     messages when the set of selected shapes actually does change.
707     (MapCanvas.SelectShapeAt): The selection is now managed in
708     self.selection
709    
710     * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
711     (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
712     Unsubscribe, delegate messages according to the delegated_messages
713     class variable.
714     (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
715     attributes from instance variables as described with the
716     delegated_methods class variable.
717     (MainWindow.__init__): The interactor as ivar is gone. The
718     parameter is still there for compatibility. The selection messages
719     now come from the canvas.
720     (MainWindow.current_layer, MainWindow.has_selected_layer):
721     Delegate to the the canvas.
722     (MainWindow.LayerShowTable, MainWindow.Classify)
723     (MainWindow.identify_view_on_demand): The dialogs don't need the
724     interactor parameter anymore.
725    
726     * Thuban/UI/tableview.py (TableFrame.__init__)
727     (LayerTableFrame.__init__, LayerTableFrame.OnClose)
728     (LayerTableFrame.row_selected): The interactor is gone. It's job
729     from the dialog's point of view is now done by the mainwindow,
730     i.e. the parent. Subscribe to SHAPES_SELECTED instead
731     of SELECTED_SHAPE
732    
733     * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
734     is gone. It's job from the dialog's point of view is now done by
735     the mainwindow, i.e. the parent.
736    
737     * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
738     gone. It's job from the dialog's point of view is now done by the
739     mainwindow, i.e. the parent.
740    
741     * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
742     gone. It's job from the dialog's point of view is now done by the
743     mainwindow, i.e. the parent.
744     (SessionTreeCtrl.__init__): New parameter mainwindow which is
745     stored as self.mainwindow. The mainwindow is need so that the tree
746     can still subscribe to the selection messages.
747     (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
748     (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
749     selection is now accessible through the mainwindow. Subscribe to
750     SHAPES_SELECTED instead of SELECTED_SHAPE
751    
752     * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
753     SHAPES_SELECTED message now.
754     (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
755     so deal with multiple shapes
756     (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
757     gone. It's job from the dialog's point of view is now done by the
758     mainwindow, i.e. the parent.
759    
760     * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
761     parameter is now a list of shape ids.
762     (RecordTable.SetTable): The second parameter is now a list of
763     indices.
764    
765     * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
766     selected_shape parameter and ivar to selected_shapes. It's now a
767     list of shape ids.
768     (MapRenderer.draw_label_layer): Deal with multiple selected
769     shapes. Rearrange the code a bit so that the setup and shape type
770     distinctions are only executed once.
771    
772     * test/test_selection.py: Test cases for the selection class
773    
774 jonathan 527 2003-03-11 Jonathan Coles <[email protected]>
775    
776     * Thuban/Model/load.py: Temporary fix so that the xml reader
777     doesn't cause Thuban to crash.
778    
779     * Thuban/Model/layer.py: Handle the cyclic references between
780     a layer and its classification better, and be sure to disconnect
781     the classification from the layer when the layer is destroyed
782     so that we don't maintain a cyclic reference that may not be
783     garbage collected.
784    
785     * Thuban/Model/classification.py: See comment for layer.py.
786    
787 jan 523 2003-03-12 Jan-Oliver Wagner <[email protected]>
788    
789     * HOWTO-Release: New. Information on the steps for releasing
790     a new version of Thuban.
791    
792 jonathan 514 2003-03-11 Jonathan Coles <[email protected]>
793    
794     * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
795     Use True instead of true.
796     (Classifier): Should have a single panel in which all the controls lie.
797    
798     * Thuban/UI/proj4dialog.py: Add normal border.
799    
800     * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
801    
802     * Thuban/UI/mainwindow.py: Use True instead of true.
803    
804     * setup.py: Update some definitions to use wxWindows2.4 files
805    
806     * Data/iceland_sample_class.thuban: Fixed file so that the
807     field_type information is present.
808    
809 jonathan 490 2003-03-10 Jonathan Coles <[email protected]>
810    
811 jonathan 505 * Thuban/UI/classifier.py (Classifier.__init__): Make the
812     field type label grow so that when the text changes the
813     size is updated correctly. This may be a wxWindows bug.
814    
815     2003-03-10 Jonathan Coles <[email protected]>
816    
817 jonathan 499 * Thuban/UI/application.py: Changed SESSION_CHANGED to
818     SESSION_REPLACED.
819    
820     * Thuban/UI/classifier.py: Wrap text with _().
821     (ClassGrid.CreateTable): Set dimensions and size hints here,
822     instead of in Reset, so we only set the size once.
823    
824     * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
825    
826     * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
827     Call Close() instead of Shutdown().
828    
829     * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
830    
831     * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
832     Go back to using OnClose() instead of Shutdown().
833    
834     2003-03-10 Jonathan Coles <[email protected]>
835    
836 jonathan 497 * Thuban/UI/classifier.py (Classifier): SelectField() needed
837     to know the old field index as well as the new one.
838    
839     2003-03-10 Jonathan Coles <[email protected]>
840    
841 jonathan 495 * Thuban/UI/classifier.py (Classifier): Use __SelectField()
842     to correctly set the table information and call this from
843     __init__ and from _OnFieldSelect so that all the information
844     is up to date when the dialog opens and when a field is changed.
845    
846     2003-03-10 Jonathan Coles <[email protected]>
847    
848 jonathan 490 * Thuban/Model/classification.py (Classification): Don't use
849     layer's message function directly, use the ClassChanged() method
850     when then classification changes. SetField/SetFieldType/SetLayer
851     must keep the information about field name and field type in
852     sync when an owning layer is set or removed.
853    
854     * Thuban/Model/layer.py: Added ClassChanged() so that the
855     classification can tell the layer when its data has changed.
856     (Layer.SetClassification): Accepts None as an arguement to
857     remove the current classification and correctly handles
858     adding a new classification.
859    
860     * Thuban/Model/load.py: Comment out print statement
861    
862     * test/test_classification.py, test/test_save.py: New and
863     improved tests.
864    
865 jonathan 483 2003-03-07 Jonathan Coles <[email protected]>
866    
867     * Thuban/Model/classification.py: Implemented __copy__ and
868     __deepcopy__ for ClassGroup* and ClassGroupProperites so
869     they can easily be copied by the classifier dialog.
870     (ClassGroupProperites.__init__): The default line color should
871     have been Color.Black.
872    
873     * Thuban/UI/classifier.py: Setting and Getting table values now
874     uses a consistent set of functions.
875     (Classifier): Now non-modal. Has field type label which changes
876     as the field changes. Keep track of buttons in a list so that
877     we can enable/disable the buttons when the None field is selected.
878     (SelectPropertiesDialog): Add buttons to make the colors transparent.
879    
880     * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
881     does what OnClose did, but can be called by the application to
882     close a window. Needed when a session changes, and we have to
883     close the classifier windows.
884    
885     * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
886     Shuts down open dialogs. Used when a new session is created
887     or a session is opened.
888     (MainWindow.SaveSession): Should only call application.SaveSession()
889     if we don't call SaveSessionAs first.
890     (MainWindow.Classify): Allow different classifier dialogs for
891     different layers.
892    
893     * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
894     the parent class handle it. Add Shutdown() to unsubscibe from
895     event notification and call the parent Shutdown(). This was
896     necessary so the application can close the tree window.
897    
898 jonathan 478 2003-03-06 Jonathan Coles <[email protected]>
899    
900     * Thuban/Model/classification.py: Minor documentation changes,
901     Addition of __eq__ and __ne__ methods.
902     (Classification.SetLayer): prevent recursion between this method
903     and Layer.SetClassification().
904    
905     * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
906    
907     * Thuban/Model/layer.py (SetClassification): prevent recursion
908     between this method and Classification.SetLayer().
909    
910     * test/test_classification.py, test/test_load.py,
911     test/test_session.py: Fixed and added tests for the classification
912     classes.
913    
914 bh 477 2003-03-06 Bernhard Herzog <[email protected]>
915    
916     * Thuban/UI/classifier.py (ClassGrid.__init__)
917     (ClassGrid.CreateTable): Move the SetSelectionMode call to
918     CreateTable because otherwise it triggers an assertion in
919     wxPython/wxGTK 2.4.
920    
921 jonathan 459 2003-03-05 Jonathan Coles <[email protected]>
922    
923 jonathan 475 * Thuban/common.py: Move FIELDTYPE constants back to table.py.
924 jonathan 471
925 jonathan 475 * Thuban/Model/load.py: import FIELDTYPE constants from table.
926 jonathan 471
927 jonathan 475 * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
928 jonathan 471
929 jonathan 475 * Thuban/Model/table.py: Put FIELDTYPE constants back.
930 jonathan 471
931     2003-03-05 Jonathan Coles <[email protected]>
932    
933 jonathan 459 * Thuban/UI/classifier.py: Added class documentation.
934     Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
935     Store just the groups in the table and generate the other
936     column information when it is requested. Add "None" field
937     to pull-down to select no classification.
938    
939     * Thuban/common.py: Moved FIELDTYPE constants from table.py
940     (Str2Num): Only catch ValueError exceptions.
941    
942     * Thuban/Model/classification.py: Class documentation. Renaming
943     of methods with Stroke to Line. Groups are stored in a single
944     list with the default as the first element. Groups are searched
945     in the order they appear in the list.
946    
947     * Thuban/Model/color.py: Documentation.
948    
949     * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
950     the kind of data represented by a field.
951    
952     * Thuban/Model/load.py (ProcessSession): Use proper string
953     conversion function; fixes RTbug #1713.
954    
955     * Thuban/Model/save.py (Saver): Store field type information.
956    
957     * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
958     (Table): Add field_info_by_name() to retrieve field information
959     by specifying the field name, not the number.
960    
961     * Thuban/UI/mainwindow.py: Function name changes.
962    
963     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
964     get the layer classification once. Don't try to classify
965     values when the field is None: just use the default properties.
966    
967     * Thuban/UI/view.py: Function name changes.
968    
969     * Doc/thuban.dtd: Add field_type attribute to a classification.
970    
971 bh 456 2003-03-04 Bernhard Herzog <[email protected]>
972    
973 bh 458 * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
974     the fill and stroke layer attributes optional with suitable
975     default values. Add the stroke_width layer attribute. Use correct
976     syntax for empty elements. Make the attribute list for labels
977     refer to the label element.
978    
979     2003-03-04 Bernhard Herzog <[email protected]>
980    
981 bh 456 * setup.py (thuban_build_py.build): Add a comment about distutils in
982     Python 2.3 containing some of the functionality we implement in
983     setup.py ourselves.
984    
985     * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
986     before the selection mode. Doing it the other way round triggers
987     an assertion in wxWindows.
988    
989     * Thuban/Model/save.py (escape): Fix typo in doc-string
990    
991     * Thuban/Model/classification.py: Remove unnecessary wxPython
992     import
993    
994 jonathan 448 2003-03-04 Jonathan Coles <[email protected]>
995    
996     * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
997     Parameter 'value' should default to None.
998    
999     * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
1000     the class attribute __classification is now private.
1001    
1002     * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
1003     Classifier to ClassGrid. Added support for removing selected rows,
1004     which including code for keeping track of when cells are selected,
1005     and deselected.
1006     (ClassTable): Support for added/removing rows. Fixed a problem
1007     with __ParseInput whereby it would not allow strings (only numbers)
1008     to be entered.
1009     (Classifier): Added button and supporting code for removing
1010     selected rows.
1011    
1012 jonathan 445 2003-02-27 Jonathan Coles <[email protected]>
1013 jonathan 434
1014     * Thuban/common.py: Moved color conversion functions into
1015     Thuban/UI/common.py.
1016     (Str2Num): Now converts the float (not the string) to a long/int
1017     so that an exception isn't thrown.
1018    
1019     * Thuban/UI/common.py: Common functions used in several UI modules
1020    
1021     * Thuban/Model/classification.py: Changed the class hierarchy
1022     so that a Classification consists of Groups which return
1023     Properties when a value matches a Group.
1024    
1025     * Thuban/Model/layer.py: Fixed name resolution problem.
1026    
1027     * Thuban/Model/load.py: Use new Classification and Group functions.
1028    
1029     * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
1030     failure.
1031     (Saver.write_classification): Use new Classification and Group
1032     functions.
1033    
1034     * Thuban/UI/classifier.py: Changes to use new Classification and Group
1035 jonathan 445 functions. Fix to create a tuple with a single value instead of
1036     simply returning the value.
1037 jonathan 434
1038     * Thuban/UI/renderer.py: Use new Classification and Group functions.
1039     Use common.py functions.
1040    
1041 jonathan 445 * Thuban/UI/tree.py: Use common.py functions.
1042 jonathan 447
1043     * test/test_classification.py: Use new Classification and Group
1044     classes.
1045 jonathan 434
1046 jonathan 426 2003-02-24 Jonathan Coles <[email protected]>
1047    
1048     * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
1049     functions from Thuban color objects to wxWindow colour objects.
1050    
1051     * Thuban/Model/classification.py (Classification): Renamed
1052     GetProperties() to GetClassData(). Used the new iterator
1053     in TreeInfo().
1054     (ClassIterator): Iterator implementation to iterate over the
1055     ClassData objects in a classification object.
1056    
1057     * Thuban/Model/save.py (Saver.write_classificaton): Uses
1058     the new iterator to save the classification information.
1059    
1060     * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
1061     for changing the stroke and fill colors and previewing the
1062     changes.
1063    
1064     * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
1065     MainWindow.SaveSessionAs): Text string changes so the dialogs
1066     have more meaningful titles.
1067    
1068     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
1069     Classification method name from GetProperties to GetClassData.
1070    
1071     * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
1072     instead of accessing now non-existent class variables.
1073    
1074 bh 425 2003-02-24 Bernhard Herzog <[email protected]>
1075    
1076     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
1077     unneeded Shape() call. Rendering is substantially faster without
1078     it and it avoids some problems with broken shape files.
1079    
1080 frank 423 2003-02-20 Frank Koormann <[email protected]>
1081    
1082     Force minimal size of identify and label dialogs. The autosizing
1083     looked too ugly.
1084    
1085     * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
1086     * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
1087     Set size of listctrl.
1088     * Thuban/UI/identifyview.py (IdentifyView.__init__):
1089     Set size of dialog.
1090    
1091 jonathan 408 2003-02-19 Jonathan Coles <[email protected]>
1092    
1093     * test/test_classification.py, test/test_layer.py,
1094     test/test_load.py, test/test_map.py, test/test_session.py:
1095     Updated the tests to use the new functions that are in the
1096     respective classes.
1097    
1098     * Thuban/Model/classification.py (Classification):
1099     Uses the new ClassData* classes. Modification messages are
1100     passed up to the parent layer (if it exists).
1101     (ClassData): New class to encapsulate the common data in each
1102     classification property.
1103     (ClassDataDefault): Represents the Default class. data.
1104     (ClassDataPoint): Represents a single class. data point
1105     (ClassDataRange): Represents a class. range
1106     (ClassDataMap): Represents a class. map (unused).
1107    
1108     * Thuban/Model/color.py: Added Color.None to represent something
1109     with no color. Color.Black represents the color black.
1110     (NoColor): Helper class derived from Color to represent something
1111     with no color.
1112    
1113     * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
1114     stroke_width attributes. Made the 'classification' attribute private.
1115     New methods for setting/getting the classification.
1116    
1117     * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
1118     to get the classifcation and use the new ClassData* classes to
1119     hold the classification data. Use Str2Num to convert numbers
1120     properly.
1121    
1122     * Thuban/Model/save.py (Saver): Use new Color and Classification
1123     methods
1124    
1125     * Thuban/UI/classifier.py (ClassGrid): New class to represent a
1126     custom grid.
1127     (ClassTable): Support for editing Values and Labels and for
1128     changing what type (point or range) of data is stored in each
1129     property based on how the user enters the data.
1130     (Classifier): Support for saving the new classifications and
1131     launching the dialog to edit a property.
1132     (SelectPropertiesDialog): New class for editing the visual
1133     properties of a classification (stroke color, width, and fill color)
1134     (ClassPreviewer): Took the Draw method from ClassRenderer and
1135     made most of it into this new class. Intend to use this class in
1136     the SelectPropertiesDialog for previewing changes.
1137    
1138     * Thuban/UI/renderer.py: Use new Color and Classification methods.
1139    
1140     * Thuban/UI/tree.py: Formatting changes.
1141    
1142     * Doc/thuban.dtd: Add 'label' element
1143    
1144     * Thuban/common.py: New. Contains common routines used throughout
1145     the code.
1146     (Str2Num): Takes a string and converts it to the "best" type of
1147     number.
1148    
1149 bh 405 2003-02-14 Bernhard Herzog <[email protected]>
1150    
1151     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
1152     dragging flag is always set to 0 even when the tool implementation
1153     raises an exception
1154    
1155 bh 402 2003-02-11 Bernhard Herzog <[email protected]>
1156    
1157     * Thuban/UI/application.py (ThubanApplication.splash_screen): New
1158     method to create a splash screen.
1159     (ThubanApplication.ShowMainWindow): New. Show the main window.
1160     Needed so the splash screen can display the mainwindow
1161     (ThubanApplication.OnInit): Call the
1162     new splash_screen method to determine whether the application
1163     should display a splash screen. If it displays a splash screen do
1164     not immediately show the main window.
1165    
1166 jonathan 399 2003-02-11 Jonathan Coles <[email protected]>
1167    
1168     * Thuban/Model/classification.py: Added import line to fix
1169     feature conflicts between running on python2.2 and python2.1.
1170    
1171     * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
1172     onto the clinfo parameter, so removed the deepcopy().
1173    
1174 jonathan 396 2003-02-10 Jonathan Coles <[email protected]>
1175    
1176 tkoester 403 * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
1177 jonathan 396 Added element_open variable to track opening and closing of tags
1178     so that tags that don't span more than one line are closed with
1179     /> instead of </tag_name>. Use the GetDefault*() methods of
1180     the Classification class.
1181    
1182     * Thuban/Model/classification.py (Classificaton): Added set and
1183     get methods for the default data. The class also takes a layer
1184     reference so that modification messages can be sent. Fixed the
1185     methods to use the new ClassData class.
1186     (ClassData): New class to encapsulate the classification data
1187    
1188     * Thuban/Model/layer.py (Layer): Remove the
1189 tkoester 403 Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
1190 jonathan 396 SetDefault*() methods on the layer's classification object.
1191 tkoester 403 (Layer.__init__): Use the new SetDefault*() methods in the
1192 jonathan 396 Classification class.
1193    
1194     * Thuban/Model/load.py (ProcessSession): Use the new ClassData
1195     object instead of a dictionary.
1196    
1197 tkoester 403 * Thuban/UI/classifier.py (ClassRenderer): New class to
1198 jonathan 396 draw the classifications in the dialog box's table.
1199     (Classifier): Modified to use the ClassRenderer class.
1200    
1201 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
1202     methods of the Classification class.
1203 jonathan 396
1204     * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
1205     of the ClassData class.
1206    
1207     * test/test_classification.py, test/test_layer.py,
1208     test/test_map.py, test/test_session.py: Fix the tests to work
1209     with the above code changes.
1210    
1211 jonathan 387 2003-02-03 Jonathan Coles <[email protected]>
1212    
1213     * Thuban/Model/classification.py (Classification): Added getNull()
1214     to return the NullData reference
1215    
1216     * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
1217     Layer.SetStrokeWidth): Modified these functions to change the
1218     null data in the classification rather than keep these values
1219     directly in the Layer class. Menu options to change these values
1220     work again.
1221    
1222 jonathan 380 2003-01-28 Jonathan Coles <[email protected]>
1223    
1224 jonathan 384 * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
1225 tkoester 403 Fixed crashing problem on some systems. Dialog box shows
1226 jonathan 380 classification data.
1227    
1228 jonathan 384 * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
1229     Colors in the tree view.
1230    
1231     * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
1232     the tree info for classifications. Commented out unnecessary lines.
1233    
1234     * Thuban/Model/classification.py (Classification.TreeInfo): New
1235     function to add information about the classification into the
1236     tree view.
1237    
1238 tkoester 403 2003-01-27 Jan-Oliver Wagner <[email protected]>
1239 jan 375
1240 tkoester 403 * Thuban/__init__.py (_): New.
1241 jan 375
1242     * Thuban/Model/classification.py, Thuban/Model/extension.py,
1243     Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
1244 tkoester 403 Thuban/Model/session.py, Thuban/UI/application.py,
1245     Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
1246     Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
1247     Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
1248     Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
1249     Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
1250 jan 375
1251 jonathan 370 2003-01-27 Jonathan Coles <[email protected]>
1252    
1253 tkoester 403 * Thuban/Model/layer.py: Classification initialization calls.
1254 jonathan 370
1255 tkoester 403 * Thuban/Model/classification.py: Created class to encapsulate
1256     a layer classification. Supports specific data points and
1257     ranges.
1258 jonathan 370
1259 tkoester 403 * Thuban/Model/load.py: Added support for loading classification
1260     information.
1261 jonathan 370
1262 tkoester 403 * Thuban/Model/save.py: Added support for saving classification
1263     information.
1264 jonathan 370
1265 tkoester 403 * Thuban/UI/classifier.py: Initial class for a dialog box for
1266     specifying classification information.
1267 jonathan 370
1268 tkoester 403 * Thuban/UI/mainwindows.py: Support for opening the classifier
1269     dialog.
1270 jonathan 370
1271 tkoester 403 * Thuban/UI/renderer.py: Support for drawing a layer with the
1272     classification information.
1273 jonathan 370
1274 tkoester 403 * Data/iceland_sample_class.thuban: iceland_sample with
1275     classification data.
1276 jonathan 370
1277 tkoester 403 * test/test_classification: Tests for the Classification class.
1278 jonathan 370
1279 bh 359 2002-12-09 Bernhard Herzog <[email protected]>
1280    
1281 bh 361 * test/test_command.py: New. Tests for the command classes.
1282    
1283 bh 359 * Thuban/UI/command.py (ToolCommand): New class for tool commands.
1284     (Command.IsTool): New method to distinguish between command
1285     switching tools and other commands.
1286    
1287     * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
1288     the tool to avoid direct assignments to instance variables
1289     (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
1290     (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
1291     change the tool
1292    
1293     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
1294     active tool's command turns insensitive, disable the tool.
1295     (_tool_command): Use the new ToolCommand class
1296    
1297     * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
1298     SelectTool method to change the tool
1299     (iconfile): Use the ToolCommand class
1300    
1301 bh 354 2002-12-03 Bernhard Herzog <[email protected]>
1302    
1303     * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
1304     the case of selected items that are not children of Layers or Maps
1305     properly. Previously this bug would trigger an assertion in
1306     wxWindows.
1307    
1308 frank 352 2002-11-06 Frank Koormann <[email protected]>
1309    
1310 bh 354 * Thuban/UI/mainwindow.py: Altered the order of tools in the
1311     toolbar: First now are all navigation tools (Zoom In/Out, Pan,
1312     Full Extent).
1313 tkoester 403
1314 bh 349 2002-10-23 Bernhard Herzog <[email protected]>
1315    
1316     * setup.py (setup call): version now 0.1.3
1317    
1318     * MANIFEST.in: Add the files in test/
1319    
1320     * test/README: Add note about tests requiring the iceland data
1321    
1322     * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
1323     copyright notice.
1324    
1325 bh 344 2002-10-18 Bernhard Herzog <[email protected]>
1326    
1327     * test/test_map.py
1328     (TestMapWithContents.test_projected_bounding_box): Use an explicit
1329     epsilon.
1330    
1331     * test/support.py (FloatComparisonMixin.assertFloatEqual)
1332     (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
1333     message if the assertion fails and don't return the return value
1334     of self.assert_. In assertFloatSeqEqual the return meant that not
1335     all items of the sequence were compared.
1336    
1337 bh 326 2002-09-20 Bernhard Herzog <[email protected]>
1338    
1339 bh 341 * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
1340    
1341     * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
1342    
1343 bh 338 * test/test_map.py (TestMapWithContents.test_tree_info): Create
1344     the string with the bounding box on the fly because of platform
1345     differences in the way %g is handled.
1346    
1347     * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
1348     DBFfile too because Thuban layers can't yet cope missing DBF
1349     files.
1350    
1351     2002-09-20 Bernhard Herzog <[email protected]>
1352    
1353 bh 326 * test/test_menu.py: Use initthuban instead of
1354     add_thuban_dir_to_path to initialize Thuban.
1355    
1356     * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
1357     Mixin class for float comparisons
1358     (SubscriberMixin): New. Mixin class to test messages sent through
1359     the Connector class
1360    
1361     * test/README: Fix a typo and add the -v flag to the command for
1362     individual tests
1363    
1364 bh 335 * test/test_session.py: New. Test cases for Thuban.Model.session
1365    
1366     * test/test_proj.py: New. Test cases for Thuban.Model.proj
1367    
1368     * test/test_map.py: New. Test cases for Thuban.Model.map
1369    
1370     * test/test_layer.py: New. Test cases for Thuban.Model.layer
1371    
1372     * test/test_label.py: New. Test cases for Thuban.Model.label
1373    
1374     * test/test_connector.py: New. Test cases for Thuban.Lib.connector
1375    
1376     * test/test_color.py: New. Test cases for Thuban.Model.color
1377    
1378     * test/test_base.py: New. Test cases for Thuban.Model.base
1379    
1380 bh 322 2002-09-13 Bernhard Herzog <[email protected]>
1381    
1382     * Thuban/Model/session.py (Session.forwarded_channels): Forward
1383     the CHANGED channel too.
1384    
1385     * Thuban/Model/map.py (Map.forwarded_channels): Forward the
1386     CHANGED channel too.
1387     (Map.__init__): Call the Modifiable constructor as well.
1388    
1389     * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
1390     event if the modified flag changes.
1391     (Modifiable.changed): Tweak the doc-string.
1392    
1393     * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
1394     (MainWindow.set_position_text): Put the code that puts the text
1395     with the mouse position into the status bar into the new method
1396     set_position_text so that it can overwritten in derived classes.
1397    
1398 bh 317 2002-09-12 Bernhard Herzog <[email protected]>
1399    
1400     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
1401     message box on the main window.
1402    
1403 bh 313 2002-09-11 Bernhard Herzog <[email protected]>
1404    
1405     * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
1406     the 'E' because it's less likely to interfere with other menu
1407     entries.
1408 bh 315 (MainWindow.build_menu): remove an incorrect comment.
1409 bh 313
1410 bh 311 2002-09-10 Bernhard Herzog <[email protected]>
1411    
1412     * Thuban/UI/mainwindow.py (MainWindow.Map): New.
1413     (_tool_command): Add sensitive parameter
1414     (_has_visible_map): Sensitivity callback to tools and other
1415     commands that require a visible map. Use it in map_zoom_in_tool,
1416     map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
1417     and map_full_extent
1418    
1419 bh 308 2002-09-06 Bernhard Herzog <[email protected]>
1420    
1421     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1422     VIEW_POSITION
1423    
1424 tkoester 403 2002-09-04 Frank Koormann <[email protected]>
1425 frank 306
1426     * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1427    
1428 bh 302 2002-09-02 Bernhard Herzog <[email protected]>
1429    
1430 bh 304 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
1431     wxWindows already and our implementation doesn't work correctly
1432     with wxGTK 2.3:
1433     (MapCanvas.__init__): Remove the instance variable
1434     (MapCanvas.OnPaint): Always call do_redraw when there's a map to
1435     be drawin
1436     (MapCanvas.OnIdle): Removed.
1437    
1438 bh 302 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
1439     a parameter to determine the size of the rectangle.
1440     (MapCanvas.find_shape_at): Create the box around the point on a
1441     layer by layer basis and make the size depend on the shape type.
1442     This solves a problem with the selection of point shapes at the
1443     border of the layer's bounding box
1444    
1445 bh 292 2002-08-30 Bernhard Herzog <[email protected]>
1446    
1447 bh 300 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
1448     for the sensitivity of remove layer.
1449     (_can_remove_layer): New. Sensitivity callback for remove layer
1450     (Command layer_remove): Use _can_remove_layer
1451    
1452     * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
1453     determine whether a given layer can be deleted.
1454    
1455 bh 297 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1456     (MapCanvas.do_redraw): Get rid of the unused update_region
1457     instance variable
1458    
1459 bh 294 * Thuban/UI/view.py: Add/update some doc-strings.
1460    
1461 bh 292 * test/: new subdirectory with a bunch of unit tests.
1462    
1463     * test/README, test/test_table.py, test/test_save.py,
1464     test/test_menu.py, test/test_load.py: Initial set of tests and
1465     brief instructions on how to run them
1466    
1467 bh 287 2002-08-29 Bernhard Herzog <[email protected]>
1468    
1469 bh 291 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1470     arcs with multiple parts.
1471    
1472 bh 289 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1473     Handle degenrate rectangles.
1474    
1475 bh 287 * Thuban/Model/table.py: Make writing records work correctly:
1476     (Table.__init__): Keep track of whether the DBF is open for
1477     writing
1478     (Table.write_record): Open the DBF file for writing when necessary
1479    
1480 bh 285 2002-08-27 Bernhard Herzog <[email protected]>
1481    
1482     * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
1483     dbf files only for reading by default. Use a new writable dbf
1484     object for writing.
1485    
1486 bh 278 2002-08-26 Bernhard Herzog <[email protected]>
1487    
1488 bh 282 * Thuban/UI/mainwindow.py: Refactor the context creation:
1489     (MainWindow.Context): New method to return a context
1490     (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
1491     new method
1492    
1493 bh 278 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
1494     layer table specific code from TableGrid into LayerTableGrid
1495     (TableFrame, LayerTableFrame): Split the layer table specific code
1496     from TableFrame into LayerTableFrame
1497 bh 280 (LayerTableGrid.select_shape): Remove a debug print
1498 bh 278
1499     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1500     LayerTableFrame
1501    
1502 bh 277 2002-08-23 Bernhard Herzog <[email protected]>
1503    
1504     * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
1505     absolute filename.
1506    
1507 bh 269 2002-08-22 Bernhard Herzog <[email protected]>
1508    
1509 bh 275 * Thuban/Model/table.py (Table.write_record): New method to write
1510     records.
1511 tkoester 403 (Table.__init__): Open the DBF file for writing too.
1512 bh 275
1513     * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1514     into the underlying table.
1515    
1516     * extensions/shapelib/shapefil.h (DBFCommit),
1517     extensions/shapelib/dbfopen.c (DBFCommit): New API function to
1518     commit any changes made to the DBF file.
1519    
1520 bh 271 * Thuban/UI/mainwindow.py (make_check_current_tool)
1521     (_tool_command): Put the code that generates the "checked"
1522     callback into a separate function so that we can reuse it
1523     elsewhere
1524    
1525 bh 269 * Thuban/Model/save.py (Saver): New class to handle serializing a
1526     session into an XML file. The main reason to introduce a class is
1527     that applications built on Thuban can derive from it so that they
1528     can save additional information in a session file.
1529     (save_session): Delegate almost all the work to the Saver class.
1530     Rename the filename argument to file because it may be a file like
1531     object now.
1532    
1533     * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
1534     code. Remove the little test code which would be executed when the
1535     module is run as a script which didn't work anymore since it can't
1536     import the other Thuban modules.
1537     (ProcessSession, load_session): Refactor the ProcessSession to
1538     have one method for each element start and end tag so that derived
1539     classes can easily override the processing of individual tags.
1540     Also, always parse with namespaces enabled because applications
1541     built on top of Thuban will likely use namespaces if they extend
1542     the session file format.
1543    
1544 bh 266 2002-08-21 Bernhard Herzog <[email protected]>
1545    
1546     * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1547     because thubaninit_contents will do it for us.
1548    
1549 tkoester 403 2002-08-16 Jan-Oliver Wagner <[email protected]>
1550 jan 265
1551     * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1552     tree window already open
1553    
1554 bh 259 2002-08-15 Bernhard Herzog <[email protected]>
1555    
1556 bh 263 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
1557     with self.
1558    
1559     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
1560     when we have actually captured it.
1561    
1562 bh 259 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
1563     shapefile and destroy the table.
1564    
1565     * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
1566    
1567 bh 254 2002-08-14 Bernhard Herzog <[email protected]>
1568    
1569 bh 256 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
1570     instance variable columns
1571     (RecordTable.GetTypeName): row and col may be negative in some
1572     cases.
1573    
1574 bh 254 * setup.py (InstallLocal.initialize_options)
1575     (InstallLocal.finalize_options, InstallLocal.user_options): New
1576     option create-init-file to build a thubaninit.py when running
1577     install_local
1578     (InstallLocal.run): Create the thubaninit.py module when requested
1579     (thubaninit_contents): Split the template into several parts and
1580     create a new function thubaninit_contents that creates the
1581     contents of a thubaninit module.
1582     (ThubanInstall.run): Use the new function to create the thubaninit
1583     module.
1584    
1585 bh 252 2002-07-30 Bernhard Herzog <[email protected]>
1586    
1587     * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
1588     cleanup.
1589     (ThubanApplication.MainLoop): Extend to automatically call OnExit.
1590    
1591     * Thuban/Model/session.py (Session.Destroy): Don't bypass the
1592     direct base class' Destroy method.
1593    
1594     * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
1595     layers.
1596     (Map.Destroy): Destroy the label_layer as well and call the
1597     inherited Desatroymethod first so that no more messages are
1598     issued.
1599     (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
1600     message if the stacking order actually has changed. Add
1601     doc-strings.
1602     (Map.BoundingBox): Correct the doc-string.
1603     (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
1604     (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
1605    
1606     * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
1607     all labels.
1608    
1609 bh 247 2002-07-29 Bernhard Herzog <[email protected]>
1610    
1611     * Thuban/Model/map.py (Map.subscribe_layer_channels)
1612     (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
1613     to a layer's channels into separate methods.
1614     (Map.RemoveLayer, Map.AddLayer): Call the new methods
1615     (Map.Destroy): Unsubscribe from a layer's channels before
1616     destroying it.
1617    
1618     * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
1619     selected_layer parameter to searched_layer which is the layer to
1620     search in.
1621     (MapCanvas.SelectShapeAt): New parameter layer to restrict the
1622     search to that layer. Return the selected layer and shape.
1623    
1624     * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
1625     typo
1626    
1627 bh 238 2002-07-24 Bernhard Herzog <[email protected]>
1628    
1629 bh 243 * Thuban/UI/application.py (ThubanApplication.create_session):
1630     Extend the doc string.
1631     (ThubanApplication.subscribe_session)
1632     (ThubanApplication.unsubscribe_session): New methods to
1633     subscribe/unsubscribe to/from session channels.
1634     (ThubanApplication.SetSession): Call the new methods here.
1635     (ThubanApplication.maps_changed, ThubanApplication.set_map):
1636     Renamed set_map to maps_changed. Its now a subscriber for
1637     MAPS_CHANGED.
1638    
1639     * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
1640     x-coordinate in case of simple clicks
1641    
1642     * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
1643     don't pass it as a parameter
1644    
1645     * Thuban/Model/session.py (Session.RemoveMap): New
1646    
1647 bh 238 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1648     window size into a parameter.
1649    
1650 bh 235 2002-07-23 Bernhard Herzog <[email protected]>
1651    
1652 bh 237 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1653     just commands.
1654    
1655 bh 235 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
1656     parameter list a bit to allow setting the window title and the
1657     initial message in the status bar. Update the callers.
1658    
1659     * Thuban/UI/application.py (ThubanApplication.OnInit)
1660     (ThubanApplication.CreateMainWindow): Put the mainwindow
1661     instantiation into a separate method so that it can be overridden
1662     by a subclass.
1663    
1664 bh 230 2002-07-19 Bernhard Herzog <[email protected]>
1665    
1666 bh 234 * Thuban/Model/session.py: Issue a CHANGED message every time
1667     another changed message is issued to make it easier to get
1668     notified of changes.
1669     (Session): Update the doc string
1670     (Session.forward): Issue changed-events as CHANGED as well.
1671     (Session.changed): Overwrite the inherited version to issue
1672     CHANGED events as well.
1673    
1674     * Thuban/UI/tree.py: We can now simply subscribe to the session's
1675     CHANGED channel to be informed of changes.
1676     (SessionTreeCtrl.session_channels): Not needed any longer.
1677 tkoester 403 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1678 bh 234 Only have to (un)subscribe CHANGED
1679    
1680     * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1681    
1682 bh 230 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
1683     for the wxPython locale bug to __init__.py so that it's
1684     automatically executed by anybody using UI code from Thuban.
1685    
1686 bh 225 2002-07-18 Bernhard Herzog <[email protected]>
1687    
1688 bh 228 * Thuban/UI/main.py (main): app no longer needs to be global
1689    
1690     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
1691     as parameter and store it in an instance variable
1692     (MainWindow.invoke_command, MainWindow.update_command_ui)
1693     (MainWindow.save_modified_session, MainWindow.NewSession)
1694     (MainWindow.OpenSession, MainWindow.SaveSession)
1695     (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
1696     application object.
1697    
1698     * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
1699     the main window with self.
1700    
1701 bh 225 * Thuban/UI/context.py: New module with the context class
1702    
1703     * Thuban/UI/command.py (Command): Update doc string.
1704    
1705     * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
1706     MainWindow.update_command_ui): Pass an instance of the context
1707     class to the command's methods
1708     (check_current_tool, call_method): Handle the new context
1709     implementation
1710    
1711     * Examples/simple_extensions/simple_tool.py (simple_tool,
1712     check_simple_tool): Handle the new context implementation
1713    
1714     * Examples/simple_extensions/simple_command.py (simple_command):
1715     Handle the new context implementation. Update the comments about
1716     the context.
1717    
1718     * Thuban/UI/application.py (ThubanApplication.SetSession): Add
1719     doc-string
1720     (ThubanApplication.Session): New method to return the session
1721     object
1722    
1723     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
1724     interactor's selected_layer may not be a layer of the current
1725     session when the tree is updated while a new session is being set.
1726    
1727 bh 217 2002-07-17 Bernhard Herzog <[email protected]>
1728    
1729     * Thuban/UI/tree.py (color_string): Removed. No longer used.
1730     (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
1731     update_tree into update_tree and add_items. The tree now uses a
1732     more generic way to display the contents of the tree.
1733     (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
1734    
1735     * Thuban/Model/layer.py (Layer.TreeInfo),
1736     Thuban/Model/extension.py (Extension.TreeInfo),
1737     Thuban/Model/map.py (Map.TreeInfo),
1738 tkoester 403 Thuban/Model/session.py (Session.TreeInfo):
1739 bh 217 Add TreeInfo methods to implement the new tree view update scheme
1740    
1741 bh 216 2002-07-16 Bernhard Herzog <[email protected]>
1742    
1743     * Thuban/UI/application.py: Don't use "import from" for the
1744     MainWindow. It can't always be resolved.
1745     (ThubanApplication.OnInit): change reference to MainWindow
1746     accordingly.
1747    
1748     * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
1749     completely
1750    
1751 bh 213 2002-07-10 Bernhard Herzog <[email protected]>
1752    
1753     * setup.py (create_init_module): New configurable variable whose
1754     default depends on the platform we're running on.
1755     (ThubanInstall.initialize_options): Initialize
1756     self.create_init_module from the global create_init_module
1757     (ThubanInstall.user_options): indictate that the options
1758     create-init-module and init-module-dir have arguments.
1759    
1760     * setup.py: In the setup call change the version number to include
1761     cvs.
1762    
1763     * MANIFEST.in: Add the files in Examples
1764    
1765 bh 205 2002-07-09 Bernhard Herzog <[email protected]>
1766    
1767 bh 210 * setup.py: In the setup call, use the thuban homepage as the
1768     value of the url parameter.
1769    
1770 bh 208 * Examples: New subdirectory for examples.
1771    
1772     * Examples/simple_extensions/simple_tool.xpm,
1773     Examples/simple_extensions/simple_tool.py,
1774     Examples/simple_extensions/simple_command.py,
1775     Examples/simple_extensions/README: Simple examples showing how to
1776     add new commands and tools.
1777    
1778 bh 207 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
1779     bdist_rpm that we also have an install script.
1780     (bdist_inno): Add 2002 to the copyright notice.
1781    
1782 bh 205 * setup.py: Create a file in python's site-packages directory to
1783     make installation of Thuban as a library easier.
1784     (ThubanInstall.user_options): Add two new options,
1785     create-init-module and init-module-dir
1786     (ThubanInstall.expand_with_pure_python_dirs): New method to expand
1787     filenames for installation in the default directories.
1788     (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
1789     the inherited methods to capture some filenames before they're
1790     transformed too much by distutils.
1791     (ThubanInstall.run): Create the init module if requested.
1792     (ThubanInstall.thuban_init_filename): New method to return the
1793     full name of the init module.
1794     (ThubanInstall.get_outputs): Append the filename of the init
1795     module.
1796    
1797 bh 202 2002-07-08 Bernhard Herzog <[email protected]>
1798    
1799 bh 205 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
1800     handle the prefix properly which means that the default for the
1801     installation prefix should be /usr for RPMs and /usr/local when
1802     doing a normal source install.
1803     (bdist_rpm_install_script): Script to override the default install
1804     commands in the specfile generated by the bdist_rpm command.
1805     (thuban_bdist_rpm.user_options): Add a prefix option
1806     (thuban_bdist_rpm.initialize_options): Init the prefix option.
1807     Create the script files for the spec files as empty files here
1808     (thuban_bdist_rpm._make_spec_file): Override the inherited method
1809     to fill the script files with content.
1810    
1811 bh 202 * Thuban/Model/save.py (relative_filename): Wrapper around
1812     Thuban.Lib.fileutil.relative_filename that accepts an empty dir
1813     argument. save_session now automatically uses this version,
1814     solving a problem when saving to a relative filename.
1815    
1816     * setup.py: In the setup call, make sure that the library
1817     directories are under $prefix/lib not directly under $prefix.
1818    
1819 tkoester 403 2002-06-20 Jan-Oliver Wagner <[email protected]>
1820 jan 199
1821     * Thuban/Model/extension.py: new module to handle extension objects.
1822     * Thuban/Model/messages.py: new messages for extensions.
1823     * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
1824     Session.AddExtension): new for handling extensions.
1825     Also some other minor changes to round up extension handling.
1826     * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
1827     of Extension titles and title and names of its objects.
1828    
1829 bh 194 2002-05-29 Bernhard Herzog <[email protected]>
1830    
1831     * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
1832 bh 202 the events for a command.
1833 bh 194 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
1834     Call bind_command_events to bind the events. add_toolbar_command
1835     can now bind events too so that it's possible to have commands
1836     that are only available through the toolbar.
1837     (MainWindow.init_ids): New instance variable events_bound to keep
1838     track of for which commands events have been bound.
1839    
1840 bh 190 2002-05-28 Bernhard Herzog <[email protected]>
1841    
1842     * Thuban/UI/menu.py: New module to build and manage menus.
1843    
1844     * Thuban/UI/mainwindow.py: Remove some unused imports.
1845     (MainWindow.__init__, main_menu): move the definition of the main
1846     menu from __init__ to the Menu instance main_menu.
1847     (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
1848     build the menu bar and sub-menus from a menu description.
1849    
1850     * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
1851     startup file
1852     (ThubanApplication.read_startup_files): New method to run
1853     ~/.thuban/thubanstart.py
1854    
1855 bh 192 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
1856     Move the toolbar definition to the Menu instance main_toolbar.
1857     (MainWindow.build_toolbar): New method to build the toolbar
1858     similar to the build_menu methods
1859    
1860 bh 184 2002-05-23 Bernhard Herzog <[email protected]>
1861    
1862 bh 186 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1863     layer_outline_color. Fix it in the definition of the command too.
1864    
1865 bh 184 * Thuban/UI/command.py (Command): Fix typo in doc string
1866    
1867 bh 182 2002-05-22 Bernhard Herzog <[email protected]>
1868    
1869     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1870     in the docstring
1871    
1872 bh 175 2002-05-15 Bernhard Herzog <[email protected]>
1873    
1874 bh 180 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
1875     when the shapefile is empty.
1876     (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
1877     now return None for empty shapefiles. Update doc-strings.
1878    
1879     * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
1880     the layer's bbox being None.
1881    
1882     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
1883     layer's bbox being None.
1884    
1885 bh 175 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
1886     necessary.
1887     (MapCanvas.__init__): New instance variables, last_selected_layer
1888     and last_selected_shape to determine how the selection has
1889     changed.
1890    
1891     * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
1892     AutoSizeColumns because it will cause a traversal of the entire
1893     table which for large .dbf files will take a very long time.
1894    
1895 bh 172 2002-05-14 Bernhard Herzog <[email protected]>
1896    
1897     * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
1898     maximum depth for the tree than shapelib does by default.
1899    
1900 bh 165 2002-05-10 Bernhard Herzog <[email protected]>
1901    
1902     * setup.py (py_modules): The shptree modules doesn't have a
1903     wrapper, so don't include it in the py_modules
1904    
1905 bh 163 2002-05-08 Bernhard Herzog <[email protected]>
1906    
1907     * extensions/shapelib/shptree.c (compare_ints): Make arguments
1908     const void * as in the qsort prototype
1909     (SHPTreeFindLikelyShapes): Remove some unused variables.
1910    
1911     * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
1912     maintains to redraw the window during a drag.
1913     (MapCanvas.unprojected_rect_around_point): New method to determine
1914     a small region around a point for hit-testing.
1915     (MapCanvas.find_shape_at): Only test the shapes in a small region
1916     around the point.
1917    
1918     * setup.py: Increment the version to 0.1.2
1919    
1920     * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
1921     debug print and set session to None after unsubscribing
1922    
1923 bh 146 2002-05-07 Bernhard Herzog <[email protected]>
1924    
1925 bh 154 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
1926     the file to have a .thuban extension.
1927    
1928 bh 152 * Thuban/UI/tree.py (session_channels): New class constant with
1929     all the session channels to subscribe to to update the tree
1930     (SessionTreeCtrl.session_changed): Remember the session so that we
1931     can unsubscribe properly. Use the new class constant to
1932     unsubscribe from the old session and subscribe to the new one.
1933     (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
1934     subscriptions of the SessionTreeCtrl.
1935     (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
1936    
1937     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
1938     Session Tree" command to the file menu.
1939    
1940     * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
1941     as update_region to the renderer.
1942    
1943     * Thuban/UI/renderer.py
1944     (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
1945     update box is now directly a tuple, not a wxRect anymore.
1946    
1947     * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
1948     prints.
1949    
1950     2002-05-07 Bernhard Herzog <[email protected]>
1951    
1952 bh 146 * setup.py: Add the shptree extension module. See
1953     extensions/pyshapelib/ChangeLog for more details.
1954    
1955     * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
1956     extensions/shapelib/dbfopen.c: Really update to the versions of
1957     shapelib 1.2.9. For some reason it wasn't really done on
1958     2002-04-11.
1959    
1960     * extensions/shapelib/shptree.c: Modified version of shptree.c of
1961     shapelib 1.2.9. The only real difference is the use of qsort
1962     instead of a bubble sort implementation
1963    
1964     * Thuban/Model/layer.py (Layer.__init__): New instance variable
1965     shapetree to hold the shapelib quadtree for the shapefile
1966     (Layer.open_shapefile): Create the quad tree.
1967     (Layer.ShapesInRegion): New method to return the ids of shapes in
1968     a given region using the quad tree.
1969    
1970     * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
1971     comment
1972     (draw_polygon_shape): Accept both arcs and polygons.
1973     (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
1974     the api.
1975    
1976     * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
1977     return the shape ids to be rendered in a given layer.
1978     (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
1979     ids. Use draw_polygon_shape to draw arc shapes as well.
1980     (ScreenRenderer.RenderMap): New parameter for the rectangle that
1981     has to be updated
1982     (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
1983     calling it's ShapesInRegion method.
1984    
1985     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1986     update_region for the update region.
1987     (MapCanvas.OnPaint): Maintain the update region
1988     (MapCanvas.do_redraw): Pass the bounding box of the update_region
1989     to the renderer when drawing the bitmap. Reset the update_region.
1990    
1991 bh 129 2002-05-03 Bernhard Herzog <[email protected]>
1992    
1993 bh 131 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
1994     MainWindow.OpenSession): Change the file extension of the session
1995     files to .thuban
1996    
1997 bh 129 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
1998     Move the map channels to be forwarded by the session into the
1999 bh 146 class constant with forwarded_channels. Also add
2000     LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
2001     forwarded_channels
2002 bh 129
2003     * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
2004     typo and some rewording).
2005    
2006 bh 126 2002-05-02 Bernhard Herzog <[email protected]>
2007    
2008     * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
2009     around to speed up most redraws:
2010     (MapCanvas.__init__): New instance variable bitmap which holds the
2011     bitmap
2012     (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
2013     self.bitmap to draw.
2014     (MapCanvas.full_redraw): New method to force a full redraw
2015     including the bitmap
2016     (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
2017     make sure the bitmap is redrawn.
2018     (MapCanvas.projection_changed, MapCanvas.set_view_transform,
2019     MapCanvas.shape_selected): Call full_redraw instead of readraw to
2020     make sure the bitmap is redrawn.
2021     (MapCanvas.OnSize): New method to handle size events so that the
2022     bitmap can be redrawn.
2023    
2024 bh 124 2002-04-29 Bernhard Herzog <[email protected]>
2025    
2026     * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
2027     canvas' VIEW_POSITION event
2028     (MainWindow.view_position_changed): Handler for VIEW_POSITION.
2029     Update the text in the status-bar accordingly.
2030    
2031     * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
2032     (MapCanvas.__del__): Implement because Publisher.__del__ has to be
2033     called.
2034     (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
2035     current_position
2036     (MapCanvas.set_current_position): New method to set
2037     current_position. Issue a VIEW_POSITION event
2038     (MapCanvas.CurrentPosition): New public method to return the value
2039     of current_position. Should be called when the VIEW_POSITION event
2040     is processed.
2041     (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
2042     Update the position.
2043     (MapCanvas.OnLeaveWindow): Set the position to None.
2044    
2045     * Thuban/UI/messages.py (VIEW_POSITION): New message for the
2046     position in the statusbar
2047    
2048 tkoester 403 2002-04-26 Frank Koormann <[email protected]>
2049 frank 120
2050     * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
2051    
2052 tkoester 403 2002-04-24 Frank Koormann <[email protected]>
2053    
2054 frank 118 * Resources/Bitmaps/identify.xpm: shadow added
2055    
2056     * Resources/Bitmaps/fullextent.xpm: new
2057 jan 116
2058 tkoester 403 2002-04-22 Jan-Oliver Wagner <[email protected]>
2059 jan 116
2060 tkoester 403 * Thuban/UI/tree.py (update_tree): added test for None on map bounding
2061     box
2062 jan 114
2063 tkoester 403 2002-04-21 Jan-Oliver Wagner <[email protected]>
2064    
2065 jan 114 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
2066    
2067     * Thuban/UI/tree.py (update_tree): added added map extent
2068    
2069     * Thuban/UI/mainwindow.py (_method_command): extended by parameter
2070 tkoester 403 icon; added map_full_extend as tool
2071 jan 114
2072 tkoester 403 2002-04-19 Jan-Oliver Wagner <[email protected]>
2073 jan 107
2074     * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
2075     saving _new_ sessions
2076    
2077     * Thuban/Model/session.py (create_empty_session): new session
2078     don't have a filename (set to None)
2079    
2080     * Thuban/UI/tree.py (update_tree): added filename and modified flag
2081    
2082     * Thuban/Model/load.py (ProcessSession): convert projection
2083     parameters from unicode to regular string
2084    
2085     * Data/iceland_sample.session: Added UTM Zone 26 projection.
2086    
2087 bh 100 2002-04-11 Bernhard Herzog <[email protected]>
2088    
2089     * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
2090     extensions/shapelib/dbfopen.c: Update to the versions of shapelib
2091     1.2.9
2092    
2093     * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
2094     the pyshapelib directoy into the list of include dirs, so that
2095     pyshapelib_api.h can be found.
2096    
2097     * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
2098     holds the pyshapelib C-API
2099     (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
2100     pyshapelib_api to access the shapelib functions.
2101     (initwxproj): Import the c_api from the shapelib module and
2102     initialize pyshapelib_api.
2103    
2104 bh 89 2002-04-04 Bernhard Herzog <[email protected]>
2105    
2106 bh 91 * setup.py (thuban_bdist_rpm.initialize_options): Use
2107     initialize_options to create the scripts for the rpm.
2108    
2109 bh 89 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
2110    
2111 bh 85 2002-04-03 Bernhard Herzog <[email protected]>
2112    
2113 bh 87 * setup.py: Increment version to 0.1.1
2114    
2115 bh 85 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
2116     Layer" and "Remove Layer" commands from the layer menu to the map
2117     menu
2118    
2119 bh 83 2002-02-15 Bernhard Herzog <[email protected]>
2120    
2121     * Thuban/Model/layer.py (Layer.Shape): list append only takes one
2122     argument (python <= 1.5.2 erroneously accepted multiuple
2123     arguments)
2124    
2125 bh 81 2002-02-04 Bernhard Herzog <[email protected]>
2126    
2127     * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
2128     RecordGrid in the identifyview.
2129     (IdentifyView.__init__): Use IdentifyGridCtrl instead of
2130     IdentifyListCtrl. The grid allows editing of the values.
2131    
2132     * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
2133     implementing a grid for a single row of a thuban table.
2134    
2135     * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
2136     layers by default. Easier to use than the previous default of only
2137     searching through the select layer which meant that if no layer
2138     was selected, you couldn't select a shape.
2139    
2140     * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
2141    
2142     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
2143     stroke_width attribute
2144    
2145     * Thuban/Model/save.py (save_session): Write the new stroke_width
2146     attribute
2147    
2148     * Thuban/Model/load.py (ProcessSession.startElement): Read the
2149     stroke_width attribute
2150    
2151     * Thuban/Model/layer.py (Layer.__init__): New parameter and
2152     instance variable stroke_width
2153     (Layer.SetStrokeWidth): Set the stroke_width.
2154    
2155 bh 72 2002-02-01 Bernhard Herzog <[email protected]>
2156    
2157     * extensions/thuban/wxproj.cpp (project_points): Fix two
2158     off-by-one errors in the last loop that joins the various parts
2159     together.
2160    
2161 bh 71 2002-01-14 Bernhard Herzog <[email protected]>
2162    
2163     * setup.py (data_dist.make_distribution): Fix some typos
2164    
2165 bh 70 2001-09-18 Bernhard Herzog <[email protected]>
2166    
2167     * README: Slight tweaking in preparation for the 0.1 release
2168    
2169     * setup.cfg: Add section for sdist to create both tgz and zip
2170     archives
2171    
2172     * setup.py: increase version number to 0.1
2173     (data_dist): New command class for data distribution
2174    
2175 bh 64 2001-09-14 Bernhard Herzog <[email protected]>
2176    
2177 bh 70 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
2178     Handle the case of no layer (i.e. layer is None) properly.
2179    
2180 tkoester 403 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
2181 bh 70 Set the initial selection of the combo boxes to reflect the
2182     projection we're starting with in a way that works on windows,
2183     too.
2184    
2185 bh 64 * Thuban/Lib/connector.py (Connector.print_connections): Print the
2186     puiblisher's ids in hex to make it easier to compare them to the
2187     standard repr of python methods
2188    
2189     * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
2190     messages
2191    
2192 bh 59 2001-09-13 Bernhard Herzog <[email protected]>
2193    
2194 bh 64 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
2195     deselect the layer if no layer is selected
2196    
2197 bh 59 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
2198     idle time when there actually is something to draw. If there's
2199     nothing to draw simply clear the window
2200     (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
2201     (MapCanvas.SetMap): force a redraw in all cases because
2202     FitMapToWindow doesn't always do it.
2203     (MapCanvas.ZoomFactor): Add an optional parameter, center, to
2204     specify the point to move into the center of the window
2205     (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
2206     dragged, zoon in/out by a factor of 2
2207 bh 64 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
2208     index, i.e. reversed drawing order) so that objects appearing to
2209     be in from of others are selected first. This is probably mostly
2210     relevant for point shapes where the symbols used may overlap
2211 bh 59
2212     * Thuban/Model/session.py (create_empty_session): Unset the
2213     modified bit before returning it
2214    
2215     * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
2216     create_empty_session session to create the new, empty session.
2217    
2218     * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
2219     the tool bitmaps.
2220     (MainWindow.OnClose, MainWindow.save_modified_session): Separate
2221     the code that asks whether the session should be saved into the
2222     new method save_modified_session.
2223     (MainWindow.OpenSession, MainWindow.NewSession): Use the new
2224     method to save modified session here too.
2225    
2226 bh 55 2001-09-11 Bernhard Herzog <[email protected]>
2227    
2228     * setup.py (InnoIconItem): fix typo
2229    
2230     (thuban_bdist_inno.run):
2231     (bdist_inno.run): Move the decision not to create symlinks on
2232     non-nt platforms to thuban_bdist_inno and do it unconditinally
2233     since we never want to create the symlinks here
2234    
2235 bh 48 2001-09-10 Bernhard Herzog <[email protected]>
2236    
2237 bh 53 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
2238     identify view immediately
2239    
2240     * Thuban/UI/controls.py: New file with two classes RecordListCtrl
2241     and SelectableRecordListCtrl that implement the code shared by the
2242     identify view and the label dialog
2243    
2244     * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
2245     new class RecordListCtrl
2246    
2247     * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
2248     return value of GetValue is None instead of using it as a boolean
2249     directly so that Zero numbers are handled properly.
2250     (LabelListCtrl): Derive from the new class
2251     SelectableRecordListCtrl
2252    
2253 bh 48 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
2254     (Proj4Dialog.dialogLayout): Make the window resizable and set the
2255     size of the text control explicitly to make the sizers work on
2256     both Windows and X.
2257    
2258 bh 44 2001-09-07 Bernhard Herzog <[email protected]>
2259    
2260     * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
2261     that can limit the search to the currently selected layer.
2262     (MapCanvas.SelectShapeAt): Make sure that the currently selected
2263     layer stays selected even when no shape is found
2264 bh 46 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
2265     height do nothing (avoids zero division errors)
2266 bh 44
2267 bh 32 2001-09-06 Bernhard Herzog <[email protected]>
2268    
2269 bh 42 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
2270     Correct the spelling of SessionTreeCtrl. dabbrev is too damn
2271     convenient :-)
2272     (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
2273     a new instvar layer_to_item to map layers to tree items
2274     (SessionTreeCtrl.layer_selected): Select the appropriate tree item
2275     to match the current selection in the interactor
2276    
2277 bh 40 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
2278     (Interactor.HasSelectedLayer): New methods to query the current
2279     selection
2280    
2281     * Thuban/UI/mainwindow.py (MainWindow.current_layer):
2282     (MainWindow.has_selected_layer): Simply call the appropriate
2283     interactor method
2284    
2285     * Thuban/UI/mainwindow.py (MainWindow.__init__):
2286     (MainWindow.LayerShowTable):
2287     (MainWindow.identify_view_on_demand): Store the interactor in an
2288     instvar and use that reference instead of going through main.app
2289    
2290 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2291     * Thuban/UI/application.py (ThubanApplication.OnInit):
2292 bh 40 * Thuban/UI/main.py (main): Create the session tree view in main
2293     with the new mainwindow method ShowSessionTree and not directly
2294     the application's OnInit method
2295    
2296     * Thuban/UI/tree.py (myTreeCtrlPanel):
2297     (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
2298     TreeCtrl isntead of a panel. This affects most method since we now
2299     refer to self instead of self.tree
2300     (SessionTreeView): New class implementing a non-modal dialog
2301     showing the session tree.
2302    
2303 bh 35 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
2304     layer to the tableview dialog.
2305    
2306     * Thuban/UI/tableview.py: Add some doc-strings
2307 tkoester 403 (TableGrid):
2308 bh 35 (TableGrid.OnRangeSelect):
2309     (TableGrid.OnSelectCell):
2310     (TableFrame.__init__):
2311     (TableFrame.row_selected):
2312     Selecting rows in the grid view now updates the selected shapes
2313     through the TableFrame. To achieve this we derive TableGrid from
2314     Publisher and introduce the message type ROW_SELECTED which the
2315     TableFrame subscribes to and which is issued by OnRangeSelect and
2316     OnSelectCell
2317    
2318     (DataTable.SelectRow): Removed because it's no longer needed in
2319     the row/shape selection scheme
2320    
2321 bh 32 * Thuban/UI/dialogs.py: New file implementing common classes for
2322     dialogs
2323    
2324     * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
2325     the SELECTED_SHAPE message anymore. This is now handled by the
2326     parent.
2327     (TableGrid.select_shape): Only update the selection if the shape
2328     is not None.
2329     (TableFrame): Inherit from the new NonModalDialog class.
2330     (TableFrame.__init__, TableFrame.select_shape): Handle the
2331     SELECT_SHAPE message.
2332     (TableFrame.OnClose): Extend the inherited method to unsubscribe
2333     SELECT_SHAPE
2334    
2335     * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
2336     (MainWindow.add_dialog):
2337     (MainWindow.dialog_open):
2338     (MainWindow.remove_dialog):
2339     (MainWindow.get_open_dialog): New methods to maintain a dictionary
2340     of opened non-modal dialogs.
2341    
2342     (MainWindow.__init__): Initialize the new non-modal dictionary
2343     management code
2344     (MainWindow.LayerShowTable): maintain separate dialogs for each
2345     table using the non-modal dialog management code to only open a
2346     view once for each table.
2347    
2348     (MainWindow.IdentifyTool):
2349     (MainWindow.__init__):
2350     (MainWindow.identify_view_on_demand): Don't open the identify view
2351     in IdentifyTool anymore. This will be done automatically by the
2352     new method identify_view_on_demand which handles the
2353     SELECTED_SHAPE message so that the identify view will be opened on
2354     demand
2355    
2356     * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
2357     the interactor argument. The SELECTED_SHAPE message is now handled
2358     by the parent.
2359     (IdentifyView.__init__): Add the interactor argument so that we
2360     can handle the SELECTED_SHAPE message here
2361     (IdentifyView.selected_shape): New method to handle the
2362     SELECTED_SHAPE messages
2363    
2364     * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
2365     NonModalDialog class
2366     (IdentifyView.OnClose): Extend the inherited version to
2367     unsubscribe SELECT_SHAPE
2368    
2369     * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
2370    
2371 bh 26 2001-09-05 Bernhard Herzog <[email protected]>
2372    
2373     * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2374 tkoester 403
2375 bh 26 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2376     interactor to pass through to the MapCanvas
2377 tkoester 403
2378 bh 26 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2379     argument to the MainWindow constructor to get rid of the ugly hack
2380     that made main.app available early just so that the mapcanvas
2381     could access the interactor object.
2382    
2383 bh 19 2001-09-04 Bernhard Herzog <[email protected]>
2384    
2385 bh 22 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
2386     that runs a modal message box
2387     (MainWindow.OnClose): Use the new method
2388     (MainWindow.RemoveLayer): Just do nothing in case no layer is
2389     selected. The command should be grayed out anyway, so there's no
2390     need to pop up a message box.
2391     (MainWindow.AddLayer): Pop up a message box with an error message
2392     if the shape file can't be opened
2393    
2394     * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
2395     immediately. This will cause an exception in case the file can't
2396     be opened and we can display an appropriate message.
2397    
2398 bh 19 * MANIFEST.in: Add extensions/pyprojection/LICENSE
2399    
2400     * setup.py (thuban_bdist_rpm): New class implementing a Thuban
2401     specific bdist_rpm command.
2402    
2403     * Thuban/UI/main.py: Catch ImportError exceptions when importing
2404     the locale module because it may not be available on some
2405     installations.
2406    
2407     * extensions/pyprojection/LICENSE: Copy of the license text in
2408     Projection.i. Having it in a separate file makes it easier to
2409     refer to license text in e.g. RPMs
2410    
2411 bh 18 2001-09-03 Bernhard Herzog <[email protected]>
2412    
2413 bh 19 * setup.py: use wx-config instead of wxgtk-config because it's
2414     more generic
2415    
2416     * setup.py (ThubanInstall.get_outputs): Add the symlink in
2417     <prefix>/bin to the outputs
2418     (ThubanInstall.link_file): New method to link files. We need this
2419     because the standard copy_files refuses to link non-existing
2420     files.
2421     (ThubanInstall.run): Remove the leading install root from the
2422     script filename if an install root was specified and use the new
2423     link_file method
2424 tkoester 403
2425 bh 18 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2426     the window when the first layer is added to the map.
2427    
2428     * setup.py (ThubanInstall.run): Honor the build root (self.root)
2429     when linking thuban.py to <prefix>/bin
2430    
2431 bh 16 2001-08-31 Bernhard Herzog <[email protected]>
2432    
2433     * setup.py: In the setup call, the install parameters shouldn't
2434     have trailing slashes because distutils on non-posix platforms
2435     doesn't like that. The same applies to other directories like
2436     "Resources/Bitmaps"
2437    
2438     In the configuration section for nt, move the wxWindows directory
2439     optins into the part clearly marked as editable.
2440    
2441     (InstallLocal.initialize_options):
2442     (InstallLocal.user_options): remove the currently unused debug
2443     flag
2444     (thuban_build_py.find_all_modules): Add this method so that it
2445     works for our case of having packages and modules in one
2446     distribution as well.
2447     (ThubanInstall.initialize_options):
2448     (ThubanInstall.finalize_options):
2449     (ThubanInstall.user_options):
2450     (ThubanInstall.boolean_options): Add new options, do-symlink and
2451     extra files. Since these are the first ThubanInstall specific
2452     options, override user_options and boolean_options
2453     (ThubanInstall.run): Honor the new do-symlink and extra-files
2454     options.
2455     (ThubanInstall.get_outputs): Add to override the base-class's
2456     version and add the extra-files to the outputs
2457     (bdist_inno): New class for windows distributions with Inno Setup
2458     (InnoIconItem): Helper class for bdist_inno
2459     (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2460     this together with the appropriate parameters, to the setup call.
2461 tkoester 403
2462 bh 16 * setup.cfg (bdist_inno): added new section for the inno setup
2463     installer
2464    
2465     * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
2466     changing_selection to avoid recursive selection events when
2467     modifying the selection in response to a selection event.
2468     (myTreeCtrlPanel.normalize_selection): Set the new inst var when
2469     changing the tree's selection.
2470     (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
2471     we're not being called indirectly from normalize_selection.
2472    
2473     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
2474     event.Check only if the command is actuall checkable.
2475     (MainWindow.__init__): Call the toolbar's Realize method to make
2476     sure that the items are actually shown
2477    
2478 bh 7 2001-08-28 Bernhard Herzog <[email protected]>
2479    
2480 bh 9 * setup.py: Fix some doc strings
2481    
2482 bh 7 * ChangeLog: started
2483    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26