1 |
|
2003-04-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py: Remove some unused imports and global |
4 |
|
constants |
5 |
|
|
6 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
7 |
|
(IdentifyGridCtrl.selected_shape): Use table, not shapetable. |
8 |
|
|
9 |
|
2003-04-17 Bernhard Herzog <[email protected]> |
10 |
|
|
11 |
|
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
12 |
|
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used |
13 |
|
anymore. |
14 |
|
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes) |
15 |
|
(Layer.ShapeType, Layer.Shape): No need to call |
16 |
|
self.open_shapefile since it's always called in __init__ |
17 |
|
|
18 |
|
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
19 |
|
In wxPython 2.4 there's no need to extend MainLoop anymore since |
20 |
|
wxPython itself makes sure OnExit is called. |
21 |
|
|
22 |
|
2003-04-16 Jonathan Coles <[email protected]> |
23 |
|
|
24 |
|
Initial putback of projection management code. Includes new |
25 |
|
classes to read and write projection files. The current load |
26 |
|
and save classes were abstracted a bit so they could be reused. |
27 |
|
The Projection class was extended to provide new methods and |
28 |
|
have a name. |
29 |
|
|
30 |
|
* Thuban/Model/load.py (XMLProcessor): New. Contains all the |
31 |
|
general XML reading methods that were part of ProcessSession. |
32 |
|
|
33 |
|
* Thuban/Model/proj.py (Projection.__init__): Accepts an optional |
34 |
|
name. |
35 |
|
(ProjFile): New. Represents a file that contains projection |
36 |
|
information. |
37 |
|
|
38 |
|
* Thuban/Model/resource.py: New. Contains general utilities |
39 |
|
for read and writing projection files. |
40 |
|
|
41 |
|
* Thuban/Model/save.py (XMLSaver): New. Contains all the |
42 |
|
general XML writing methods that were part of SessionSaver. |
43 |
|
(SessionSaver): Renamed from Saver. |
44 |
|
|
45 |
|
* test/test_proj.py: New test cases for the projection |
46 |
|
file read and write functions. |
47 |
|
|
48 |
|
2003-04-16 Jonathan Coles <[email protected]> |
49 |
|
|
50 |
|
* Thuban/Model/classification.py: Use repr() around values |
51 |
|
in the ClassGroup*.__repr__() methods so it is clearer when |
52 |
|
a value is a string and when it is a number. |
53 |
|
|
54 |
|
* test/test_load.py: Rework the classification test to test |
55 |
|
that we can load old files. |
56 |
|
(testLabels): Test a file where the groups have labels. |
57 |
|
|
58 |
|
2003-04-16 Bernhard Herzog <[email protected]> |
59 |
|
|
60 |
|
Safer implementation of the performance enhancements of the |
61 |
|
low-level renderer: |
62 |
|
|
63 |
|
* extensions/thuban/wxproj.cpp (extract_projection) |
64 |
|
(extract_pointer): Rename extract_projection to extract_pointer |
65 |
|
and redefine its purpose to return the pointer stored in a CObject |
66 |
|
returned by the object's cobject method. Update all callers. |
67 |
|
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
68 |
|
handling of these low-level parameters so that each s_draw_info |
69 |
|
instance is handled as a CObject at python level that also |
70 |
|
contains real references to the actual python objects which |
71 |
|
contain the values in the struct. Add free_draw_info as the |
72 |
|
destructor. |
73 |
|
(draw_polygon_shape): Add the py_draw_info parameter which must a |
74 |
|
cobject containing an s_draw_info pointer. |
75 |
|
|
76 |
|
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
77 |
|
method to instantiat the low-level render parameter |
78 |
|
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
79 |
|
commented out code. |
80 |
|
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
81 |
|
layer but the low-level render parameter |
82 |
|
(ScreenRenderer.draw_shape_layer): Use the low-level render |
83 |
|
parameter. |
84 |
|
|
85 |
|
2003-04-15 Jonathan Coles <[email protected]> |
86 |
|
|
87 |
|
* Thuban/Model/classification.py: Implemented __repr__ for |
88 |
|
the ClassGroup* classes to make debugging a bit easier. |
89 |
|
(ClassGroup.SetLabel): Check that the string is an instance |
90 |
|
of StringTypes not StringType. Accounts for Unicode strings. |
91 |
|
|
92 |
|
* Thuban/Model/color.py: Implemented __repr__ to make |
93 |
|
debugging a bit easier. |
94 |
|
|
95 |
|
* Thuban/Model/save.py (Saver.write_classification): Need to |
96 |
|
save the group label. |
97 |
|
|
98 |
|
* test/test_load.py (testClassification): New. Loads the |
99 |
|
iceland_sample_test.thuban file and checks if it was loaded |
100 |
|
correctly. |
101 |
|
|
102 |
|
2003-04-15 Jonathan Coles <[email protected]> |
103 |
|
|
104 |
|
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
105 |
|
to improve rendering performance by initializing the variables |
106 |
|
that are not change each time draw_polygon_shape() is called. |
107 |
|
The values are stored in a global struct draw_info. |
108 |
|
(draw_polygon_shape): Removed initialization code that is |
109 |
|
now in draw_polygon_init(). |
110 |
|
|
111 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
112 |
|
drawing initialization call to draw_polygon_init() |
113 |
|
(MapRenderer.draw_polygon_shape): Use new signature of |
114 |
|
draw_polygon_shape. |
115 |
|
|
116 |
|
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
117 |
|
weirdness by setting the range to (1, maxint). |
118 |
|
|
119 |
|
* Thuban/Model/classification.py (ClassGroupProperties): Make |
120 |
|
instance variables private and optimize comparison operator |
121 |
|
by first checking if the color references are the same. |
122 |
|
(ClassGroupSingleton): Make instance variables private. |
123 |
|
(ClassGroupRange): Make instance variables private. |
124 |
|
|
125 |
|
* HOWTO-Release: Filled in missing steps for releasing packages. |
126 |
|
|
127 |
|
2003-04-15 Bernhard Herzog <[email protected]> |
128 |
|
|
129 |
|
First stab at internationalized messages: |
130 |
|
|
131 |
|
* Thuban/__init__.py (_): Implement the translation function for |
132 |
|
real using the python gettext module. |
133 |
|
|
134 |
|
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
135 |
|
translate empty strings. |
136 |
|
|
137 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
138 |
|
Add a missing space to a warning message |
139 |
|
|
140 |
|
* po/README: New. Notes about the management of the translation |
141 |
|
files. |
142 |
|
|
143 |
|
* po/Makefile: New. Makefile to help manage the translation files. |
144 |
|
|
145 |
|
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
146 |
|
|
147 |
|
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
148 |
|
translations and support files in po/ |
149 |
|
|
150 |
|
* setup.py (data_files): Add the *.mo files to the data_files too |
151 |
|
|
152 |
|
* README: Add note about the translations when building from CVS |
153 |
|
|
154 |
|
2003-04-14 Jonathan Coles <[email protected]> |
155 |
|
|
156 |
|
* Thuban/UI/dock.py: Fixes some window resizing problems most |
157 |
|
noticable under windows. Always assume the button bitmaps will |
158 |
|
be there. Code clean up. |
159 |
|
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
160 |
|
images for the dock/undock button to the same images. |
161 |
|
Work around for RTbug #1801. |
162 |
|
|
163 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
164 |
|
be allowed to grow within the sizer. Fixes a bug under Windows |
165 |
|
where the toolbar wasn't being drawn. |
166 |
|
|
167 |
|
2003-04-14 Frank Koormann <[email protected]> |
168 |
|
|
169 |
|
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
170 |
|
Updated design to try to make the button functionality more |
171 |
|
transparent. |
172 |
|
|
173 |
|
2003-04-14 Jonathan Coles <[email protected]> |
174 |
|
|
175 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
176 |
|
finalize the intialization of the panel. |
177 |
|
|
178 |
|
* Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the |
179 |
|
creation of the panel. Should be the last thing called in the |
180 |
|
initializer of a subclass. |
181 |
|
|
182 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively |
183 |
|
set the current selections in the combo boxes. This is needed |
184 |
|
under Windows. |
185 |
|
|
186 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add a top |
187 |
|
level panel to the dialog so that the background colors are |
188 |
|
consistent under Windows. |
189 |
|
|
190 |
|
2003-04-11 Jonathan Coles <[email protected]> |
191 |
|
|
192 |
|
* Thuban/UI/classgen.py: Change color ramps to start at white |
193 |
|
not black. |
194 |
|
|
195 |
|
* Thuban/UI/legend.py: Enable/disable the legend buttons when |
196 |
|
the legend changes. Fixes RTbug #1793. |
197 |
|
|
198 |
|
* test/test_classification.py: Added test for copying of |
199 |
|
classifications. |
200 |
|
|
201 |
|
2003-04-11 Jonathan Coles <[email protected]> |
202 |
|
|
203 |
|
* Thuban/UI/resource.py: New. Centralize the loading of resources |
204 |
|
such as bitmaps. |
205 |
|
|
206 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons, |
207 |
|
added images to the move buttons, added 'reverse' button. |
208 |
|
(CustomRampPanel.__init__): Added images to the move buttons. |
209 |
|
(GreyRamp): New. Generates a ramp from white to black. |
210 |
|
(HotToColdRamp): New. Generates a ramp from cold to hot colors. |
211 |
|
|
212 |
|
* Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to |
213 |
|
ID_PROPERTY_*. |
214 |
|
(Classifier.__init__): Minor changes to the layout. |
215 |
|
(Classifier._OnTitleChanged): Listen for when the user edits the |
216 |
|
title and update the dialog's title and the layer's title. |
217 |
|
|
218 |
|
* Thuban/UI/dock.py: Use new bitmaps for the control buttons. |
219 |
|
|
220 |
|
* Thuban/UI/legend.py: Use new bitmaps for the control buttons. |
221 |
|
(LegendTree._OnMsgLayerTitleChanged): Change the displayed title |
222 |
|
if the layer's title changes. |
223 |
|
|
224 |
|
* Thuban/UI/mainwindow.py: Added new menu item and associated code |
225 |
|
to open a dialog to rename the map. |
226 |
|
(MainWindow): Use new resource class to import bitmaps. |
227 |
|
|
228 |
|
2003-04-11 Jonathan Coles <[email protected]> |
229 |
|
|
230 |
|
* Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm, |
231 |
|
Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm, |
232 |
|
Resources/Bitmaps/group_use_none.xpm, |
233 |
|
Resources/Bitmaps/group_use_not.xpm, |
234 |
|
Resources/Bitmaps/hide_layer.xpm, |
235 |
|
Resources/Bitmaps/layer_properties.xpm, |
236 |
|
Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm, |
237 |
|
Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm: |
238 |
|
New. |
239 |
|
|
240 |
|
2003-04-10 Jonathan Coles <[email protected]> |
241 |
|
|
242 |
|
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
243 |
|
Should pass group to ClassGroup constructor. |
244 |
|
|
245 |
|
2003-04-10 Jonathan Coles <[email protected]> |
246 |
|
|
247 |
|
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
248 |
|
methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__) |
249 |
|
here. Implement SetVisible(), IsVisible(). |
250 |
|
(ClassGroup.__init__): Add group parameter which acts as a copy |
251 |
|
constructor. |
252 |
|
|
253 |
|
* Thuban/UI/classifier.py (ClassTable): Add a new column for the |
254 |
|
"Visible" check boxes. |
255 |
|
(Classifier): Rename the buttons and refactor the code to match |
256 |
|
the new labels. |
257 |
|
|
258 |
|
* Thuban/UI/legend.py: Classify button is now called "Properties". |
259 |
|
Refactored the code to change variable names. |
260 |
|
(LegendTree.__FillTreeLayer): Only list a group if it is visible. |
261 |
|
|
262 |
|
* Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to |
263 |
|
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties |
264 |
|
renamed to MainWindow.LayerEditProperties. |
265 |
|
(MainWindow.ToggleLegend): Don't include map name in legend title. |
266 |
|
(MainWindow.SetMap): Added the map name to the window title. |
267 |
|
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill, |
268 |
|
MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed. |
269 |
|
Functionality is found in the layer properties dialog. |
270 |
|
|
271 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
272 |
|
draw visible groups. |
273 |
|
|
274 |
2003-04-09 Jonathan Coles <[email protected]> |
2003-04-09 Jonathan Coles <[email protected]> |
275 |
|
|
276 |
* Thuban/UI/classgen.py: Modifications to allow simple |
* Thuban/UI/classgen.py: Modifications to allow simple |