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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 595 - (hide annotations)
Wed Apr 2 18:28:09 2003 UTC (21 years, 11 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 76966 byte(s)
update ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26