1 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/classifier.py (Classifier.OnClose) |
4 |
|
(Classifier.map_layers_removed) |
5 |
|
(Classifier.layer_shapestore_replaced): Unsubscribe the messages |
6 |
|
in OnClose and not in map_layers_removed or |
7 |
|
layer_shapestore_replaced to make sure it always happens when the |
8 |
|
dialog is closed |
9 |
|
|
10 |
|
2003-06-13 Jonathan Coles <[email protected]> |
11 |
|
|
12 |
|
This puts back a fix for Windows where a panel is needed so that |
13 |
|
the background of the table view appears correctly. |
14 |
|
|
15 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Add a panel |
16 |
|
object that can be used by derived classes to place any |
17 |
|
controls (including the grid) onto. |
18 |
|
(QueryTableFrame.__init__): Use the panel as the parent window |
19 |
|
for all the controls. Reparent the grid so that the panel is |
20 |
|
the parent. Call UpdateStatusText() to correctly initialize |
21 |
|
the status bar. |
22 |
|
|
23 |
|
2003-06-13 Jonathan Coles <[email protected]> |
24 |
|
|
25 |
|
* Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits |
26 |
|
from wxFrame (as opposed to wxDialog like the other classes) |
27 |
|
but otherwise behaves like the other classes. This is needed |
28 |
|
for the TableView which isn't really a dialog and needs to |
29 |
|
have a status bar and control buttons. |
30 |
|
|
31 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Create an |
32 |
|
instance variable to keep track of how many rows are selected. |
33 |
|
Subscribe once to the the events we are interested in. |
34 |
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
35 |
|
hasn't been turned off. |
36 |
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
37 |
|
hasn't been turned off. |
38 |
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
39 |
|
as an event listener (which changes the event handler stack) |
40 |
|
simply set an instance variable to False. This is checked in |
41 |
|
the event handlers. |
42 |
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
43 |
|
selected rows. |
44 |
|
(TableFrame): Inherit from ThubanFrame so we can have a |
45 |
|
status bar and control buttons. |
46 |
|
(QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942. |
47 |
|
Explicitly set which items are selected in the operator choice and |
48 |
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
49 |
|
Subscribe to grid cell selection events so we can update the |
50 |
|
status bar. |
51 |
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
52 |
|
how many rows are in the grid, how many columns, and how many |
53 |
|
rows are selected. |
54 |
|
(QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell): |
55 |
|
Call UpdateStatusText when cells are (de)selected. |
56 |
|
(QueryTableFrame.OnQuery): Use the string value in the value |
57 |
|
combo if either the selected item index is 0 or if the string |
58 |
|
cannot be found in the predefined list (this happens if the |
59 |
|
user changes the text). Fixes RTbug #1940. |
60 |
|
Only turn off the grid event listeners if there a query comes |
61 |
|
back with a none empty list of ids. in the case that the list |
62 |
|
is empty this causes a grid.ClearSelection() call to actually |
63 |
|
clear the grid selection which causes the selected items in |
64 |
|
the map to be deselected. Fixes RTbug #1939. |
65 |
|
|
66 |
|
* test/test_save.py (XMLWriterTest.Encode): Check return values. |
67 |
|
Fixes RTbug #1851. |
68 |
|
|
69 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
72 |
|
self.selected_shape with the current selection to make sure the |
73 |
|
contents of the dialog are up to date when it's shown for the |
74 |
|
first time. |
75 |
|
The dialog used to work without this by luck. The recent fix to |
76 |
|
the connector module 'broke' a 'feature' the identify view was |
77 |
|
relying on, i.e that subscribing to a message in response to |
78 |
|
receiving a message of that type would mean that the new |
79 |
|
subscriber would also be called for the same message. |
80 |
|
|
81 |
|
2003-06-12 Jonathan Coles <[email protected]> |
82 |
|
|
83 |
|
* extensions/thuban/gdalwarp.cpp: Removed debug printing as |
84 |
|
the image is rendered. Fixes RTbug #1937. |
85 |
|
|
86 |
|
2003-06-12 Jonathan Coles <[email protected]> |
87 |
|
|
88 |
|
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
89 |
|
user directory if it doesn't exist on a posix system. |
90 |
|
Fixes RTbug #1815. |
91 |
|
|
92 |
|
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
93 |
|
called to get_application_dir here, so that the directory |
94 |
|
will only be called if this method is invoked. |
95 |
|
|
96 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear |
97 |
|
the projfilepath if no projection is selected. |
98 |
|
|
99 |
|
2003-06-12 Jonathan Coles <[email protected]> |
100 |
|
|
101 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
102 |
|
the scalebar if the current map has no projection set. |
103 |
|
|
104 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
105 |
|
projfilepath label to just the basename of the projection file |
106 |
|
rather than include the entire path. |
107 |
|
|
108 |
|
* Thuban/Model/resource.py: Fix missed proj functions that |
109 |
|
needed to be renamed. |
110 |
|
|
111 |
|
2003-06-12 Jonathan Coles <[email protected]> |
112 |
|
|
113 |
|
* Thuban/Model/classification.py: Removed assert statements that |
114 |
|
tested if the variable was an instance of Color. |
115 |
|
|
116 |
|
* Thuban/Model/color.py (Color): Remove commented code that isn't |
117 |
|
used. |
118 |
|
(Transparent): Renamed from NoColor. Doesn't inherit from Color. |
119 |
|
Fixes RTbug #1835. |
120 |
|
(Transparent.__eq__, Transparent.__ne, Transparent.__repr): New. |
121 |
|
Needed now that the class doesn't inherit from Color. |
122 |
|
|
123 |
|
2003-06-12 Jonathan Coles <[email protected]> |
124 |
|
|
125 |
|
* test/test_save.py (XMLWriterTest.testEncode): Explicitly |
126 |
|
check unicode strings. |
127 |
|
|
128 |
|
* test/test_layer.py: Check for existence of gdal. |
129 |
|
|
130 |
|
2003-06-12 Jonathan Coles <[email protected]> |
131 |
|
|
132 |
|
* Thuban/Model/xmlreader.py: New. Contains the XMLReader class |
133 |
|
that was in load.py |
134 |
|
|
135 |
|
* Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class |
136 |
|
that was in save.py |
137 |
|
|
138 |
|
2003-06-12 Jonathan Coles <[email protected]> |
139 |
|
|
140 |
|
This is largely a collection of bug fixes. We also handle the |
141 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
142 |
|
classes were moved into there own files to resolve some circular |
143 |
|
import references and because they shouldn't really be in the |
144 |
|
file that is dediciated to reading/writing session files since |
145 |
|
they are also used elsewhere. |
146 |
|
|
147 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
148 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
149 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
150 |
|
|
151 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
152 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
153 |
|
Addresses RTbug #1877. |
154 |
|
|
155 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
156 |
|
xmlreader.py. |
157 |
|
|
158 |
2003-06-12 Jonathan Coles <[email protected]> |
2003-06-12 Jonathan Coles <[email protected]> |
159 |
|
|
160 |
This is largely a collection of bug fixes. We also handle the |
This is largely a collection of bug fixes. We also handle the |