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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 581 - (show annotations)
Tue Apr 1 10:20:17 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 76164 byte(s)
updated ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26