1 |
|
2005-05-09 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/support.py (FileLoadTestCase.filename): Fix doc-string. |
4 |
|
|
5 |
|
2005-05-09 Bernhard Herzog <[email protected]> |
6 |
|
|
7 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the |
8 |
|
connection to autoconnect. Fixes RT#3148. |
9 |
|
|
10 |
|
* test/test_postgis_db.py |
11 |
|
(TestPostGISSpecialCases.test_simple_error_handling): New test |
12 |
|
that attempts to reproduce RT#3148. |
13 |
|
|
14 |
|
2005-05-06 Jonathan Coles <[email protected]> |
15 |
|
|
16 |
|
Add support for saving and loading the opacity and mask type |
17 |
|
properties of RasterLayers. Also add support for proper use |
18 |
|
of alpha information while drawing images not in 'RAW' format. |
19 |
|
If transparency in an image format (e.g, PNG) is supported by |
20 |
|
wxWidgets then the image would previously have been draw with |
21 |
|
transparent regions, but the opaque regions would have been |
22 |
|
unaffected by a change in the layer's opacity. This patch |
23 |
|
corrects the problem. |
24 |
|
|
25 |
|
* Thuban/Model/layer.py (RasterLayer): Added opacity and |
26 |
|
masktype parameters to the constructor, and set the |
27 |
|
appropriate variables to those values. |
28 |
|
|
29 |
|
* Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added |
30 |
|
code to read the opacity and mask type of the layer and construct |
31 |
|
a new layer with the additional parameters. |
32 |
|
|
33 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Added code |
34 |
|
to save the opacity and mask type of a layer. |
35 |
|
|
36 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass |
37 |
|
the opacity of the layer to draw_raster_data rather than the layer. |
38 |
|
(BaseRenderer.draw_raster_data): Remove the layer parameter because |
39 |
|
the function doesn't need to know about the layer. Add the optional |
40 |
|
opacity parameter whose default is 1.0. Add 'PNG' as a supported |
41 |
|
graphics format. |
42 |
|
|
43 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed |
44 |
|
signature to match that in BaseRenderer. Use the new opacity argument |
45 |
|
in place of calling layer.Opacity(). In the case where the |
46 |
|
format is not 'RAW', alpha_data is None and the loaded image has |
47 |
|
alpha information, use the file's alpha information. This is |
48 |
|
still subject to the layer's opacity setting. |
49 |
|
|
50 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
51 |
|
Fixed signature to match that in BaseRenderer. |
52 |
|
|
53 |
|
* test/test_load.py (TestRasterLayer): Change file_contents to |
54 |
|
include opacity and masktype variables. |
55 |
|
(TestRasterLayer.test): Include tests for opacity and masktype |
56 |
|
changes. |
57 |
|
|
58 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Restructure |
59 |
|
test to cover a variety of combinations of masktype and opacity |
60 |
|
settings. |
61 |
|
|
62 |
2005-05-02 Jan-Oliver Wagner <[email protected]> |
2005-05-02 Jan-Oliver Wagner <[email protected]> |
63 |
|
|
64 |
* debian/rules: add --use-wx-python-swig-hack |
* debian/rules: add --use-wx-python-swig-hack |
124 |
|
|
125 |
2005-04-23 Russell Nelson <[email protected]> |
2005-04-23 Russell Nelson <[email protected]> |
126 |
|
|
127 |
* Changed the way the previous tool is remembered, so that |
* Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the |
128 |
middle-button panning works even if you haven't selected a tool. |
way the previous tool is remembered, so that middle-button |
129 |
|
panning works even if you haven't selected a tool. |
130 |
|
|
131 |
2005-04-11 Bernhard Herzog <[email protected]> |
2005-04-11 Bernhard Herzog <[email protected]> |
132 |
|
|