1 |
|
2003-04-15 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
4 |
|
to improve rendering performance by initializing the variables |
5 |
|
that are not change each time draw_polygon_shape() is called. |
6 |
|
The values are stored in a global struct draw_info. |
7 |
|
(draw_polygon_shape): Removed initialization code that is |
8 |
|
now in draw_polygon_init(). |
9 |
|
|
10 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
11 |
|
drawing initialization call to draw_polygon_init() |
12 |
|
(MapRenderer.draw_polygon_shape): Use new signature of |
13 |
|
draw_polygon_shape. |
14 |
|
|
15 |
|
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
16 |
|
weirdness by setting the range to (1, maxint). |
17 |
|
|
18 |
|
* Thuban/Model/classification.py (ClassGroupProperties): Make |
19 |
|
instance variables private and optimize comparison operator |
20 |
|
by first checking if the color references are the same. |
21 |
|
(ClassGroupSingleton): Make instance variables private. |
22 |
|
(ClassGroupRange): Make instance variables private. |
23 |
|
|
24 |
|
* HOWTO-Release: Filled in missing steps for releasing packages. |
25 |
|
|
26 |
|
2003-04-15 Bernhard Herzog <[email protected]> |
27 |
|
|
28 |
|
First stab at internationalized messages: |
29 |
|
|
30 |
|
* Thuban/__init__.py (_): Implement the translation function for |
31 |
|
real using the python gettext module. |
32 |
|
|
33 |
|
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
34 |
|
translate empty strings. |
35 |
|
|
36 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
37 |
|
Add a missing space to a warning message |
38 |
|
|
39 |
|
* po/README: New. Notes about the management of the translation |
40 |
|
files. |
41 |
|
|
42 |
|
* po/Makefile: New. Makefile to help manage the translation files. |
43 |
|
|
44 |
|
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
45 |
|
|
46 |
|
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
47 |
|
translations and support files in po/ |
48 |
|
|
49 |
|
* setup.py (data_files): Add the *.mo files to the data_files too |
50 |
|
|
51 |
|
* README: Add note about the translations when building from CVS |
52 |
|
|
53 |
|
2003-04-14 Jonathan Coles <[email protected]> |
54 |
|
|
55 |
|
* Thuban/UI/dock.py: Fixes some window resizing problems most |
56 |
|
noticable under windows. Always assume the button bitmaps will |
57 |
|
be there. Code clean up. |
58 |
|
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
59 |
|
images for the dock/undock button to the same images. |
60 |
|
Work around for RTbug #1801. |
61 |
|
|
62 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
63 |
|
be allowed to grow within the sizer. Fixes a bug under Windows |
64 |
|
where the toolbar wasn't being drawn. |
65 |
|
|
66 |
|
2003-04-14 Frank Koormann <[email protected]> |
67 |
|
|
68 |
|
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
69 |
|
Updated design to try to make the button functionality more |
70 |
|
transparent. |
71 |
|
|
72 |
|
2003-04-14 Jonathan Coles <[email protected]> |
73 |
|
|
74 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
75 |
|
finalize the intialization of the panel. |
76 |
|
|
77 |
|
* Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the |
78 |
|
creation of the panel. Should be the last thing called in the |
79 |
|
initializer of a subclass. |
80 |
|
|
81 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively |
82 |
|
set the current selections in the combo boxes. This is needed |
83 |
|
under Windows. |
84 |
|
|
85 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add a top |
86 |
|
level panel to the dialog so that the background colors are |
87 |
|
consistent under Windows. |
88 |
|
|
89 |
|
2003-04-11 Jonathan Coles <[email protected]> |
90 |
|
|
91 |
|
* Thuban/UI/classgen.py: Change color ramps to start at white |
92 |
|
not black. |
93 |
|
|
94 |
|
* Thuban/UI/legend.py: Enable/disable the legend buttons when |
95 |
|
the legend changes. Fixes RTbug #1793. |
96 |
|
|
97 |
|
* test/test_classification.py: Added test for copying of |
98 |
|
classifications. |
99 |
|
|
100 |
|
2003-04-11 Jonathan Coles <[email protected]> |
101 |
|
|
102 |
|
* Thuban/UI/resource.py: New. Centralize the loading of resources |
103 |
|
such as bitmaps. |
104 |
|
|
105 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons, |
106 |
|
added images to the move buttons, added 'reverse' button. |
107 |
|
(CustomRampPanel.__init__): Added images to the move buttons. |
108 |
|
(GreyRamp): New. Generates a ramp from white to black. |
109 |
|
(HotToColdRamp): New. Generates a ramp from cold to hot colors. |
110 |
|
|
111 |
|
* Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to |
112 |
|
ID_PROPERTY_*. |
113 |
|
(Classifier.__init__): Minor changes to the layout. |
114 |
|
(Classifier._OnTitleChanged): Listen for when the user edits the |
115 |
|
title and update the dialog's title and the layer's title. |
116 |
|
|
117 |
|
* Thuban/UI/dock.py: Use new bitmaps for the control buttons. |
118 |
|
|
119 |
|
* Thuban/UI/legend.py: Use new bitmaps for the control buttons. |
120 |
|
(LegendTree._OnMsgLayerTitleChanged): Change the displayed title |
121 |
|
if the layer's title changes. |
122 |
|
|
123 |
|
* Thuban/UI/mainwindow.py: Added new menu item and associated code |
124 |
|
to open a dialog to rename the map. |
125 |
|
(MainWindow): Use new resource class to import bitmaps. |
126 |
|
|
127 |
|
2003-04-11 Jonathan Coles <[email protected]> |
128 |
|
|
129 |
|
* Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm, |
130 |
|
Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm, |
131 |
|
Resources/Bitmaps/group_use_none.xpm, |
132 |
|
Resources/Bitmaps/group_use_not.xpm, |
133 |
|
Resources/Bitmaps/hide_layer.xpm, |
134 |
|
Resources/Bitmaps/layer_properties.xpm, |
135 |
|
Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm, |
136 |
|
Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm: |
137 |
|
New. |
138 |
|
|
139 |
|
2003-04-10 Jonathan Coles <[email protected]> |
140 |
|
|
141 |
|
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
142 |
|
Should pass group to ClassGroup constructor. |
143 |
|
|
144 |
|
2003-04-10 Jonathan Coles <[email protected]> |
145 |
|
|
146 |
|
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
147 |
|
methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__) |
148 |
|
here. Implement SetVisible(), IsVisible(). |
149 |
|
(ClassGroup.__init__): Add group parameter which acts as a copy |
150 |
|
constructor. |
151 |
|
|
152 |
|
* Thuban/UI/classifier.py (ClassTable): Add a new column for the |
153 |
|
"Visible" check boxes. |
154 |
|
(Classifier): Rename the buttons and refactor the code to match |
155 |
|
the new labels. |
156 |
|
|
157 |
|
* Thuban/UI/legend.py: Classify button is now called "Properties". |
158 |
|
Refactored the code to change variable names. |
159 |
|
(LegendTree.__FillTreeLayer): Only list a group if it is visible. |
160 |
|
|
161 |
|
* Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to |
162 |
|
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties |
163 |
|
renamed to MainWindow.LayerEditProperties. |
164 |
|
(MainWindow.ToggleLegend): Don't include map name in legend title. |
165 |
|
(MainWindow.SetMap): Added the map name to the window title. |
166 |
|
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill, |
167 |
|
MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed. |
168 |
|
Functionality is found in the layer properties dialog. |
169 |
|
|
170 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
171 |
|
draw visible groups. |
172 |
|
|
173 |
|
2003-04-09 Jonathan Coles <[email protected]> |
174 |
|
|
175 |
|
* Thuban/UI/classgen.py: Modifications to allow simple |
176 |
|
addition and selection of new color schemes. |
177 |
|
(MonochromaticRamp): New. Generates a ramp between two colors. |
178 |
|
(RedRamp): New. Generates a ramp of all red. |
179 |
|
(GreenRamp): New. Generates a ramp of all green. |
180 |
|
(BlueRamp): New. Generates a ramp of all blue. |
181 |
|
|
182 |
|
2003-04-09 Jonathan Coles <[email protected]> |
183 |
|
|
184 |
|
* Thuban/Model/classification.py (Classification.__deepcopy__): |
185 |
|
Need to copy over field and fieldType attributes. |
186 |
|
|
187 |
|
* Thuban/Model/table.py (Table.field_range): New. Retrive the |
188 |
|
maximum and minimum values over the entire table for a given |
189 |
|
field. |
190 |
|
(Table.GetUniqueValues): New. Retrieve all the unique values |
191 |
|
in the table for a given field. |
192 |
|
|
193 |
|
* Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel. |
194 |
|
(GenUniquePanel): New. Controls to allow the user to select |
195 |
|
which unique field values they would like in the classification. |
196 |
|
(CustomRampPanel): Code that was in ClassGenDialog that allows |
197 |
|
the user to select the properties for a custom ramp. |
198 |
|
(ClassGenerator.GenUniformDistribution): Was called GenerateRanges. |
199 |
|
|
200 |
|
* Thuban/UI/classifier.py: Removed a lot of debugging code. |
201 |
|
(Classifier._SetClassification): Callback method so that the |
202 |
|
class generator can set the classification in the grid. |
203 |
|
(ClassGroupPropertiesCtrl): New. Encapsulates the drawing and |
204 |
|
editing of a group properties class into a wxWindows control. |
205 |
|
|
206 |
|
* Thuban/UI/dock.py: It was decided that if the user closes |
207 |
|
a dockable window the window should simply hide itself. That |
208 |
|
way if the user wants to show the dock again it appears in the |
209 |
|
same place as it was when it was closed. |
210 |
|
(DockableWindow.Destroy): Call renamed method OnDockDestroy(). |
211 |
|
(DockableWindow._OnButtonClose): Hide the window instead of |
212 |
|
destroying it. |
213 |
|
(DockableWindow._OnClose): Hide the window instead of |
214 |
|
destroying it. |
215 |
|
|
216 |
|
* Thuban/UI/legend.py (LegendTree): Use a private method to |
217 |
|
consistently set the font and style of the text. Fixes RTbug #1786. |
218 |
|
|
219 |
|
* Thuban/UI/mainwindow.py: Import just the Classifier class. |
220 |
|
|
221 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
222 |
|
|
223 |
|
* Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item |
224 |
|
to the map module |
225 |
|
|
226 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
227 |
|
|
228 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in |
229 |
|
favor of ToggleSessionTree |
230 |
|
(MainWindow.ToggleSessionTree): New method to toggle visibility of |
231 |
|
the session tree. |
232 |
|
(MainWindow.SessionTreeShown): New method to return whether the |
233 |
|
session tree is currently shown. |
234 |
|
(MainWindow.ToggleLegend): New method to toggle visibility of the |
235 |
|
legend |
236 |
|
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and |
237 |
|
LegendShown |
238 |
|
(MainWindow.LegendShown): New method to return whether the legend |
239 |
|
is currently shown. |
240 |
|
(_method_command): Add checked parameter so we can define check |
241 |
|
menu items |
242 |
|
(_has_tree_window_shown, _has_legend_shown): Use the appropriate |
243 |
|
mainwindow methods. |
244 |
|
(show_session_tree, show_legend commands): Removed. |
245 |
|
(toggle_session_tree, toggle_legend commands): New commands to |
246 |
|
toggle the visibility of the dialogs |
247 |
|
|
248 |
|
2003-04-07 Jonathan Coles <[email protected]> |
249 |
|
|
250 |
|
* Thuban/UI/classgen.py: Fix Windows problem. |
251 |
|
|
252 |
|
* Thuban/UI/dock.py: Fix Windows problem. |
253 |
|
|
254 |
|
* Thuban/UI/mainwindow.py: Use False instead of false. |
255 |
|
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
256 |
|
|
257 |
|
2003-04-07 Jonathan Coles <[email protected]> |
258 |
|
|
259 |
|
Since we now say that the order of the groups in a classification |
260 |
|
matters, it makes sense to be able to manipulate that order. Most |
261 |
|
of the changes to Thuban/Model/classification.py are to that end. |
262 |
|
|
263 |
|
* Thuban/Model/classification.py (Classification.AppendGroup, |
264 |
|
Classification.InsertGroup, Classification.ReplaceGroup, |
265 |
|
Classification.RemoveGroup, Classification.GetGroup): Do as the |
266 |
|
names imply. |
267 |
|
(Classification.FindGroup): This was called GetGroup, but GetGroup |
268 |
|
takes an index, while FindGroup takes a value. |
269 |
|
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
270 |
|
REFERENCE. Currently there is a cyclic reference between the layer |
271 |
|
and its classification. If the classification doesn't need to know |
272 |
|
its owning layer we can change this, since it may make sense to be |
273 |
|
able to use the same classification with different layers. |
274 |
|
|
275 |
|
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
276 |
|
|
277 |
|
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
278 |
|
not AddGroup() |
279 |
|
|
280 |
|
* Thuban/UI/classifier.py: Now that we can depend on the order in |
281 |
|
a Classification and have methods to manipulate that order we don't |
282 |
|
need to use our own data structures in the grid. We can simply make |
283 |
|
the grid/table access the information they need from a copy of |
284 |
|
the classification object. |
285 |
|
(Classifier._OnCloseBtn): Event handler for when the user clicks |
286 |
|
'Close'. This is needed so if the user applies changes and then |
287 |
|
continues to change the table the user has the option of discarding |
288 |
|
the most recent changes and keeping what they applied. |
289 |
|
|
290 |
|
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
291 |
|
into the same group. |
292 |
|
|
293 |
|
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
294 |
|
with a really old version of proj, PJ_VERSION won't even be defined. |
295 |
|
If it isn't defined then just compile so that the function always |
296 |
|
returns Py_False. |
297 |
|
|
298 |
|
* test/test_classification.py: Fix tests to use the renamed methods. |
299 |
|
Still need to write tests for the new methods. |
300 |
|
|
301 |
|
2003-04-04 Jonathan Coles <[email protected]> |
302 |
|
|
303 |
|
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
304 |
|
call to SetSelection out of the method and before the call |
305 |
|
to __SelectField in __init__. This prevents a recursion of events |
306 |
|
when _OnFieldSelect is triggered by the user. |
307 |
|
|
308 |
|
2003-04-04 Jonathan Coles <[email protected]> |
309 |
|
|
310 |
|
* Thuban/Model/classification.py: Rename Color.None to |
311 |
|
Color.Transparent. |
312 |
|
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
313 |
|
Don't bother copying the color, since Colors are immutable. |
314 |
|
|
315 |
|
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
316 |
|
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
317 |
|
Thuban/UI/renderer.py, Thuban/UI/view.py: |
318 |
|
Rename Color.None to Color.Transparent. |
319 |
|
|
320 |
|
* test/test_classification.py, test/test_load.py: Rename Color.None |
321 |
|
to Color.Transparent. |
322 |
|
|
323 |
2003-04-04 Jonathan Coles <[email protected]> |
2003-04-04 Jonathan Coles <[email protected]> |
324 |
|
|
325 |
* Thuban/Model/classification.py: Fix assert calls. |
* Thuban/Model/classification.py: Fix assert calls. |