1 |
|
2003-06-17 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
Backport from HEAD. |
4 |
|
|
5 |
|
The view should respond to layer projection |
6 |
|
changed events to update the display. Changes to a projection |
7 |
|
should not cause the map to be set to full extent. |
8 |
|
|
9 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
10 |
|
current_map_proj to remember the current map projection so that |
11 |
|
when the projection changes we know what the previous projection |
12 |
|
was. |
13 |
|
(MapCanvas.SetMap): Unsubscribe and subscribe to |
14 |
|
LAYER_PROJECTION_CHANGED events. |
15 |
|
(MapCanvas.projection_changed): Split into two methods that respond |
16 |
|
to map and layer projection changes. |
17 |
|
(MapCanvas.map_projection_changed): New. Takes the current view and |
18 |
|
projects it using the new projection. This does not cause the |
19 |
|
map to be redrawn at full extent. |
20 |
|
(MapCanvas.layer_projection_changed): New. Cause a redraw which |
21 |
|
will draw each layer in its new projection. |
22 |
|
|
23 |
|
2003-06-16 Frank Koormann <[email protected]> |
24 |
|
|
25 |
|
Fix problem of hidden properties dialog under windows after double |
26 |
|
click on layer tree: |
27 |
|
The tree control always gets an Expanded / Collapsed event after |
28 |
|
the ItemActivated on double click, which raises the main window again. We add a second ItemActivated event to the queue, which simply |
29 |
|
raises the already displayed window. |
30 |
|
|
31 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
32 |
|
raiseProperties initialized to prevent endless loops |
33 |
|
(LegendTree._OnItemActivated): Depending on self.raiseProperties |
34 |
|
simply raise the properties or open the dialog and issue a second |
35 |
|
event. |
36 |
|
|
37 |
|
2003-06-16 Frank Koormann <[email protected]> |
38 |
|
|
39 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Set max_scale to |
40 |
|
2147483648.0 / max_len (which is sufficient for GREAT-ER). |
41 |
|
For HEAD in the future a more flexible concept has to be developed |
42 |
|
determining the rendering of "large" objects. |
43 |
|
|
44 |
|
2003-06-16 Jonathan Coles <[email protected]> |
45 |
|
|
46 |
|
Backport from HEAD. |
47 |
|
|
48 |
|
Fix a problem under Windows whereby if the user double-clicks on a |
49 |
|
layer in the legend that tree item will expand or collapse as well |
50 |
|
as open the layer properties dialog. The state of the tree item |
51 |
|
should not be affected. |
52 |
|
|
53 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Add instance variable |
54 |
|
preventExpandCollapse and subscribe to expanding and collapsing |
55 |
|
events. |
56 |
|
(LegendTree.OnItemExpandCollapse): New. Responds to expanding and |
57 |
|
collapsing events and will veto the event if it has been triggered |
58 |
|
by the user double clicking on a layer. |
59 |
|
(LegendTree._OnItemActivated): Set preventExpandCollapse to indicate |
60 |
|
that an expanding/collapsing event should be vetoed. |
61 |
|
|
62 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
63 |
|
|
64 |
|
Backport from HEAD. |
65 |
|
|
66 |
|
* Thuban/UI/classifier.py (Classifier.map_layers_removed) |
67 |
|
(Classifier.layer_shapestore_replaced, Classifier.OnClose): |
68 |
|
Unsubscribe the messages in OnClose and not in map_layers_removed |
69 |
|
or layer_shapestore_replaced to make sure it always happens when |
70 |
|
the dialog is closed. |
71 |
|
|
72 |
|
2003-06-13 Jonathan Coles <[email protected]> |
73 |
|
|
74 |
|
[NOTE: This is a back-port from the current CVS head] |
75 |
|
|
76 |
|
This puts back a fix for Windows where a panel is needed so that |
77 |
|
the background of the table view appears correctly. |
78 |
|
|
79 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Add a panel |
80 |
|
object that can be used by derived classes to place any |
81 |
|
controls (including the grid) onto. |
82 |
|
(QueryTableFrame.__init__): Use the panel as the parent window |
83 |
|
for all the controls. Reparent the grid so that the panel is |
84 |
|
the parent. Call UpdateStatusText() to correctly initialize |
85 |
|
the status bar. |
86 |
|
|
87 |
|
* Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits |
88 |
|
from wxFrame (as opposed to wxDialog like the other classes) |
89 |
|
but otherwise behaves like the other classes. This is needed |
90 |
|
for the TableView which isn't really a dialog and needs to |
91 |
|
have a status bar and control buttons. |
92 |
|
|
93 |
|
[NOTE: This is a back-port from the current CVS head] |
94 |
|
|
95 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Create an |
96 |
|
instance variable to keep track of how many rows are selected. |
97 |
|
Subscribe once to the the events we are interested in. |
98 |
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
99 |
|
hasn't been turned off. |
100 |
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
101 |
|
hasn't been turned off. |
102 |
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
103 |
|
as an event listener (which changes the event handler stack) |
104 |
|
simply set an instance variable to False. This is checked in |
105 |
|
the event handlers. |
106 |
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
107 |
|
selected rows. |
108 |
|
(TableFrame): Inherit from ThubanFrame so we can have a |
109 |
|
status bar and control buttons. |
110 |
|
(QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942. |
111 |
|
Explicitly set which items are selected in the operator choice and |
112 |
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
113 |
|
Subscribe to grid cell selection events so we can update the |
114 |
|
status bar. |
115 |
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
116 |
|
how many rows are in the grid, how many columns, and how many |
117 |
|
rows are selected. |
118 |
|
(QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell): |
119 |
|
Call UpdateStatusText when cells are (de)selected. |
120 |
|
(QueryTableFrame.OnQuery): Use the string value in the value |
121 |
|
combo if either the selected item index is 0 or if the string |
122 |
|
cannot be found in the predefined list (this happens if the |
123 |
|
user changes the text). Fixes RTbug #1940. |
124 |
|
Only turn off the grid event listeners if there a query comes |
125 |
|
back with a none empty list of ids. in the case that the list |
126 |
|
is empty this causes a grid.ClearSelection() call to actually |
127 |
|
clear the grid selection which causes the selected items in |
128 |
|
the map to be deselected. Fixes RTbug #1939. |
129 |
|
|
130 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
131 |
|
|
132 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
133 |
|
self.selected_shape with the current selection to make sure the |
134 |
|
contents of the dialog are up to date when it's shown for the |
135 |
|
first time. |
136 |
|
The dialog used to work without this by luck. The recent fix to |
137 |
|
the connector module 'broke' a 'feature' the identify view was |
138 |
|
relying on, i.e that subscribing to a message in response to |
139 |
|
receiving a message of that type would mean that the new |
140 |
|
subscriber would also be called for the same message. |
141 |
|
|
142 |
|
2003-06-12 Jonathan Coles <[email protected]> |
143 |
|
|
144 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
145 |
|
the scalebar if the current map has no projection set. |
146 |
|
|
147 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
148 |
|
projfilepath label to just the basename of the projection file |
149 |
|
rather than include the entire path. |
150 |
|
|
151 |
|
2003-06-11 Frank Koormann <[email protected]> |
152 |
|
|
153 |
|
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
154 |
|
update. |
155 |
|
|
156 |
2003-06-11 Frank Koormann <[email protected]> |
2003-06-11 Frank Koormann <[email protected]> |
157 |
|
|
158 |
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
* Thuban/Lib/fileutil.py (get_application_dir): New function to |