1 |
|
2003-06-13 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits |
4 |
|
from wxFrame (as opposed to wxDialog like the other classes) |
5 |
|
but otherwise behaves like the other classes. This is needed |
6 |
|
for the TableView which isn't really a dialog and needs to |
7 |
|
have a status bar and control buttons. |
8 |
|
|
9 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Create an |
10 |
|
instance variable to keep track of how many rows are selected. |
11 |
|
Subscribe once to the the events we are interested in. |
12 |
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
13 |
|
hasn't been turned off. |
14 |
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
15 |
|
hasn't been turned off. |
16 |
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
17 |
|
as an event listener (which changes the event handler stack) |
18 |
|
simply set an instance variable to False. This is checked in |
19 |
|
the event handlers. |
20 |
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
21 |
|
selected rows. |
22 |
|
(TableFrame): Inherit from ThubanFrame so we can have a |
23 |
|
status bar and control buttons. |
24 |
|
(QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942. |
25 |
|
Explicitly set which items are selected in the operator choice and |
26 |
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
27 |
|
Subscribe to grid cell selection events so we can update the |
28 |
|
status bar. |
29 |
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
30 |
|
how many rows are in the grid, how many columns, and how many |
31 |
|
rows are selected. |
32 |
|
(QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell): |
33 |
|
Call UpdateStatusText when cells are (de)selected. |
34 |
|
(QueryTableFrame.OnQuery): Use the string value in the value |
35 |
|
combo if either the selected item index is 0 or if the string |
36 |
|
cannot be found in the predefined list (this happens if the |
37 |
|
user changes the text). Fixes RTbug #1940. |
38 |
|
Only turn off the grid event listeners if there a query comes |
39 |
|
back with a none empty list of ids. in the case that the list |
40 |
|
is empty this causes a grid.ClearSelection() call to actually |
41 |
|
clear the grid selection which causes the selected items in |
42 |
|
the map to be deselected. Fixes RTbug #1939. |
43 |
|
|
44 |
|
* test/test_save.py (XMLWriterTest.Encode): Check return values. |
45 |
|
Fixes RTbug #1851. |
46 |
|
|
47 |
2003-06-13 Bernhard Herzog <[email protected]> |
2003-06-13 Bernhard Herzog <[email protected]> |
48 |
|
|
49 |
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |