/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 701 - (hide annotations)
Thu Apr 17 16:18:48 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 96173 byte(s)
Don't import LAYER_LEGEND_CHANGED.
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
anymore.
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
(Layer.ShapeType, Layer.Shape): No need to call
self.open_shapefile since it's always called in __init__

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26