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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 499 - (hide annotations)
Mon Mar 10 15:10:48 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 63334 byte(s)
updated ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26