1 |
|
2003-04-16 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Safer implementation of the performance enhancements of the |
4 |
|
low-level renderer: |
5 |
|
|
6 |
|
* extensions/thuban/wxproj.cpp (extract_projection) |
7 |
|
(extract_pointer): Rename extract_projection to extract_pointer |
8 |
|
and redefine its purpose to return the pointer stored in a CObject |
9 |
|
returned by the object's cobject method. Update all callers. |
10 |
|
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
11 |
|
handling of these low-level parameters so that each s_draw_info |
12 |
|
instance is handled as a CObject at python level that also |
13 |
|
contains real references to the actual python objects which |
14 |
|
contain the values in the struct. Add free_draw_info as the |
15 |
|
destructor. |
16 |
|
(draw_polygon_shape): Add the py_draw_info parameter which must a |
17 |
|
cobject containing an s_draw_info pointer. |
18 |
|
|
19 |
|
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
20 |
|
method to instantiat the low-level render parameter |
21 |
|
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
22 |
|
commented out code. |
23 |
|
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
24 |
|
layer but the low-level render parameter |
25 |
|
(ScreenRenderer.draw_shape_layer): Use the low-level render |
26 |
|
parameter. |
27 |
|
|
28 |
|
2003-04-15 Jonathan Coles <[email protected]> |
29 |
|
|
30 |
|
* Thuban/Model/classification.py: Implemented __repr__ for |
31 |
|
the ClassGroup* classes to make debugging a bit easier. |
32 |
|
(ClassGroup.SetLabel): Check that the string is an instance |
33 |
|
of StringTypes not StringType. Accounts for Unicode strings. |
34 |
|
|
35 |
|
* Thuban/Model/color.py: Implemented __repr__ to make |
36 |
|
debugging a bit easier. |
37 |
|
|
38 |
|
* Thuban/Model/save.py (Saver.write_classification): Need to |
39 |
|
save the group label. |
40 |
|
|
41 |
|
* test/test_load.py (testClassification): New. Loads the |
42 |
|
iceland_sample_test.thuban file and checks if it was loaded |
43 |
|
correctly. |
44 |
|
|
45 |
|
2003-04-15 Jonathan Coles <[email protected]> |
46 |
|
|
47 |
|
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
48 |
|
to improve rendering performance by initializing the variables |
49 |
|
that are not change each time draw_polygon_shape() is called. |
50 |
|
The values are stored in a global struct draw_info. |
51 |
|
(draw_polygon_shape): Removed initialization code that is |
52 |
|
now in draw_polygon_init(). |
53 |
|
|
54 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
55 |
|
drawing initialization call to draw_polygon_init() |
56 |
|
(MapRenderer.draw_polygon_shape): Use new signature of |
57 |
|
draw_polygon_shape. |
58 |
|
|
59 |
|
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
60 |
|
weirdness by setting the range to (1, maxint). |
61 |
|
|
62 |
|
* Thuban/Model/classification.py (ClassGroupProperties): Make |
63 |
|
instance variables private and optimize comparison operator |
64 |
|
by first checking if the color references are the same. |
65 |
|
(ClassGroupSingleton): Make instance variables private. |
66 |
|
(ClassGroupRange): Make instance variables private. |
67 |
|
|
68 |
|
* HOWTO-Release: Filled in missing steps for releasing packages. |
69 |
|
|
70 |
|
2003-04-15 Bernhard Herzog <[email protected]> |
71 |
|
|
72 |
|
First stab at internationalized messages: |
73 |
|
|
74 |
|
* Thuban/__init__.py (_): Implement the translation function for |
75 |
|
real using the python gettext module. |
76 |
|
|
77 |
|
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
78 |
|
translate empty strings. |
79 |
|
|
80 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
81 |
|
Add a missing space to a warning message |
82 |
|
|
83 |
|
* po/README: New. Notes about the management of the translation |
84 |
|
files. |
85 |
|
|
86 |
|
* po/Makefile: New. Makefile to help manage the translation files. |
87 |
|
|
88 |
|
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
89 |
|
|
90 |
|
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
91 |
|
translations and support files in po/ |
92 |
|
|
93 |
|
* setup.py (data_files): Add the *.mo files to the data_files too |
94 |
|
|
95 |
|
* README: Add note about the translations when building from CVS |
96 |
|
|
97 |
|
2003-04-14 Jonathan Coles <[email protected]> |
98 |
|
|
99 |
|
* Thuban/UI/dock.py: Fixes some window resizing problems most |
100 |
|
noticable under windows. Always assume the button bitmaps will |
101 |
|
be there. Code clean up. |
102 |
|
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
103 |
|
images for the dock/undock button to the same images. |
104 |
|
Work around for RTbug #1801. |
105 |
|
|
106 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
107 |
|
be allowed to grow within the sizer. Fixes a bug under Windows |
108 |
|
where the toolbar wasn't being drawn. |
109 |
|
|
110 |
|
2003-04-14 Frank Koormann <[email protected]> |
111 |
|
|
112 |
|
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
113 |
|
Updated design to try to make the button functionality more |
114 |
|
transparent. |
115 |
|
|
116 |
|
2003-04-14 Jonathan Coles <[email protected]> |
117 |
|
|
118 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
119 |
|
finalize the intialization of the panel. |
120 |
|
|
121 |
|
* Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the |
122 |
|
creation of the panel. Should be the last thing called in the |
123 |
|
initializer of a subclass. |
124 |
|
|
125 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively |
126 |
|
set the current selections in the combo boxes. This is needed |
127 |
|
under Windows. |
128 |
|
|
129 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add a top |
130 |
|
level panel to the dialog so that the background colors are |
131 |
|
consistent under Windows. |
132 |
|
|
133 |
|
2003-04-11 Jonathan Coles <[email protected]> |
134 |
|
|
135 |
|
* Thuban/UI/classgen.py: Change color ramps to start at white |
136 |
|
not black. |
137 |
|
|
138 |
|
* Thuban/UI/legend.py: Enable/disable the legend buttons when |
139 |
|
the legend changes. Fixes RTbug #1793. |
140 |
|
|
141 |
|
* test/test_classification.py: Added test for copying of |
142 |
|
classifications. |
143 |
|
|
144 |
|
2003-04-11 Jonathan Coles <[email protected]> |
145 |
|
|
146 |
|
* Thuban/UI/resource.py: New. Centralize the loading of resources |
147 |
|
such as bitmaps. |
148 |
|
|
149 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons, |
150 |
|
added images to the move buttons, added 'reverse' button. |
151 |
|
(CustomRampPanel.__init__): Added images to the move buttons. |
152 |
|
(GreyRamp): New. Generates a ramp from white to black. |
153 |
|
(HotToColdRamp): New. Generates a ramp from cold to hot colors. |
154 |
|
|
155 |
|
* Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to |
156 |
|
ID_PROPERTY_*. |
157 |
|
(Classifier.__init__): Minor changes to the layout. |
158 |
|
(Classifier._OnTitleChanged): Listen for when the user edits the |
159 |
|
title and update the dialog's title and the layer's title. |
160 |
|
|
161 |
|
* Thuban/UI/dock.py: Use new bitmaps for the control buttons. |
162 |
|
|
163 |
|
* Thuban/UI/legend.py: Use new bitmaps for the control buttons. |
164 |
|
(LegendTree._OnMsgLayerTitleChanged): Change the displayed title |
165 |
|
if the layer's title changes. |
166 |
|
|
167 |
|
* Thuban/UI/mainwindow.py: Added new menu item and associated code |
168 |
|
to open a dialog to rename the map. |
169 |
|
(MainWindow): Use new resource class to import bitmaps. |
170 |
|
|
171 |
|
2003-04-11 Jonathan Coles <[email protected]> |
172 |
|
|
173 |
|
* Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm, |
174 |
|
Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm, |
175 |
|
Resources/Bitmaps/group_use_none.xpm, |
176 |
|
Resources/Bitmaps/group_use_not.xpm, |
177 |
|
Resources/Bitmaps/hide_layer.xpm, |
178 |
|
Resources/Bitmaps/layer_properties.xpm, |
179 |
|
Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm, |
180 |
|
Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm: |
181 |
|
New. |
182 |
|
|
183 |
|
2003-04-10 Jonathan Coles <[email protected]> |
184 |
|
|
185 |
|
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
186 |
|
Should pass group to ClassGroup constructor. |
187 |
|
|
188 |
2003-04-10 Jonathan Coles <[email protected]> |
2003-04-10 Jonathan Coles <[email protected]> |
189 |
|
|
190 |
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
* Thuban/Model/classification.py: (ClassGroup): Move all the common |