/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 205 - (hide annotations)
Tue Jul 9 14:02:40 2002 UTC (22 years, 8 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 27299 byte(s)
update ChangeLog

1 bh 205 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 bh 202 2002-07-08 Bernhard Herzog <[email protected]>
19    
20 bh 205 * 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 bh 202 * 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 jan 199 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 bh 194 2002-05-29 Bernhard Herzog <[email protected]>
51    
52     * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
53 bh 202 the events for a command.
54 bh 194 (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 bh 190 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 bh 192 * 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 bh 184 2002-05-23 Bernhard Herzog <[email protected]>
82    
83 bh 186 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
84     layer_outline_color. Fix it in the definition of the command too.
85    
86 bh 184 * Thuban/UI/command.py (Command): Fix typo in doc string
87    
88 bh 182 2002-05-22 Bernhard Herzog <[email protected]>
89    
90     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
91     in the docstring
92    
93 bh 175 2002-05-15 Bernhard Herzog <[email protected]>
94    
95 bh 180 * 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 bh 175 * 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 bh 172 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 bh 165 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 bh 163 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 bh 146 2002-05-07 Bernhard Herzog <[email protected]>
145    
146 bh 154 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
147     the file to have a .thuban extension.
148    
149 bh 152 * 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 bh 146 * 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 bh 129 2002-05-03 Bernhard Herzog <[email protected]>
213    
214 bh 131 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
215     MainWindow.OpenSession): Change the file extension of the session
216     files to .thuban
217    
218 bh 129 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
219     Move the map channels to be forwarded by the session into the
220 bh 146 class constant with forwarded_channels. Also add
221     LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
222     forwarded_channels
223 bh 129
224     * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
225     typo and some rewording).
226    
227 bh 126 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 bh 124 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 frank 120 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 frank 118
275     * Resources/Bitmaps/identify.xpm: shadow added
276    
277     * Resources/Bitmaps/fullextent.xpm: new
278    
279 jan 116 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 jan 114 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 jan 107 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 bh 100 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 bh 89 2002-04-04 Bernhard Herzog <[email protected]>
325    
326 bh 91 * setup.py (thuban_bdist_rpm.initialize_options): Use
327     initialize_options to create the scripts for the rpm.
328    
329 bh 89 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
330    
331 bh 85 2002-04-03 Bernhard Herzog <[email protected]>
332    
333 bh 87 * setup.py: Increment version to 0.1.1
334    
335 bh 85 * 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 bh 83 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 bh 81 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 bh 72 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 bh 71 2002-01-14 Bernhard Herzog <[email protected]>
382    
383     * setup.py (data_dist.make_distribution): Fix some typos
384    
385 bh 70 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 bh 64 2001-09-14 Bernhard Herzog <[email protected]>
397    
398 bh 70 * 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 bh 64 * 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 bh 59 2001-09-13 Bernhard Herzog <[email protected]>
414    
415 bh 64 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
416     deselect the layer if no layer is selected
417    
418 bh 59 * 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 bh 64 (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 bh 59
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 bh 55 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 bh 48 2001-09-10 Bernhard Herzog <[email protected]>
457    
458 bh 53 * 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 bh 48 * 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 bh 44 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 bh 46 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
486     height do nothing (avoids zero division errors)
487 bh 44
488 bh 32 2001-09-06 Bernhard Herzog <[email protected]>
489    
490 bh 42 * 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 bh 40 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
499     (Interactor.HasSelectedLayer): New methods to query the current
500     selection
501    
502     * Thuban/UI/mainwindow.py (MainWindow.current_layer):
503     (MainWindow.has_selected_layer): Simply call the appropriate
504     interactor method
505    
506     * Thuban/UI/mainwindow.py (MainWindow.__init__):
507     (MainWindow.LayerShowTable):
508     (MainWindow.identify_view_on_demand): Store the interactor in an
509     instvar and use that reference instead of going through main.app
510    
511     * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
512     * Thuban/UI/application.py (ThubanApplication.OnInit):
513     * Thuban/UI/main.py (main): Create the session tree view in main
514     with the new mainwindow method ShowSessionTree and not directly
515     the application's OnInit method
516    
517     * Thuban/UI/tree.py (myTreeCtrlPanel):
518     (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
519     TreeCtrl isntead of a panel. This affects most method since we now
520     refer to self instead of self.tree
521     (SessionTreeView): New class implementing a non-modal dialog
522     showing the session tree.
523    
524 bh 35 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
525     layer to the tableview dialog.
526    
527     * Thuban/UI/tableview.py: Add some doc-strings
528     (TableGrid):
529     (TableGrid.OnRangeSelect):
530     (TableGrid.OnSelectCell):
531     (TableFrame.__init__):
532     (TableFrame.row_selected):
533     Selecting rows in the grid view now updates the selected shapes
534     through the TableFrame. To achieve this we derive TableGrid from
535     Publisher and introduce the message type ROW_SELECTED which the
536     TableFrame subscribes to and which is issued by OnRangeSelect and
537     OnSelectCell
538    
539     (DataTable.SelectRow): Removed because it's no longer needed in
540     the row/shape selection scheme
541    
542 bh 32 * Thuban/UI/dialogs.py: New file implementing common classes for
543     dialogs
544    
545     * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
546     the SELECTED_SHAPE message anymore. This is now handled by the
547     parent.
548     (TableGrid.select_shape): Only update the selection if the shape
549     is not None.
550     (TableFrame): Inherit from the new NonModalDialog class.
551     (TableFrame.__init__, TableFrame.select_shape): Handle the
552     SELECT_SHAPE message.
553     (TableFrame.OnClose): Extend the inherited method to unsubscribe
554     SELECT_SHAPE
555    
556     * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
557     (MainWindow.add_dialog):
558     (MainWindow.dialog_open):
559     (MainWindow.remove_dialog):
560     (MainWindow.get_open_dialog): New methods to maintain a dictionary
561     of opened non-modal dialogs.
562    
563     (MainWindow.__init__): Initialize the new non-modal dictionary
564     management code
565     (MainWindow.LayerShowTable): maintain separate dialogs for each
566     table using the non-modal dialog management code to only open a
567     view once for each table.
568    
569     (MainWindow.IdentifyTool):
570     (MainWindow.__init__):
571     (MainWindow.identify_view_on_demand): Don't open the identify view
572     in IdentifyTool anymore. This will be done automatically by the
573     new method identify_view_on_demand which handles the
574     SELECTED_SHAPE message so that the identify view will be opened on
575     demand
576    
577     * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
578     the interactor argument. The SELECTED_SHAPE message is now handled
579     by the parent.
580     (IdentifyView.__init__): Add the interactor argument so that we
581     can handle the SELECTED_SHAPE message here
582     (IdentifyView.selected_shape): New method to handle the
583     SELECTED_SHAPE messages
584    
585     * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
586     NonModalDialog class
587     (IdentifyView.OnClose): Extend the inherited version to
588     unsubscribe SELECT_SHAPE
589    
590     * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
591    
592 bh 26 2001-09-05 Bernhard Herzog <[email protected]>
593    
594     * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
595    
596     * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
597     interactor to pass through to the MapCanvas
598    
599     * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
600     argument to the MainWindow constructor to get rid of the ugly hack
601     that made main.app available early just so that the mapcanvas
602     could access the interactor object.
603    
604 bh 19 2001-09-04 Bernhard Herzog <[email protected]>
605    
606 bh 22 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
607     that runs a modal message box
608     (MainWindow.OnClose): Use the new method
609     (MainWindow.RemoveLayer): Just do nothing in case no layer is
610     selected. The command should be grayed out anyway, so there's no
611     need to pop up a message box.
612     (MainWindow.AddLayer): Pop up a message box with an error message
613     if the shape file can't be opened
614    
615     * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
616     immediately. This will cause an exception in case the file can't
617     be opened and we can display an appropriate message.
618    
619 bh 19 * MANIFEST.in: Add extensions/pyprojection/LICENSE
620    
621     * setup.py (thuban_bdist_rpm): New class implementing a Thuban
622     specific bdist_rpm command.
623    
624     * Thuban/UI/main.py: Catch ImportError exceptions when importing
625     the locale module because it may not be available on some
626     installations.
627    
628     * extensions/pyprojection/LICENSE: Copy of the license text in
629     Projection.i. Having it in a separate file makes it easier to
630     refer to license text in e.g. RPMs
631    
632 bh 18 2001-09-03 Bernhard Herzog <[email protected]>
633    
634 bh 19 * setup.py: use wx-config instead of wxgtk-config because it's
635     more generic
636    
637     * setup.py (ThubanInstall.get_outputs): Add the symlink in
638     <prefix>/bin to the outputs
639     (ThubanInstall.link_file): New method to link files. We need this
640     because the standard copy_files refuses to link non-existing
641     files.
642     (ThubanInstall.run): Remove the leading install root from the
643     script filename if an install root was specified and use the new
644     link_file method
645    
646 bh 18 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
647     the window when the first layer is added to the map.
648    
649     * setup.py (ThubanInstall.run): Honor the build root (self.root)
650     when linking thuban.py to <prefix>/bin
651    
652 bh 16 2001-08-31 Bernhard Herzog <[email protected]>
653    
654     * setup.py: In the setup call, the install parameters shouldn't
655     have trailing slashes because distutils on non-posix platforms
656     doesn't like that. The same applies to other directories like
657     "Resources/Bitmaps"
658    
659     In the configuration section for nt, move the wxWindows directory
660     optins into the part clearly marked as editable.
661    
662     (InstallLocal.initialize_options):
663     (InstallLocal.user_options): remove the currently unused debug
664     flag
665     (thuban_build_py.find_all_modules): Add this method so that it
666     works for our case of having packages and modules in one
667     distribution as well.
668     (ThubanInstall.initialize_options):
669     (ThubanInstall.finalize_options):
670     (ThubanInstall.user_options):
671     (ThubanInstall.boolean_options): Add new options, do-symlink and
672     extra files. Since these are the first ThubanInstall specific
673     options, override user_options and boolean_options
674     (ThubanInstall.run): Honor the new do-symlink and extra-files
675     options.
676     (ThubanInstall.get_outputs): Add to override the base-class's
677     version and add the extra-files to the outputs
678     (bdist_inno): New class for windows distributions with Inno Setup
679     (InnoIconItem): Helper class for bdist_inno
680     (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
681     this together with the appropriate parameters, to the setup call.
682    
683     * setup.cfg (bdist_inno): added new section for the inno setup
684     installer
685    
686     * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
687     changing_selection to avoid recursive selection events when
688     modifying the selection in response to a selection event.
689     (myTreeCtrlPanel.normalize_selection): Set the new inst var when
690     changing the tree's selection.
691     (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
692     we're not being called indirectly from normalize_selection.
693    
694     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
695     event.Check only if the command is actuall checkable.
696     (MainWindow.__init__): Call the toolbar's Realize method to make
697     sure that the items are actually shown
698    
699 bh 7 2001-08-28 Bernhard Herzog <[email protected]>
700    
701 bh 9 * setup.py: Fix some doc strings
702    
703 bh 7 * ChangeLog: started
704    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26