/[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 64 by bh, Fri Sep 14 12:20:21 2001 UTC revision 326 by bh, Fri Sep 20 13:56:09 2002 UTC
# Line 1  Line 1 
1    2002-09-20  Bernhard Herzog  <[email protected]>
2    
3            * test/test_menu.py: Use initthuban instead of
4            add_thuban_dir_to_path to initialize Thuban.
5    
6            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
7            Mixin class for float comparisons
8            (SubscriberMixin): New. Mixin class to test messages sent through
9            the Connector class
10    
11            * test/README: Fix a typo and add the -v flag to the command for
12            individual tests
13    
14    2002-09-13  Bernhard Herzog  <[email protected]>
15    
16            * Thuban/Model/session.py (Session.forwarded_channels): Forward
17            the CHANGED channel too.
18    
19            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
20            CHANGED channel too.
21            (Map.__init__): Call the Modifiable constructor as well.
22    
23            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
24            event if the modified flag changes.
25            (Modifiable.changed): Tweak the doc-string.
26    
27            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
28            (MainWindow.set_position_text): Put the code that puts the text
29            with the mouse position into the status bar into the new method
30            set_position_text so that it can overwritten in derived classes.
31    
32    2002-09-12  Bernhard Herzog  <[email protected]>
33    
34            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
35            message box on the main window.
36    
37    2002-09-11  Bernhard Herzog  <[email protected]>
38    
39            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
40            the 'E' because it's less likely to interfere with other menu
41            entries.
42            (MainWindow.build_menu): remove an incorrect comment.
43    
44    2002-09-10  Bernhard Herzog  <[email protected]>
45    
46            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
47            (_tool_command): Add sensitive parameter
48            (_has_visible_map): Sensitivity callback to tools and other
49            commands that require a visible map. Use it in map_zoom_in_tool,
50            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
51            and map_full_extent
52    
53    2002-09-06  Bernhard Herzog  <[email protected]>
54    
55            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
56            VIEW_POSITION
57    
58    2002-09-04  Frank Koormann   <[email protected]>
59    
60            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
61    
62    2002-09-02  Bernhard Herzog  <[email protected]>
63    
64            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
65            wxWindows already and our implementation doesn't work correctly
66            with wxGTK 2.3:
67            (MapCanvas.__init__): Remove the instance variable
68            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
69            be drawin
70            (MapCanvas.OnIdle): Removed.
71    
72            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
73            a parameter to determine the size of the rectangle.
74            (MapCanvas.find_shape_at): Create the box around the point on a
75            layer by layer basis and make the size depend on the shape type.
76            This solves a problem with the selection of point shapes at the
77            border of the layer's bounding box
78    
79    2002-08-30  Bernhard Herzog  <[email protected]>
80    
81            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
82            for the sensitivity  of remove layer.
83            (_can_remove_layer): New. Sensitivity callback for remove layer
84            (Command layer_remove): Use _can_remove_layer
85    
86            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
87            determine whether a given layer can be deleted.
88    
89            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
90            (MapCanvas.do_redraw): Get rid of the unused update_region
91            instance variable
92    
93            * Thuban/UI/view.py: Add/update some doc-strings.
94    
95            * test/: new subdirectory with a bunch of unit tests.
96    
97            * test/README, test/test_table.py, test/test_save.py,
98            test/test_menu.py, test/test_load.py: Initial set of tests and
99            brief instructions on how to run them
100    
101    2002-08-29  Bernhard Herzog  <[email protected]>
102    
103            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
104            arcs with multiple parts.
105    
106            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
107            Handle degenrate rectangles.
108    
109            * Thuban/Model/table.py: Make writing records work correctly:
110            (Table.__init__): Keep track of whether the DBF is open for
111            writing
112            (Table.write_record): Open the DBF file for writing when necessary
113    
114    2002-08-27  Bernhard Herzog  <[email protected]>
115    
116            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
117            dbf files only for reading by default. Use a new writable dbf
118            object for writing.
119    
120    2002-08-26  Bernhard Herzog  <[email protected]>
121    
122            * Thuban/UI/mainwindow.py: Refactor the context creation:
123            (MainWindow.Context): New method to return a context
124            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
125            new method
126    
127            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
128            layer table specific code from TableGrid into LayerTableGrid
129            (TableFrame, LayerTableFrame): Split the layer table specific code
130            from TableFrame into LayerTableFrame
131            (LayerTableGrid.select_shape): Remove a debug print
132    
133            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
134            LayerTableFrame
135    
136    2002-08-23  Bernhard Herzog  <[email protected]>
137    
138            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
139            absolute filename.
140    
141    2002-08-22  Bernhard Herzog  <[email protected]>
142    
143            * Thuban/Model/table.py (Table.write_record): New method to write
144            records.
145            (Table.__init__): Open the DBF file for writing too.
146    
147            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
148            into the underlying table.
149    
150            * extensions/shapelib/shapefil.h (DBFCommit),
151            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
152            commit any changes made to the DBF file.
153    
154            * Thuban/UI/mainwindow.py (make_check_current_tool)
155            (_tool_command): Put the code that generates the "checked"
156            callback into a separate function so that we can reuse it
157            elsewhere
158    
159            * Thuban/Model/save.py (Saver): New class to handle serializing a
160            session into an XML file. The main reason to introduce a class is
161            that applications built on Thuban can derive from it so that they
162            can save additional information in a session file.
163            (save_session): Delegate almost all the work to the Saver class.
164            Rename the filename argument to file because it may be a file like
165            object now.
166    
167            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
168            code. Remove the little test code which would be executed when the
169            module is run as a script which didn't work anymore since it can't
170            import the other Thuban modules.
171            (ProcessSession, load_session): Refactor the ProcessSession to
172            have one method for each element start and end tag so that derived
173            classes can easily override the processing of individual tags.
174            Also, always parse with namespaces enabled because applications
175            built on top of Thuban will likely use namespaces if they extend
176            the session file format.
177    
178    2002-08-21  Bernhard Herzog  <[email protected]>
179    
180            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
181            because thubaninit_contents will do it for us.
182    
183    2002-08-16      Jan-Oliver Wagner <[email protected]>
184    
185            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
186            tree window already open
187    
188    2002-08-15  Bernhard Herzog  <[email protected]>
189    
190            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
191            with self.
192    
193            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
194            when we have actually captured it.
195    
196            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
197            shapefile and destroy the table.
198    
199            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
200    
201    2002-08-14  Bernhard Herzog  <[email protected]>
202    
203            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
204            instance variable columns
205            (RecordTable.GetTypeName): row and col may be negative in some
206            cases.
207    
208            * setup.py (InstallLocal.initialize_options)
209            (InstallLocal.finalize_options, InstallLocal.user_options): New
210            option create-init-file to build a thubaninit.py when running
211            install_local
212            (InstallLocal.run): Create the thubaninit.py module when requested
213            (thubaninit_contents): Split the template into several parts and
214            create a new function thubaninit_contents that creates the
215            contents of a thubaninit module.
216            (ThubanInstall.run): Use the new function to create the thubaninit
217            module.
218    
219    2002-07-30  Bernhard Herzog  <[email protected]>
220    
221            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
222            cleanup.
223            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
224    
225            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
226            direct base class' Destroy method.
227    
228            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
229            layers.
230            (Map.Destroy): Destroy the label_layer as well and call the
231            inherited Desatroymethod first so that no more messages are
232            issued.
233            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
234            message if the stacking order actually has changed. Add
235            doc-strings.
236            (Map.BoundingBox): Correct the doc-string.
237            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
238            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
239    
240            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
241            all labels.
242    
243    2002-07-29  Bernhard Herzog  <[email protected]>
244    
245            * Thuban/Model/map.py (Map.subscribe_layer_channels)
246            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
247            to a layer's channels into separate methods.
248            (Map.RemoveLayer, Map.AddLayer): Call the new methods
249            (Map.Destroy): Unsubscribe from a layer's channels before
250            destroying it.
251    
252            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
253            selected_layer parameter to searched_layer which is the layer to
254            search in.
255            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
256            search to that layer. Return the selected layer and shape.
257    
258            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
259            typo
260    
261    2002-07-24  Bernhard Herzog  <[email protected]>
262    
263            * Thuban/UI/application.py (ThubanApplication.create_session):
264            Extend the doc string.
265            (ThubanApplication.subscribe_session)
266            (ThubanApplication.unsubscribe_session): New methods to
267            subscribe/unsubscribe to/from session channels.
268            (ThubanApplication.SetSession): Call the new methods here.
269            (ThubanApplication.maps_changed, ThubanApplication.set_map):
270            Renamed set_map to maps_changed. Its now a subscriber for
271            MAPS_CHANGED.
272    
273            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
274            x-coordinate in case of simple clicks
275    
276            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
277            don't pass it as a parameter
278    
279            * Thuban/Model/session.py (Session.RemoveMap): New
280    
281            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
282            window size into a parameter.
283    
284    2002-07-23  Bernhard Herzog  <[email protected]>
285    
286            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
287            just commands.
288    
289            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
290            parameter list a bit to allow setting the window title and the
291            initial message in the status bar. Update the callers.
292    
293            * Thuban/UI/application.py (ThubanApplication.OnInit)
294            (ThubanApplication.CreateMainWindow): Put the mainwindow
295            instantiation into a separate method so that it can be overridden
296            by a subclass.
297    
298    2002-07-19  Bernhard Herzog  <[email protected]>
299    
300            * Thuban/Model/session.py: Issue a CHANGED message every time
301            another changed message is issued to make it easier to get
302            notified of changes.
303            (Session): Update the doc string
304            (Session.forward): Issue changed-events as CHANGED as well.
305            (Session.changed): Overwrite the inherited version to issue
306            CHANGED events as well.
307    
308            * Thuban/UI/tree.py: We can now simply subscribe to the session's
309            CHANGED channel to be informed of changes.
310            (SessionTreeCtrl.session_channels): Not needed any longer.
311            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
312            Only have to (un)subscribe CHANGED
313    
314            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
315    
316            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
317            for the wxPython locale bug to __init__.py so that it's
318            automatically executed by anybody using UI code from Thuban.
319    
320    2002-07-18  Bernhard Herzog  <[email protected]>
321    
322            * Thuban/UI/main.py (main): app no longer needs to be global
323    
324            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
325            as parameter and store it in an instance variable
326            (MainWindow.invoke_command, MainWindow.update_command_ui)
327            (MainWindow.save_modified_session, MainWindow.NewSession)
328            (MainWindow.OpenSession, MainWindow.SaveSession)
329            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
330            application object.
331    
332            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
333            the main window with self.
334    
335            * Thuban/UI/context.py: New module with the context class
336    
337            * Thuban/UI/command.py (Command): Update doc string.
338    
339            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
340            MainWindow.update_command_ui): Pass an instance of the context
341            class to the command's methods
342            (check_current_tool, call_method): Handle the new context
343            implementation
344    
345            * Examples/simple_extensions/simple_tool.py (simple_tool,
346            check_simple_tool): Handle the new context implementation
347    
348            * Examples/simple_extensions/simple_command.py (simple_command):
349            Handle the new context implementation. Update the comments about
350            the context.
351    
352            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
353            doc-string
354            (ThubanApplication.Session): New method to return the session
355            object
356    
357            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
358            interactor's selected_layer may not be a layer of the current
359            session when the tree is updated while a new session is being set.
360    
361    2002-07-17  Bernhard Herzog  <[email protected]>
362    
363            * Thuban/UI/tree.py (color_string): Removed. No longer used.
364            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
365            update_tree into update_tree and add_items. The tree now uses a
366            more generic way to display the contents of the tree.
367            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
368    
369            * Thuban/Model/layer.py (Layer.TreeInfo),
370            Thuban/Model/extension.py (Extension.TreeInfo),
371            Thuban/Model/map.py (Map.TreeInfo),
372            Thuban/Model/session.py (Session.TreeInfo):
373            Add TreeInfo methods to implement the new tree view update scheme
374    
375    2002-07-16  Bernhard Herzog  <[email protected]>
376    
377            * Thuban/UI/application.py: Don't use "import from" for the
378            MainWindow. It can't always be resolved.
379            (ThubanApplication.OnInit): change reference to MainWindow
380            accordingly.
381    
382            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
383            completely
384    
385    2002-07-10  Bernhard Herzog  <[email protected]>
386    
387            * setup.py (create_init_module): New configurable variable whose
388            default depends on the platform we're running on.
389            (ThubanInstall.initialize_options): Initialize
390            self.create_init_module from the global create_init_module
391            (ThubanInstall.user_options): indictate that the options
392            create-init-module and init-module-dir have arguments.
393    
394            * setup.py: In the setup call change the version number to include
395            cvs.
396    
397            * MANIFEST.in: Add the files in Examples
398    
399    2002-07-09  Bernhard Herzog  <[email protected]>
400    
401            * setup.py: In the setup call, use the thuban homepage as the
402            value of the url parameter.
403    
404            * Examples: New subdirectory for examples.
405    
406            * Examples/simple_extensions/simple_tool.xpm,
407            Examples/simple_extensions/simple_tool.py,
408            Examples/simple_extensions/simple_command.py,
409            Examples/simple_extensions/README: Simple examples showing how to
410            add new commands and tools.
411    
412            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
413            bdist_rpm that we also have an install script.
414            (bdist_inno): Add 2002 to the copyright notice.
415    
416            * setup.py: Create a file in python's site-packages directory to
417            make installation of Thuban as a library easier.
418            (ThubanInstall.user_options): Add two new options,
419            create-init-module and init-module-dir
420            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
421            filenames for installation in the default directories.
422            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
423            the inherited methods to capture some filenames before they're
424            transformed too much by distutils.
425            (ThubanInstall.run): Create the init module if requested.
426            (ThubanInstall.thuban_init_filename): New method to return the
427            full name of the init module.
428            (ThubanInstall.get_outputs): Append the filename of the init
429            module.
430    
431    2002-07-08  Bernhard Herzog  <[email protected]>
432    
433            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
434            handle the prefix properly which means that the default for the
435            installation prefix should be /usr for RPMs and /usr/local when
436            doing a normal source install.
437            (bdist_rpm_install_script): Script to override the default install
438            commands in the specfile generated by the bdist_rpm command.
439            (thuban_bdist_rpm.user_options): Add a prefix option
440            (thuban_bdist_rpm.initialize_options): Init the prefix option.
441            Create the script files for the spec files as empty files here
442            (thuban_bdist_rpm._make_spec_file): Override the inherited method
443            to fill the script files with content.
444    
445            * Thuban/Model/save.py (relative_filename): Wrapper around
446            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
447            argument. save_session now automatically uses this version,
448            solving a problem when saving to a relative filename.
449    
450            * setup.py: In the setup call, make sure that the library
451            directories are under $prefix/lib not directly under $prefix.
452    
453    2002-06-20      Jan-Oliver Wagner <[email protected]>
454    
455            * Thuban/Model/extension.py: new module to handle extension objects.
456            * Thuban/Model/messages.py: new messages for extensions.
457            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
458            Session.AddExtension): new for handling extensions.
459            Also some other minor changes to round up extension handling.
460            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
461            of Extension titles and title and names of its objects.
462    
463    2002-05-29  Bernhard Herzog  <[email protected]>
464    
465            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
466            the events for a command.
467            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
468            Call bind_command_events to bind the events. add_toolbar_command
469            can now bind events too so that it's possible to have commands
470            that are only available through the toolbar.
471            (MainWindow.init_ids): New instance variable events_bound to keep
472            track of for which commands events have been bound.
473    
474    2002-05-28  Bernhard Herzog  <[email protected]>
475    
476            * Thuban/UI/menu.py: New module to build and manage menus.
477    
478            * Thuban/UI/mainwindow.py: Remove some unused imports.
479            (MainWindow.__init__, main_menu): move the definition of the main
480            menu from __init__ to the Menu instance main_menu.
481            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
482            build the menu bar and sub-menus from a menu description.
483    
484            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
485            startup file
486            (ThubanApplication.read_startup_files): New method to run
487            ~/.thuban/thubanstart.py
488    
489            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
490            Move the toolbar definition to the Menu instance main_toolbar.
491            (MainWindow.build_toolbar): New method to build the toolbar
492            similar to the build_menu methods
493    
494    2002-05-23  Bernhard Herzog  <[email protected]>
495    
496            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
497            layer_outline_color. Fix it in the definition of the command too.
498    
499            * Thuban/UI/command.py (Command): Fix typo in doc string
500    
501    2002-05-22  Bernhard Herzog  <[email protected]>
502    
503            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
504            in the docstring
505    
506    2002-05-15  Bernhard Herzog  <[email protected]>
507    
508            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
509            when the shapefile is empty.
510            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
511            now return None for empty shapefiles. Update doc-strings.
512    
513            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
514            the layer's bbox being None.
515    
516            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
517            layer's bbox being None.
518    
519            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
520            necessary.
521            (MapCanvas.__init__): New instance variables, last_selected_layer
522            and last_selected_shape to determine how the selection has
523            changed.
524    
525            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
526            AutoSizeColumns because it will cause a traversal of the entire
527            table which for large .dbf files will take a very long time.
528    
529    2002-05-14  Bernhard Herzog  <[email protected]>
530    
531            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
532            maximum depth for the tree than shapelib does by default.
533    
534    2002-05-10  Bernhard Herzog  <[email protected]>
535    
536            * setup.py (py_modules): The shptree modules doesn't have a
537            wrapper, so don't include it in the py_modules
538    
539    2002-05-08  Bernhard Herzog  <[email protected]>
540    
541            * extensions/shapelib/shptree.c (compare_ints): Make arguments
542            const void * as in the qsort prototype
543            (SHPTreeFindLikelyShapes): Remove some unused variables.
544    
545            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
546            maintains to redraw the window during a drag.
547            (MapCanvas.unprojected_rect_around_point): New method to determine
548            a small region around a point for hit-testing.
549            (MapCanvas.find_shape_at): Only test the shapes in a small region
550            around the point.
551    
552            * setup.py: Increment the version to 0.1.2
553    
554            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
555            debug print and set session to None after unsubscribing
556    
557    2002-05-07  Bernhard Herzog  <[email protected]>
558    
559            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
560            the file to have a .thuban extension.
561    
562            * Thuban/UI/tree.py (session_channels): New class constant with
563            all the session channels to subscribe to to update the tree
564            (SessionTreeCtrl.session_changed): Remember the session so that we
565            can unsubscribe properly. Use the new class constant to
566            unsubscribe from the old session and subscribe to the new one.
567            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
568            subscriptions of the SessionTreeCtrl.
569            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
570    
571            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
572            Session Tree" command to the file menu.
573    
574            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
575            as update_region to the renderer.
576    
577            * Thuban/UI/renderer.py
578            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
579            update box is now directly a tuple, not a wxRect anymore.
580    
581            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
582            prints.
583    
584    2002-05-07  Bernhard Herzog  <[email protected]>
585    
586            * setup.py: Add the shptree extension module. See
587            extensions/pyshapelib/ChangeLog for more details.
588    
589            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
590            extensions/shapelib/dbfopen.c: Really update to the versions of
591            shapelib 1.2.9. For some reason it wasn't really done on
592            2002-04-11.
593    
594            * extensions/shapelib/shptree.c: Modified version of shptree.c of
595            shapelib 1.2.9. The only real difference is the use of qsort
596            instead of a bubble sort implementation
597    
598            * Thuban/Model/layer.py (Layer.__init__): New instance variable
599            shapetree to hold the shapelib quadtree for the shapefile
600            (Layer.open_shapefile): Create the quad tree.
601            (Layer.ShapesInRegion): New method to return the ids of shapes in
602            a given region using the quad tree.
603    
604            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
605            comment
606            (draw_polygon_shape): Accept both arcs and polygons.
607            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
608            the api.
609    
610            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
611            return the shape ids to be rendered in a given layer.
612            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
613            ids. Use draw_polygon_shape to draw arc shapes as well.
614            (ScreenRenderer.RenderMap): New parameter for the rectangle that
615            has to be updated
616            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
617            calling it's ShapesInRegion method.
618    
619            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
620            update_region for the update region.
621            (MapCanvas.OnPaint): Maintain the update region
622            (MapCanvas.do_redraw): Pass the bounding box of the update_region
623            to the renderer when drawing the bitmap. Reset the update_region.
624    
625    2002-05-03  Bernhard Herzog  <[email protected]>
626    
627            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
628            MainWindow.OpenSession): Change the file extension of the session
629            files to .thuban
630    
631            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
632            Move the map channels to be forwarded by the session into the
633            class constant with forwarded_channels. Also add
634            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
635            forwarded_channels
636    
637            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
638            typo and some rewording).
639    
640    2002-05-02  Bernhard Herzog  <[email protected]>
641    
642            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
643            around to speed up most redraws:
644            (MapCanvas.__init__): New instance variable bitmap which holds the
645            bitmap
646            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
647            self.bitmap to draw.
648            (MapCanvas.full_redraw): New method to force a full redraw
649            including the bitmap
650            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
651            make sure the bitmap is redrawn.
652            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
653            MapCanvas.shape_selected): Call full_redraw instead of readraw to
654            make sure the bitmap is redrawn.
655            (MapCanvas.OnSize): New method to handle size events so that the
656            bitmap can be redrawn.
657    
658    2002-04-29  Bernhard Herzog  <[email protected]>
659    
660            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
661            canvas' VIEW_POSITION event
662            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
663            Update the text in the status-bar accordingly.
664    
665            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
666            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
667            called.
668            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
669            current_position
670            (MapCanvas.set_current_position): New method to set
671            current_position. Issue a VIEW_POSITION event
672            (MapCanvas.CurrentPosition): New public method to return the value
673            of current_position. Should be called when the VIEW_POSITION event
674            is processed.
675            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
676            Update the position.
677            (MapCanvas.OnLeaveWindow): Set the position to None.
678    
679            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
680            position in the statusbar
681    
682    2002-04-26      Frank Koormann <[email protected]>
683    
684            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
685    
686    2002-04-24      Frank Koormann <[email protected]>
687            
688            * Resources/Bitmaps/identify.xpm: shadow added
689    
690            * Resources/Bitmaps/fullextent.xpm: new
691            
692    2002-04-22      Jan-Oliver Wagner <[email protected]>
693    
694            * Thuban/UI/tree.py (update_tree): added test for None on map bounding box
695    
696    2002-04-21      Jan-Oliver Wagner <[email protected]>
697    
698            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
699    
700            * Thuban/UI/tree.py (update_tree): added added map extent
701    
702            * Thuban/UI/mainwindow.py (_method_command): extended by parameter
703            icon; added map_full_extend as tool
704    
705    2002-04-19      Jan-Oliver Wagner <[email protected]>
706    
707            * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
708            saving _new_ sessions
709    
710            * Thuban/Model/session.py (create_empty_session): new session
711            don't have a filename (set to None)
712    
713            * Thuban/UI/tree.py (update_tree): added filename and modified flag
714    
715            * Thuban/Model/load.py (ProcessSession): convert projection
716            parameters from unicode to regular string
717    
718            * Data/iceland_sample.session: Added UTM Zone 26 projection.
719    
720    2002-04-11  Bernhard Herzog  <[email protected]>
721    
722            * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
723            extensions/shapelib/dbfopen.c: Update to the versions of shapelib
724            1.2.9
725    
726            * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
727            the pyshapelib directoy into the list of include dirs, so that
728            pyshapelib_api.h can be found.
729    
730            * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
731            holds the pyshapelib C-API
732            (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
733            pyshapelib_api to access the shapelib functions.
734            (initwxproj): Import the c_api from the shapelib module and
735            initialize pyshapelib_api.
736    
737    2002-04-04  Bernhard Herzog  <[email protected]>
738    
739            * setup.py (thuban_bdist_rpm.initialize_options): Use
740            initialize_options to create the scripts for the rpm.
741    
742            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
743    
744    2002-04-03  Bernhard Herzog  <[email protected]>
745    
746            * setup.py: Increment version to 0.1.1
747    
748            * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
749            Layer" and "Remove Layer" commands from the layer menu to the map
750            menu
751    
752    2002-02-15  Bernhard Herzog  <[email protected]>
753    
754            * Thuban/Model/layer.py (Layer.Shape): list append only takes one
755            argument (python <= 1.5.2 erroneously accepted multiuple
756            arguments)
757    
758    2002-02-04  Bernhard Herzog  <[email protected]>
759    
760            * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
761            RecordGrid in the identifyview.
762            (IdentifyView.__init__): Use IdentifyGridCtrl instead of
763            IdentifyListCtrl. The grid allows editing of the values.
764    
765            * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
766            implementing a grid for a single row of a thuban table.
767    
768            * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
769            layers by default. Easier to use than the previous default of only
770            searching through the select layer which meant that if no layer
771            was selected, you couldn't select a shape.
772    
773            * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
774    
775            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
776            stroke_width attribute
777    
778            * Thuban/Model/save.py (save_session): Write the new stroke_width
779            attribute
780    
781            * Thuban/Model/load.py (ProcessSession.startElement): Read the
782            stroke_width attribute
783    
784            * Thuban/Model/layer.py (Layer.__init__): New parameter and
785            instance variable stroke_width
786            (Layer.SetStrokeWidth): Set the stroke_width.
787    
788    2002-02-01  Bernhard Herzog  <[email protected]>
789    
790            * extensions/thuban/wxproj.cpp (project_points): Fix two
791            off-by-one errors in the last loop that joins the various parts
792            together.
793    
794    2002-01-14  Bernhard Herzog  <[email protected]>
795    
796            * setup.py (data_dist.make_distribution): Fix some typos
797    
798    2001-09-18  Bernhard Herzog  <[email protected]>
799    
800            * README: Slight tweaking in preparation for the 0.1 release
801    
802            * setup.cfg: Add section for sdist to create both tgz and zip
803            archives
804    
805            * setup.py: increase version number to 0.1
806            (data_dist): New command class for data distribution
807            
808    
809  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
810    
811            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
812            Handle the case of no layer (i.e. layer is None) properly.
813    
814            * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
815            Set the initial selection of the combo boxes to reflect the
816            projection we're starting with in a way that works on windows,
817            too.
818    
819          * Thuban/Lib/connector.py (Connector.print_connections): Print the          * Thuban/Lib/connector.py (Connector.print_connections): Print the
820          puiblisher's ids in hex to make it easier to compare them to the          puiblisher's ids in hex to make it easier to compare them to the
821          standard repr of python methods          standard repr of python methods

Legend:
Removed from v.64  
changed lines
  Added in v.326

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26