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