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

Legend:
Removed from v.608  
changed lines
  Added in v.701

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26