1 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive |
4 |
|
iff there are unreferenced tables in the session |
5 |
|
|
6 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
9 |
|
|
10 |
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
11 |
|
to return tables that are not referenced by other tables or shape |
12 |
|
stores and can be removed. |
13 |
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
14 |
|
removing the table |
15 |
|
|
16 |
|
* Thuban/UI/mainwindow.py: Remove unused imports |
17 |
|
(MainWindow.TableClose): Implement. |
18 |
|
|
19 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
20 |
|
messages so that the frame will be automatically closed when a new |
21 |
|
session is opened or the table is removed. |
22 |
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
23 |
|
__init__ |
24 |
|
(TableFrame.close_on_session_replaced) |
25 |
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
26 |
|
the window |
27 |
|
|
28 |
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
29 |
|
(TestSessionSimple.test_remove_table): Move the test to |
30 |
|
TestSessionSimple and add test for the TABLE_REMOVED message |
31 |
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
32 |
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
33 |
|
UnreferencedTables method. |
34 |
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
35 |
|
tests for UnreferencedTables. |
36 |
|
|
37 |
|
2003-05-27 Frank Koormann <[email protected]> |
38 |
|
|
39 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
40 |
|
display has some unwanted side effects. Removed again. |
41 |
|
|
42 |
|
2003-05-27 Frank Koormann <[email protected]> |
43 |
|
|
44 |
|
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
45 |
|
|
46 |
|
* Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer" |
47 |
|
|
48 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
49 |
|
|
50 |
|
* test/test_menu.py (MenuTest.test): Added test for |
51 |
|
Menu.RemoveItem(). |
52 |
|
|
53 |
|
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
54 |
|
the menu. |
55 |
|
|
56 |
|
2003-05-27 Frank Koormann <[email protected]> |
57 |
|
|
58 |
|
Nonmodal dialogs without parent (i.e. they can fall behind the main |
59 |
|
window) |
60 |
|
|
61 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy |
62 |
|
all dialogs in the dialogs dictionary and the canvas. |
63 |
|
|
64 |
|
* Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without |
65 |
|
parent, i.e. can fall behind other windows. |
66 |
|
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog |
67 |
|
dictionary before removing it. |
68 |
|
|
69 |
|
* Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog |
70 |
|
|
71 |
|
* Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog |
72 |
|
* Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog |
73 |
|
* Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog |
74 |
|
|
75 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
76 |
|
|
77 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
78 |
|
tableview dialog |
79 |
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
80 |
|
Also, don't use the table's titles as the dialog names. The titles |
81 |
|
aren't guaranteed to be unique. |
82 |
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
83 |
|
table |
84 |
|
|
85 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
86 |
|
|
87 |
|
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
88 |
|
effect can be achieved by simply closing the window showing the |
89 |
|
table. |
90 |
|
(MainWindow.TableHide): Removed. |
91 |
|
(main_menu): Removed "table_hide" |
92 |
|
|
93 |
|
2003-05-27 Frank Koormann <[email protected]> |
94 |
|
|
95 |
|
Fix legend tree display problems under Win32 |
96 |
|
|
97 |
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
98 |
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
99 |
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
100 |
|
|
101 |
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
102 |
|
|
103 |
2003-05-27 Jan-Oliver Wagner <[email protected]> |
2003-05-27 Jan-Oliver Wagner <[email protected]> |
104 |
|
|
105 |
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |