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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 705 - (hide annotations)
Tue Apr 22 16:55:58 2003 UTC (21 years, 10 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 96427 byte(s)
update ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26