1 |
|
2003-05-05 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
This is namely a collection of UI updates to improve user interactivity. |
4 |
|
Tabbing between controls now exists and you can use ESC to close dialog |
5 |
|
boxes; ENTER will active the default button. |
6 |
|
|
7 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the |
8 |
|
order that the controls are created so that tabbing works correctly. |
9 |
|
(ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the |
10 |
|
wxDialog can handle the default button correctly. |
11 |
|
(ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the |
12 |
|
same reasons as for OnOK. |
13 |
|
(GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor |
14 |
|
when we ask the table for the maximum/minimum values of a field |
15 |
|
which could take a very long time. |
16 |
|
|
17 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange the |
18 |
|
order that the controls are created so that tabbing works correctly. |
19 |
|
(SelectPropertiesDialog.__init__): Rearrange the order that the |
20 |
|
controls are created so that tabbing works correctly. |
21 |
|
|
22 |
|
* Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it |
23 |
|
to derive from a wxDialog but behave like the original implementation |
24 |
|
which was derived from a wxFrame. wxDialog provides useful key |
25 |
|
handling functionality like ESC calling OnCancel and ENTER calling |
26 |
|
OnOK which is lost with wxFrame. |
27 |
|
|
28 |
|
* Thuban/UI/mainwindow.py: Add "..." to menu items that will open |
29 |
|
new dialogs. |
30 |
|
|
31 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the |
32 |
|
order that the controls are created so that tabbing works correctly. |
33 |
|
(ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour. |
34 |
|
(ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour. |
35 |
|
(ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour. |
36 |
|
(ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we |
37 |
|
can provide the "UK National Grid" as a default projection. |
38 |
|
(UTMPanel.__init__): Rearrange the order that the controls are |
39 |
|
created so that tabbing works correctly. |
40 |
|
|
41 |
|
2003-05-05 Bernhard Herzog <[email protected]> |
42 |
|
|
43 |
|
* extensions/thuban/wxproj.cpp: Fix some of the comments. |
44 |
|
(project_point): If a map projection but no layer projection is |
45 |
|
given, convert degrees to radians before applying the map |
46 |
|
projection. |
47 |
|
|
48 |
|
* Thuban/UI/tableview.py (TableGrid.disallow_messages) |
49 |
|
(TableGrid.allow_messages): New methods to make it possible to |
50 |
|
inhibit message sending. |
51 |
|
(TableGrid.issue): Only send the message if not inhibited. |
52 |
|
(LayerTableGrid.select_shape): Use the new methods to make sure |
53 |
|
that no ROW_SELECTED message is sent while we're updating the |
54 |
|
selected rows to match the selected shapes. |
55 |
|
|
56 |
|
2003-05-02 Jan-Oliver Wagner <[email protected]> |
57 |
|
|
58 |
|
Implementation of MemoryTable. |
59 |
|
|
60 |
|
* Thuban/Model/table.py (MemoryTable): New. Quite simple table |
61 |
|
implementation that operates on a list of tuples. All of the data |
62 |
|
are kept in the memory. |
63 |
|
|
64 |
|
* test/test_table.py (MemoryTableTest): New. |
65 |
|
|
66 |
|
* test/test_transientdb.py (SimpleTable): Removed. |
67 |
|
(TestTransientTable.test_transient_joined_table, |
68 |
|
(TestTransientTable.test_transient_table_read_twice): Replaced |
69 |
|
SimpleTable by MemoryTable. |
70 |
|
|
71 |
|
2003-04-30 Jonathan Coles <[email protected]> |
72 |
|
|
73 |
|
* Data/iceland_sample.thuban: Now contains correct projections |
74 |
|
for each of the layers. |
75 |
|
|
76 |
|
* Resources/Projections/defaults.proj: Geographic projection |
77 |
|
contains unit conversion parameter. |
78 |
|
|
79 |
|
2003-04-30 Jonathan Coles <[email protected]> |
80 |
|
|
81 |
|
The most important part of this putback is the projection changes. |
82 |
|
It should now be possible to specify the projection that a layer |
83 |
|
is in and then specify a different projection for the map. The |
84 |
|
projection dialog has an extra parameter for a geographic projection |
85 |
|
which lets the user select if the input is in degrees or radians. |
86 |
|
|
87 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring |
88 |
|
to say that the parameter is a tuple of unprojected |
89 |
|
points (which is what the callers to this method were assuming). |
90 |
|
Also, since the points are unprojected we need to projected them. |
91 |
|
|
92 |
|
* Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp, |
93 |
|
LegendTree.MoveCurrentItemDown): If the layer or any of the layer's |
94 |
|
groups are selected, move the layer up/down. Fixes RTbug #1833. |
95 |
|
|
96 |
|
* Thuban/UI/mainwindow.py: Move menu item map_rename up. |
97 |
|
|
98 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing |
99 |
|
parameter in call to SetClientData. |
100 |
|
(GeoPanel): Add support for selecting the units that the |
101 |
|
source data is in (Radians or Degrees). |
102 |
|
|
103 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize |
104 |
|
the rendering loop by reducing the number of if's, removing the |
105 |
|
unnecessary try/except block, and checking if the old group |
106 |
|
is the same as the new one (which happens a lot if there is |
107 |
|
no classification, or lots of shapes are in the same group). |
108 |
|
|
109 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block |
110 |
|
around the redraw routine to try to catch problems that the user |
111 |
|
may create by selecting invalid projections for the data set and |
112 |
|
map. Clears the display if there are any problems and prints the |
113 |
|
error. |
114 |
|
(MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled |
115 |
|
rectangle. |
116 |
|
|
117 |
|
* extensions/thuban/wxproj.cpp (project_point): First invert the |
118 |
|
supplied point (which should be in projected coordinates) using |
119 |
|
the layer's projection and then project the point using the |
120 |
|
map's projection. |
121 |
|
(project_points): Use project_point() to project each point. |
122 |
|
|
123 |
|
2003-04-30 Jan-Oliver Wagner <[email protected]> |
124 |
|
|
125 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug: |
126 |
|
don't set the Classification to None if the classfication field |
127 |
|
is None (ie only a DEFAULT). |
128 |
|
|
129 |
|
2003-04-30 Bernhard Herzog <[email protected]> |
130 |
|
|
131 |
|
* Thuban/UI/view.py: Fix some typos. |
132 |
|
|
133 |
|
* Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do |
134 |
|
not pop up the dialog if the selection becomes empty (this could |
135 |
|
happen if e.g. a new selection is opened while the identify tool |
136 |
|
is active and dialog had been closed) |
137 |
|
|
138 |
|
2003-04-30 Bernhard Herzog <[email protected]> |
139 |
|
|
140 |
|
* Thuban/Model/transientdb.py (TransientTableBase.__init__): New |
141 |
|
instance variable read_record_last_result |
142 |
|
(TransientTableBase.read_record): Make sure reading the same |
143 |
|
record twice works. The implementation uses the new instance |
144 |
|
variable read_record_last_result |
145 |
|
|
146 |
|
* test/test_transientdb.py |
147 |
|
(TestTransientTable.test_transient_table_read_twice): New test |
148 |
|
case for the above bug-fix. |
149 |
|
|
150 |
|
2003-04-29 Jonathan Coles <[email protected]> |
151 |
|
|
152 |
|
* Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832. |
153 |
|
|
154 |
|
* Thuban/UI/classgen.py: Remove all uses of Str2Num. |
155 |
|
|
156 |
|
* Thuban/UI/classifier.py: Remove all uses of Str2Num. |
157 |
|
(ClassTable.SetValueAsCustom): Rename keyword argument in |
158 |
|
ClassGroup* constructors to match argument name. |
159 |
|
|
160 |
|
2003-04-29 Bernhard Herzog <[email protected]> |
161 |
|
|
162 |
|
* Thuban/Model/session.py (Session.Destroy): Explicitly close the |
163 |
|
transient DB if it exists to make sure it doesn't leave a journal |
164 |
|
file in the temp directory. |
165 |
|
|
166 |
|
* Thuban/Model/transientdb.py (TransientDatabase.close): Set |
167 |
|
self.conn to None after closing the connection to make sure it's |
168 |
|
not closed twice |
169 |
|
|
170 |
2003-04-29 Jonathan Coles <[email protected]> |
2003-04-29 Jonathan Coles <[email protected]> |
171 |
|
|
172 |
Add a visible parameter in the layer XML tag. The default value is |
Add a visible parameter in the layer XML tag. The default value is |
173 |
"true". If anything other than "false" is specified we also assume |
"true". If anything other than "false" is specified we also assume |
174 |
"true". |
"true". Addresses RTbug #1025. |
175 |
|
|
176 |
* Doc/thuban.dtd: Add visible parameter to a layer. |
* Doc/thuban.dtd: Add visible parameter to a layer. |
177 |
|
|