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]> |
2003-04-14 Jonathan Coles <[email protected]> |
117 |
|
|
118 |
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |