/[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 40 by bh, Thu Sep 6 17:18:31 2001 UTC revision 205 by bh, Tue Jul 9 14:02:40 2002 UTC
# Line 1  Line 1 
1    2002-07-09  Bernhard Herzog  <[email protected]>
2    
3            * setup.py: Create a file in python's site-packages directory to
4            make installation of Thuban as a library easier.
5            (ThubanInstall.user_options): Add two new options,
6            create-init-module and init-module-dir
7            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
8            filenames for installation in the default directories.
9            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
10            the inherited methods to capture some filenames before they're
11            transformed too much by distutils.
12            (ThubanInstall.run): Create the init module if requested.
13            (ThubanInstall.thuban_init_filename): New method to return the
14            full name of the init module.
15            (ThubanInstall.get_outputs): Append the filename of the init
16            module.
17    
18    2002-07-08  Bernhard Herzog  <[email protected]>
19    
20            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
21            handle the prefix properly which means that the default for the
22            installation prefix should be /usr for RPMs and /usr/local when
23            doing a normal source install.
24            (bdist_rpm_install_script): Script to override the default install
25            commands in the specfile generated by the bdist_rpm command.
26            (thuban_bdist_rpm.user_options): Add a prefix option
27            (thuban_bdist_rpm.initialize_options): Init the prefix option.
28            Create the script files for the spec files as empty files here
29            (thuban_bdist_rpm._make_spec_file): Override the inherited method
30            to fill the script files with content.
31    
32            * Thuban/Model/save.py (relative_filename): Wrapper around
33            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
34            argument. save_session now automatically uses this version,
35            solving a problem when saving to a relative filename.
36    
37            * setup.py: In the setup call, make sure that the library
38            directories are under $prefix/lib not directly under $prefix.
39    
40    2002-06-20      Jan-Oliver Wagner <[email protected]>
41    
42            * Thuban/Model/extension.py: new module to handle extension objects.
43            * Thuban/Model/messages.py: new messages for extensions.
44            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
45            Session.AddExtension): new for handling extensions.
46            Also some other minor changes to round up extension handling.
47            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
48            of Extension titles and title and names of its objects.
49    
50    2002-05-29  Bernhard Herzog  <[email protected]>
51    
52            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
53            the events for a command.
54            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
55            Call bind_command_events to bind the events. add_toolbar_command
56            can now bind events too so that it's possible to have commands
57            that are only available through the toolbar.
58            (MainWindow.init_ids): New instance variable events_bound to keep
59            track of for which commands events have been bound.
60    
61    2002-05-28  Bernhard Herzog  <[email protected]>
62    
63            * Thuban/UI/menu.py: New module to build and manage menus.
64    
65            * Thuban/UI/mainwindow.py: Remove some unused imports.
66            (MainWindow.__init__, main_menu): move the definition of the main
67            menu from __init__ to the Menu instance main_menu.
68            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
69            build the menu bar and sub-menus from a menu description.
70    
71            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
72            startup file
73            (ThubanApplication.read_startup_files): New method to run
74            ~/.thuban/thubanstart.py
75    
76            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
77            Move the toolbar definition to the Menu instance main_toolbar.
78            (MainWindow.build_toolbar): New method to build the toolbar
79            similar to the build_menu methods
80    
81    2002-05-23  Bernhard Herzog  <[email protected]>
82    
83            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
84            layer_outline_color. Fix it in the definition of the command too.
85    
86            * Thuban/UI/command.py (Command): Fix typo in doc string
87    
88    2002-05-22  Bernhard Herzog  <[email protected]>
89    
90            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
91            in the docstring
92    
93    2002-05-15  Bernhard Herzog  <[email protected]>
94    
95            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
96            when the shapefile is empty.
97            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
98            now return None for empty shapefiles. Update doc-strings.
99    
100            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
101            the layer's bbox being None.
102    
103            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
104            layer's bbox being None.
105    
106            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
107            necessary.
108            (MapCanvas.__init__): New instance variables, last_selected_layer
109            and last_selected_shape to determine how the selection has
110            changed.
111    
112            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
113            AutoSizeColumns because it will cause a traversal of the entire
114            table which for large .dbf files will take a very long time.
115    
116    2002-05-14  Bernhard Herzog  <[email protected]>
117    
118            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
119            maximum depth for the tree than shapelib does by default.
120    
121    2002-05-10  Bernhard Herzog  <[email protected]>
122    
123            * setup.py (py_modules): The shptree modules doesn't have a
124            wrapper, so don't include it in the py_modules
125    
126    2002-05-08  Bernhard Herzog  <[email protected]>
127    
128            * extensions/shapelib/shptree.c (compare_ints): Make arguments
129            const void * as in the qsort prototype
130            (SHPTreeFindLikelyShapes): Remove some unused variables.
131    
132            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
133            maintains to redraw the window during a drag.
134            (MapCanvas.unprojected_rect_around_point): New method to determine
135            a small region around a point for hit-testing.
136            (MapCanvas.find_shape_at): Only test the shapes in a small region
137            around the point.
138    
139            * setup.py: Increment the version to 0.1.2
140    
141            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
142            debug print and set session to None after unsubscribing
143    
144    2002-05-07  Bernhard Herzog  <[email protected]>
145    
146            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
147            the file to have a .thuban extension.
148    
149            * Thuban/UI/tree.py (session_channels): New class constant with
150            all the session channels to subscribe to to update the tree
151            (SessionTreeCtrl.session_changed): Remember the session so that we
152            can unsubscribe properly. Use the new class constant to
153            unsubscribe from the old session and subscribe to the new one.
154            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
155            subscriptions of the SessionTreeCtrl.
156            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
157    
158            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
159            Session Tree" command to the file menu.
160    
161            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
162            as update_region to the renderer.
163    
164            * Thuban/UI/renderer.py
165            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
166            update box is now directly a tuple, not a wxRect anymore.
167    
168            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
169            prints.
170    
171    2002-05-07  Bernhard Herzog  <[email protected]>
172    
173            * setup.py: Add the shptree extension module. See
174            extensions/pyshapelib/ChangeLog for more details.
175    
176            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
177            extensions/shapelib/dbfopen.c: Really update to the versions of
178            shapelib 1.2.9. For some reason it wasn't really done on
179            2002-04-11.
180    
181            * extensions/shapelib/shptree.c: Modified version of shptree.c of
182            shapelib 1.2.9. The only real difference is the use of qsort
183            instead of a bubble sort implementation
184    
185            * Thuban/Model/layer.py (Layer.__init__): New instance variable
186            shapetree to hold the shapelib quadtree for the shapefile
187            (Layer.open_shapefile): Create the quad tree.
188            (Layer.ShapesInRegion): New method to return the ids of shapes in
189            a given region using the quad tree.
190    
191            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
192            comment
193            (draw_polygon_shape): Accept both arcs and polygons.
194            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
195            the api.
196    
197            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
198            return the shape ids to be rendered in a given layer.
199            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
200            ids. Use draw_polygon_shape to draw arc shapes as well.
201            (ScreenRenderer.RenderMap): New parameter for the rectangle that
202            has to be updated
203            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
204            calling it's ShapesInRegion method.
205    
206            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
207            update_region for the update region.
208            (MapCanvas.OnPaint): Maintain the update region
209            (MapCanvas.do_redraw): Pass the bounding box of the update_region
210            to the renderer when drawing the bitmap. Reset the update_region.
211    
212    2002-05-03  Bernhard Herzog  <[email protected]>
213    
214            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
215            MainWindow.OpenSession): Change the file extension of the session
216            files to .thuban
217    
218            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
219            Move the map channels to be forwarded by the session into the
220            class constant with forwarded_channels. Also add
221            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
222            forwarded_channels
223    
224            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
225            typo and some rewording).
226    
227    2002-05-02  Bernhard Herzog  <[email protected]>
228    
229            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
230            around to speed up most redraws:
231            (MapCanvas.__init__): New instance variable bitmap which holds the
232            bitmap
233            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
234            self.bitmap to draw.
235            (MapCanvas.full_redraw): New method to force a full redraw
236            including the bitmap
237            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
238            make sure the bitmap is redrawn.
239            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
240            MapCanvas.shape_selected): Call full_redraw instead of readraw to
241            make sure the bitmap is redrawn.
242            (MapCanvas.OnSize): New method to handle size events so that the
243            bitmap can be redrawn.
244    
245    2002-04-29  Bernhard Herzog  <[email protected]>
246    
247            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
248            canvas' VIEW_POSITION event
249            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
250            Update the text in the status-bar accordingly.
251    
252            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
253            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
254            called.
255            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
256            current_position
257            (MapCanvas.set_current_position): New method to set
258            current_position. Issue a VIEW_POSITION event
259            (MapCanvas.CurrentPosition): New public method to return the value
260            of current_position. Should be called when the VIEW_POSITION event
261            is processed.
262            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
263            Update the position.
264            (MapCanvas.OnLeaveWindow): Set the position to None.
265    
266            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
267            position in the statusbar
268    
269    2002-04-26      Frank Koormann <[email protected]>
270    
271            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
272    
273    2002-04-24      Frank Koormann <[email protected]>
274            
275            * Resources/Bitmaps/identify.xpm: shadow added
276    
277            * Resources/Bitmaps/fullextent.xpm: new
278            
279    2002-04-22      Jan-Oliver Wagner <[email protected]>
280    
281            * Thuban/UI/tree.py (update_tree): added test for None on map bounding box
282    
283    2002-04-21      Jan-Oliver Wagner <[email protected]>
284    
285            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
286    
287            * Thuban/UI/tree.py (update_tree): added added map extent
288    
289            * Thuban/UI/mainwindow.py (_method_command): extended by parameter
290            icon; added map_full_extend as tool
291    
292    2002-04-19      Jan-Oliver Wagner <[email protected]>
293    
294            * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
295            saving _new_ sessions
296    
297            * Thuban/Model/session.py (create_empty_session): new session
298            don't have a filename (set to None)
299    
300            * Thuban/UI/tree.py (update_tree): added filename and modified flag
301    
302            * Thuban/Model/load.py (ProcessSession): convert projection
303            parameters from unicode to regular string
304    
305            * Data/iceland_sample.session: Added UTM Zone 26 projection.
306    
307    2002-04-11  Bernhard Herzog  <[email protected]>
308    
309            * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
310            extensions/shapelib/dbfopen.c: Update to the versions of shapelib
311            1.2.9
312    
313            * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
314            the pyshapelib directoy into the list of include dirs, so that
315            pyshapelib_api.h can be found.
316    
317            * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
318            holds the pyshapelib C-API
319            (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
320            pyshapelib_api to access the shapelib functions.
321            (initwxproj): Import the c_api from the shapelib module and
322            initialize pyshapelib_api.
323    
324    2002-04-04  Bernhard Herzog  <[email protected]>
325    
326            * setup.py (thuban_bdist_rpm.initialize_options): Use
327            initialize_options to create the scripts for the rpm.
328    
329            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
330    
331    2002-04-03  Bernhard Herzog  <[email protected]>
332    
333            * setup.py: Increment version to 0.1.1
334    
335            * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
336            Layer" and "Remove Layer" commands from the layer menu to the map
337            menu
338    
339    2002-02-15  Bernhard Herzog  <[email protected]>
340    
341            * Thuban/Model/layer.py (Layer.Shape): list append only takes one
342            argument (python <= 1.5.2 erroneously accepted multiuple
343            arguments)
344    
345    2002-02-04  Bernhard Herzog  <[email protected]>
346    
347            * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
348            RecordGrid in the identifyview.
349            (IdentifyView.__init__): Use IdentifyGridCtrl instead of
350            IdentifyListCtrl. The grid allows editing of the values.
351    
352            * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
353            implementing a grid for a single row of a thuban table.
354    
355            * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
356            layers by default. Easier to use than the previous default of only
357            searching through the select layer which meant that if no layer
358            was selected, you couldn't select a shape.
359    
360            * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
361    
362            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
363            stroke_width attribute
364    
365            * Thuban/Model/save.py (save_session): Write the new stroke_width
366            attribute
367    
368            * Thuban/Model/load.py (ProcessSession.startElement): Read the
369            stroke_width attribute
370    
371            * Thuban/Model/layer.py (Layer.__init__): New parameter and
372            instance variable stroke_width
373            (Layer.SetStrokeWidth): Set the stroke_width.
374    
375    2002-02-01  Bernhard Herzog  <[email protected]>
376    
377            * extensions/thuban/wxproj.cpp (project_points): Fix two
378            off-by-one errors in the last loop that joins the various parts
379            together.
380    
381    2002-01-14  Bernhard Herzog  <[email protected]>
382    
383            * setup.py (data_dist.make_distribution): Fix some typos
384    
385    2001-09-18  Bernhard Herzog  <[email protected]>
386    
387            * README: Slight tweaking in preparation for the 0.1 release
388    
389            * setup.cfg: Add section for sdist to create both tgz and zip
390            archives
391    
392            * setup.py: increase version number to 0.1
393            (data_dist): New command class for data distribution
394            
395    
396    2001-09-14  Bernhard Herzog  <[email protected]>
397    
398            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
399            Handle the case of no layer (i.e. layer is None) properly.
400    
401            * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
402            Set the initial selection of the combo boxes to reflect the
403            projection we're starting with in a way that works on windows,
404            too.
405    
406            * Thuban/Lib/connector.py (Connector.print_connections): Print the
407            puiblisher's ids in hex to make it easier to compare them to the
408            standard repr of python methods
409    
410            * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
411            messages
412    
413    2001-09-13  Bernhard Herzog  <[email protected]>
414    
415            * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
416            deselect the layer if no layer is selected
417    
418            * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
419            idle time when there actually is something to draw. If there's
420            nothing to draw simply clear the window
421            (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
422            (MapCanvas.SetMap): force a redraw in all cases because
423            FitMapToWindow doesn't always do it.
424            (MapCanvas.ZoomFactor): Add an optional parameter, center, to
425            specify the point to move into the center of the window
426            (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
427            dragged, zoon in/out by a factor of 2
428            (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
429            index, i.e. reversed drawing order) so that objects appearing to
430            be in from of others are selected first. This is probably mostly
431            relevant for point shapes where the symbols used may overlap
432    
433            * Thuban/Model/session.py (create_empty_session): Unset the
434            modified bit before returning it
435    
436            * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
437            create_empty_session session to create the new, empty session.
438    
439            * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
440            the tool bitmaps.
441            (MainWindow.OnClose, MainWindow.save_modified_session): Separate
442            the code that asks whether the session should be saved into the
443            new method save_modified_session.
444            (MainWindow.OpenSession, MainWindow.NewSession): Use the new
445            method to save modified session here too.
446    
447    2001-09-11  Bernhard Herzog  <[email protected]>
448    
449            * setup.py (InnoIconItem): fix typo
450    
451            (thuban_bdist_inno.run):
452            (bdist_inno.run): Move the decision not to create symlinks on
453            non-nt platforms to thuban_bdist_inno and do it unconditinally
454            since we never want to create the symlinks here
455    
456    2001-09-10  Bernhard Herzog  <[email protected]>
457    
458            * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
459            identify view immediately
460    
461            * Thuban/UI/controls.py: New file with two classes RecordListCtrl
462            and SelectableRecordListCtrl that implement the code shared by the
463            identify view and the label dialog
464    
465            * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
466            new class RecordListCtrl
467    
468            * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
469            return value of GetValue is None instead of using it as a boolean
470            directly so that Zero numbers are handled properly.
471            (LabelListCtrl): Derive from the new class
472            SelectableRecordListCtrl
473    
474            * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
475            (Proj4Dialog.dialogLayout): Make the window resizable and set the
476            size of the text control explicitly to make the sizers work on
477            both Windows and X.
478    
479    2001-09-07  Bernhard Herzog  <[email protected]>
480    
481            * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
482            that can limit the search to the currently selected layer.
483            (MapCanvas.SelectShapeAt): Make sure that the currently selected
484            layer stays selected even when no shape is found
485            (MapCanvas.FitRectToWindow): If the rect has zero with or zero
486            height do nothing (avoids zero division errors)
487    
488  2001-09-06  Bernhard Herzog  <[email protected]>  2001-09-06  Bernhard Herzog  <[email protected]>
489    
490            * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
491            Correct the spelling of SessionTreeCtrl. dabbrev is too damn
492            convenient :-)
493            (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
494            a new instvar layer_to_item to map layers to tree items
495            (SessionTreeCtrl.layer_selected): Select the appropriate tree item
496            to match the current selection in the interactor
497    
498          * Thuban/UI/interactor.py (Interactor.SelectedLayer):          * Thuban/UI/interactor.py (Interactor.SelectedLayer):
499          (Interactor.HasSelectedLayer): New methods to query the current          (Interactor.HasSelectedLayer): New methods to query the current
500          selection          selection

Legend:
Removed from v.40  
changed lines
  Added in v.205

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26