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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 756 - (hide annotations)
Fri Apr 25 14:48:44 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 108141 byte(s)
updated ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26