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

Legend:
Removed from v.567  
changed lines
  Added in v.672

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26