/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1852 by bh, Tue Oct 21 14:17:40 2003 UTC revision 1878 by bh, Mon Oct 27 17:52:47 2003 UTC
# Line 1  Line 1 
1    2003-10-27  Bernhard Herzog  <[email protected]>
2    
3            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
4    
5            * po/de.po: Update.
6    
7            * Thuban/UI/application.py
8            (ThubanApplication.ShowExceptionDialog): Handle translation of the
9            dialog message properly
10    
11    2003-10-27  Bernhard Herzog  <[email protected]>
12    
13            Rework how localization works so that we use wx's translation
14            functions when running Thuban as a normal application but not when
15            we don't need any UI, such as in the test suite. See the comment
16            in Thuban/__init__.py for details
17    
18            * Thuban/__init__.py (_): Add one level of indirection to make the
19            translation handling more flexible and to make it possible to use
20            either wx's translation services or not.
21            (gettext_identity, translation_function_installed)
22            (install_translation_function): New function to help with this
23    
24            * Thuban/UI/__init__.py: Install the wx specific translation
25            function if it's OK to do that
26    
27            * test/support.py (initthuban): Install a dummy translation
28            function so that importing Thuban.UI doesn't install a wx specific
29            one for which would need to import wxPython
30    
31    2003-10-27  Bernhard Herzog  <[email protected]>
32    
33            * HOWTO-Release: Source archives should be created first and the
34            binary packages should be created from the source archives.
35            There's an official debian package now so there's no need to test
36            the rpm on debian anymore
37    
38    2003-10-27  Bernhard Herzog  <[email protected]>
39    
40            Several rendering changes:
41    
42             - Render the selection into a separate bitmap so that only that
43               bitmap needs to be redrawn when the selection changes
44    
45             - Render incrementally showing previews and allowing interaction
46               before rendering is complete
47    
48             - Update the renderer interface a bit. Most parameters of
49               RenderMap are now parameters of the constructor
50    
51            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
52            and the update region as parameters. Update the doc-string
53            (BaseRenderer.render_map_incrementally): New. Generator function
54            to renders the map incrementally
55            (BaseRenderer.render_map): Remove the map argument (it's now in
56            the constructor) and simply iterate over the
57            render_map_incrementally generator to draw the map.
58            (BaseRenderer.draw_shape_layer_incrementally)
59            (BaseRenderer.draw_shape_layer): Renamed to
60            draw_shape_layer_incrementally and changed into a generator that
61            yields True every 500 shapes. Used by render_map_incrementally to
62            render shape layers incrementally
63    
64            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
65            map and region parameters which are now in the constructor
66            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
67            the inherited render_map_incrementally.
68            (BaseRenderer.draw_shape_layer): Removed.
69            (ScreenRenderer.draw_selection_incrementally): New. The selection
70            drawing part of the removed draw_shape_layer as a generator
71            (ScreenRenderer.layer_shapes): Update because of the region
72            parameter change
73            (ExportRenderer.__init__): New. Extend the inherited constructor
74            with the destination region for the drawing
75            (ExportRenderer.RenderMap): Removed the map and region parameters
76            which are now in the constructor
77    
78            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
79            bitmap suitable for a preview in a tool
80            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
81            bitmap
82            (MapPrintout.draw_on_dc): Adapt to new renderer interface
83            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
84            exists
85            (MapCanvas.OnIdle): Update the logic to deal with incremental
86            rendering and the selection bitmap
87            (MapCanvas._do_redraw): Handle the instantiation of the render
88            iterator and the redraws during rendering
89            (MapCanvas._render_iterator): New. Generator to incrementally
90            redraw both bitmaps
91            (MapCanvas.Export): Adapt to new renderer interface.
92            (MapCanvas.full_redraw): Reset the selection bitmap and the
93            renderer iterator too
94            (MapCanvas.redraw_selection): New. Force a redraw of the selection
95            bitmap
96            (MapCanvas.shape_selected): Only redraw the selection bitmap
97    
98            * test/test_baserenderer.py
99            (TestBaseRenderer.test_polygon_no_projection)
100            (TestBaseRenderer.test_raster_no_projection)
101            (TestBaseRenderer.test_point_map_projection)
102            (TestBaseRenderer.test_point_layer_and_map_projection)
103            (TestBaseRenderer.test_point_layer_projection)
104            (TestBaseRenderer.test_point_with_classification): Adapt to new
105            renderer interface
106    
107    2003-10-24  Bernhard Herzog  <[email protected]>
108    
109            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
110            (point_in_polygon_shape, shape_centroid): Raise an exception if
111            the shape can't be read. Previously invalid shape ids would lead
112            to a segfault.
113    
114            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
115            New. test whether an exception is raised for invalid shape ids
116    
117    2003-10-24  Jan-Oliver Wagner <[email protected]>
118    
119            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
120            as alias for 'latlong'.
121    
122            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
123            as alias for 'latlong'.
124    
125    2003-10-24  Jan-Oliver Wagner <[email protected]>
126    
127            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
128            the projection even for the UnknownPanel.
129            (UnknownProjPanel.__init__): Define the text and create the textctrl
130            widget.
131            (UnknownProjPanel._DoLayout): Replaced static text widget by the
132            textctrl created in __init__.
133            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
134            including the parameters of the projection.
135            
136    2003-10-24  Jan-Oliver Wagner <[email protected]>
137    
138            * Resources/Projections/epsg.proj: New. This is a list of
139            EPSG codes with parameters for proj. The list has been
140            generated using devtools/create_epsg.py based on the
141            file nad/epsg of the proj 4.4.7 package. Four projection
142            definitions have been deleted as they are not accepted by proj:
143            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
144            and "HD72 / EOV".
145    
146    2003-10-22  Bernhard Herzog  <[email protected]>
147    
148            Some more tweaks to the projection dialog which should fix RT
149            #1886.
150    
151            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
152            the ProjFile's messages and call the base class methods correctly
153            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
154            flag on the newly selected item too. Otherwise some other item is
155            focused and the first time the focus is moved with the keyboard
156            the selection moves in unexpected ways.
157    
158            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
159            focus on the OK button, only on the projection list. That way the
160            list really has the focus initially
161            (ProjFrame.OnClose): Call the projection list's Destroy method to
162            make it unsubscribe all messages
163    
164  2003-10-21  Bernhard Herzog  <[email protected]>  2003-10-21  Bernhard Herzog  <[email protected]>
165    
166          Rework the projection dialog to fix a few bugs, including RT 2166          Rework the projection dialog to fix a few bugs, including RT 2166

Legend:
Removed from v.1852  
changed lines
  Added in v.1878

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26