1 |
|
2003-04-17 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
4 |
|
In wxPython 2.4 there's no need to extend MainLoop anymore since |
5 |
|
wxPython itself makes sure OnExit is called. |
6 |
|
|
7 |
|
2003-04-16 Jonathan Coles <[email protected]> |
8 |
|
|
9 |
|
Initial putback of projection management code. Includes new |
10 |
|
classes to read and write projection files. The current load |
11 |
|
and save classes were abstracted a bit so they could be reused. |
12 |
|
The Projection class was extended to provide new methods and |
13 |
|
have a name. |
14 |
|
|
15 |
|
* Thuban/Model/load.py (XMLProcessor): New. Contains all the |
16 |
|
general XML reading methods that were part of ProcessSession. |
17 |
|
|
18 |
|
* Thuban/Model/proj.py (Projection.__init__): Accepts an optional |
19 |
|
name. |
20 |
|
(ProjFile): New. Represents a file that contains projection |
21 |
|
information. |
22 |
|
|
23 |
|
* Thuban/Model/resource.py: New. Contains general utilities |
24 |
|
for read and writing projection files. |
25 |
|
|
26 |
|
* Thuban/Model/save.py (XMLSaver): New. Contains all the |
27 |
|
general XML writing methods that were part of SessionSaver. |
28 |
|
(SessionSaver): Renamed from Saver. |
29 |
|
|
30 |
|
* test/test_proj.py: New test cases for the projection |
31 |
|
file read and write functions. |
32 |
|
|
33 |
|
2003-04-16 Jonathan Coles <[email protected]> |
34 |
|
|
35 |
|
* Thuban/Model/classification.py: Use repr() around values |
36 |
|
in the ClassGroup*.__repr__() methods so it is clearer when |
37 |
|
a value is a string and when it is a number. |
38 |
|
|
39 |
|
* test/test_load.py: Rework the classification test to test |
40 |
|
that we can load old files. |
41 |
|
(testLabels): Test a file where the groups have labels. |
42 |
|
|
43 |
|
2003-04-16 Bernhard Herzog <[email protected]> |
44 |
|
|
45 |
|
Safer implementation of the performance enhancements of the |
46 |
|
low-level renderer: |
47 |
|
|
48 |
|
* extensions/thuban/wxproj.cpp (extract_projection) |
49 |
|
(extract_pointer): Rename extract_projection to extract_pointer |
50 |
|
and redefine its purpose to return the pointer stored in a CObject |
51 |
|
returned by the object's cobject method. Update all callers. |
52 |
|
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
53 |
|
handling of these low-level parameters so that each s_draw_info |
54 |
|
instance is handled as a CObject at python level that also |
55 |
|
contains real references to the actual python objects which |
56 |
|
contain the values in the struct. Add free_draw_info as the |
57 |
|
destructor. |
58 |
|
(draw_polygon_shape): Add the py_draw_info parameter which must a |
59 |
|
cobject containing an s_draw_info pointer. |
60 |
|
|
61 |
|
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
62 |
|
method to instantiat the low-level render parameter |
63 |
|
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
64 |
|
commented out code. |
65 |
|
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
66 |
|
layer but the low-level render parameter |
67 |
|
(ScreenRenderer.draw_shape_layer): Use the low-level render |
68 |
|
parameter. |
69 |
|
|
70 |
|
2003-04-15 Jonathan Coles <[email protected]> |
71 |
|
|
72 |
|
* Thuban/Model/classification.py: Implemented __repr__ for |
73 |
|
the ClassGroup* classes to make debugging a bit easier. |
74 |
|
(ClassGroup.SetLabel): Check that the string is an instance |
75 |
|
of StringTypes not StringType. Accounts for Unicode strings. |
76 |
|
|
77 |
|
* Thuban/Model/color.py: Implemented __repr__ to make |
78 |
|
debugging a bit easier. |
79 |
|
|
80 |
|
* Thuban/Model/save.py (Saver.write_classification): Need to |
81 |
|
save the group label. |
82 |
|
|
83 |
|
* test/test_load.py (testClassification): New. Loads the |
84 |
|
iceland_sample_test.thuban file and checks if it was loaded |
85 |
|
correctly. |
86 |
|
|
87 |
2003-04-15 Jonathan Coles <[email protected]> |
2003-04-15 Jonathan Coles <[email protected]> |
88 |
|
|
89 |
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
94 |
now in draw_polygon_init(). |
now in draw_polygon_init(). |
95 |
|
|
96 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
97 |
drawing initialization call to draw_polygon_init() |
drawing initialization call to draw_polygon_init() |
98 |
(MapRenderer.draw_polygon_shape): Use new signature of |
(MapRenderer.draw_polygon_shape): Use new signature of |
99 |
draw_polygon_shape. |
draw_polygon_shape. |
100 |
|
|
101 |
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
102 |
weirdness by setting the range to (1, maxint). |
weirdness by setting the range to (1, maxint). |
103 |
|
|
104 |
* Thuban/Model/classification.py (ClassGroupProperties): Make |
* Thuban/Model/classification.py (ClassGroupProperties): Make |
105 |
instance variables private and optimize comparison operator |
instance variables private and optimize comparison operator |
106 |
by first checking if the color references are the same. |
by first checking if the color references are the same. |
107 |
(ClassGroupSingleton): Make instance variables private. |
(ClassGroupSingleton): Make instance variables private. |
108 |
(ClassGroupRange): Make instance variables private. |
(ClassGroupRange): Make instance variables private. |
109 |
|
|
110 |
|
* HOWTO-Release: Filled in missing steps for releasing packages. |
111 |
|
|
112 |
2003-04-15 Bernhard Herzog <[email protected]> |
2003-04-15 Bernhard Herzog <[email protected]> |
113 |
|
|