1 |
|
2003-10-29 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/baserenderer.py |
4 |
|
(BaseRenderer.draw_shape_layer_incrementally): Speed up the |
5 |
|
special case of a classification that only has the default group |
6 |
|
|
7 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* po/fr.po, po/es.po: Updated translations from Daniel Calvelo |
10 |
|
|
11 |
|
* po/de.po: Update. |
12 |
|
|
13 |
|
* Thuban/UI/application.py |
14 |
|
(ThubanApplication.ShowExceptionDialog): Handle translation of the |
15 |
|
dialog message properly |
16 |
|
|
17 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
18 |
|
|
19 |
|
Rework how localization works so that we use wx's translation |
20 |
|
functions when running Thuban as a normal application but not when |
21 |
|
we don't need any UI, such as in the test suite. See the comment |
22 |
|
in Thuban/__init__.py for details |
23 |
|
|
24 |
|
* Thuban/__init__.py (_): Add one level of indirection to make the |
25 |
|
translation handling more flexible and to make it possible to use |
26 |
|
either wx's translation services or not. |
27 |
|
(gettext_identity, translation_function_installed) |
28 |
|
(install_translation_function): New function to help with this |
29 |
|
|
30 |
|
* Thuban/UI/__init__.py: Install the wx specific translation |
31 |
|
function if it's OK to do that |
32 |
|
|
33 |
|
* test/support.py (initthuban): Install a dummy translation |
34 |
|
function so that importing Thuban.UI doesn't install a wx specific |
35 |
|
one for which would need to import wxPython |
36 |
|
|
37 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* HOWTO-Release: Source archives should be created first and the |
40 |
|
binary packages should be created from the source archives. |
41 |
|
There's an official debian package now so there's no need to test |
42 |
|
the rpm on debian anymore |
43 |
|
|
44 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
|
Several rendering changes: |
47 |
|
|
48 |
|
- Render the selection into a separate bitmap so that only that |
49 |
|
bitmap needs to be redrawn when the selection changes |
50 |
|
|
51 |
|
- Render incrementally showing previews and allowing interaction |
52 |
|
before rendering is complete |
53 |
|
|
54 |
|
- Update the renderer interface a bit. Most parameters of |
55 |
|
RenderMap are now parameters of the constructor |
56 |
|
|
57 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map |
58 |
|
and the update region as parameters. Update the doc-string |
59 |
|
(BaseRenderer.render_map_incrementally): New. Generator function |
60 |
|
to renders the map incrementally |
61 |
|
(BaseRenderer.render_map): Remove the map argument (it's now in |
62 |
|
the constructor) and simply iterate over the |
63 |
|
render_map_incrementally generator to draw the map. |
64 |
|
(BaseRenderer.draw_shape_layer_incrementally) |
65 |
|
(BaseRenderer.draw_shape_layer): Renamed to |
66 |
|
draw_shape_layer_incrementally and changed into a generator that |
67 |
|
yields True every 500 shapes. Used by render_map_incrementally to |
68 |
|
render shape layers incrementally |
69 |
|
|
70 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the |
71 |
|
map and region parameters which are now in the constructor |
72 |
|
(ScreenRenderer.RenderMapIncrementally): New. Public frontend for |
73 |
|
the inherited render_map_incrementally. |
74 |
|
(BaseRenderer.draw_shape_layer): Removed. |
75 |
|
(ScreenRenderer.draw_selection_incrementally): New. The selection |
76 |
|
drawing part of the removed draw_shape_layer as a generator |
77 |
|
(ScreenRenderer.layer_shapes): Update because of the region |
78 |
|
parameter change |
79 |
|
(ExportRenderer.__init__): New. Extend the inherited constructor |
80 |
|
with the destination region for the drawing |
81 |
|
(ExportRenderer.RenderMap): Removed the map and region parameters |
82 |
|
which are now in the constructor |
83 |
|
|
84 |
|
* Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a |
85 |
|
bitmap suitable for a preview in a tool |
86 |
|
(CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the |
87 |
|
bitmap |
88 |
|
(MapPrintout.draw_on_dc): Adapt to new renderer interface |
89 |
|
(MapCanvas.OnPaint): Handle drawing the selection bitmap if it |
90 |
|
exists |
91 |
|
(MapCanvas.OnIdle): Update the logic to deal with incremental |
92 |
|
rendering and the selection bitmap |
93 |
|
(MapCanvas._do_redraw): Handle the instantiation of the render |
94 |
|
iterator and the redraws during rendering |
95 |
|
(MapCanvas._render_iterator): New. Generator to incrementally |
96 |
|
redraw both bitmaps |
97 |
|
(MapCanvas.Export): Adapt to new renderer interface. |
98 |
|
(MapCanvas.full_redraw): Reset the selection bitmap and the |
99 |
|
renderer iterator too |
100 |
|
(MapCanvas.redraw_selection): New. Force a redraw of the selection |
101 |
|
bitmap |
102 |
|
(MapCanvas.shape_selected): Only redraw the selection bitmap |
103 |
|
|
104 |
|
* test/test_baserenderer.py |
105 |
|
(TestBaseRenderer.test_polygon_no_projection) |
106 |
|
(TestBaseRenderer.test_raster_no_projection) |
107 |
|
(TestBaseRenderer.test_point_map_projection) |
108 |
|
(TestBaseRenderer.test_point_layer_and_map_projection) |
109 |
|
(TestBaseRenderer.test_point_layer_projection) |
110 |
|
(TestBaseRenderer.test_point_with_classification): Adapt to new |
111 |
|
renderer interface |
112 |
|
|
113 |
|
2003-10-24 Bernhard Herzog <[email protected]> |
114 |
|
|
115 |
|
* libraries/thuban/wxproj.cpp (draw_polygon_shape) |
116 |
|
(point_in_polygon_shape, shape_centroid): Raise an exception if |
117 |
|
the shape can't be read. Previously invalid shape ids would lead |
118 |
|
to a segfault. |
119 |
|
|
120 |
|
* test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id): |
121 |
|
New. test whether an exception is raised for invalid shape ids |
122 |
|
|
123 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
124 |
|
|
125 |
|
* Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat' |
126 |
|
as alias for 'latlong'. |
127 |
|
|
128 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat' |
129 |
|
as alias for 'latlong'. |
130 |
|
|
131 |
2003-10-24 Jan-Oliver Wagner <[email protected]> |
2003-10-24 Jan-Oliver Wagner <[email protected]> |
132 |
|
|
133 |
* Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set |
* Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set |