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