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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26