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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 601 - (hide annotations)
Fri Apr 4 12:11:59 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 79730 byte(s)
updated ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26