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

Legend:
Removed from v.408  
changed lines
  Added in v.514

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26