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

Legend:
Removed from v.26  
changed lines
  Added in v.184

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26