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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1112 by bh, Fri May 30 09:55:04 2003 UTC revision 1208 by bh, Fri Jun 13 18:16:15 2003 UTC
# Line 1  Line 1 
1    2003-06-13  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/classifier.py (Classifier.OnClose)
4            (Classifier.map_layers_removed)
5            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
6            in OnClose and not in map_layers_removed or
7            layer_shapestore_replaced to make sure it always happens when the
8            dialog is closed
9    
10    2003-06-13  Jonathan Coles   <[email protected]>
11    
12            This puts back a fix for Windows where a panel is needed so that
13            the background of the table view appears correctly.
14    
15            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
16            object that can be used by derived classes to place any
17            controls (including the grid) onto.
18            (QueryTableFrame.__init__): Use the panel as the parent window
19            for all the controls. Reparent the grid so that the panel is
20            the parent. Call UpdateStatusText() to correctly initialize
21            the status bar.
22    
23    2003-06-13  Jonathan Coles   <[email protected]>
24    
25            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
26            from wxFrame (as opposed to wxDialog like the other classes)
27            but otherwise behaves like the other classes. This is needed
28            for the TableView which isn't really a dialog and needs to
29            have a status bar and control buttons.
30    
31            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
32            instance variable to keep track of how many rows are selected.
33            Subscribe once to the the events we are interested in.
34            (ThubanGrid.OnRangeSelect): Only handle event if event handling
35            hasn't been turned off.
36            (ThubanGrid.OnSelectCell): Only handle event if event handling
37            hasn't been turned off.
38            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
39            as an event listener (which changes the event handler stack)
40            simply set an instance variable to False. This is checked in
41            the event handlers.
42            (ThubanGrid.GetNumberSelected): Return the number of currently
43            selected rows.
44            (TableFrame): Inherit from ThubanFrame so we can have a
45            status bar and control buttons.
46            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
47            Explicitly set which items are selected in the operator choice and
48            action choice so there is always a valid selection. Fixes RTbug #1941.
49            Subscribe to grid cell selection events so we can update the
50            status bar.
51            (QueryTableFrame.UpdateStatusText): Update the status bar with
52            how many rows are in the grid, how many columns, and how many
53            rows are selected.
54            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
55            Call UpdateStatusText when cells are (de)selected.
56            (QueryTableFrame.OnQuery): Use the string value in the value
57            combo if either the selected item index is 0 or if the string
58            cannot be found in the predefined list (this happens if the
59            user changes the text). Fixes RTbug #1940.
60            Only turn off the grid event listeners if there a query comes
61            back with a none empty list of ids. in the case that the list
62            is empty this causes a grid.ClearSelection() call to actually
63            clear the grid selection which causes the selected items in
64            the map to be deselected. Fixes RTbug #1939.
65    
66            * test/test_save.py (XMLWriterTest.Encode): Check return values.
67            Fixes RTbug #1851.
68    
69    2003-06-13  Bernhard Herzog  <[email protected]>
70    
71            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
72            self.selected_shape with the current selection to make sure the
73            contents of the dialog are up to date when it's shown for the
74            first time.
75            The dialog used to work without this by luck. The recent fix to
76            the connector module 'broke' a 'feature' the identify view was
77            relying on, i.e that subscribing to a message in response to
78            receiving a message of that type would mean that the new
79            subscriber would also be called for the same message.
80            
81    2003-06-12  Jonathan Coles   <[email protected]>
82    
83            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
84            the image is rendered. Fixes RTbug #1937.
85    
86    2003-06-12  Jonathan Coles   <[email protected]>
87    
88            * Thuban/Lib/fileutil.py: As is done under Windows, create the
89            user directory if it doesn't exist on a posix system.
90            Fixes RTbug #1815.
91    
92            * Thuban/Model/resource.py (get_user_proj_files): Moved the
93            called to get_application_dir here, so that the directory
94            will only be called if this method is invoked.
95    
96            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
97            the projfilepath if no projection is selected.
98    
99    2003-06-12  Jonathan Coles   <[email protected]>
100    
101            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
102            the scalebar if the current map has no projection set.
103    
104            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
105            projfilepath label to just the basename of the projection file
106            rather than include the entire path.
107    
108            * Thuban/Model/resource.py: Fix missed proj functions that
109            needed to be renamed.
110    
111    2003-06-12  Jonathan Coles   <[email protected]>
112    
113            * Thuban/Model/classification.py: Removed assert statements that
114            tested if the variable was an instance of Color.
115    
116            * Thuban/Model/color.py (Color): Remove commented code that isn't
117            used.
118            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
119            Fixes RTbug #1835.
120            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
121            Needed now that the class doesn't inherit from Color.
122    
123    2003-06-12  Jonathan Coles   <[email protected]>
124    
125            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
126            check unicode strings.
127    
128            * test/test_layer.py: Check for existence of gdal.
129    
130    2003-06-12  Jonathan Coles   <[email protected]>
131        
132            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
133            that was in load.py
134    
135            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
136            that was in save.py
137    
138    2003-06-12  Jonathan Coles   <[email protected]>
139    
140            This is largely a collection of bug fixes. We also handle the
141            case where gdal is not on the system. The XMLReader and XMLWriter
142            classes were moved into there own files to resolve some circular
143            import references and because they shouldn't really be in the
144            file that is dediciated to reading/writing session files since
145            they are also used elsewhere.
146    
147            * Thuban/Model/classgen.py: Renamed functions to follow the
148            function_names_with_underscores style. Fixes RTbug #1903.
149            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
150    
151            * Thuban/Model/layer.py: Import gdal only if it available.
152            (RasterLayer): Handle the case where the gdal library is unavailable.
153            Addresses RTbug #1877.
154    
155            * Thuban/Model/load.py (XMLReader): Moved into seperate file
156            xmlreader.py.
157    
158    2003-06-12  Jonathan Coles   <[email protected]>
159    
160            This is largely a collection of bug fixes. We also handle the
161            case where gdal is not on the system. The XMLReader and XMLWriter
162            classes were moved into there own files to resolve some circular
163            import references and because they shouldn't really be in the
164            file that is dediciated to reading/writing session files since
165            they are also used elsewhere.
166    
167            * Thuban/Model/classgen.py: Renamed functions to follow the
168            function_names_with_underscores style. Fixes RTbug #1903.
169            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
170    
171            * Thuban/Model/layer.py: Import gdal only if it available.
172            (RasterLayer): Handle the case where the gdal library is unavailable.
173            Addresses RTbug #1877.
174    
175            * Thuban/Model/load.py (XMLReader): Moved into seperate file
176            xmlreader.py.
177    
178            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
179            file xmlwriter.py.
180    
181            * Thuban/Model/resource.py: Renamed functions to following the
182            function_names_with_underscores style.
183            (has_gdal_support): New function that returns true if the gdal
184            library is available. Addresses RTbug #1877.
185    
186            * Thuban/UI/application.py (ThubanApplication.OpenSession):
187            Display a message box if the gdal library is not available, but
188            only if there are any layers that would use it. Addresses RTbug #1877.
189    
190            * Thuban/UI/classgen.py: Use renamed projection resource functions.
191            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
192            when using integers versus floats.
193    
194            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
195            determine if the "Add Image Layer" menu option should be
196            greyed out or not. Addresses RTbug #1877.
197    
198            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
199    
200            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
201            optimize if a raster layer is visible. Fixes RTbug #1931.
202            Only draw the raster layer if the gdal library is available.
203            Addresses RTbug #1877.
204    
205            * test/test_classgen.py: Add tests for generate_singletons,
206            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
207            (test_calculate_quantiles): Fix some tests to catch the new
208            ValueError that is raised.
209    
210            * test/test_proj.py: Use renamed projection resource functions.
211    
212            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
213            test for saving classified layers. Fixes RTbug #1902.
214            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
215    
216    2003-06-12  Jan-Oliver Wagner <[email protected]>
217    
218            Fix for http://intevation.de/rt/webrt?serial_num=1900.
219    
220            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
221    
222            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
223            multiplechoicedialog.py rather than from the wxPython library.
224    
225    2003-06-11  Frank Koormann  <[email protected]>
226    
227            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
228            update.
229    
230    2003-06-11  Frank Koormann  <[email protected]>
231    
232            * Thuban/Lib/fileutil.py (get_application_dir): New function to
233            determine the absolute .thuban/thuban directory under
234            "posix" (os.expanduser) and "nt" (read AppData registry key).
235    
236            * Thuban/Model/resource.py: Use get_application_dir
237    
238            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
239            Use get_application_dir.
240    
241    2003-06-10  Bernhard Herzog  <[email protected]>
242    
243            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
244            the messages MAP_LAYERS_REMOVED messages
245            (LayerTableFrame.OnClose): Unsubscribe from it.
246            (LayerTableFrame.map_layers_removed): New. Receiver for
247            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
248            dialog is showing is removed.
249    
250    2003-06-10  Bernhard Herzog  <[email protected]>
251    
252            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
253            of the receivers list so that unsubscribing in a receiver doesn't
254            modify it while iterating over it.
255    
256            * test/test_connector.py
257            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
258            unsubscribing in a receiver works correctly. See docstring for
259            details
260    
261    2003-06-10  Bernhard Herzog  <[email protected]>
262    
263            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
264            message.
265    
266            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
267            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
268            LAYER_CHANGED will still be sent if the classification changes.
269    
270            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
271            parameter so we can subscribe to some of its messages
272            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
273            and the layer's LAYER_SHAPESTORE_REPLACED
274            (Classifier.unsubscribe_messages): New. Unsubscribe from message
275            subscribed to in __init__
276            (Classifier.map_layers_removed)
277            (Classifier.layer_shapestore_replaced): receivers for the messages
278            subscribed to in __init__. Unsubscribe and close the dialog
279    
280            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
281            the map to the Classifier dialog
282    
283            * test/test_layer.py (SetShapeStoreTests): Derive from
284            SubscriberMixin as well so we can test messages
285            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
286            messages
287            (SetShapeStoreTests.tearDown): Clear the messages again
288            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
289            for the modified flag too
290            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
291            to check whether SetShapeStore sets the modified flag
292            (SetShapeStoreTests.test_set_shape_store_different_field_name)
293            (SetShapeStoreTests.test_set_shape_store_same_field)
294            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
295            Add tests for the messages. This checks both the new
296            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
297    
298    2003-06-06  Jan-Oliver Wagner <[email protected]>
299    
300            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
301            the menu items.
302    
303    2003-06-05  Frank Koormann  <[email protected]>
304    
305            * Thuban/UI/identifyview.py (IdentifyView.__init__):
306            Layout reimplemented without panel. Make life easier to fit the list
307            in the dialog.
308    
309    2003-06-05  Frank Koormann  <[email protected]>
310    
311            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
312            once on initialisation (Former implementation resulted in multiple
313            entries for each projection).
314            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
315            if set, select the projection found under the specified name. This
316            overwrites any other selection estimate.
317            Removed projchoice filling from this method.
318            (ProjFrame._OnSave, ProjFrame._OnAddToList):
319            Updated call of ProjFrame.__FillAvailList
320            (LCCPanel._DoLayout): Moved parameter controls in more common order.
321    
322            * Resources/Projections/defaults.proj: Extended defaults representing
323            various common European projections.
324    
325    2003-06-05  Frank Koormann  <[email protected]>
326    
327            * Thuban/UI/identifyview.py (IdentifyView.__init__):
328            Use ListCtrl instead of GridCtrl
329    
330            * Thuban/Model/resource.py:
331            Guess location of .thuban directory from tempdir parent directory.
332    
333            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
334            Guess location of .thuban directory from tempdir parent directory.
335    
336    2003-06-04  Bernhard Herzog  <[email protected]>
337    
338            Do not cache the values returned by the tree widget's
339            GetFirstChild and GetNextChild methods because it led to lots of
340            segfaults. The new way requires more brute force but is more
341            reliable.
342    
343            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
344            variable layer2id
345            (LegendTree.find_layer): New method to do with brute force what
346            layer2id tried to accomplish
347            (LegendTree._OnMsgLayerChanged)
348            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
349            Use find_layer instead of layer2id
350            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
351            update layer2id anymore
352            (LegendTree._OnMsgMapLayersRemoved)
353            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
354    
355    2003-06-03  Thomas Koester  <[email protected]>
356    
357            * Thuban/Model/classgen.py (GenQuantiles0): New function.
358    
359    2003-06-02  Bernhard Herzog  <[email protected]>
360    
361            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
362            New commands.
363            (main_menu): Add the new commands.
364            (MainWindow.TableRename): New. Implementation of the table_rename
365            command.
366            (MainWindow.RenameLayer): New. Implementation of the layer_rename
367            command.
368    
369            * Thuban/Model/session.py (Session.AddTable): call self.changed to
370            set the modified flag
371    
372            * test/test_session.py (TestSessionSimple.test_add_table): Test
373            whether the modified flag is set properly
374    
375            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
376            instead of issue so that the modified flags get updated.
377    
378            * test/test_base.py (SomeTitledObject): Derive from Modifiable
379            instead of Publisher to reflect reality better and to accomodate
380            the fact that SetTitle now calls changed instead of issue
381    
382    2003-06-02  Bernhard Herzog  <[email protected]>
383    
384            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
385            acquisition has to happen before the try in a try-finally.
386    
387    2003-06-02  Bernhard Herzog  <[email protected]>
388    
389            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
390            possible that a layer is removed that is not currently selected in
391            the legend so don't check for this.
392    
393    2003-05-30  Bernhard Herzog  <[email protected]>
394    
395            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
396            variables to None that have direct or indirect references to
397            shapefiles or dbf files to make sure that they do go away and the
398            files are closed.
399    
400    2003-05-30  Bernhard Herzog  <[email protected]>
401    
402            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
403            availImgListIndices when a new image list is created
404            
405    2003-05-30  Bernhard Herzog  <[email protected]>
406    
407            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
408            changing_selection to indicate whether the LegendTree code itself
409            is currently changing the selection
410            (LegendTree.normalize_selection): New method to normalize the
411            selection by selecting the layer item even if the user clicked on
412            the classification.
413            (LegendTree._OnSelChanged): normalize the selection. This works
414            around a bug in wx which doesn't keep track of the selection
415            properly when subtrees are deleted.
416    
417  2003-05-30  Bernhard Herzog  <[email protected]>  2003-05-30  Bernhard Herzog  <[email protected]>
418    
419          * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the          * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the

Legend:
Removed from v.1112  
changed lines
  Added in v.1208

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26