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

Legend:
Removed from v.19  
changed lines
  Added in v.186

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26