1 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
4 |
|
|
5 |
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
6 |
|
to return tables that are not referenced by other tables or shape |
7 |
|
stores and can be removed. |
8 |
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
9 |
|
removing the table |
10 |
|
|
11 |
|
* Thuban/UI/mainwindow.py: Remove unused imports |
12 |
|
(MainWindow.TableClose): Implement. |
13 |
|
|
14 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
15 |
|
messages so that the frame will be automatically closed when a new |
16 |
|
session is opened or the table is removed. |
17 |
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
18 |
|
__init__ |
19 |
|
(TableFrame.close_on_session_replaced) |
20 |
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
21 |
|
the window |
22 |
|
|
23 |
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
24 |
|
(TestSessionSimple.test_remove_table): Move the test to |
25 |
|
TestSessionSimple and add test for the TABLE_REMOVED message |
26 |
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
27 |
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
28 |
|
UnreferencedTables method. |
29 |
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
30 |
|
tests for UnreferencedTables. |
31 |
|
|
32 |
|
2003-05-27 Frank Koormann <[email protected]> |
33 |
|
|
34 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
35 |
|
display has some unwanted side effects. Removed again. |
36 |
|
|
37 |
|
2003-05-27 Frank Koormann <[email protected]> |
38 |
|
|
39 |
|
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
40 |
|
|
41 |
|
* Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer" |
42 |
|
|
43 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
44 |
|
|
45 |
|
* test/test_menu.py (MenuTest.test): Added test for |
46 |
|
Menu.RemoveItem(). |
47 |
|
|
48 |
|
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
49 |
|
the menu. |
50 |
|
|
51 |
|
2003-05-27 Frank Koormann <[email protected]> |
52 |
|
|
53 |
|
Nonmodal dialogs without parent (i.e. they can fall behind the main |
54 |
|
window) |
55 |
|
|
56 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy |
57 |
|
all dialogs in the dialogs dictionary and the canvas. |
58 |
|
|
59 |
|
* Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without |
60 |
|
parent, i.e. can fall behind other windows. |
61 |
|
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog |
62 |
|
dictionary before removing it. |
63 |
|
|
64 |
|
* Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog |
65 |
|
|
66 |
|
* Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog |
67 |
|
* Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog |
68 |
|
* Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog |
69 |
|
|
70 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
71 |
|
|
72 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
73 |
|
tableview dialog |
74 |
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
75 |
|
Also, don't use the table's titles as the dialog names. The titles |
76 |
|
aren't guaranteed to be unique. |
77 |
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
78 |
|
table |
79 |
|
|
80 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
81 |
|
|
82 |
|
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
83 |
|
effect can be achieved by simply closing the window showing the |
84 |
|
table. |
85 |
|
(MainWindow.TableHide): Removed. |
86 |
|
(main_menu): Removed "table_hide" |
87 |
|
|
88 |
|
2003-05-27 Frank Koormann <[email protected]> |
89 |
|
|
90 |
|
Fix legend tree display problems under Win32 |
91 |
|
|
92 |
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
93 |
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
94 |
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
95 |
|
|
96 |
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
97 |
|
|
98 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
99 |
|
|
100 |
|
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
101 |
|
'after' now allows to insert separators almost anywhere in the menu. |
102 |
|
|
103 |
|
2003-05-27 Frank Koormann <[email protected]> |
104 |
|
|
105 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the |
106 |
|
"S" of selection box label to hint on hot key (Alt-S). Works under |
107 |
|
Win32 but is ignored under GTK. |
108 |
|
|
109 |
|
2003-05-26 Frank Koormann <[email protected]> |
110 |
|
|
111 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout): |
112 |
|
Center Choices. |
113 |
|
|
114 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
115 |
|
|
116 |
|
Remove the Precision methods again. They're too DBF specific to be |
117 |
|
part of the table interface and they're only used in table_to_dbf |
118 |
|
anyway. |
119 |
|
|
120 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width):Use a |
121 |
|
fixed precision of 12 for doubles. |
122 |
|
(TransientTableBase.Precision): Removed |
123 |
|
(AutoTransientTable.Width): Delegate to self.table. |
124 |
|
|
125 |
|
* Thuban/Model/table.py (DBFTable.Precision) |
126 |
|
(MemoryTable.Precision): Removed. |
127 |
|
(MemoryTable.Width): Use a fixed precision of 12 for doubles. |
128 |
|
(table_to_dbf): Use a fixed precision of 12 for floats unless the |
129 |
|
column object specifies something else. |
130 |
|
|
131 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New. |
132 |
|
test for table_to_dbf |
133 |
|
|
134 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
135 |
|
|
136 |
|
* test/test_transientdb.py |
137 |
|
(TestTransientTable.run_iceland_political_tests): Fix a comment. |
138 |
|
|
139 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
140 |
|
|
141 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
142 |
|
implementation. Mark parts of the file format strings for |
143 |
|
localization. |
144 |
|
|
145 |
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
146 |
|
file and add the table to the tables managed by the session |
147 |
|
|
148 |
|
* test/test_session.py (TestSessionSimple.test_open_table_file): |
149 |
|
New. test case for OpenTableFile |
150 |
|
|
151 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
152 |
|
|
153 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
154 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
155 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
156 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
157 |
|
|
158 |
2003-05-26 Jan-Oliver Wagner <[email protected]> |
2003-05-26 Jan-Oliver Wagner <[email protected]> |
159 |
|
|
160 |
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is already |
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
161 |
a selection present, update the grid accordingly. |
already a selection present, update the grid accordingly. |
162 |
|
|
163 |
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
164 |
resizeable and increase its initial size. |
resizeable and increase its initial size. |