1 |
|
2002-02-04 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a |
4 |
|
RecordGrid in the identifyview. |
5 |
|
(IdentifyView.__init__): Use IdentifyGridCtrl instead of |
6 |
|
IdentifyListCtrl. The grid allows editing of the values. |
7 |
|
|
8 |
|
* Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes |
9 |
|
implementing a grid for a single row of a thuban table. |
10 |
|
|
11 |
|
* Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all |
12 |
|
layers by default. Easier to use than the previous default of only |
13 |
|
searching through the select layer which meant that if no layer |
14 |
|
was selected, you couldn't select a shape. |
15 |
|
|
16 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Fix typo |
17 |
|
|
18 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the |
19 |
|
stroke_width attribute |
20 |
|
|
21 |
|
* Thuban/Model/save.py (save_session): Write the new stroke_width |
22 |
|
attribute |
23 |
|
|
24 |
|
* Thuban/Model/load.py (ProcessSession.startElement): Read the |
25 |
|
stroke_width attribute |
26 |
|
|
27 |
|
* Thuban/Model/layer.py (Layer.__init__): New parameter and |
28 |
|
instance variable stroke_width |
29 |
|
(Layer.SetStrokeWidth): Set the stroke_width. |
30 |
|
|
31 |
|
2002-02-01 Bernhard Herzog <[email protected]> |
32 |
|
|
33 |
|
* extensions/thuban/wxproj.cpp (project_points): Fix two |
34 |
|
off-by-one errors in the last loop that joins the various parts |
35 |
|
together. |
36 |
|
|
37 |
|
2002-01-14 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* setup.py (data_dist.make_distribution): Fix some typos |
40 |
|
|
41 |
|
2001-09-18 Bernhard Herzog <[email protected]> |
42 |
|
|
43 |
|
* README: Slight tweaking in preparation for the 0.1 release |
44 |
|
|
45 |
|
* setup.cfg: Add section for sdist to create both tgz and zip |
46 |
|
archives |
47 |
|
|
48 |
|
* setup.py: increase version number to 0.1 |
49 |
|
(data_dist): New command class for data distribution |
50 |
|
|
51 |
|
|
52 |
|
2001-09-14 Bernhard Herzog <[email protected]> |
53 |
|
|
54 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
55 |
|
Handle the case of no layer (i.e. layer is None) properly. |
56 |
|
|
57 |
|
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
58 |
|
Set the initial selection of the combo boxes to reflect the |
59 |
|
projection we're starting with in a way that works on windows, |
60 |
|
too. |
61 |
|
|
62 |
|
* Thuban/Lib/connector.py (Connector.print_connections): Print the |
63 |
|
puiblisher's ids in hex to make it easier to compare them to the |
64 |
|
standard repr of python methods |
65 |
|
|
66 |
|
* Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer |
67 |
|
messages |
68 |
|
|
69 |
|
2001-09-13 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to |
72 |
|
deselect the layer if no layer is selected |
73 |
|
|
74 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to |
75 |
|
idle time when there actually is something to draw. If there's |
76 |
|
nothing to draw simply clear the window |
77 |
|
(MapCanvas.do_redraw): Call dc.EndDrawing and add some comments. |
78 |
|
(MapCanvas.SetMap): force a redraw in all cases because |
79 |
|
FitMapToWindow doesn't always do it. |
80 |
|
(MapCanvas.ZoomFactor): Add an optional parameter, center, to |
81 |
|
specify the point to move into the center of the window |
82 |
|
(ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't |
83 |
|
dragged, zoon in/out by a factor of 2 |
84 |
|
(MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing |
85 |
|
index, i.e. reversed drawing order) so that objects appearing to |
86 |
|
be in from of others are selected first. This is probably mostly |
87 |
|
relevant for point shapes where the symbols used may overlap |
88 |
|
|
89 |
|
* Thuban/Model/session.py (create_empty_session): Unset the |
90 |
|
modified bit before returning it |
91 |
|
|
92 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession): Use |
93 |
|
create_empty_session session to create the new, empty session. |
94 |
|
|
95 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of |
96 |
|
the tool bitmaps. |
97 |
|
(MainWindow.OnClose, MainWindow.save_modified_session): Separate |
98 |
|
the code that asks whether the session should be saved into the |
99 |
|
new method save_modified_session. |
100 |
|
(MainWindow.OpenSession, MainWindow.NewSession): Use the new |
101 |
|
method to save modified session here too. |
102 |
|
|
103 |
|
2001-09-11 Bernhard Herzog <[email protected]> |
104 |
|
|
105 |
|
* setup.py (InnoIconItem): fix typo |
106 |
|
|
107 |
|
(thuban_bdist_inno.run): |
108 |
|
(bdist_inno.run): Move the decision not to create symlinks on |
109 |
|
non-nt platforms to thuban_bdist_inno and do it unconditinally |
110 |
|
since we never want to create the symlinks here |
111 |
|
|
112 |
|
2001-09-10 Bernhard Herzog <[email protected]> |
113 |
|
|
114 |
|
* Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the |
115 |
|
identify view immediately |
116 |
|
|
117 |
|
* Thuban/UI/controls.py: New file with two classes RecordListCtrl |
118 |
|
and SelectableRecordListCtrl that implement the code shared by the |
119 |
|
identify view and the label dialog |
120 |
|
|
121 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the |
122 |
|
new class RecordListCtrl |
123 |
|
|
124 |
|
* Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the |
125 |
|
return value of GetValue is None instead of using it as a boolean |
126 |
|
directly so that Zero numbers are handled properly. |
127 |
|
(LabelListCtrl): Derive from the new class |
128 |
|
SelectableRecordListCtrl |
129 |
|
|
130 |
|
* Thuban/UI/proj4dialog.py (Proj4Dialog.__init__): |
131 |
|
(Proj4Dialog.dialogLayout): Make the window resizable and set the |
132 |
|
size of the text control explicitly to make the sizers work on |
133 |
|
both Windows and X. |
134 |
|
|
135 |
|
2001-09-07 Bernhard Herzog <[email protected]> |
136 |
|
|
137 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter |
138 |
|
that can limit the search to the currently selected layer. |
139 |
|
(MapCanvas.SelectShapeAt): Make sure that the currently selected |
140 |
|
layer stays selected even when no shape is found |
141 |
|
(MapCanvas.FitRectToWindow): If the rect has zero with or zero |
142 |
|
height do nothing (avoids zero division errors) |
143 |
|
|
144 |
|
2001-09-06 Bernhard Herzog <[email protected]> |
145 |
|
|
146 |
|
* Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__): |
147 |
|
Correct the spelling of SessionTreeCtrl. dabbrev is too damn |
148 |
|
convenient :-) |
149 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce |
150 |
|
a new instvar layer_to_item to map layers to tree items |
151 |
|
(SessionTreeCtrl.layer_selected): Select the appropriate tree item |
152 |
|
to match the current selection in the interactor |
153 |
|
|
154 |
|
* Thuban/UI/interactor.py (Interactor.SelectedLayer): |
155 |
|
(Interactor.HasSelectedLayer): New methods to query the current |
156 |
|
selection |
157 |
|
|
158 |
|
* Thuban/UI/mainwindow.py (MainWindow.current_layer): |
159 |
|
(MainWindow.has_selected_layer): Simply call the appropriate |
160 |
|
interactor method |
161 |
|
|
162 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): |
163 |
|
(MainWindow.LayerShowTable): |
164 |
|
(MainWindow.identify_view_on_demand): Store the interactor in an |
165 |
|
instvar and use that reference instead of going through main.app |
166 |
|
|
167 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
168 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
169 |
|
* Thuban/UI/main.py (main): Create the session tree view in main |
170 |
|
with the new mainwindow method ShowSessionTree and not directly |
171 |
|
the application's OnInit method |
172 |
|
|
173 |
|
* Thuban/UI/tree.py (myTreeCtrlPanel): |
174 |
|
(SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a |
175 |
|
TreeCtrl isntead of a panel. This affects most method since we now |
176 |
|
refer to self instead of self.tree |
177 |
|
(SessionTreeView): New class implementing a non-modal dialog |
178 |
|
showing the session tree. |
179 |
|
|
180 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the |
181 |
|
layer to the tableview dialog. |
182 |
|
|
183 |
|
* Thuban/UI/tableview.py: Add some doc-strings |
184 |
|
(TableGrid): |
185 |
|
(TableGrid.OnRangeSelect): |
186 |
|
(TableGrid.OnSelectCell): |
187 |
|
(TableFrame.__init__): |
188 |
|
(TableFrame.row_selected): |
189 |
|
Selecting rows in the grid view now updates the selected shapes |
190 |
|
through the TableFrame. To achieve this we derive TableGrid from |
191 |
|
Publisher and introduce the message type ROW_SELECTED which the |
192 |
|
TableFrame subscribes to and which is issued by OnRangeSelect and |
193 |
|
OnSelectCell |
194 |
|
|
195 |
|
(DataTable.SelectRow): Removed because it's no longer needed in |
196 |
|
the row/shape selection scheme |
197 |
|
|
198 |
|
* Thuban/UI/dialogs.py: New file implementing common classes for |
199 |
|
dialogs |
200 |
|
|
201 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
202 |
|
the SELECTED_SHAPE message anymore. This is now handled by the |
203 |
|
parent. |
204 |
|
(TableGrid.select_shape): Only update the selection if the shape |
205 |
|
is not None. |
206 |
|
(TableFrame): Inherit from the new NonModalDialog class. |
207 |
|
(TableFrame.__init__, TableFrame.select_shape): Handle the |
208 |
|
SELECT_SHAPE message. |
209 |
|
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
210 |
|
SELECT_SHAPE |
211 |
|
|
212 |
|
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
213 |
|
(MainWindow.add_dialog): |
214 |
|
(MainWindow.dialog_open): |
215 |
|
(MainWindow.remove_dialog): |
216 |
|
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
217 |
|
of opened non-modal dialogs. |
218 |
|
|
219 |
|
(MainWindow.__init__): Initialize the new non-modal dictionary |
220 |
|
management code |
221 |
|
(MainWindow.LayerShowTable): maintain separate dialogs for each |
222 |
|
table using the non-modal dialog management code to only open a |
223 |
|
view once for each table. |
224 |
|
|
225 |
|
(MainWindow.IdentifyTool): |
226 |
|
(MainWindow.__init__): |
227 |
|
(MainWindow.identify_view_on_demand): Don't open the identify view |
228 |
|
in IdentifyTool anymore. This will be done automatically by the |
229 |
|
new method identify_view_on_demand which handles the |
230 |
|
SELECTED_SHAPE message so that the identify view will be opened on |
231 |
|
demand |
232 |
|
|
233 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
234 |
|
the interactor argument. The SELECTED_SHAPE message is now handled |
235 |
|
by the parent. |
236 |
|
(IdentifyView.__init__): Add the interactor argument so that we |
237 |
|
can handle the SELECTED_SHAPE message here |
238 |
|
(IdentifyView.selected_shape): New method to handle the |
239 |
|
SELECTED_SHAPE messages |
240 |
|
|
241 |
|
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
242 |
|
NonModalDialog class |
243 |
|
(IdentifyView.OnClose): Extend the inherited version to |
244 |
|
unsubscribe SELECT_SHAPE |
245 |
|
|
246 |
|
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
247 |
|
|
248 |
|
2001-09-05 Bernhard Herzog <[email protected]> |
249 |
|
|
250 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
251 |
|
|
252 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
253 |
|
interactor to pass through to the MapCanvas |
254 |
|
|
255 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
256 |
|
argument to the MainWindow constructor to get rid of the ugly hack |
257 |
|
that made main.app available early just so that the mapcanvas |
258 |
|
could access the interactor object. |
259 |
|
|
260 |
2001-09-04 Bernhard Herzog <[email protected]> |
2001-09-04 Bernhard Herzog <[email protected]> |
261 |
|
|
262 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |