1 |
|
2003-10-30 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle |
4 |
|
EVT_WINDOW_DESTROY |
5 |
|
(ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does |
6 |
|
nothing but is convenient for the derived classes. |
7 |
|
|
8 |
|
* Thuban/UI/tableview.py |
9 |
|
(TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New. |
10 |
|
Unsubscribe the messages here not in OnClose because that might |
11 |
|
get called multiple times. Fixes RT #2196 |
12 |
|
(TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed |
13 |
|
anymore. |
14 |
|
|
15 |
|
* README: Update the minimum requirement for wxPython. Since we |
16 |
|
now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4, |
17 |
|
the version in which that was introduced for all platforms |
18 |
|
|
19 |
|
2003-10-30 Frank Koormann <[email protected]> |
20 |
|
|
21 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of |
22 |
|
the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor |
23 |
|
frame. |
24 |
|
|
25 |
|
2003-10-30 Jan-Oliver Wagner <[email protected]> |
26 |
|
|
27 |
|
Improved APR import extension, added further EPSG definitions |
28 |
|
and some cleanup regarding string class. |
29 |
|
|
30 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo): |
31 |
|
Added test for alias 'longlat'. |
32 |
|
|
33 |
|
* Resources/Projections/epsg-deprecated.proj: New. Contains |
34 |
|
deprecated EPSG definitions. |
35 |
|
|
36 |
|
* Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added |
37 |
|
the variable names for objects. |
38 |
|
|
39 |
|
* Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New. |
40 |
|
Copied from importAPR and provided with documentation. |
41 |
|
|
42 |
|
* Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym): |
43 |
|
Moved to apr.py. |
44 |
|
(APR_View): Added object ref 'ITheme'. |
45 |
|
|
46 |
|
* Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string |
47 |
|
split function by corresponding use of the string class method. |
48 |
|
|
49 |
|
* Thuban/Model/xmlwriter.py: Replaced string replace function by |
50 |
|
corresponding string method. |
51 |
|
|
52 |
|
2003-10-29 Bernhard Herzog <[email protected]> |
53 |
|
|
54 |
|
* Thuban/UI/baserenderer.py |
55 |
|
(BaseRenderer.draw_shape_layer_incrementally): Speed up the |
56 |
|
special case of a classification that only has the default group |
57 |
|
|
58 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
59 |
|
|
60 |
|
* po/fr.po, po/es.po: Updated translations from Daniel Calvelo |
61 |
|
|
62 |
|
* po/de.po: Update. |
63 |
|
|
64 |
|
* Thuban/UI/application.py |
65 |
|
(ThubanApplication.ShowExceptionDialog): Handle translation of the |
66 |
|
dialog message properly |
67 |
|
|
68 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
69 |
|
|
70 |
|
Rework how localization works so that we use wx's translation |
71 |
|
functions when running Thuban as a normal application but not when |
72 |
|
we don't need any UI, such as in the test suite. See the comment |
73 |
|
in Thuban/__init__.py for details |
74 |
|
|
75 |
|
* Thuban/__init__.py (_): Add one level of indirection to make the |
76 |
|
translation handling more flexible and to make it possible to use |
77 |
|
either wx's translation services or not. |
78 |
|
(gettext_identity, translation_function_installed) |
79 |
|
(install_translation_function): New function to help with this |
80 |
|
|
81 |
|
* Thuban/UI/__init__.py: Install the wx specific translation |
82 |
|
function if it's OK to do that |
83 |
|
|
84 |
|
* test/support.py (initthuban): Install a dummy translation |
85 |
|
function so that importing Thuban.UI doesn't install a wx specific |
86 |
|
one for which would need to import wxPython |
87 |
|
|
88 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
89 |
|
|
90 |
|
* HOWTO-Release: Source archives should be created first and the |
91 |
|
binary packages should be created from the source archives. |
92 |
|
There's an official debian package now so there's no need to test |
93 |
|
the rpm on debian anymore |
94 |
|
|
95 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
96 |
|
|
97 |
|
Several rendering changes: |
98 |
|
|
99 |
|
- Render the selection into a separate bitmap so that only that |
100 |
|
bitmap needs to be redrawn when the selection changes |
101 |
|
|
102 |
|
- Render incrementally showing previews and allowing interaction |
103 |
|
before rendering is complete |
104 |
|
|
105 |
|
- Update the renderer interface a bit. Most parameters of |
106 |
|
RenderMap are now parameters of the constructor |
107 |
|
|
108 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map |
109 |
|
and the update region as parameters. Update the doc-string |
110 |
|
(BaseRenderer.render_map_incrementally): New. Generator function |
111 |
|
to renders the map incrementally |
112 |
|
(BaseRenderer.render_map): Remove the map argument (it's now in |
113 |
|
the constructor) and simply iterate over the |
114 |
|
render_map_incrementally generator to draw the map. |
115 |
|
(BaseRenderer.draw_shape_layer_incrementally) |
116 |
|
(BaseRenderer.draw_shape_layer): Renamed to |
117 |
|
draw_shape_layer_incrementally and changed into a generator that |
118 |
|
yields True every 500 shapes. Used by render_map_incrementally to |
119 |
|
render shape layers incrementally |
120 |
|
|
121 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the |
122 |
|
map and region parameters which are now in the constructor |
123 |
|
(ScreenRenderer.RenderMapIncrementally): New. Public frontend for |
124 |
|
the inherited render_map_incrementally. |
125 |
|
(BaseRenderer.draw_shape_layer): Removed. |
126 |
|
(ScreenRenderer.draw_selection_incrementally): New. The selection |
127 |
|
drawing part of the removed draw_shape_layer as a generator |
128 |
|
(ScreenRenderer.layer_shapes): Update because of the region |
129 |
|
parameter change |
130 |
|
(ExportRenderer.__init__): New. Extend the inherited constructor |
131 |
|
with the destination region for the drawing |
132 |
|
(ExportRenderer.RenderMap): Removed the map and region parameters |
133 |
|
which are now in the constructor |
134 |
|
|
135 |
|
* Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a |
136 |
|
bitmap suitable for a preview in a tool |
137 |
|
(CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the |
138 |
|
bitmap |
139 |
|
(MapPrintout.draw_on_dc): Adapt to new renderer interface |
140 |
|
(MapCanvas.OnPaint): Handle drawing the selection bitmap if it |
141 |
|
exists |
142 |
|
(MapCanvas.OnIdle): Update the logic to deal with incremental |
143 |
|
rendering and the selection bitmap |
144 |
|
(MapCanvas._do_redraw): Handle the instantiation of the render |
145 |
|
iterator and the redraws during rendering |
146 |
|
(MapCanvas._render_iterator): New. Generator to incrementally |
147 |
|
redraw both bitmaps |
148 |
|
(MapCanvas.Export): Adapt to new renderer interface. |
149 |
|
(MapCanvas.full_redraw): Reset the selection bitmap and the |
150 |
|
renderer iterator too |
151 |
|
(MapCanvas.redraw_selection): New. Force a redraw of the selection |
152 |
|
bitmap |
153 |
|
(MapCanvas.shape_selected): Only redraw the selection bitmap |
154 |
|
|
155 |
|
* test/test_baserenderer.py |
156 |
|
(TestBaseRenderer.test_polygon_no_projection) |
157 |
|
(TestBaseRenderer.test_raster_no_projection) |
158 |
|
(TestBaseRenderer.test_point_map_projection) |
159 |
|
(TestBaseRenderer.test_point_layer_and_map_projection) |
160 |
|
(TestBaseRenderer.test_point_layer_projection) |
161 |
|
(TestBaseRenderer.test_point_with_classification): Adapt to new |
162 |
|
renderer interface |
163 |
|
|
164 |
|
2003-10-24 Bernhard Herzog <[email protected]> |
165 |
|
|
166 |
|
* libraries/thuban/wxproj.cpp (draw_polygon_shape) |
167 |
|
(point_in_polygon_shape, shape_centroid): Raise an exception if |
168 |
|
the shape can't be read. Previously invalid shape ids would lead |
169 |
|
to a segfault. |
170 |
|
|
171 |
|
* test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id): |
172 |
|
New. test whether an exception is raised for invalid shape ids |
173 |
|
|
174 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
175 |
|
|
176 |
|
* Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat' |
177 |
|
as alias for 'latlong'. |
178 |
|
|
179 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat' |
180 |
|
as alias for 'latlong'. |
181 |
|
|
182 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
183 |
|
|
184 |
|
* Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set |
185 |
|
the projection even for the UnknownPanel. |
186 |
|
(UnknownProjPanel.__init__): Define the text and create the textctrl |
187 |
|
widget. |
188 |
|
(UnknownProjPanel._DoLayout): Replaced static text widget by the |
189 |
|
textctrl created in __init__. |
190 |
|
(UnknownProjPanel.SetProjection): Set the text for the text ctrl |
191 |
|
including the parameters of the projection. |
192 |
|
|
193 |
2003-10-24 Jan-Oliver Wagner <[email protected]> |
2003-10-24 Jan-Oliver Wagner <[email protected]> |
194 |
|
|
195 |
* Resources/Projections/epsg.proj: New. This is a list of |
* Resources/Projections/epsg.proj: New. This is a list of |