1 |
|
2003-04-17 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
4 |
|
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used |
5 |
|
anymore. |
6 |
|
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes) |
7 |
|
(Layer.ShapeType, Layer.Shape): No need to call |
8 |
|
self.open_shapefile since it's always called in __init__ |
9 |
|
|
10 |
|
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
11 |
|
In wxPython 2.4 there's no need to extend MainLoop anymore since |
12 |
|
wxPython itself makes sure OnExit is called. |
13 |
|
|
14 |
|
2003-04-16 Jonathan Coles <[email protected]> |
15 |
|
|
16 |
|
Initial putback of projection management code. Includes new |
17 |
|
classes to read and write projection files. The current load |
18 |
|
and save classes were abstracted a bit so they could be reused. |
19 |
|
The Projection class was extended to provide new methods and |
20 |
|
have a name. |
21 |
|
|
22 |
|
* Thuban/Model/load.py (XMLProcessor): New. Contains all the |
23 |
|
general XML reading methods that were part of ProcessSession. |
24 |
|
|
25 |
|
* Thuban/Model/proj.py (Projection.__init__): Accepts an optional |
26 |
|
name. |
27 |
|
(ProjFile): New. Represents a file that contains projection |
28 |
|
information. |
29 |
|
|
30 |
|
* Thuban/Model/resource.py: New. Contains general utilities |
31 |
|
for read and writing projection files. |
32 |
|
|
33 |
|
* Thuban/Model/save.py (XMLSaver): New. Contains all the |
34 |
|
general XML writing methods that were part of SessionSaver. |
35 |
|
(SessionSaver): Renamed from Saver. |
36 |
|
|
37 |
|
* test/test_proj.py: New test cases for the projection |
38 |
|
file read and write functions. |
39 |
|
|
40 |
|
2003-04-16 Jonathan Coles <[email protected]> |
41 |
|
|
42 |
|
* Thuban/Model/classification.py: Use repr() around values |
43 |
|
in the ClassGroup*.__repr__() methods so it is clearer when |
44 |
|
a value is a string and when it is a number. |
45 |
|
|
46 |
|
* test/test_load.py: Rework the classification test to test |
47 |
|
that we can load old files. |
48 |
|
(testLabels): Test a file where the groups have labels. |
49 |
|
|
50 |
|
2003-04-16 Bernhard Herzog <[email protected]> |
51 |
|
|
52 |
|
Safer implementation of the performance enhancements of the |
53 |
|
low-level renderer: |
54 |
|
|
55 |
|
* extensions/thuban/wxproj.cpp (extract_projection) |
56 |
|
(extract_pointer): Rename extract_projection to extract_pointer |
57 |
|
and redefine its purpose to return the pointer stored in a CObject |
58 |
|
returned by the object's cobject method. Update all callers. |
59 |
|
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
60 |
|
handling of these low-level parameters so that each s_draw_info |
61 |
|
instance is handled as a CObject at python level that also |
62 |
|
contains real references to the actual python objects which |
63 |
|
contain the values in the struct. Add free_draw_info as the |
64 |
|
destructor. |
65 |
|
(draw_polygon_shape): Add the py_draw_info parameter which must a |
66 |
|
cobject containing an s_draw_info pointer. |
67 |
|
|
68 |
|
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
69 |
|
method to instantiat the low-level render parameter |
70 |
|
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
71 |
|
commented out code. |
72 |
|
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
73 |
|
layer but the low-level render parameter |
74 |
|
(ScreenRenderer.draw_shape_layer): Use the low-level render |
75 |
|
parameter. |
76 |
|
|
77 |
|
2003-04-15 Jonathan Coles <[email protected]> |
78 |
|
|
79 |
|
* Thuban/Model/classification.py: Implemented __repr__ for |
80 |
|
the ClassGroup* classes to make debugging a bit easier. |
81 |
|
(ClassGroup.SetLabel): Check that the string is an instance |
82 |
|
of StringTypes not StringType. Accounts for Unicode strings. |
83 |
|
|
84 |
|
* Thuban/Model/color.py: Implemented __repr__ to make |
85 |
|
debugging a bit easier. |
86 |
|
|
87 |
|
* Thuban/Model/save.py (Saver.write_classification): Need to |
88 |
|
save the group label. |
89 |
|
|
90 |
|
* test/test_load.py (testClassification): New. Loads the |
91 |
|
iceland_sample_test.thuban file and checks if it was loaded |
92 |
|
correctly. |
93 |
|
|
94 |
|
2003-04-15 Jonathan Coles <[email protected]> |
95 |
|
|
96 |
|
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
97 |
|
to improve rendering performance by initializing the variables |
98 |
|
that are not change each time draw_polygon_shape() is called. |
99 |
|
The values are stored in a global struct draw_info. |
100 |
|
(draw_polygon_shape): Removed initialization code that is |
101 |
|
now in draw_polygon_init(). |
102 |
|
|
103 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
104 |
|
drawing initialization call to draw_polygon_init() |
105 |
|
(MapRenderer.draw_polygon_shape): Use new signature of |
106 |
|
draw_polygon_shape. |
107 |
|
|
108 |
|
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
109 |
|
weirdness by setting the range to (1, maxint). |
110 |
|
|
111 |
|
* Thuban/Model/classification.py (ClassGroupProperties): Make |
112 |
|
instance variables private and optimize comparison operator |
113 |
|
by first checking if the color references are the same. |
114 |
|
(ClassGroupSingleton): Make instance variables private. |
115 |
|
(ClassGroupRange): Make instance variables private. |
116 |
|
|
117 |
|
* HOWTO-Release: Filled in missing steps for releasing packages. |
118 |
|
|
119 |
|
2003-04-15 Bernhard Herzog <[email protected]> |
120 |
|
|
121 |
|
First stab at internationalized messages: |
122 |
|
|
123 |
|
* Thuban/__init__.py (_): Implement the translation function for |
124 |
|
real using the python gettext module. |
125 |
|
|
126 |
|
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
127 |
|
translate empty strings. |
128 |
|
|
129 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
130 |
|
Add a missing space to a warning message |
131 |
|
|
132 |
|
* po/README: New. Notes about the management of the translation |
133 |
|
files. |
134 |
|
|
135 |
|
* po/Makefile: New. Makefile to help manage the translation files. |
136 |
|
|
137 |
|
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
138 |
|
|
139 |
|
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
140 |
|
translations and support files in po/ |
141 |
|
|
142 |
|
* setup.py (data_files): Add the *.mo files to the data_files too |
143 |
|
|
144 |
|
* README: Add note about the translations when building from CVS |
145 |
|
|
146 |
|
2003-04-14 Jonathan Coles <[email protected]> |
147 |
|
|
148 |
|
* Thuban/UI/dock.py: Fixes some window resizing problems most |
149 |
|
noticable under windows. Always assume the button bitmaps will |
150 |
|
be there. Code clean up. |
151 |
|
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
152 |
|
images for the dock/undock button to the same images. |
153 |
|
Work around for RTbug #1801. |
154 |
|
|
155 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
156 |
|
be allowed to grow within the sizer. Fixes a bug under Windows |
157 |
|
where the toolbar wasn't being drawn. |
158 |
|
|
159 |
2003-04-14 Frank Koormann <[email protected]> |
2003-04-14 Frank Koormann <[email protected]> |
160 |
|
|
161 |
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |