/[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 423 by frank, Thu Feb 20 16:23:59 2003 UTC revision 505 by jonathan, Mon Mar 10 15:48:17 2003 UTC
# Line 1  Line 1 
1    2003-03-10  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/classifier.py (Classifier.__init__): Make the
4            field type label grow so that when the text changes the
5            size is updated correctly. This may be a wxWindows bug.
6    
7    2003-03-10  Jonathan Coles   <[email protected]>
8    
9            * Thuban/UI/application.py: Changed SESSION_CHANGED to
10            SESSION_REPLACED.
11    
12            * Thuban/UI/classifier.py: Wrap text with _().
13            (ClassGrid.CreateTable): Set dimensions and size hints here,
14            instead of in Reset, so we only set the size once.
15    
16            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
17    
18            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
19            Call Close() instead of Shutdown().
20    
21            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
22    
23            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
24            Go back to using OnClose() instead of Shutdown().
25    
26    2003-03-10  Jonathan Coles   <[email protected]>
27    
28            * Thuban/UI/classifier.py (Classifier): SelectField() needed
29            to know the old field index as well as the new one.
30    
31    2003-03-10  Jonathan Coles   <[email protected]>
32    
33            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
34            to correctly set the table information and call this from
35            __init__ and from _OnFieldSelect so that all the information
36            is up to date when the dialog opens and when a field is changed.
37    
38    2003-03-10  Jonathan Coles   <[email protected]>
39    
40            * Thuban/Model/classification.py (Classification): Don't use
41            layer's message function directly, use the ClassChanged() method
42            when then classification changes. SetField/SetFieldType/SetLayer
43            must keep the information about field name and field type in
44            sync when an owning layer is set or removed.
45    
46            * Thuban/Model/layer.py: Added ClassChanged() so that the
47            classification can tell the layer when its data has changed.
48            (Layer.SetClassification): Accepts None as an arguement to
49            remove the current classification and correctly handles
50            adding a new classification.
51    
52            * Thuban/Model/load.py: Comment out print statement
53    
54            * test/test_classification.py, test/test_save.py: New and
55            improved tests.
56    
57    2003-03-07  Jonathan Coles   <[email protected]>
58    
59            * Thuban/Model/classification.py: Implemented __copy__ and
60            __deepcopy__ for ClassGroup* and ClassGroupProperites so
61            they can easily be copied by the classifier dialog.
62            (ClassGroupProperites.__init__): The default line color should
63            have been Color.Black.
64    
65            * Thuban/UI/classifier.py: Setting and Getting table values now
66            uses a consistent set of functions.
67            (Classifier): Now non-modal. Has field type label which changes
68            as the field changes. Keep track of buttons in a list so that
69            we can enable/disable the buttons when the None field is selected.
70            (SelectPropertiesDialog): Add buttons to make the colors transparent.
71    
72            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
73            does what OnClose did, but can be called by the application to
74            close a window. Needed when a session changes, and we have to
75            close the classifier windows.
76    
77            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
78            Shuts down open dialogs. Used when a new session is created
79            or a session is opened.
80            (MainWindow.SaveSession): Should only call application.SaveSession()
81            if we don't call SaveSessionAs first.
82            (MainWindow.Classify): Allow different classifier dialogs for
83            different layers.
84    
85            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
86            the parent class handle it. Add Shutdown() to unsubscibe from
87            event notification and call the parent Shutdown(). This was
88            necessary so the application can close the tree window.
89    
90    2003-03-06  Jonathan Coles   <[email protected]>
91    
92            * Thuban/Model/classification.py: Minor documentation changes,
93            Addition of __eq__ and __ne__ methods.
94            (Classification.SetLayer): prevent recursion between this method
95            and Layer.SetClassification().
96    
97            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
98    
99            * Thuban/Model/layer.py (SetClassification): prevent recursion
100            between this method and Classification.SetLayer().
101    
102            * test/test_classification.py, test/test_load.py,
103            test/test_session.py: Fixed and added tests for the classification
104            classes.
105    
106    2003-03-06  Bernhard Herzog  <[email protected]>
107    
108            * Thuban/UI/classifier.py (ClassGrid.__init__)
109            (ClassGrid.CreateTable): Move the SetSelectionMode call to
110            CreateTable because otherwise it triggers an assertion in
111            wxPython/wxGTK 2.4.
112    
113    2003-03-05  Jonathan Coles   <[email protected]>
114    
115            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
116    
117            * Thuban/Model/load.py: import FIELDTYPE constants from table.
118    
119            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
120    
121            * Thuban/Model/table.py: Put FIELDTYPE constants back.
122    
123    2003-03-05  Jonathan Coles   <[email protected]>
124    
125            * Thuban/UI/classifier.py: Added class documentation.
126            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
127            Store just the groups in the table and generate the other
128            column information when it is requested. Add "None" field
129            to pull-down to select no classification.
130    
131            * Thuban/common.py: Moved FIELDTYPE constants from table.py
132            (Str2Num): Only catch ValueError exceptions.
133    
134            * Thuban/Model/classification.py: Class documentation. Renaming
135            of methods with Stroke to Line. Groups are stored in a single
136            list with the default as the first element. Groups are searched
137            in the order they appear in the list.
138    
139            * Thuban/Model/color.py: Documentation.
140    
141            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
142            the kind of data represented by a field.
143    
144            * Thuban/Model/load.py (ProcessSession): Use proper string
145            conversion function; fixes RTbug #1713.
146    
147            * Thuban/Model/save.py (Saver): Store field type information.
148    
149            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
150            (Table): Add field_info_by_name() to retrieve field information
151            by specifying the field name, not the number.
152    
153            * Thuban/UI/mainwindow.py: Function name changes.
154    
155            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
156            get the layer classification once. Don't try to classify
157            values when the field is None: just use the default properties.
158    
159            * Thuban/UI/view.py: Function name changes.
160    
161            * Doc/thuban.dtd: Add field_type attribute to a classification.
162    
163    2003-03-04  Bernhard Herzog  <[email protected]>
164    
165            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
166            the fill and stroke layer attributes optional with suitable
167            default values. Add the stroke_width layer attribute. Use correct
168            syntax for empty elements. Make the attribute list for labels
169            refer to the label element.
170    
171    2003-03-04  Bernhard Herzog  <[email protected]>
172    
173            * setup.py (thuban_build_py.build): Add a comment about distutils in
174            Python 2.3 containing some of the functionality we implement in
175            setup.py ourselves.
176    
177            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
178            before the selection mode. Doing it the other way round triggers
179            an assertion in wxWindows.
180    
181            * Thuban/Model/save.py (escape): Fix typo in doc-string
182    
183            * Thuban/Model/classification.py: Remove unnecessary wxPython
184            import
185    
186    2003-03-04  Jonathan Coles   <[email protected]>
187    
188            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
189            Parameter 'value' should default to None.
190    
191            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
192            the class attribute __classification is now private.
193    
194            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
195            Classifier to ClassGrid. Added support for removing selected rows,
196            which including code for keeping track of when cells are selected,
197            and deselected.
198            (ClassTable): Support for added/removing rows. Fixed a problem
199            with __ParseInput whereby it would not allow strings (only numbers)
200            to be entered.
201            (Classifier): Added button and supporting code for removing
202            selected rows.
203    
204    2003-02-27  Jonathan Coles   <[email protected]>
205    
206            * Thuban/common.py: Moved color conversion functions into
207            Thuban/UI/common.py.
208            (Str2Num): Now converts the float (not the string) to a long/int
209            so that an exception isn't thrown.
210    
211            * Thuban/UI/common.py: Common functions used in several UI modules
212    
213            * Thuban/Model/classification.py: Changed the class hierarchy
214            so that a Classification consists of Groups which return
215            Properties when a value matches a Group.
216    
217            * Thuban/Model/layer.py: Fixed name resolution problem.
218    
219            * Thuban/Model/load.py: Use new Classification and Group functions.
220    
221            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
222            failure.
223            (Saver.write_classification): Use new Classification and Group
224            functions.
225    
226            * Thuban/UI/classifier.py: Changes to use new Classification and Group
227            functions. Fix to create a tuple with a single value instead of
228            simply returning the value.
229    
230            * Thuban/UI/renderer.py: Use new Classification and Group functions.
231            Use common.py functions.
232    
233            * Thuban/UI/tree.py: Use common.py functions.
234            
235            * test/test_classification.py: Use new Classification and Group
236            classes.
237    
238    2003-02-24  Jonathan Coles   <[email protected]>
239    
240            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
241            functions from Thuban color objects to wxWindow colour objects.
242    
243            * Thuban/Model/classification.py (Classification): Renamed
244            GetProperties() to GetClassData(). Used the new iterator
245            in TreeInfo().
246            (ClassIterator): Iterator implementation to iterate over the
247            ClassData objects in a classification object.
248    
249            * Thuban/Model/save.py (Saver.write_classificaton): Uses
250            the new iterator to save the classification information.
251    
252            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
253            for changing the stroke and fill colors and previewing the
254            changes.
255    
256            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
257            MainWindow.SaveSessionAs): Text string changes so the dialogs
258            have more meaningful titles.
259    
260            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
261            Classification method name from GetProperties to GetClassData.
262    
263            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
264            instead of accessing now non-existent class variables.
265    
266    2003-02-24  Bernhard Herzog  <[email protected]>
267    
268            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
269            unneeded Shape() call. Rendering is substantially faster without
270            it and it avoids some problems with broken shape files.
271    
272  2003-02-20  Frank Koormann   <[email protected]>  2003-02-20  Frank Koormann   <[email protected]>
273    
274          Force minimal size of identify and label dialogs. The autosizing          Force minimal size of identify and label dialogs. The autosizing

Legend:
Removed from v.423  
changed lines
  Added in v.505

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26