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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 228 by bh, Thu Jul 18 16:27:20 2002 UTC revision 456 by bh, Tue Mar 4 11:32:31 2003 UTC
# Line 1  Line 1 
1    2003-03-04  Bernhard Herzog  <[email protected]>
2    
3            * setup.py (thuban_build_py.build): Add a comment about distutils in
4            Python 2.3 containing some of the functionality we implement in
5            setup.py ourselves.
6    
7            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
8            before the selection mode. Doing it the other way round triggers
9            an assertion in wxWindows.
10    
11            * Thuban/Model/save.py (escape): Fix typo in doc-string
12    
13            * Thuban/Model/classification.py: Remove unnecessary wxPython
14            import
15    
16    2003-03-04  Jonathan Coles   <[email protected]>
17    
18            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
19            Parameter 'value' should default to None.
20    
21            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
22            the class attribute __classification is now private.
23    
24            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
25            Classifier to ClassGrid. Added support for removing selected rows,
26            which including code for keeping track of when cells are selected,
27            and deselected.
28            (ClassTable): Support for added/removing rows. Fixed a problem
29            with __ParseInput whereby it would not allow strings (only numbers)
30            to be entered.
31            (Classifier): Added button and supporting code for removing
32            selected rows.
33    
34    2003-02-27  Jonathan Coles   <[email protected]>
35    
36            * Thuban/common.py: Moved color conversion functions into
37            Thuban/UI/common.py.
38            (Str2Num): Now converts the float (not the string) to a long/int
39            so that an exception isn't thrown.
40    
41            * Thuban/UI/common.py: Common functions used in several UI modules
42    
43            * Thuban/Model/classification.py: Changed the class hierarchy
44            so that a Classification consists of Groups which return
45            Properties when a value matches a Group.
46    
47            * Thuban/Model/layer.py: Fixed name resolution problem.
48    
49            * Thuban/Model/load.py: Use new Classification and Group functions.
50    
51            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
52            failure.
53            (Saver.write_classification): Use new Classification and Group
54            functions.
55    
56            * Thuban/UI/classifier.py: Changes to use new Classification and Group
57            functions. Fix to create a tuple with a single value instead of
58            simply returning the value.
59    
60            * Thuban/UI/renderer.py: Use new Classification and Group functions.
61            Use common.py functions.
62    
63            * Thuban/UI/tree.py: Use common.py functions.
64            
65            * test/test_classification.py: Use new Classification and Group
66            classes.
67    
68    2003-02-24  Jonathan Coles   <[email protected]>
69    
70            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
71            functions from Thuban color objects to wxWindow colour objects.
72    
73            * Thuban/Model/classification.py (Classification): Renamed
74            GetProperties() to GetClassData(). Used the new iterator
75            in TreeInfo().
76            (ClassIterator): Iterator implementation to iterate over the
77            ClassData objects in a classification object.
78    
79            * Thuban/Model/save.py (Saver.write_classificaton): Uses
80            the new iterator to save the classification information.
81    
82            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
83            for changing the stroke and fill colors and previewing the
84            changes.
85    
86            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
87            MainWindow.SaveSessionAs): Text string changes so the dialogs
88            have more meaningful titles.
89    
90            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
91            Classification method name from GetProperties to GetClassData.
92    
93            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
94            instead of accessing now non-existent class variables.
95    
96    2003-02-24  Bernhard Herzog  <[email protected]>
97    
98            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
99            unneeded Shape() call. Rendering is substantially faster without
100            it and it avoids some problems with broken shape files.
101    
102    2003-02-20  Frank Koormann   <[email protected]>
103    
104            Force minimal size of identify and label dialogs. The autosizing
105            looked too ugly.
106    
107            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
108            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
109            Set size of listctrl.
110            * Thuban/UI/identifyview.py (IdentifyView.__init__):
111            Set size of dialog.
112    
113    2003-02-19  Jonathan Coles   <[email protected]>
114    
115            * test/test_classification.py, test/test_layer.py,
116            test/test_load.py, test/test_map.py, test/test_session.py:
117            Updated the tests to use the new functions that are in the
118            respective classes.
119    
120            * Thuban/Model/classification.py (Classification):
121            Uses the new ClassData* classes. Modification messages are
122            passed up to the parent layer (if it exists).
123            (ClassData): New class to encapsulate the common data in each
124            classification property.
125            (ClassDataDefault): Represents the Default class. data.
126            (ClassDataPoint): Represents a single class. data point
127            (ClassDataRange): Represents a class. range
128            (ClassDataMap): Represents a class. map (unused).
129    
130            * Thuban/Model/color.py: Added Color.None to represent something
131            with no color. Color.Black represents the color black.
132            (NoColor): Helper class derived from Color to represent something
133            with no color.
134    
135            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
136            stroke_width attributes. Made the 'classification' attribute private.
137            New methods for setting/getting the classification.
138    
139            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
140            to get the classifcation and use the new ClassData* classes to
141            hold the classification data. Use Str2Num to convert numbers
142            properly.
143    
144            * Thuban/Model/save.py (Saver): Use new Color and Classification
145            methods
146    
147            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
148            custom grid.
149            (ClassTable): Support for editing Values and Labels and for
150            changing what type (point or range) of data is stored in each
151            property based on how the user enters the data.
152            (Classifier): Support for saving the new classifications and
153            launching the dialog to edit a property.
154            (SelectPropertiesDialog): New class for editing the visual
155            properties of a classification (stroke color, width, and fill color)
156            (ClassPreviewer): Took the Draw method from ClassRenderer and
157            made most of it into this new class. Intend to use this class in
158            the SelectPropertiesDialog for previewing changes.
159    
160            * Thuban/UI/renderer.py: Use new Color and Classification methods.
161    
162            * Thuban/UI/tree.py: Formatting changes.
163    
164            * Doc/thuban.dtd: Add 'label' element
165    
166            * Thuban/common.py: New. Contains common routines used throughout
167            the code.
168            (Str2Num): Takes a string and converts it to the "best" type of
169            number.
170    
171    2003-02-14  Bernhard Herzog  <[email protected]>
172    
173            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
174            dragging flag is always set to 0 even when the tool implementation
175            raises an exception
176    
177    2003-02-11  Bernhard Herzog  <[email protected]>
178    
179            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
180            method to create a splash screen.
181            (ThubanApplication.ShowMainWindow): New. Show the main window.
182            Needed so the splash screen can display the mainwindow
183            (ThubanApplication.OnInit): Call the
184            new splash_screen method to determine whether the application
185            should display a splash screen. If it displays a splash screen do
186            not immediately show the main window.
187    
188    2003-02-11  Jonathan Coles  <[email protected]>
189    
190            * Thuban/Model/classification.py: Added import line to fix
191            feature conflicts between running on python2.2 and python2.1.
192    
193            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
194            onto the clinfo parameter, so removed the deepcopy().
195    
196    2003-02-10  Jonathan Coles  <[email protected]>
197    
198            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
199            Added element_open variable to track opening and closing of tags
200            so that tags that don't span more than one line are closed with
201            /> instead of </tag_name>. Use the GetDefault*() methods of
202            the Classification class.
203    
204            * Thuban/Model/classification.py (Classificaton): Added set and
205            get methods for the default data. The class also takes a layer
206            reference so that modification messages can be sent. Fixed the
207            methods to use the new ClassData class.
208            (ClassData): New class to encapsulate the classification data
209    
210            * Thuban/Model/layer.py (Layer): Remove the
211            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
212            SetDefault*() methods on the layer's classification object.
213            (Layer.__init__): Use the new SetDefault*() methods in the
214            Classification class.
215    
216            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
217            object instead of a dictionary.
218    
219            * Thuban/UI/classifier.py (ClassRenderer): New class to
220            draw the classifications in the dialog box's table.
221            (Classifier): Modified to use the ClassRenderer class.
222    
223            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
224            methods of the Classification class.
225    
226            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
227            of the ClassData class.
228    
229            * test/test_classification.py, test/test_layer.py,
230            test/test_map.py, test/test_session.py: Fix the tests to work
231            with the above code changes.
232    
233    2003-02-03  Jonathan Coles  <[email protected]>
234    
235            * Thuban/Model/classification.py (Classification): Added getNull()
236            to return the NullData reference
237    
238            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
239            Layer.SetStrokeWidth): Modified these functions to change the
240            null data in the classification rather than keep these values
241            directly in the Layer class. Menu options to change these values
242            work again.
243    
244    2003-01-28  Jonathan Coles  <[email protected]>
245    
246            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
247            Fixed crashing problem on some systems. Dialog box shows
248            classification data.
249    
250            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
251            Colors in the tree view.
252    
253            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
254            the tree info for classifications. Commented out unnecessary lines.
255    
256            * Thuban/Model/classification.py (Classification.TreeInfo): New
257            function to add information about the classification into the
258            tree view.
259    
260    2003-01-27  Jan-Oliver Wagner <[email protected]>
261    
262            * Thuban/__init__.py (_): New.
263    
264            * Thuban/Model/classification.py, Thuban/Model/extension.py,
265            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
266            Thuban/Model/session.py, Thuban/UI/application.py,
267            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
268            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
269            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
270            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
271            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
272    
273    2003-01-27  Jonathan Coles  <[email protected]>
274    
275            * Thuban/Model/layer.py: Classification initialization calls.
276    
277            * Thuban/Model/classification.py: Created class to encapsulate
278            a layer classification. Supports specific data points and
279            ranges.
280    
281            * Thuban/Model/load.py: Added support for loading classification
282            information.
283    
284            * Thuban/Model/save.py: Added support for saving classification
285            information.
286    
287            * Thuban/UI/classifier.py: Initial class for a dialog box for
288            specifying classification information.
289    
290            * Thuban/UI/mainwindows.py: Support for opening the classifier
291            dialog.
292    
293            * Thuban/UI/renderer.py: Support for drawing a layer with the
294            classification information.
295    
296            * Data/iceland_sample_class.thuban: iceland_sample with
297            classification data.
298    
299            * test/test_classification: Tests for the Classification class.
300    
301    2002-12-09  Bernhard Herzog  <[email protected]>
302    
303            * test/test_command.py: New. Tests for the command classes.
304    
305            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
306            (Command.IsTool): New method to distinguish between command
307            switching tools and other commands.
308    
309            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
310            the tool to avoid direct assignments to instance variables
311            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
312            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
313            change the tool
314    
315            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
316            active tool's command turns insensitive, disable the tool.
317            (_tool_command): Use the new ToolCommand class
318    
319            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
320            SelectTool method to change the tool
321            (iconfile): Use the ToolCommand class
322    
323    2002-12-03  Bernhard Herzog  <[email protected]>
324    
325            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
326            the case of selected items that are not children of Layers or Maps
327            properly. Previously this bug would trigger an assertion in
328            wxWindows.
329    
330    2002-11-06  Frank Koormann  <[email protected]>
331    
332            * Thuban/UI/mainwindow.py: Altered the order of tools in the
333            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
334            Full Extent).
335    
336    2002-10-23  Bernhard Herzog  <[email protected]>
337    
338            * setup.py (setup call): version now 0.1.3
339    
340            * MANIFEST.in: Add the files in test/
341    
342            * test/README: Add note about tests requiring the iceland data
343    
344            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
345            copyright notice.
346    
347    2002-10-18  Bernhard Herzog  <[email protected]>
348    
349            * test/test_map.py
350            (TestMapWithContents.test_projected_bounding_box): Use an explicit
351            epsilon.
352    
353            * test/support.py (FloatComparisonMixin.assertFloatEqual)
354            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
355            message if the assertion fails and don't return the return value
356            of self.assert_. In assertFloatSeqEqual the return meant that not
357            all items of the sequence were compared.
358    
359    2002-09-20  Bernhard Herzog  <[email protected]>
360    
361            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
362    
363            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
364    
365            * test/test_map.py (TestMapWithContents.test_tree_info): Create
366            the string with the bounding box on the fly because of platform
367            differences in the way %g is handled.
368    
369            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
370            DBFfile too because Thuban layers can't yet cope missing DBF
371            files.
372    
373    2002-09-20  Bernhard Herzog  <[email protected]>
374    
375            * test/test_menu.py: Use initthuban instead of
376            add_thuban_dir_to_path to initialize Thuban.
377    
378            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
379            Mixin class for float comparisons
380            (SubscriberMixin): New. Mixin class to test messages sent through
381            the Connector class
382    
383            * test/README: Fix a typo and add the -v flag to the command for
384            individual tests
385    
386            * test/test_session.py: New. Test cases for Thuban.Model.session
387    
388            * test/test_proj.py: New. Test cases for Thuban.Model.proj
389    
390            * test/test_map.py: New. Test cases for Thuban.Model.map
391    
392            * test/test_layer.py: New. Test cases for Thuban.Model.layer
393    
394            * test/test_label.py: New. Test cases for Thuban.Model.label
395    
396            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
397    
398            * test/test_color.py: New. Test cases for Thuban.Model.color
399    
400            * test/test_base.py: New. Test cases for Thuban.Model.base
401    
402    2002-09-13  Bernhard Herzog  <[email protected]>
403    
404            * Thuban/Model/session.py (Session.forwarded_channels): Forward
405            the CHANGED channel too.
406    
407            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
408            CHANGED channel too.
409            (Map.__init__): Call the Modifiable constructor as well.
410    
411            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
412            event if the modified flag changes.
413            (Modifiable.changed): Tweak the doc-string.
414    
415            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
416            (MainWindow.set_position_text): Put the code that puts the text
417            with the mouse position into the status bar into the new method
418            set_position_text so that it can overwritten in derived classes.
419    
420    2002-09-12  Bernhard Herzog  <[email protected]>
421    
422            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
423            message box on the main window.
424    
425    2002-09-11  Bernhard Herzog  <[email protected]>
426    
427            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
428            the 'E' because it's less likely to interfere with other menu
429            entries.
430            (MainWindow.build_menu): remove an incorrect comment.
431    
432    2002-09-10  Bernhard Herzog  <[email protected]>
433    
434            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
435            (_tool_command): Add sensitive parameter
436            (_has_visible_map): Sensitivity callback to tools and other
437            commands that require a visible map. Use it in map_zoom_in_tool,
438            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
439            and map_full_extent
440    
441    2002-09-06  Bernhard Herzog  <[email protected]>
442    
443            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
444            VIEW_POSITION
445    
446    2002-09-04  Frank Koormann  <[email protected]>
447    
448            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
449    
450    2002-09-02  Bernhard Herzog  <[email protected]>
451    
452            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
453            wxWindows already and our implementation doesn't work correctly
454            with wxGTK 2.3:
455            (MapCanvas.__init__): Remove the instance variable
456            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
457            be drawin
458            (MapCanvas.OnIdle): Removed.
459    
460            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
461            a parameter to determine the size of the rectangle.
462            (MapCanvas.find_shape_at): Create the box around the point on a
463            layer by layer basis and make the size depend on the shape type.
464            This solves a problem with the selection of point shapes at the
465            border of the layer's bounding box
466    
467    2002-08-30  Bernhard Herzog  <[email protected]>
468    
469            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
470            for the sensitivity  of remove layer.
471            (_can_remove_layer): New. Sensitivity callback for remove layer
472            (Command layer_remove): Use _can_remove_layer
473    
474            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
475            determine whether a given layer can be deleted.
476    
477            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
478            (MapCanvas.do_redraw): Get rid of the unused update_region
479            instance variable
480    
481            * Thuban/UI/view.py: Add/update some doc-strings.
482    
483            * test/: new subdirectory with a bunch of unit tests.
484    
485            * test/README, test/test_table.py, test/test_save.py,
486            test/test_menu.py, test/test_load.py: Initial set of tests and
487            brief instructions on how to run them
488    
489    2002-08-29  Bernhard Herzog  <[email protected]>
490    
491            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
492            arcs with multiple parts.
493    
494            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
495            Handle degenrate rectangles.
496    
497            * Thuban/Model/table.py: Make writing records work correctly:
498            (Table.__init__): Keep track of whether the DBF is open for
499            writing
500            (Table.write_record): Open the DBF file for writing when necessary
501    
502    2002-08-27  Bernhard Herzog  <[email protected]>
503    
504            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
505            dbf files only for reading by default. Use a new writable dbf
506            object for writing.
507    
508    2002-08-26  Bernhard Herzog  <[email protected]>
509    
510            * Thuban/UI/mainwindow.py: Refactor the context creation:
511            (MainWindow.Context): New method to return a context
512            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
513            new method
514    
515            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
516            layer table specific code from TableGrid into LayerTableGrid
517            (TableFrame, LayerTableFrame): Split the layer table specific code
518            from TableFrame into LayerTableFrame
519            (LayerTableGrid.select_shape): Remove a debug print
520    
521            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
522            LayerTableFrame
523    
524    2002-08-23  Bernhard Herzog  <[email protected]>
525    
526            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
527            absolute filename.
528    
529    2002-08-22  Bernhard Herzog  <[email protected]>
530    
531            * Thuban/Model/table.py (Table.write_record): New method to write
532            records.
533            (Table.__init__): Open the DBF file for writing too.
534    
535            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
536            into the underlying table.
537    
538            * extensions/shapelib/shapefil.h (DBFCommit),
539            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
540            commit any changes made to the DBF file.
541    
542            * Thuban/UI/mainwindow.py (make_check_current_tool)
543            (_tool_command): Put the code that generates the "checked"
544            callback into a separate function so that we can reuse it
545            elsewhere
546    
547            * Thuban/Model/save.py (Saver): New class to handle serializing a
548            session into an XML file. The main reason to introduce a class is
549            that applications built on Thuban can derive from it so that they
550            can save additional information in a session file.
551            (save_session): Delegate almost all the work to the Saver class.
552            Rename the filename argument to file because it may be a file like
553            object now.
554    
555            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
556            code. Remove the little test code which would be executed when the
557            module is run as a script which didn't work anymore since it can't
558            import the other Thuban modules.
559            (ProcessSession, load_session): Refactor the ProcessSession to
560            have one method for each element start and end tag so that derived
561            classes can easily override the processing of individual tags.
562            Also, always parse with namespaces enabled because applications
563            built on top of Thuban will likely use namespaces if they extend
564            the session file format.
565    
566    2002-08-21  Bernhard Herzog  <[email protected]>
567    
568            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
569            because thubaninit_contents will do it for us.
570    
571    2002-08-16  Jan-Oliver Wagner <[email protected]>
572    
573            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
574            tree window already open
575    
576    2002-08-15  Bernhard Herzog  <[email protected]>
577    
578            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
579            with self.
580    
581            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
582            when we have actually captured it.
583    
584            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
585            shapefile and destroy the table.
586    
587            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
588    
589    2002-08-14  Bernhard Herzog  <[email protected]>
590    
591            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
592            instance variable columns
593            (RecordTable.GetTypeName): row and col may be negative in some
594            cases.
595    
596            * setup.py (InstallLocal.initialize_options)
597            (InstallLocal.finalize_options, InstallLocal.user_options): New
598            option create-init-file to build a thubaninit.py when running
599            install_local
600            (InstallLocal.run): Create the thubaninit.py module when requested
601            (thubaninit_contents): Split the template into several parts and
602            create a new function thubaninit_contents that creates the
603            contents of a thubaninit module.
604            (ThubanInstall.run): Use the new function to create the thubaninit
605            module.
606    
607    2002-07-30  Bernhard Herzog  <[email protected]>
608    
609            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
610            cleanup.
611            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
612    
613            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
614            direct base class' Destroy method.
615    
616            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
617            layers.
618            (Map.Destroy): Destroy the label_layer as well and call the
619            inherited Desatroymethod first so that no more messages are
620            issued.
621            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
622            message if the stacking order actually has changed. Add
623            doc-strings.
624            (Map.BoundingBox): Correct the doc-string.
625            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
626            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
627    
628            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
629            all labels.
630    
631    2002-07-29  Bernhard Herzog  <[email protected]>
632    
633            * Thuban/Model/map.py (Map.subscribe_layer_channels)
634            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
635            to a layer's channels into separate methods.
636            (Map.RemoveLayer, Map.AddLayer): Call the new methods
637            (Map.Destroy): Unsubscribe from a layer's channels before
638            destroying it.
639    
640            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
641            selected_layer parameter to searched_layer which is the layer to
642            search in.
643            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
644            search to that layer. Return the selected layer and shape.
645    
646            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
647            typo
648    
649    2002-07-24  Bernhard Herzog  <[email protected]>
650    
651            * Thuban/UI/application.py (ThubanApplication.create_session):
652            Extend the doc string.
653            (ThubanApplication.subscribe_session)
654            (ThubanApplication.unsubscribe_session): New methods to
655            subscribe/unsubscribe to/from session channels.
656            (ThubanApplication.SetSession): Call the new methods here.
657            (ThubanApplication.maps_changed, ThubanApplication.set_map):
658            Renamed set_map to maps_changed. Its now a subscriber for
659            MAPS_CHANGED.
660    
661            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
662            x-coordinate in case of simple clicks
663    
664            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
665            don't pass it as a parameter
666    
667            * Thuban/Model/session.py (Session.RemoveMap): New
668    
669            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
670            window size into a parameter.
671    
672    2002-07-23  Bernhard Herzog  <[email protected]>
673    
674            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
675            just commands.
676    
677            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
678            parameter list a bit to allow setting the window title and the
679            initial message in the status bar. Update the callers.
680    
681            * Thuban/UI/application.py (ThubanApplication.OnInit)
682            (ThubanApplication.CreateMainWindow): Put the mainwindow
683            instantiation into a separate method so that it can be overridden
684            by a subclass.
685    
686    2002-07-19  Bernhard Herzog  <[email protected]>
687    
688            * Thuban/Model/session.py: Issue a CHANGED message every time
689            another changed message is issued to make it easier to get
690            notified of changes.
691            (Session): Update the doc string
692            (Session.forward): Issue changed-events as CHANGED as well.
693            (Session.changed): Overwrite the inherited version to issue
694            CHANGED events as well.
695    
696            * Thuban/UI/tree.py: We can now simply subscribe to the session's
697            CHANGED channel to be informed of changes.
698            (SessionTreeCtrl.session_channels): Not needed any longer.
699            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
700            Only have to (un)subscribe CHANGED
701    
702            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
703    
704            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
705            for the wxPython locale bug to __init__.py so that it's
706            automatically executed by anybody using UI code from Thuban.
707    
708  2002-07-18  Bernhard Herzog  <[email protected]>  2002-07-18  Bernhard Herzog  <[email protected]>
709    
710          * Thuban/UI/main.py (main): app no longer needs to be global          * Thuban/UI/main.py (main): app no longer needs to be global
# Line 50  Line 757 
757          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
758          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
759          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
760          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
761          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
762    
763  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 131  Line 838 
838          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
839          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
840    
841  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
842    
843          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
844          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 360  Line 1067 
1067          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1068          position in the statusbar          position in the statusbar
1069    
1070  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1071    
1072          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1073    
1074  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1075            
1076          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1077    
1078          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1079    
1080          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1081    
1082            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1083            box
1084    
1085  2002-04-21      Jan-Oliver Wagner <[email protected]>  2002-04-21  Jan-Oliver Wagner <[email protected]>
1086    
1087          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1088    
1089          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1090    
1091          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1092          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1093    
1094  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1095    
1096          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1097          saving _new_ sessions          saving _new_ sessions
# Line 485  Line 1193 
1193    
1194          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1195          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1196    
1197  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1198    
1199          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1200          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1201    
1202          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1203          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1204          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1205          too.          too.
# Line 602  Line 1309 
1309          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
1310          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
1311    
1312          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
1313          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
1314          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
1315          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
1316          the application's OnInit method          the application's OnInit method
# Line 619  Line 1326 
1326          layer to the tableview dialog.          layer to the tableview dialog.
1327    
1328          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
1329          (TableGrid):          (TableGrid):
1330          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
1331          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
1332          (TableFrame.__init__):          (TableFrame.__init__):
# Line 686  Line 1393 
1393  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
1394    
1395          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
1396            
1397          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
1398          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
1399            
1400          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
1401          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
1402          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 736  Line 1443 
1443          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
1444          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
1445          link_file method          link_file method
1446            
1447          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
1448          the window when the first layer is added to the map.          the window when the first layer is added to the map.
1449    
# Line 773  Line 1480 
1480          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
1481          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
1482          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
1483            
1484          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
1485          installer          installer
1486    

Legend:
Removed from v.228  
changed lines
  Added in v.456

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26