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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 600 - (hide annotations)
Thu Apr 3 11:37:26 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 77913 byte(s)
update ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26