/[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 587 by jonathan, Tue Apr 1 15:57:28 2003 UTC revision 688 by jonathan, Wed Apr 16 13:46:48 2003 UTC
# Line 1  Line 1 
1    2003-04-16  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/classification.py: Use repr() around values
4            in the ClassGroup*.__repr__() methods so it is clearer when
5            a value is a string and when it is a number.
6    
7            * test/test_load.py: Rework the classification test to test
8            that we can load old files.
9            (testLabels): Test a file where the groups have labels.
10    
11    2003-04-16  Bernhard Herzog  <[email protected]>
12    
13            Safer implementation of the performance enhancements of the
14            low-level renderer:
15            
16            * extensions/thuban/wxproj.cpp (extract_projection)
17            (extract_pointer): Rename extract_projection to extract_pointer
18            and redefine its purpose to return the pointer stored in a CObject
19            returned by the object's cobject method. Update all callers.
20            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
21            handling of these low-level parameters so that each s_draw_info
22            instance is handled as a CObject at python level that also
23            contains real references to the actual python objects which
24            contain the values in the struct. Add free_draw_info as the
25            destructor.
26            (draw_polygon_shape): Add the py_draw_info parameter which must a
27            cobject containing an s_draw_info pointer.
28    
29            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
30            method to instantiat the low-level render parameter
31            (MapRenderer.draw_shape_layer): Use the new method. Remove some
32            commented out code.
33            (MapRenderer.draw_polygon_shape): Make the first parameter not the
34            layer but the low-level render parameter
35            (ScreenRenderer.draw_shape_layer): Use the low-level render
36            parameter.
37    
38    2003-04-15  Jonathan Coles   <[email protected]>
39    
40            * Thuban/Model/classification.py: Implemented __repr__ for
41            the ClassGroup* classes to make debugging a bit easier.
42            (ClassGroup.SetLabel): Check that the string is an instance
43            of StringTypes not StringType. Accounts for Unicode strings.
44    
45            * Thuban/Model/color.py: Implemented __repr__ to make
46            debugging a bit easier.
47    
48            * Thuban/Model/save.py (Saver.write_classification): Need to
49            save the group label.
50    
51            * test/test_load.py (testClassification): New. Loads the
52            iceland_sample_test.thuban file and checks if it was loaded
53            correctly.
54    
55    2003-04-15  Jonathan Coles   <[email protected]>
56    
57            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
58            to improve rendering performance by initializing the variables
59            that are not change each time draw_polygon_shape() is called.
60            The values are stored in a global struct draw_info.
61            (draw_polygon_shape): Removed initialization code that is
62            now in draw_polygon_init().
63    
64            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
65            drawing initialization call to draw_polygon_init()
66            (MapRenderer.draw_polygon_shape): Use new signature of
67            draw_polygon_shape.
68    
69            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
70            weirdness by setting the range to (1, maxint).
71    
72            * Thuban/Model/classification.py (ClassGroupProperties): Make
73            instance variables private and optimize comparison operator
74            by first checking if the color references are the same.
75            (ClassGroupSingleton): Make instance variables private.
76            (ClassGroupRange): Make instance variables private.
77    
78            * HOWTO-Release: Filled in missing steps for releasing packages.
79    
80    2003-04-15  Bernhard Herzog  <[email protected]>
81    
82            First stab at internationalized messages:
83    
84            * Thuban/__init__.py (_): Implement the translation function for
85            real using the python gettext module.
86    
87            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
88            translate empty strings.
89    
90            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
91            Add a missing space to a warning message
92    
93            * po/README: New. Notes about the management of the translation
94            files.
95    
96            * po/Makefile: New. Makefile to help manage the translation files.
97    
98            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
99    
100            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
101            translations and support files in po/
102    
103            * setup.py (data_files): Add the *.mo files to the data_files too
104    
105            * README: Add note about the translations when building from CVS
106    
107    2003-04-14  Jonathan Coles   <[email protected]>
108    
109            * Thuban/UI/dock.py: Fixes some window resizing problems most
110            noticable under windows. Always assume the button bitmaps will
111            be there. Code clean up.
112            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
113            images for the dock/undock button to the same images.
114            Work around for RTbug #1801.
115    
116            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
117            be allowed to grow within the sizer. Fixes a bug under Windows
118            where the toolbar wasn't being drawn.
119    
120    2003-04-14  Frank Koormann   <[email protected]>
121    
122            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
123            Updated design to try to make the button functionality more
124            transparent.
125    
126    2003-04-14  Jonathan Coles   <[email protected]>
127    
128            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
129            finalize the intialization of the panel.
130    
131            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
132            creation of the panel. Should be the last thing called in the
133            initializer of a subclass.
134    
135            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
136            set the current selections in the combo boxes. This is needed
137            under Windows.
138    
139            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
140            level panel to the dialog so that the background colors are
141            consistent under Windows.
142    
143    2003-04-11  Jonathan Coles   <[email protected]>
144    
145            * Thuban/UI/classgen.py: Change color ramps to start at white
146            not black.
147    
148            * Thuban/UI/legend.py: Enable/disable the legend buttons when
149            the legend changes. Fixes RTbug #1793.
150    
151            * test/test_classification.py: Added test for copying of
152            classifications.
153    
154    2003-04-11  Jonathan Coles   <[email protected]>
155    
156            * Thuban/UI/resource.py: New. Centralize the loading of resources
157            such as bitmaps.
158    
159            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
160            added images to the move buttons, added 'reverse' button.
161            (CustomRampPanel.__init__): Added images to the move buttons.
162            (GreyRamp): New. Generates a ramp from white to black.
163            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
164    
165            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
166            ID_PROPERTY_*.
167            (Classifier.__init__): Minor changes to the layout.
168            (Classifier._OnTitleChanged): Listen for when the user edits the
169            title and update the dialog's title and the layer's title.
170    
171            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
172    
173            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
174            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
175            if the layer's title changes.
176    
177            * Thuban/UI/mainwindow.py: Added new menu item and associated code
178            to open a dialog to rename the map.
179            (MainWindow): Use new resource class to import bitmaps.
180    
181    2003-04-11  Jonathan Coles   <[email protected]>
182    
183            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
184            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
185            Resources/Bitmaps/group_use_none.xpm,
186            Resources/Bitmaps/group_use_not.xpm,
187            Resources/Bitmaps/hide_layer.xpm,
188            Resources/Bitmaps/layer_properties.xpm,
189            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
190            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
191            New.
192    
193    2003-04-10  Jonathan Coles   <[email protected]>
194    
195            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
196            Should pass group to ClassGroup constructor.
197    
198    2003-04-10  Jonathan Coles   <[email protected]>
199    
200            * Thuban/Model/classification.py: (ClassGroup): Move all the common
201            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
202            here. Implement SetVisible(), IsVisible().
203            (ClassGroup.__init__): Add group parameter which acts as a copy
204            constructor.
205    
206            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
207            "Visible" check boxes.
208            (Classifier): Rename the buttons and refactor the code to match
209            the new labels.
210    
211            * Thuban/UI/legend.py: Classify button is now called "Properties".
212            Refactored the code to change variable names.
213            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
214    
215            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
216            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
217            renamed to MainWindow.LayerEditProperties.
218            (MainWindow.ToggleLegend): Don't include map name in legend title.
219            (MainWindow.SetMap): Added the map name to the window title.
220            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
221            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
222            Functionality is found in the layer properties dialog.
223    
224            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
225            draw visible groups.
226    
227    2003-04-09  Jonathan Coles   <[email protected]>
228    
229            * Thuban/UI/classgen.py: Modifications to allow simple
230            addition and selection of new color schemes.
231            (MonochromaticRamp): New. Generates a ramp between two colors.
232            (RedRamp): New. Generates a ramp of all red.
233            (GreenRamp): New. Generates a ramp of all green.
234            (BlueRamp): New. Generates a ramp of all blue.
235    
236    2003-04-09  Jonathan Coles   <[email protected]>
237    
238            * Thuban/Model/classification.py (Classification.__deepcopy__):
239            Need to copy over field and fieldType attributes.
240    
241            * Thuban/Model/table.py (Table.field_range): New. Retrive the
242            maximum and minimum values over the entire table for a given
243            field.
244            (Table.GetUniqueValues): New. Retrieve all the unique values
245            in the table for a given field.
246    
247            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
248            (GenUniquePanel): New. Controls to allow the user to select
249            which unique field values they would like in the classification.
250            (CustomRampPanel): Code that was in ClassGenDialog that allows
251            the user to select the properties for a custom ramp.
252            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
253    
254            * Thuban/UI/classifier.py: Removed a lot of debugging code.
255            (Classifier._SetClassification): Callback method so that the
256            class generator can set the classification in the grid.
257            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
258            editing of a group properties class into a wxWindows control.
259    
260            * Thuban/UI/dock.py: It was decided that if the user closes
261            a dockable window the window should simply hide itself. That
262            way if the user wants to show the dock again it appears in the
263            same place as it was when it was closed.
264            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
265            (DockableWindow._OnButtonClose): Hide the window instead of
266            destroying it.
267            (DockableWindow._OnClose): Hide the window instead of
268            destroying it.
269    
270            * Thuban/UI/legend.py (LegendTree): Use a private method to
271            consistently set the font and style of the text. Fixes RTbug #1786.
272    
273            * Thuban/UI/mainwindow.py: Import just the Classifier class.
274    
275    2003-04-07  Bernhard Herzog  <[email protected]>
276    
277            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
278            to the map module
279    
280    2003-04-07  Bernhard Herzog  <[email protected]>
281    
282            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
283            favor of ToggleSessionTree
284            (MainWindow.ToggleSessionTree): New method to toggle visibility of
285            the session tree.
286            (MainWindow.SessionTreeShown): New method to return whether the
287            session tree is currently shown.
288            (MainWindow.ToggleLegend): New method to toggle visibility of the
289            legend
290            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
291            LegendShown
292            (MainWindow.LegendShown): New method to return whether the legend
293            is currently shown.
294            (_method_command): Add checked parameter so we can define check
295            menu items
296            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
297            mainwindow methods.
298            (show_session_tree, show_legend commands): Removed.
299            (toggle_session_tree, toggle_legend commands): New commands to
300            toggle the visibility of the dialogs
301    
302    2003-04-07  Jonathan Coles   <[email protected]>
303    
304            * Thuban/UI/classgen.py: Fix Windows problem.
305    
306            * Thuban/UI/dock.py: Fix Windows problem.
307    
308            * Thuban/UI/mainwindow.py: Use False instead of false.
309            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
310    
311    2003-04-07  Jonathan Coles   <[email protected]>
312    
313            Since we now say that the order of the groups in a classification
314            matters, it makes sense to be able to manipulate that order. Most
315            of the changes to Thuban/Model/classification.py are to that end.
316    
317            * Thuban/Model/classification.py (Classification.AppendGroup,
318            Classification.InsertGroup, Classification.ReplaceGroup,
319            Classification.RemoveGroup, Classification.GetGroup): Do as the
320            names imply.
321            (Classification.FindGroup): This was called GetGroup, but GetGroup
322            takes an index, while FindGroup takes a value.
323            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
324            REFERENCE. Currently there is a cyclic reference between the layer
325            and its classification. If the classification doesn't need to know
326            its owning layer we can change this, since it may make sense to be
327            able to use the same classification with different layers.
328    
329            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
330    
331            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
332            not AddGroup()
333    
334            * Thuban/UI/classifier.py: Now that we can depend on the order in
335            a Classification and have methods to manipulate that order we don't
336            need to use our own data structures in the grid. We can simply make
337            the grid/table access the information they need from a copy of
338            the classification object.
339            (Classifier._OnCloseBtn): Event handler for when the user clicks
340            'Close'. This is needed so if the user applies changes and then
341            continues to change the table the user has the option of discarding
342            the most recent changes and keeping what they applied.
343    
344            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
345            into the same group.
346    
347            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
348            with a really old version of proj, PJ_VERSION won't even be defined.
349            If it isn't defined then just compile so that the function always
350            returns Py_False.
351    
352            * test/test_classification.py: Fix tests to use the renamed methods.
353            Still need to write tests for the new methods.
354    
355    2003-04-04  Jonathan Coles   <[email protected]>
356    
357            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
358            call to SetSelection out of the method and before the call
359            to __SelectField in __init__. This prevents a recursion of events
360            when _OnFieldSelect is triggered by the user.
361    
362    2003-04-04  Jonathan Coles   <[email protected]>
363    
364            * Thuban/Model/classification.py: Rename Color.None to
365            Color.Transparent.
366            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
367            Don't bother copying the color, since Colors are immutable.
368    
369            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
370            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
371            Thuban/UI/renderer.py, Thuban/UI/view.py:
372            Rename Color.None to Color.Transparent.
373        
374            * test/test_classification.py, test/test_load.py: Rename Color.None
375            to Color.Transparent.
376    
377    2003-04-04  Jonathan Coles   <[email protected]>
378    
379            * Thuban/Model/classification.py: Fix assert calls.
380            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
381            Copy the color parameter rather than hold onto a reference.
382    
383            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
384            the color object.
385            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
386            are sure there exists only one refernce to Color.None in the system.
387            This allows us to use 'is' rather than the comparision functions.
388            
389            * Thuban/Model/save.py: Fix assert calls.
390            
391            * Thuban/UI/classifier.py: Fix assert calls.
392            (ClassGrid._OnCellDClick): Call up to the classifier to open the
393            dialog to edit the groups properties.
394            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
395            correctly if a cell is resized.
396            (ClassTable.SetClassification): New. Changes the classification
397            that is in the table.
398            (ClassTable.__SetRow): Allow groups to be prepended.
399            (Classifier): New code for opening the EditProperties and
400            GenerateRanges dialogs.
401            (SelectPropertiesDialog.__GetColor): Only set the color in the
402            color dialog if the current color is not None.
403            
404            * Thuban/UI/dock.py: Fix assert calls.
405            
406            * Thuban/UI/legend.py: Fix assert calls.
407            
408            * Thuban/UI/renderer.py: Fix assert calls.
409            
410            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
411            classifications.
412            (GenRangePanel): Panel specific to range generation.
413            (GenSingletonPanel): Panel specific to singleton generation.
414            (ClassGenerator): Class responsible for actually generating
415            the classification from the data gathered in the dialog box.
416            (PropertyRamp): Generates properties whose values range from
417            a starting property to an ending property.
418    
419    2003-04-03  Bernhard Herzog  <[email protected]>
420    
421            * test/support.py (print_garbage_information): New function that
422            prints information about still connected messages and memory
423            leaks.
424            (run_suite): Removed.
425            (run_tests): New function for use as a replacement of
426            unittest.main in the test_* files. This one calls
427            print_garbage_information at the end.
428    
429            * test/runtests.py (main): Use support.print_garbage_information
430    
431            * test/test_layer.py: Use support.run_tests instead of
432            unittest.main so we get memory leak information
433            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
434            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
435            (TestLayerLegend.test_visibility): Call the layer's Destroy method
436            to fix a memory leak.
437    
438            * test/test_classification.py: Use support.run_tests instead of
439            unittest.main so we get memory leak information
440            (TestClassification.test_classification): Call the layer's Destroy
441            method to fix a memory leak.
442    
443    2003-04-02  Bernhard Herzog  <[email protected]>
444    
445            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
446            Handle the reference counts of the return value and errors in
447            PyArg_ParseTuple correctly.
448    
449            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
450            sure the filename is absolute to avoid problems when saving the
451            session again
452    
453            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
454    
455  2003-04-01  Jonathan Coles   <[email protected]>  2003-04-01  Jonathan Coles   <[email protected]>
456    
457          *  Thuban/UI/renderer.pyi (MapRenderer.draw_point_shape): Check          *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
458          that there actually are points in the returned list of points          that there actually are points in the returned list of points
459          before trying to index into the list. The list may be empty if          before trying to index into the list. The list may be empty if
460          the shape is a Null Shape.          the shape is a Null Shape.

Legend:
Removed from v.587  
changed lines
  Added in v.688

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26