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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26