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