1 |
|
2003-09-03 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
Backport from HEAD: Identify dialog now allows to stop |
4 |
|
identify mode. This resolves issue #2030: |
5 |
|
https://intevation.de/rt/webrt?serial_num=2030 |
6 |
|
|
7 |
|
* Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New. |
8 |
|
(IdentifyView.__init__): Added another button that allows to |
9 |
|
stop the identify mode. |
10 |
|
(IdentifyView.OnStop): New. Stops the identify mode. |
11 |
|
|
12 |
|
2003-07-25 Frank Koormann <[email protected]> |
13 |
|
|
14 |
|
Backport from HEAD: More comfortable table view: |
15 |
|
|
16 |
|
* Thuban/UI/tableview.py: |
17 |
|
Use Thuban[Begin|End]BusyCursor() |
18 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
19 |
|
(QueryTableFrame.__init__): |
20 |
|
Create a status bar. Fixes RTbug #1942. |
21 |
|
Explicitly set which items are selected in the operator choice and |
22 |
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
23 |
|
Subscribe to grid cell selection events so we can update the |
24 |
|
status bar. |
25 |
|
Add an Export Selection button and |
26 |
|
move the export buttons underneath the table. |
27 |
|
Use the panel as the parent window for all the controls. |
28 |
|
Reparent the grid so that the panel is the parent. |
29 |
|
Call UpdateStatusText() to correctly initialize the status bar. |
30 |
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
31 |
|
how many rows are in the grid, how many columns, and how many |
32 |
|
rows are selected. |
33 |
|
Added event argument so |
34 |
|
that it can respond to grid selection events. The status text |
35 |
|
is now updated even when the table is not associated with a |
36 |
|
layer as was previously assumed. |
37 |
|
(QueryTableFrame.OnSaveAs): Renamed to doExport. |
38 |
|
(QueryTableFrame.doExport): Helper function that saves the |
39 |
|
entire table, or selected rows, to a file. |
40 |
|
(QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New. |
41 |
|
Respond to export button events and call doExport. |
42 |
|
(QueryTableFrame.OnQuery): Use the string value in the value |
43 |
|
combo if either the selected item index is 0 or if the string |
44 |
|
cannot be found in the predefined list (this happens if the |
45 |
|
user changes the text). Fixes RTbug #1940. |
46 |
|
Only turn off the grid event listeners if there a query comes |
47 |
|
back with a none empty list of ids. in the case that the list |
48 |
|
is empty this causes a grid.ClearSelection() call to actually |
49 |
|
clear the grid selection which causes the selected items in |
50 |
|
the map to be deselected. Fixes RTbug #1939. |
51 |
|
(LayerTableGrid.select_shapes): Don't use deprecated layer instance |
52 |
|
variables |
53 |
|
(TableFrame): Inherit from ThubanFrame so we can have a |
54 |
|
status bar and control buttons. |
55 |
|
(TableFrame.__init__): Add a panel object that can be used by |
56 |
|
derived classes to place any controls (including the grid) onto. |
57 |
|
(TableGrid.__init__): Create an |
58 |
|
instance variable to keep track of how many rows are selected. |
59 |
|
Subscribe once to the the events we are interested in. |
60 |
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
61 |
|
hasn't been turned off. |
62 |
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
63 |
|
hasn't been turned off. |
64 |
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
65 |
|
as an event listener (which changes the event handler stack) |
66 |
|
simply set an instance variable to False. This is checked in |
67 |
|
the event handlers. |
68 |
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
69 |
|
selected rows. |
70 |
|
|
71 |
|
* Thuban/UI/common.py |
72 |
|
(ThubanBeginBusyCursor, ThubanEndBusyCursor): |
73 |
|
New. Wrappers around the wxWindows functions that allow us to |
74 |
|
make additional calls such as wxYield which gives the native |
75 |
|
system a chance to update the cursor correctly. |
76 |
|
(ThubanBeginBusyCursor): Call wxSafeYield |
77 |
|
to make sure that we don't create reentrant possibilities with |
78 |
|
wxYield. |
79 |
|
|
80 |
|
* Thuban/Model/table.py |
81 |
|
(table_to_dbf, table_to_csv): |
82 |
|
Added 'rows' parameter which is a list of records that restricts which |
83 |
|
records are saved. Fixes RTbug #1997. |
84 |
|
(_find_dbf_column_names): New. Helper function for table_to_dbf |
85 |
|
(table_to_dbf): Deal with names longer than the 10 character limit |
86 |
|
|
87 |
|
2003-07-24 Frank Koormann <[email protected]> |
88 |
|
|
89 |
|
* Thuban/UI/join.py: Set CHOICE_WIDTH to 300. |
90 |
|
|
91 |
|
2003-07-16 Bernhard Herzog <[email protected]> |
92 |
|
|
93 |
|
* Thuban/UI/messages.py (MAP_REPLACED): New message. |
94 |
|
|
95 |
|
* Thuban/UI/view.py (MapCanvas.SetMap): Issue MAP_REPLACED after |
96 |
|
the new map has been assigned |
97 |
|
|
98 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): |
99 |
|
Delegate MAP_REPLACED to the canvas too |
100 |
|
|
101 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Subscribe to |
102 |
|
MAP_REPLACED so that we can close the dialog if a new map is set. |
103 |
|
(Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED |
104 |
|
(Classifier.map_replaced): Handle MAP_REPLACED by closing the |
105 |
|
dialog |
106 |
|
|
107 |
|
2003-07-14 Frank Koormann <[email protected]> |
108 |
|
|
109 |
|
Backport from HEAD |
110 |
|
|
111 |
|
* Thuban/Model/load.py (SessionLoader.start_map): Encode map |
112 |
|
title to latin1. Fixes https://intevation.de/rt/webrt?serial_num=2013 |
113 |
|
|
114 |
|
* test/test_load.py (TestUnicodeStrings): New, test load of |
115 |
|
unicode strings from session file: session title, map title, |
116 |
|
layer title and projection name. |
117 |
|
|
118 |
|
|
119 |
2003-07-08 Bernhard Herzog <[email protected]> |
2003-07-08 Bernhard Herzog <[email protected]> |
120 |
|
|
121 |
Backport from HEAD |
Backport from HEAD |