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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 458 - (hide annotations)
Tue Mar 4 13:43:16 2003 UTC (22 years ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 57319 byte(s)
update ChangeLog

1 bh 456 2003-03-04 Bernhard Herzog <[email protected]>
2    
3 bh 458 * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
4     the fill and stroke layer attributes optional with suitable
5     default values. Add the stroke_width layer attribute. Use correct
6     syntax for empty elements. Make the attribute list for labels
7     refer to the label element.
8    
9     2003-03-04 Bernhard Herzog <[email protected]>
10    
11 bh 456 * setup.py (thuban_build_py.build): Add a comment about distutils in
12     Python 2.3 containing some of the functionality we implement in
13     setup.py ourselves.
14    
15     * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
16     before the selection mode. Doing it the other way round triggers
17     an assertion in wxWindows.
18    
19     * Thuban/Model/save.py (escape): Fix typo in doc-string
20    
21     * Thuban/Model/classification.py: Remove unnecessary wxPython
22     import
23    
24 jonathan 448 2003-03-04 Jonathan Coles <[email protected]>
25    
26     * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
27     Parameter 'value' should default to None.
28    
29     * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
30     the class attribute __classification is now private.
31    
32     * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
33     Classifier to ClassGrid. Added support for removing selected rows,
34     which including code for keeping track of when cells are selected,
35     and deselected.
36     (ClassTable): Support for added/removing rows. Fixed a problem
37     with __ParseInput whereby it would not allow strings (only numbers)
38     to be entered.
39     (Classifier): Added button and supporting code for removing
40     selected rows.
41    
42 jonathan 445 2003-02-27 Jonathan Coles <[email protected]>
43 jonathan 434
44     * Thuban/common.py: Moved color conversion functions into
45     Thuban/UI/common.py.
46     (Str2Num): Now converts the float (not the string) to a long/int
47     so that an exception isn't thrown.
48    
49     * Thuban/UI/common.py: Common functions used in several UI modules
50    
51     * Thuban/Model/classification.py: Changed the class hierarchy
52     so that a Classification consists of Groups which return
53     Properties when a value matches a Group.
54    
55     * Thuban/Model/layer.py: Fixed name resolution problem.
56    
57     * Thuban/Model/load.py: Use new Classification and Group functions.
58    
59     * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
60     failure.
61     (Saver.write_classification): Use new Classification and Group
62     functions.
63    
64     * Thuban/UI/classifier.py: Changes to use new Classification and Group
65 jonathan 445 functions. Fix to create a tuple with a single value instead of
66     simply returning the value.
67 jonathan 434
68     * Thuban/UI/renderer.py: Use new Classification and Group functions.
69     Use common.py functions.
70    
71 jonathan 445 * Thuban/UI/tree.py: Use common.py functions.
72 jonathan 447
73     * test/test_classification.py: Use new Classification and Group
74     classes.
75 jonathan 434
76 jonathan 426 2003-02-24 Jonathan Coles <[email protected]>
77    
78     * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
79     functions from Thuban color objects to wxWindow colour objects.
80    
81     * Thuban/Model/classification.py (Classification): Renamed
82     GetProperties() to GetClassData(). Used the new iterator
83     in TreeInfo().
84     (ClassIterator): Iterator implementation to iterate over the
85     ClassData objects in a classification object.
86    
87     * Thuban/Model/save.py (Saver.write_classificaton): Uses
88     the new iterator to save the classification information.
89    
90     * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
91     for changing the stroke and fill colors and previewing the
92     changes.
93    
94     * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
95     MainWindow.SaveSessionAs): Text string changes so the dialogs
96     have more meaningful titles.
97    
98     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
99     Classification method name from GetProperties to GetClassData.
100    
101     * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
102     instead of accessing now non-existent class variables.
103    
104 bh 425 2003-02-24 Bernhard Herzog <[email protected]>
105    
106     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
107     unneeded Shape() call. Rendering is substantially faster without
108     it and it avoids some problems with broken shape files.
109    
110 frank 423 2003-02-20 Frank Koormann <[email protected]>
111    
112     Force minimal size of identify and label dialogs. The autosizing
113     looked too ugly.
114    
115     * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
116     * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
117     Set size of listctrl.
118     * Thuban/UI/identifyview.py (IdentifyView.__init__):
119     Set size of dialog.
120    
121 jonathan 408 2003-02-19 Jonathan Coles <[email protected]>
122    
123     * test/test_classification.py, test/test_layer.py,
124     test/test_load.py, test/test_map.py, test/test_session.py:
125     Updated the tests to use the new functions that are in the
126     respective classes.
127    
128     * Thuban/Model/classification.py (Classification):
129     Uses the new ClassData* classes. Modification messages are
130     passed up to the parent layer (if it exists).
131     (ClassData): New class to encapsulate the common data in each
132     classification property.
133     (ClassDataDefault): Represents the Default class. data.
134     (ClassDataPoint): Represents a single class. data point
135     (ClassDataRange): Represents a class. range
136     (ClassDataMap): Represents a class. map (unused).
137    
138     * Thuban/Model/color.py: Added Color.None to represent something
139     with no color. Color.Black represents the color black.
140     (NoColor): Helper class derived from Color to represent something
141     with no color.
142    
143     * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
144     stroke_width attributes. Made the 'classification' attribute private.
145     New methods for setting/getting the classification.
146    
147     * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
148     to get the classifcation and use the new ClassData* classes to
149     hold the classification data. Use Str2Num to convert numbers
150     properly.
151    
152     * Thuban/Model/save.py (Saver): Use new Color and Classification
153     methods
154    
155     * Thuban/UI/classifier.py (ClassGrid): New class to represent a
156     custom grid.
157     (ClassTable): Support for editing Values and Labels and for
158     changing what type (point or range) of data is stored in each
159     property based on how the user enters the data.
160     (Classifier): Support for saving the new classifications and
161     launching the dialog to edit a property.
162     (SelectPropertiesDialog): New class for editing the visual
163     properties of a classification (stroke color, width, and fill color)
164     (ClassPreviewer): Took the Draw method from ClassRenderer and
165     made most of it into this new class. Intend to use this class in
166     the SelectPropertiesDialog for previewing changes.
167    
168     * Thuban/UI/renderer.py: Use new Color and Classification methods.
169    
170     * Thuban/UI/tree.py: Formatting changes.
171    
172     * Doc/thuban.dtd: Add 'label' element
173    
174     * Thuban/common.py: New. Contains common routines used throughout
175     the code.
176     (Str2Num): Takes a string and converts it to the "best" type of
177     number.
178    
179 bh 405 2003-02-14 Bernhard Herzog <[email protected]>
180    
181     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
182     dragging flag is always set to 0 even when the tool implementation
183     raises an exception
184    
185 bh 402 2003-02-11 Bernhard Herzog <[email protected]>
186    
187     * Thuban/UI/application.py (ThubanApplication.splash_screen): New
188     method to create a splash screen.
189     (ThubanApplication.ShowMainWindow): New. Show the main window.
190     Needed so the splash screen can display the mainwindow
191     (ThubanApplication.OnInit): Call the
192     new splash_screen method to determine whether the application
193     should display a splash screen. If it displays a splash screen do
194     not immediately show the main window.
195    
196 jonathan 399 2003-02-11 Jonathan Coles <[email protected]>
197    
198     * Thuban/Model/classification.py: Added import line to fix
199     feature conflicts between running on python2.2 and python2.1.
200    
201     * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
202     onto the clinfo parameter, so removed the deepcopy().
203    
204 jonathan 396 2003-02-10 Jonathan Coles <[email protected]>
205    
206 tkoester 403 * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
207 jonathan 396 Added element_open variable to track opening and closing of tags
208     so that tags that don't span more than one line are closed with
209     /> instead of </tag_name>. Use the GetDefault*() methods of
210     the Classification class.
211    
212     * Thuban/Model/classification.py (Classificaton): Added set and
213     get methods for the default data. The class also takes a layer
214     reference so that modification messages can be sent. Fixed the
215     methods to use the new ClassData class.
216     (ClassData): New class to encapsulate the classification data
217    
218     * Thuban/Model/layer.py (Layer): Remove the
219 tkoester 403 Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
220 jonathan 396 SetDefault*() methods on the layer's classification object.
221 tkoester 403 (Layer.__init__): Use the new SetDefault*() methods in the
222 jonathan 396 Classification class.
223    
224     * Thuban/Model/load.py (ProcessSession): Use the new ClassData
225     object instead of a dictionary.
226    
227 tkoester 403 * Thuban/UI/classifier.py (ClassRenderer): New class to
228 jonathan 396 draw the classifications in the dialog box's table.
229     (Classifier): Modified to use the ClassRenderer class.
230    
231 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
232     methods of the Classification class.
233 jonathan 396
234     * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
235     of the ClassData class.
236    
237     * test/test_classification.py, test/test_layer.py,
238     test/test_map.py, test/test_session.py: Fix the tests to work
239     with the above code changes.
240    
241 jonathan 387 2003-02-03 Jonathan Coles <[email protected]>
242    
243     * Thuban/Model/classification.py (Classification): Added getNull()
244     to return the NullData reference
245    
246     * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
247     Layer.SetStrokeWidth): Modified these functions to change the
248     null data in the classification rather than keep these values
249     directly in the Layer class. Menu options to change these values
250     work again.
251    
252 jonathan 380 2003-01-28 Jonathan Coles <[email protected]>
253    
254 jonathan 384 * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
255 tkoester 403 Fixed crashing problem on some systems. Dialog box shows
256 jonathan 380 classification data.
257    
258 jonathan 384 * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
259     Colors in the tree view.
260    
261     * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
262     the tree info for classifications. Commented out unnecessary lines.
263    
264     * Thuban/Model/classification.py (Classification.TreeInfo): New
265     function to add information about the classification into the
266     tree view.
267    
268 tkoester 403 2003-01-27 Jan-Oliver Wagner <[email protected]>
269 jan 375
270 tkoester 403 * Thuban/__init__.py (_): New.
271 jan 375
272     * Thuban/Model/classification.py, Thuban/Model/extension.py,
273     Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
274 tkoester 403 Thuban/Model/session.py, Thuban/UI/application.py,
275     Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
276     Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
277     Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
278     Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
279     Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
280 jan 375
281 jonathan 370 2003-01-27 Jonathan Coles <[email protected]>
282    
283 tkoester 403 * Thuban/Model/layer.py: Classification initialization calls.
284 jonathan 370
285 tkoester 403 * Thuban/Model/classification.py: Created class to encapsulate
286     a layer classification. Supports specific data points and
287     ranges.
288 jonathan 370
289 tkoester 403 * Thuban/Model/load.py: Added support for loading classification
290     information.
291 jonathan 370
292 tkoester 403 * Thuban/Model/save.py: Added support for saving classification
293     information.
294 jonathan 370
295 tkoester 403 * Thuban/UI/classifier.py: Initial class for a dialog box for
296     specifying classification information.
297 jonathan 370
298 tkoester 403 * Thuban/UI/mainwindows.py: Support for opening the classifier
299     dialog.
300 jonathan 370
301 tkoester 403 * Thuban/UI/renderer.py: Support for drawing a layer with the
302     classification information.
303 jonathan 370
304 tkoester 403 * Data/iceland_sample_class.thuban: iceland_sample with
305     classification data.
306 jonathan 370
307 tkoester 403 * test/test_classification: Tests for the Classification class.
308 jonathan 370
309 bh 359 2002-12-09 Bernhard Herzog <[email protected]>
310    
311 bh 361 * test/test_command.py: New. Tests for the command classes.
312    
313 bh 359 * Thuban/UI/command.py (ToolCommand): New class for tool commands.
314     (Command.IsTool): New method to distinguish between command
315     switching tools and other commands.
316    
317     * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
318     the tool to avoid direct assignments to instance variables
319     (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
320     (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
321     change the tool
322    
323     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
324     active tool's command turns insensitive, disable the tool.
325     (_tool_command): Use the new ToolCommand class
326    
327     * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
328     SelectTool method to change the tool
329     (iconfile): Use the ToolCommand class
330    
331 bh 354 2002-12-03 Bernhard Herzog <[email protected]>
332    
333     * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
334     the case of selected items that are not children of Layers or Maps
335     properly. Previously this bug would trigger an assertion in
336     wxWindows.
337    
338 frank 352 2002-11-06 Frank Koormann <[email protected]>
339    
340 bh 354 * Thuban/UI/mainwindow.py: Altered the order of tools in the
341     toolbar: First now are all navigation tools (Zoom In/Out, Pan,
342     Full Extent).
343 tkoester 403
344 bh 349 2002-10-23 Bernhard Herzog <[email protected]>
345    
346     * setup.py (setup call): version now 0.1.3
347    
348     * MANIFEST.in: Add the files in test/
349    
350     * test/README: Add note about tests requiring the iceland data
351    
352     * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
353     copyright notice.
354    
355 bh 344 2002-10-18 Bernhard Herzog <[email protected]>
356    
357     * test/test_map.py
358     (TestMapWithContents.test_projected_bounding_box): Use an explicit
359     epsilon.
360    
361     * test/support.py (FloatComparisonMixin.assertFloatEqual)
362     (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
363     message if the assertion fails and don't return the return value
364     of self.assert_. In assertFloatSeqEqual the return meant that not
365     all items of the sequence were compared.
366    
367 bh 326 2002-09-20 Bernhard Herzog <[email protected]>
368    
369 bh 341 * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
370    
371     * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
372    
373 bh 338 * test/test_map.py (TestMapWithContents.test_tree_info): Create
374     the string with the bounding box on the fly because of platform
375     differences in the way %g is handled.
376    
377     * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
378     DBFfile too because Thuban layers can't yet cope missing DBF
379     files.
380    
381     2002-09-20 Bernhard Herzog <[email protected]>
382    
383 bh 326 * test/test_menu.py: Use initthuban instead of
384     add_thuban_dir_to_path to initialize Thuban.
385    
386     * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
387     Mixin class for float comparisons
388     (SubscriberMixin): New. Mixin class to test messages sent through
389     the Connector class
390    
391     * test/README: Fix a typo and add the -v flag to the command for
392     individual tests
393    
394 bh 335 * test/test_session.py: New. Test cases for Thuban.Model.session
395    
396     * test/test_proj.py: New. Test cases for Thuban.Model.proj
397    
398     * test/test_map.py: New. Test cases for Thuban.Model.map
399    
400     * test/test_layer.py: New. Test cases for Thuban.Model.layer
401    
402     * test/test_label.py: New. Test cases for Thuban.Model.label
403    
404     * test/test_connector.py: New. Test cases for Thuban.Lib.connector
405    
406     * test/test_color.py: New. Test cases for Thuban.Model.color
407    
408     * test/test_base.py: New. Test cases for Thuban.Model.base
409    
410 bh 322 2002-09-13 Bernhard Herzog <[email protected]>
411    
412     * Thuban/Model/session.py (Session.forwarded_channels): Forward
413     the CHANGED channel too.
414    
415     * Thuban/Model/map.py (Map.forwarded_channels): Forward the
416     CHANGED channel too.
417     (Map.__init__): Call the Modifiable constructor as well.
418    
419     * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
420     event if the modified flag changes.
421     (Modifiable.changed): Tweak the doc-string.
422    
423     * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
424     (MainWindow.set_position_text): Put the code that puts the text
425     with the mouse position into the status bar into the new method
426     set_position_text so that it can overwritten in derived classes.
427    
428 bh 317 2002-09-12 Bernhard Herzog <[email protected]>
429    
430     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
431     message box on the main window.
432    
433 bh 313 2002-09-11 Bernhard Herzog <[email protected]>
434    
435     * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
436     the 'E' because it's less likely to interfere with other menu
437     entries.
438 bh 315 (MainWindow.build_menu): remove an incorrect comment.
439 bh 313
440 bh 311 2002-09-10 Bernhard Herzog <[email protected]>
441    
442     * Thuban/UI/mainwindow.py (MainWindow.Map): New.
443     (_tool_command): Add sensitive parameter
444     (_has_visible_map): Sensitivity callback to tools and other
445     commands that require a visible map. Use it in map_zoom_in_tool,
446     map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
447     and map_full_extent
448    
449 bh 308 2002-09-06 Bernhard Herzog <[email protected]>
450    
451     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
452     VIEW_POSITION
453    
454 tkoester 403 2002-09-04 Frank Koormann <[email protected]>
455 frank 306
456     * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
457    
458 bh 302 2002-09-02 Bernhard Herzog <[email protected]>
459    
460 bh 304 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
461     wxWindows already and our implementation doesn't work correctly
462     with wxGTK 2.3:
463     (MapCanvas.__init__): Remove the instance variable
464     (MapCanvas.OnPaint): Always call do_redraw when there's a map to
465     be drawin
466     (MapCanvas.OnIdle): Removed.
467    
468 bh 302 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
469     a parameter to determine the size of the rectangle.
470     (MapCanvas.find_shape_at): Create the box around the point on a
471     layer by layer basis and make the size depend on the shape type.
472     This solves a problem with the selection of point shapes at the
473     border of the layer's bounding box
474    
475 bh 292 2002-08-30 Bernhard Herzog <[email protected]>
476    
477 bh 300 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
478     for the sensitivity of remove layer.
479     (_can_remove_layer): New. Sensitivity callback for remove layer
480     (Command layer_remove): Use _can_remove_layer
481    
482     * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
483     determine whether a given layer can be deleted.
484    
485 bh 297 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
486     (MapCanvas.do_redraw): Get rid of the unused update_region
487     instance variable
488    
489 bh 294 * Thuban/UI/view.py: Add/update some doc-strings.
490    
491 bh 292 * test/: new subdirectory with a bunch of unit tests.
492    
493     * test/README, test/test_table.py, test/test_save.py,
494     test/test_menu.py, test/test_load.py: Initial set of tests and
495     brief instructions on how to run them
496    
497 bh 287 2002-08-29 Bernhard Herzog <[email protected]>
498    
499 bh 291 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
500     arcs with multiple parts.
501    
502 bh 289 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
503     Handle degenrate rectangles.
504    
505 bh 287 * Thuban/Model/table.py: Make writing records work correctly:
506     (Table.__init__): Keep track of whether the DBF is open for
507     writing
508     (Table.write_record): Open the DBF file for writing when necessary
509    
510 bh 285 2002-08-27 Bernhard Herzog <[email protected]>
511    
512     * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
513     dbf files only for reading by default. Use a new writable dbf
514     object for writing.
515    
516 bh 278 2002-08-26 Bernhard Herzog <[email protected]>
517    
518 bh 282 * Thuban/UI/mainwindow.py: Refactor the context creation:
519     (MainWindow.Context): New method to return a context
520     (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
521     new method
522    
523 bh 278 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
524     layer table specific code from TableGrid into LayerTableGrid
525     (TableFrame, LayerTableFrame): Split the layer table specific code
526     from TableFrame into LayerTableFrame
527 bh 280 (LayerTableGrid.select_shape): Remove a debug print
528 bh 278
529     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
530     LayerTableFrame
531    
532 bh 277 2002-08-23 Bernhard Herzog <[email protected]>
533    
534     * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
535     absolute filename.
536    
537 bh 269 2002-08-22 Bernhard Herzog <[email protected]>
538    
539 bh 275 * Thuban/Model/table.py (Table.write_record): New method to write
540     records.
541 tkoester 403 (Table.__init__): Open the DBF file for writing too.
542 bh 275
543     * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
544     into the underlying table.
545    
546     * extensions/shapelib/shapefil.h (DBFCommit),
547     extensions/shapelib/dbfopen.c (DBFCommit): New API function to
548     commit any changes made to the DBF file.
549    
550 bh 271 * Thuban/UI/mainwindow.py (make_check_current_tool)
551     (_tool_command): Put the code that generates the "checked"
552     callback into a separate function so that we can reuse it
553     elsewhere
554    
555 bh 269 * Thuban/Model/save.py (Saver): New class to handle serializing a
556     session into an XML file. The main reason to introduce a class is
557     that applications built on Thuban can derive from it so that they
558     can save additional information in a session file.
559     (save_session): Delegate almost all the work to the Saver class.
560     Rename the filename argument to file because it may be a file like
561     object now.
562    
563     * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
564     code. Remove the little test code which would be executed when the
565     module is run as a script which didn't work anymore since it can't
566     import the other Thuban modules.
567     (ProcessSession, load_session): Refactor the ProcessSession to
568     have one method for each element start and end tag so that derived
569     classes can easily override the processing of individual tags.
570     Also, always parse with namespaces enabled because applications
571     built on top of Thuban will likely use namespaces if they extend
572     the session file format.
573    
574 bh 266 2002-08-21 Bernhard Herzog <[email protected]>
575    
576     * setup.py (ThubanInstall.run): Don't repr install_lib_orig
577     because thubaninit_contents will do it for us.
578    
579 tkoester 403 2002-08-16 Jan-Oliver Wagner <[email protected]>
580 jan 265
581     * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
582     tree window already open
583    
584 bh 259 2002-08-15 Bernhard Herzog <[email protected]>
585    
586 bh 263 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
587     with self.
588    
589     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
590     when we have actually captured it.
591    
592 bh 259 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
593     shapefile and destroy the table.
594    
595     * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
596    
597 bh 254 2002-08-14 Bernhard Herzog <[email protected]>
598    
599 bh 256 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
600     instance variable columns
601     (RecordTable.GetTypeName): row and col may be negative in some
602     cases.
603    
604 bh 254 * setup.py (InstallLocal.initialize_options)
605     (InstallLocal.finalize_options, InstallLocal.user_options): New
606     option create-init-file to build a thubaninit.py when running
607     install_local
608     (InstallLocal.run): Create the thubaninit.py module when requested
609     (thubaninit_contents): Split the template into several parts and
610     create a new function thubaninit_contents that creates the
611     contents of a thubaninit module.
612     (ThubanInstall.run): Use the new function to create the thubaninit
613     module.
614    
615 bh 252 2002-07-30 Bernhard Herzog <[email protected]>
616    
617     * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
618     cleanup.
619     (ThubanApplication.MainLoop): Extend to automatically call OnExit.
620    
621     * Thuban/Model/session.py (Session.Destroy): Don't bypass the
622     direct base class' Destroy method.
623    
624     * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
625     layers.
626     (Map.Destroy): Destroy the label_layer as well and call the
627     inherited Desatroymethod first so that no more messages are
628     issued.
629     (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
630     message if the stacking order actually has changed. Add
631     doc-strings.
632     (Map.BoundingBox): Correct the doc-string.
633     (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
634     (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
635    
636     * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
637     all labels.
638    
639 bh 247 2002-07-29 Bernhard Herzog <[email protected]>
640    
641     * Thuban/Model/map.py (Map.subscribe_layer_channels)
642     (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
643     to a layer's channels into separate methods.
644     (Map.RemoveLayer, Map.AddLayer): Call the new methods
645     (Map.Destroy): Unsubscribe from a layer's channels before
646     destroying it.
647    
648     * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
649     selected_layer parameter to searched_layer which is the layer to
650     search in.
651     (MapCanvas.SelectShapeAt): New parameter layer to restrict the
652     search to that layer. Return the selected layer and shape.
653    
654     * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
655     typo
656    
657 bh 238 2002-07-24 Bernhard Herzog <[email protected]>
658    
659 bh 243 * Thuban/UI/application.py (ThubanApplication.create_session):
660     Extend the doc string.
661     (ThubanApplication.subscribe_session)
662     (ThubanApplication.unsubscribe_session): New methods to
663     subscribe/unsubscribe to/from session channels.
664     (ThubanApplication.SetSession): Call the new methods here.
665     (ThubanApplication.maps_changed, ThubanApplication.set_map):
666     Renamed set_map to maps_changed. Its now a subscriber for
667     MAPS_CHANGED.
668    
669     * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
670     x-coordinate in case of simple clicks
671    
672     * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
673     don't pass it as a parameter
674    
675     * Thuban/Model/session.py (Session.RemoveMap): New
676    
677 bh 238 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
678     window size into a parameter.
679    
680 bh 235 2002-07-23 Bernhard Herzog <[email protected]>
681    
682 bh 237 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
683     just commands.
684    
685 bh 235 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
686     parameter list a bit to allow setting the window title and the
687     initial message in the status bar. Update the callers.
688    
689     * Thuban/UI/application.py (ThubanApplication.OnInit)
690     (ThubanApplication.CreateMainWindow): Put the mainwindow
691     instantiation into a separate method so that it can be overridden
692     by a subclass.
693    
694 bh 230 2002-07-19 Bernhard Herzog <[email protected]>
695    
696 bh 234 * Thuban/Model/session.py: Issue a CHANGED message every time
697     another changed message is issued to make it easier to get
698     notified of changes.
699     (Session): Update the doc string
700     (Session.forward): Issue changed-events as CHANGED as well.
701     (Session.changed): Overwrite the inherited version to issue
702     CHANGED events as well.
703    
704     * Thuban/UI/tree.py: We can now simply subscribe to the session's
705     CHANGED channel to be informed of changes.
706     (SessionTreeCtrl.session_channels): Not needed any longer.
707 tkoester 403 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
708 bh 234 Only have to (un)subscribe CHANGED
709    
710     * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
711    
712 bh 230 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
713     for the wxPython locale bug to __init__.py so that it's
714     automatically executed by anybody using UI code from Thuban.
715    
716 bh 225 2002-07-18 Bernhard Herzog <[email protected]>
717    
718 bh 228 * Thuban/UI/main.py (main): app no longer needs to be global
719    
720     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
721     as parameter and store it in an instance variable
722     (MainWindow.invoke_command, MainWindow.update_command_ui)
723     (MainWindow.save_modified_session, MainWindow.NewSession)
724     (MainWindow.OpenSession, MainWindow.SaveSession)
725     (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
726     application object.
727    
728     * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
729     the main window with self.
730    
731 bh 225 * Thuban/UI/context.py: New module with the context class
732    
733     * Thuban/UI/command.py (Command): Update doc string.
734    
735     * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
736     MainWindow.update_command_ui): Pass an instance of the context
737     class to the command's methods
738     (check_current_tool, call_method): Handle the new context
739     implementation
740    
741     * Examples/simple_extensions/simple_tool.py (simple_tool,
742     check_simple_tool): Handle the new context implementation
743    
744     * Examples/simple_extensions/simple_command.py (simple_command):
745     Handle the new context implementation. Update the comments about
746     the context.
747    
748     * Thuban/UI/application.py (ThubanApplication.SetSession): Add
749     doc-string
750     (ThubanApplication.Session): New method to return the session
751     object
752    
753     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
754     interactor's selected_layer may not be a layer of the current
755     session when the tree is updated while a new session is being set.
756    
757 bh 217 2002-07-17 Bernhard Herzog <[email protected]>
758    
759     * Thuban/UI/tree.py (color_string): Removed. No longer used.
760     (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
761     update_tree into update_tree and add_items. The tree now uses a
762     more generic way to display the contents of the tree.
763     (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
764    
765     * Thuban/Model/layer.py (Layer.TreeInfo),
766     Thuban/Model/extension.py (Extension.TreeInfo),
767     Thuban/Model/map.py (Map.TreeInfo),
768 tkoester 403 Thuban/Model/session.py (Session.TreeInfo):
769 bh 217 Add TreeInfo methods to implement the new tree view update scheme
770    
771 bh 216 2002-07-16 Bernhard Herzog <[email protected]>
772    
773     * Thuban/UI/application.py: Don't use "import from" for the
774     MainWindow. It can't always be resolved.
775     (ThubanApplication.OnInit): change reference to MainWindow
776     accordingly.
777    
778     * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
779     completely
780    
781 bh 213 2002-07-10 Bernhard Herzog <[email protected]>
782    
783     * setup.py (create_init_module): New configurable variable whose
784     default depends on the platform we're running on.
785     (ThubanInstall.initialize_options): Initialize
786     self.create_init_module from the global create_init_module
787     (ThubanInstall.user_options): indictate that the options
788     create-init-module and init-module-dir have arguments.
789    
790     * setup.py: In the setup call change the version number to include
791     cvs.
792    
793     * MANIFEST.in: Add the files in Examples
794    
795 bh 205 2002-07-09 Bernhard Herzog <[email protected]>
796    
797 bh 210 * setup.py: In the setup call, use the thuban homepage as the
798     value of the url parameter.
799    
800 bh 208 * Examples: New subdirectory for examples.
801    
802     * Examples/simple_extensions/simple_tool.xpm,
803     Examples/simple_extensions/simple_tool.py,
804     Examples/simple_extensions/simple_command.py,
805     Examples/simple_extensions/README: Simple examples showing how to
806     add new commands and tools.
807    
808 bh 207 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
809     bdist_rpm that we also have an install script.
810     (bdist_inno): Add 2002 to the copyright notice.
811    
812 bh 205 * setup.py: Create a file in python's site-packages directory to
813     make installation of Thuban as a library easier.
814     (ThubanInstall.user_options): Add two new options,
815     create-init-module and init-module-dir
816     (ThubanInstall.expand_with_pure_python_dirs): New method to expand
817     filenames for installation in the default directories.
818     (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
819     the inherited methods to capture some filenames before they're
820     transformed too much by distutils.
821     (ThubanInstall.run): Create the init module if requested.
822     (ThubanInstall.thuban_init_filename): New method to return the
823     full name of the init module.
824     (ThubanInstall.get_outputs): Append the filename of the init
825     module.
826    
827 bh 202 2002-07-08 Bernhard Herzog <[email protected]>
828    
829 bh 205 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
830     handle the prefix properly which means that the default for the
831     installation prefix should be /usr for RPMs and /usr/local when
832     doing a normal source install.
833     (bdist_rpm_install_script): Script to override the default install
834     commands in the specfile generated by the bdist_rpm command.
835     (thuban_bdist_rpm.user_options): Add a prefix option
836     (thuban_bdist_rpm.initialize_options): Init the prefix option.
837     Create the script files for the spec files as empty files here
838     (thuban_bdist_rpm._make_spec_file): Override the inherited method
839     to fill the script files with content.
840    
841 bh 202 * Thuban/Model/save.py (relative_filename): Wrapper around
842     Thuban.Lib.fileutil.relative_filename that accepts an empty dir
843     argument. save_session now automatically uses this version,
844     solving a problem when saving to a relative filename.
845    
846     * setup.py: In the setup call, make sure that the library
847     directories are under $prefix/lib not directly under $prefix.
848    
849 tkoester 403 2002-06-20 Jan-Oliver Wagner <[email protected]>
850 jan 199
851     * Thuban/Model/extension.py: new module to handle extension objects.
852     * Thuban/Model/messages.py: new messages for extensions.
853     * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
854     Session.AddExtension): new for handling extensions.
855     Also some other minor changes to round up extension handling.
856     * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
857     of Extension titles and title and names of its objects.
858    
859 bh 194 2002-05-29 Bernhard Herzog <[email protected]>
860    
861     * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
862 bh 202 the events for a command.
863 bh 194 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
864     Call bind_command_events to bind the events. add_toolbar_command
865     can now bind events too so that it's possible to have commands
866     that are only available through the toolbar.
867     (MainWindow.init_ids): New instance variable events_bound to keep
868     track of for which commands events have been bound.
869    
870 bh 190 2002-05-28 Bernhard Herzog <[email protected]>
871    
872     * Thuban/UI/menu.py: New module to build and manage menus.
873    
874     * Thuban/UI/mainwindow.py: Remove some unused imports.
875     (MainWindow.__init__, main_menu): move the definition of the main
876     menu from __init__ to the Menu instance main_menu.
877     (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
878     build the menu bar and sub-menus from a menu description.
879    
880     * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
881     startup file
882     (ThubanApplication.read_startup_files): New method to run
883     ~/.thuban/thubanstart.py
884    
885 bh 192 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
886     Move the toolbar definition to the Menu instance main_toolbar.
887     (MainWindow.build_toolbar): New method to build the toolbar
888     similar to the build_menu methods
889    
890 bh 184 2002-05-23 Bernhard Herzog <[email protected]>
891    
892 bh 186 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
893     layer_outline_color. Fix it in the definition of the command too.
894    
895 bh 184 * Thuban/UI/command.py (Command): Fix typo in doc string
896    
897 bh 182 2002-05-22 Bernhard Herzog <[email protected]>
898    
899     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
900     in the docstring
901    
902 bh 175 2002-05-15 Bernhard Herzog <[email protected]>
903    
904 bh 180 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
905     when the shapefile is empty.
906     (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
907     now return None for empty shapefiles. Update doc-strings.
908    
909     * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
910     the layer's bbox being None.
911    
912     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
913     layer's bbox being None.
914    
915 bh 175 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
916     necessary.
917     (MapCanvas.__init__): New instance variables, last_selected_layer
918     and last_selected_shape to determine how the selection has
919     changed.
920    
921     * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
922     AutoSizeColumns because it will cause a traversal of the entire
923     table which for large .dbf files will take a very long time.
924    
925 bh 172 2002-05-14 Bernhard Herzog <[email protected]>
926    
927     * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
928     maximum depth for the tree than shapelib does by default.
929    
930 bh 165 2002-05-10 Bernhard Herzog <[email protected]>
931    
932     * setup.py (py_modules): The shptree modules doesn't have a
933     wrapper, so don't include it in the py_modules
934    
935 bh 163 2002-05-08 Bernhard Herzog <[email protected]>
936    
937     * extensions/shapelib/shptree.c (compare_ints): Make arguments
938     const void * as in the qsort prototype
939     (SHPTreeFindLikelyShapes): Remove some unused variables.
940    
941     * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
942     maintains to redraw the window during a drag.
943     (MapCanvas.unprojected_rect_around_point): New method to determine
944     a small region around a point for hit-testing.
945     (MapCanvas.find_shape_at): Only test the shapes in a small region
946     around the point.
947    
948     * setup.py: Increment the version to 0.1.2
949    
950     * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
951     debug print and set session to None after unsubscribing
952    
953 bh 146 2002-05-07 Bernhard Herzog <[email protected]>
954    
955 bh 154 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
956     the file to have a .thuban extension.
957    
958 bh 152 * Thuban/UI/tree.py (session_channels): New class constant with
959     all the session channels to subscribe to to update the tree
960     (SessionTreeCtrl.session_changed): Remember the session so that we
961     can unsubscribe properly. Use the new class constant to
962     unsubscribe from the old session and subscribe to the new one.
963     (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
964     subscriptions of the SessionTreeCtrl.
965     (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
966    
967     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
968     Session Tree" command to the file menu.
969    
970     * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
971     as update_region to the renderer.
972    
973     * Thuban/UI/renderer.py
974     (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
975     update box is now directly a tuple, not a wxRect anymore.
976    
977     * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
978     prints.
979    
980     2002-05-07 Bernhard Herzog <[email protected]>
981    
982 bh 146 * setup.py: Add the shptree extension module. See
983     extensions/pyshapelib/ChangeLog for more details.
984    
985     * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
986     extensions/shapelib/dbfopen.c: Really update to the versions of
987     shapelib 1.2.9. For some reason it wasn't really done on
988     2002-04-11.
989    
990     * extensions/shapelib/shptree.c: Modified version of shptree.c of
991     shapelib 1.2.9. The only real difference is the use of qsort
992     instead of a bubble sort implementation
993    
994     * Thuban/Model/layer.py (Layer.__init__): New instance variable
995     shapetree to hold the shapelib quadtree for the shapefile
996     (Layer.open_shapefile): Create the quad tree.
997     (Layer.ShapesInRegion): New method to return the ids of shapes in
998     a given region using the quad tree.
999    
1000     * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
1001     comment
1002     (draw_polygon_shape): Accept both arcs and polygons.
1003     (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
1004     the api.
1005    
1006     * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
1007     return the shape ids to be rendered in a given layer.
1008     (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
1009     ids. Use draw_polygon_shape to draw arc shapes as well.
1010     (ScreenRenderer.RenderMap): New parameter for the rectangle that
1011     has to be updated
1012     (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
1013     calling it's ShapesInRegion method.
1014    
1015     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1016     update_region for the update region.
1017     (MapCanvas.OnPaint): Maintain the update region
1018     (MapCanvas.do_redraw): Pass the bounding box of the update_region
1019     to the renderer when drawing the bitmap. Reset the update_region.
1020    
1021 bh 129 2002-05-03 Bernhard Herzog <[email protected]>
1022    
1023 bh 131 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
1024     MainWindow.OpenSession): Change the file extension of the session
1025     files to .thuban
1026    
1027 bh 129 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
1028     Move the map channels to be forwarded by the session into the
1029 bh 146 class constant with forwarded_channels. Also add
1030     LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
1031     forwarded_channels
1032 bh 129
1033     * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
1034     typo and some rewording).
1035    
1036 bh 126 2002-05-02 Bernhard Herzog <[email protected]>
1037    
1038     * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
1039     around to speed up most redraws:
1040     (MapCanvas.__init__): New instance variable bitmap which holds the
1041     bitmap
1042     (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
1043     self.bitmap to draw.
1044     (MapCanvas.full_redraw): New method to force a full redraw
1045     including the bitmap
1046     (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
1047     make sure the bitmap is redrawn.
1048     (MapCanvas.projection_changed, MapCanvas.set_view_transform,
1049     MapCanvas.shape_selected): Call full_redraw instead of readraw to
1050     make sure the bitmap is redrawn.
1051     (MapCanvas.OnSize): New method to handle size events so that the
1052     bitmap can be redrawn.
1053    
1054 bh 124 2002-04-29 Bernhard Herzog <[email protected]>
1055    
1056     * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1057     canvas' VIEW_POSITION event
1058     (MainWindow.view_position_changed): Handler for VIEW_POSITION.
1059     Update the text in the status-bar accordingly.
1060    
1061     * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
1062     (MapCanvas.__del__): Implement because Publisher.__del__ has to be
1063     called.
1064     (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
1065     current_position
1066     (MapCanvas.set_current_position): New method to set
1067     current_position. Issue a VIEW_POSITION event
1068     (MapCanvas.CurrentPosition): New public method to return the value
1069     of current_position. Should be called when the VIEW_POSITION event
1070     is processed.
1071     (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
1072     Update the position.
1073     (MapCanvas.OnLeaveWindow): Set the position to None.
1074    
1075     * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1076     position in the statusbar
1077    
1078 tkoester 403 2002-04-26 Frank Koormann <[email protected]>
1079 frank 120
1080     * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1081    
1082 tkoester 403 2002-04-24 Frank Koormann <[email protected]>
1083    
1084 frank 118 * Resources/Bitmaps/identify.xpm: shadow added
1085    
1086     * Resources/Bitmaps/fullextent.xpm: new
1087 jan 116
1088 tkoester 403 2002-04-22 Jan-Oliver Wagner <[email protected]>
1089 jan 116
1090 tkoester 403 * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1091     box
1092 jan 114
1093 tkoester 403 2002-04-21 Jan-Oliver Wagner <[email protected]>
1094    
1095 jan 114 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1096    
1097     * Thuban/UI/tree.py (update_tree): added added map extent
1098    
1099     * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1100 tkoester 403 icon; added map_full_extend as tool
1101 jan 114
1102 tkoester 403 2002-04-19 Jan-Oliver Wagner <[email protected]>
1103 jan 107
1104     * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1105     saving _new_ sessions
1106    
1107     * Thuban/Model/session.py (create_empty_session): new session
1108     don't have a filename (set to None)
1109    
1110     * Thuban/UI/tree.py (update_tree): added filename and modified flag
1111    
1112     * Thuban/Model/load.py (ProcessSession): convert projection
1113     parameters from unicode to regular string
1114    
1115     * Data/iceland_sample.session: Added UTM Zone 26 projection.
1116    
1117 bh 100 2002-04-11 Bernhard Herzog <[email protected]>
1118    
1119     * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
1120     extensions/shapelib/dbfopen.c: Update to the versions of shapelib
1121     1.2.9
1122    
1123     * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
1124     the pyshapelib directoy into the list of include dirs, so that
1125     pyshapelib_api.h can be found.
1126    
1127     * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
1128     holds the pyshapelib C-API
1129     (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
1130     pyshapelib_api to access the shapelib functions.
1131     (initwxproj): Import the c_api from the shapelib module and
1132     initialize pyshapelib_api.
1133    
1134 bh 89 2002-04-04 Bernhard Herzog <[email protected]>
1135    
1136 bh 91 * setup.py (thuban_bdist_rpm.initialize_options): Use
1137     initialize_options to create the scripts for the rpm.
1138    
1139 bh 89 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
1140    
1141 bh 85 2002-04-03 Bernhard Herzog <[email protected]>
1142    
1143 bh 87 * setup.py: Increment version to 0.1.1
1144    
1145 bh 85 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
1146     Layer" and "Remove Layer" commands from the layer menu to the map
1147     menu
1148    
1149 bh 83 2002-02-15 Bernhard Herzog <[email protected]>
1150    
1151     * Thuban/Model/layer.py (Layer.Shape): list append only takes one
1152     argument (python <= 1.5.2 erroneously accepted multiuple
1153     arguments)
1154    
1155 bh 81 2002-02-04 Bernhard Herzog <[email protected]>
1156    
1157     * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
1158     RecordGrid in the identifyview.
1159     (IdentifyView.__init__): Use IdentifyGridCtrl instead of
1160     IdentifyListCtrl. The grid allows editing of the values.
1161    
1162     * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
1163     implementing a grid for a single row of a thuban table.
1164    
1165     * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
1166     layers by default. Easier to use than the previous default of only
1167     searching through the select layer which meant that if no layer
1168     was selected, you couldn't select a shape.
1169    
1170     * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
1171    
1172     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
1173     stroke_width attribute
1174    
1175     * Thuban/Model/save.py (save_session): Write the new stroke_width
1176     attribute
1177    
1178     * Thuban/Model/load.py (ProcessSession.startElement): Read the
1179     stroke_width attribute
1180    
1181     * Thuban/Model/layer.py (Layer.__init__): New parameter and
1182     instance variable stroke_width
1183     (Layer.SetStrokeWidth): Set the stroke_width.
1184    
1185 bh 72 2002-02-01 Bernhard Herzog <[email protected]>
1186    
1187     * extensions/thuban/wxproj.cpp (project_points): Fix two
1188     off-by-one errors in the last loop that joins the various parts
1189     together.
1190    
1191 bh 71 2002-01-14 Bernhard Herzog <[email protected]>
1192    
1193     * setup.py (data_dist.make_distribution): Fix some typos
1194    
1195 bh 70 2001-09-18 Bernhard Herzog <[email protected]>
1196    
1197     * README: Slight tweaking in preparation for the 0.1 release
1198    
1199     * setup.cfg: Add section for sdist to create both tgz and zip
1200     archives
1201    
1202     * setup.py: increase version number to 0.1
1203     (data_dist): New command class for data distribution
1204    
1205 bh 64 2001-09-14 Bernhard Herzog <[email protected]>
1206    
1207 bh 70 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1208     Handle the case of no layer (i.e. layer is None) properly.
1209    
1210 tkoester 403 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1211 bh 70 Set the initial selection of the combo boxes to reflect the
1212     projection we're starting with in a way that works on windows,
1213     too.
1214    
1215 bh 64 * Thuban/Lib/connector.py (Connector.print_connections): Print the
1216     puiblisher's ids in hex to make it easier to compare them to the
1217     standard repr of python methods
1218    
1219     * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
1220     messages
1221    
1222 bh 59 2001-09-13 Bernhard Herzog <[email protected]>
1223    
1224 bh 64 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
1225     deselect the layer if no layer is selected
1226    
1227 bh 59 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
1228     idle time when there actually is something to draw. If there's
1229     nothing to draw simply clear the window
1230     (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
1231     (MapCanvas.SetMap): force a redraw in all cases because
1232     FitMapToWindow doesn't always do it.
1233     (MapCanvas.ZoomFactor): Add an optional parameter, center, to
1234     specify the point to move into the center of the window
1235     (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
1236     dragged, zoon in/out by a factor of 2
1237 bh 64 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
1238     index, i.e. reversed drawing order) so that objects appearing to
1239     be in from of others are selected first. This is probably mostly
1240     relevant for point shapes where the symbols used may overlap
1241 bh 59
1242     * Thuban/Model/session.py (create_empty_session): Unset the
1243     modified bit before returning it
1244    
1245     * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
1246     create_empty_session session to create the new, empty session.
1247    
1248     * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
1249     the tool bitmaps.
1250     (MainWindow.OnClose, MainWindow.save_modified_session): Separate
1251     the code that asks whether the session should be saved into the
1252     new method save_modified_session.
1253     (MainWindow.OpenSession, MainWindow.NewSession): Use the new
1254     method to save modified session here too.
1255    
1256 bh 55 2001-09-11 Bernhard Herzog <[email protected]>
1257    
1258     * setup.py (InnoIconItem): fix typo
1259    
1260     (thuban_bdist_inno.run):
1261     (bdist_inno.run): Move the decision not to create symlinks on
1262     non-nt platforms to thuban_bdist_inno and do it unconditinally
1263     since we never want to create the symlinks here
1264    
1265 bh 48 2001-09-10 Bernhard Herzog <[email protected]>
1266    
1267 bh 53 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
1268     identify view immediately
1269    
1270     * Thuban/UI/controls.py: New file with two classes RecordListCtrl
1271     and SelectableRecordListCtrl that implement the code shared by the
1272     identify view and the label dialog
1273    
1274     * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
1275     new class RecordListCtrl
1276    
1277     * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
1278     return value of GetValue is None instead of using it as a boolean
1279     directly so that Zero numbers are handled properly.
1280     (LabelListCtrl): Derive from the new class
1281     SelectableRecordListCtrl
1282    
1283 bh 48 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
1284     (Proj4Dialog.dialogLayout): Make the window resizable and set the
1285     size of the text control explicitly to make the sizers work on
1286     both Windows and X.
1287    
1288 bh 44 2001-09-07 Bernhard Herzog <[email protected]>
1289    
1290     * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
1291     that can limit the search to the currently selected layer.
1292     (MapCanvas.SelectShapeAt): Make sure that the currently selected
1293     layer stays selected even when no shape is found
1294 bh 46 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
1295     height do nothing (avoids zero division errors)
1296 bh 44
1297 bh 32 2001-09-06 Bernhard Herzog <[email protected]>
1298    
1299 bh 42 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
1300     Correct the spelling of SessionTreeCtrl. dabbrev is too damn
1301     convenient :-)
1302     (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
1303     a new instvar layer_to_item to map layers to tree items
1304     (SessionTreeCtrl.layer_selected): Select the appropriate tree item
1305     to match the current selection in the interactor
1306    
1307 bh 40 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
1308     (Interactor.HasSelectedLayer): New methods to query the current
1309     selection
1310    
1311     * Thuban/UI/mainwindow.py (MainWindow.current_layer):
1312     (MainWindow.has_selected_layer): Simply call the appropriate
1313     interactor method
1314    
1315     * Thuban/UI/mainwindow.py (MainWindow.__init__):
1316     (MainWindow.LayerShowTable):
1317     (MainWindow.identify_view_on_demand): Store the interactor in an
1318     instvar and use that reference instead of going through main.app
1319    
1320 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1321     * Thuban/UI/application.py (ThubanApplication.OnInit):
1322 bh 40 * Thuban/UI/main.py (main): Create the session tree view in main
1323     with the new mainwindow method ShowSessionTree and not directly
1324     the application's OnInit method
1325    
1326     * Thuban/UI/tree.py (myTreeCtrlPanel):
1327     (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
1328     TreeCtrl isntead of a panel. This affects most method since we now
1329     refer to self instead of self.tree
1330     (SessionTreeView): New class implementing a non-modal dialog
1331     showing the session tree.
1332    
1333 bh 35 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
1334     layer to the tableview dialog.
1335    
1336     * Thuban/UI/tableview.py: Add some doc-strings
1337 tkoester 403 (TableGrid):
1338 bh 35 (TableGrid.OnRangeSelect):
1339     (TableGrid.OnSelectCell):
1340     (TableFrame.__init__):
1341     (TableFrame.row_selected):
1342     Selecting rows in the grid view now updates the selected shapes
1343     through the TableFrame. To achieve this we derive TableGrid from
1344     Publisher and introduce the message type ROW_SELECTED which the
1345     TableFrame subscribes to and which is issued by OnRangeSelect and
1346     OnSelectCell
1347    
1348     (DataTable.SelectRow): Removed because it's no longer needed in
1349     the row/shape selection scheme
1350    
1351 bh 32 * Thuban/UI/dialogs.py: New file implementing common classes for
1352     dialogs
1353    
1354     * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
1355     the SELECTED_SHAPE message anymore. This is now handled by the
1356     parent.
1357     (TableGrid.select_shape): Only update the selection if the shape
1358     is not None.
1359     (TableFrame): Inherit from the new NonModalDialog class.
1360     (TableFrame.__init__, TableFrame.select_shape): Handle the
1361     SELECT_SHAPE message.
1362     (TableFrame.OnClose): Extend the inherited method to unsubscribe
1363     SELECT_SHAPE
1364    
1365     * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
1366     (MainWindow.add_dialog):
1367     (MainWindow.dialog_open):
1368     (MainWindow.remove_dialog):
1369     (MainWindow.get_open_dialog): New methods to maintain a dictionary
1370     of opened non-modal dialogs.
1371    
1372     (MainWindow.__init__): Initialize the new non-modal dictionary
1373     management code
1374     (MainWindow.LayerShowTable): maintain separate dialogs for each
1375     table using the non-modal dialog management code to only open a
1376     view once for each table.
1377    
1378     (MainWindow.IdentifyTool):
1379     (MainWindow.__init__):
1380     (MainWindow.identify_view_on_demand): Don't open the identify view
1381     in IdentifyTool anymore. This will be done automatically by the
1382     new method identify_view_on_demand which handles the
1383     SELECTED_SHAPE message so that the identify view will be opened on
1384     demand
1385    
1386     * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
1387     the interactor argument. The SELECTED_SHAPE message is now handled
1388     by the parent.
1389     (IdentifyView.__init__): Add the interactor argument so that we
1390     can handle the SELECTED_SHAPE message here
1391     (IdentifyView.selected_shape): New method to handle the
1392     SELECTED_SHAPE messages
1393    
1394     * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
1395     NonModalDialog class
1396     (IdentifyView.OnClose): Extend the inherited version to
1397     unsubscribe SELECT_SHAPE
1398    
1399     * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
1400    
1401 bh 26 2001-09-05 Bernhard Herzog <[email protected]>
1402    
1403     * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1404 tkoester 403
1405 bh 26 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1406     interactor to pass through to the MapCanvas
1407 tkoester 403
1408 bh 26 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1409     argument to the MainWindow constructor to get rid of the ugly hack
1410     that made main.app available early just so that the mapcanvas
1411     could access the interactor object.
1412    
1413 bh 19 2001-09-04 Bernhard Herzog <[email protected]>
1414    
1415 bh 22 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
1416     that runs a modal message box
1417     (MainWindow.OnClose): Use the new method
1418     (MainWindow.RemoveLayer): Just do nothing in case no layer is
1419     selected. The command should be grayed out anyway, so there's no
1420     need to pop up a message box.
1421     (MainWindow.AddLayer): Pop up a message box with an error message
1422     if the shape file can't be opened
1423    
1424     * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
1425     immediately. This will cause an exception in case the file can't
1426     be opened and we can display an appropriate message.
1427    
1428 bh 19 * MANIFEST.in: Add extensions/pyprojection/LICENSE
1429    
1430     * setup.py (thuban_bdist_rpm): New class implementing a Thuban
1431     specific bdist_rpm command.
1432    
1433     * Thuban/UI/main.py: Catch ImportError exceptions when importing
1434     the locale module because it may not be available on some
1435     installations.
1436    
1437     * extensions/pyprojection/LICENSE: Copy of the license text in
1438     Projection.i. Having it in a separate file makes it easier to
1439     refer to license text in e.g. RPMs
1440    
1441 bh 18 2001-09-03 Bernhard Herzog <[email protected]>
1442    
1443 bh 19 * setup.py: use wx-config instead of wxgtk-config because it's
1444     more generic
1445    
1446     * setup.py (ThubanInstall.get_outputs): Add the symlink in
1447     <prefix>/bin to the outputs
1448     (ThubanInstall.link_file): New method to link files. We need this
1449     because the standard copy_files refuses to link non-existing
1450     files.
1451     (ThubanInstall.run): Remove the leading install root from the
1452     script filename if an install root was specified and use the new
1453     link_file method
1454 tkoester 403
1455 bh 18 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1456     the window when the first layer is added to the map.
1457    
1458     * setup.py (ThubanInstall.run): Honor the build root (self.root)
1459     when linking thuban.py to <prefix>/bin
1460    
1461 bh 16 2001-08-31 Bernhard Herzog <[email protected]>
1462    
1463     * setup.py: In the setup call, the install parameters shouldn't
1464     have trailing slashes because distutils on non-posix platforms
1465     doesn't like that. The same applies to other directories like
1466     "Resources/Bitmaps"
1467    
1468     In the configuration section for nt, move the wxWindows directory
1469     optins into the part clearly marked as editable.
1470    
1471     (InstallLocal.initialize_options):
1472     (InstallLocal.user_options): remove the currently unused debug
1473     flag
1474     (thuban_build_py.find_all_modules): Add this method so that it
1475     works for our case of having packages and modules in one
1476     distribution as well.
1477     (ThubanInstall.initialize_options):
1478     (ThubanInstall.finalize_options):
1479     (ThubanInstall.user_options):
1480     (ThubanInstall.boolean_options): Add new options, do-symlink and
1481     extra files. Since these are the first ThubanInstall specific
1482     options, override user_options and boolean_options
1483     (ThubanInstall.run): Honor the new do-symlink and extra-files
1484     options.
1485     (ThubanInstall.get_outputs): Add to override the base-class's
1486     version and add the extra-files to the outputs
1487     (bdist_inno): New class for windows distributions with Inno Setup
1488     (InnoIconItem): Helper class for bdist_inno
1489     (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
1490     this together with the appropriate parameters, to the setup call.
1491 tkoester 403
1492 bh 16 * setup.cfg (bdist_inno): added new section for the inno setup
1493     installer
1494    
1495     * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
1496     changing_selection to avoid recursive selection events when
1497     modifying the selection in response to a selection event.
1498     (myTreeCtrlPanel.normalize_selection): Set the new inst var when
1499     changing the tree's selection.
1500     (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
1501     we're not being called indirectly from normalize_selection.
1502    
1503     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
1504     event.Check only if the command is actuall checkable.
1505     (MainWindow.__init__): Call the toolbar's Realize method to make
1506     sure that the items are actually shown
1507    
1508 bh 7 2001-08-28 Bernhard Herzog <[email protected]>
1509    
1510 bh 9 * setup.py: Fix some doc strings
1511    
1512 bh 7 * ChangeLog: started
1513    

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26