1 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
4 |
|
tableview dialog |
5 |
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
6 |
|
Also, don't use the table's titles as the dialog names. The titles |
7 |
|
aren't guaranteed to be unique. |
8 |
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
9 |
|
table |
10 |
|
|
11 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
12 |
|
|
13 |
|
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
14 |
|
effect can be achieved by simply closing the window showing the |
15 |
|
table. |
16 |
|
(MainWindow.TableHide): Removed. |
17 |
|
(main_menu): Removed "table_hide" |
18 |
|
|
19 |
|
2003-05-27 Frank Koormann <[email protected]> |
20 |
|
|
21 |
|
Fix legend tree display problems under Win32 |
22 |
|
|
23 |
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
24 |
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
25 |
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
26 |
|
|
27 |
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
28 |
|
|
29 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
30 |
|
|
31 |
|
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
32 |
|
'after' now allows to insert separators almost anywhere in the menu. |
33 |
|
|
34 |
|
2003-05-27 Frank Koormann <[email protected]> |
35 |
|
|
36 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the |
37 |
|
"S" of selection box label to hint on hot key (Alt-S). Works under |
38 |
|
Win32 but is ignored under GTK. |
39 |
|
|
40 |
|
2003-05-26 Frank Koormann <[email protected]> |
41 |
|
|
42 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout): |
43 |
|
Center Choices. |
44 |
|
|
45 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
46 |
|
|
47 |
|
Remove the Precision methods again. They're too DBF specific to be |
48 |
|
part of the table interface and they're only used in table_to_dbf |
49 |
|
anyway. |
50 |
|
|
51 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width):Use a |
52 |
|
fixed precision of 12 for doubles. |
53 |
|
(TransientTableBase.Precision): Removed |
54 |
|
(AutoTransientTable.Width): Delegate to self.table. |
55 |
|
|
56 |
|
* Thuban/Model/table.py (DBFTable.Precision) |
57 |
|
(MemoryTable.Precision): Removed. |
58 |
|
(MemoryTable.Width): Use a fixed precision of 12 for doubles. |
59 |
|
(table_to_dbf): Use a fixed precision of 12 for floats unless the |
60 |
|
column object specifies something else. |
61 |
|
|
62 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New. |
63 |
|
test for table_to_dbf |
64 |
|
|
65 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
66 |
|
|
67 |
|
* test/test_transientdb.py |
68 |
|
(TestTransientTable.run_iceland_political_tests): Fix a comment. |
69 |
|
|
70 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
71 |
|
|
72 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
73 |
|
implementation. Mark parts of the file format strings for |
74 |
|
localization. |
75 |
|
|
76 |
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
77 |
|
file and add the table to the tables managed by the session |
78 |
|
|
79 |
|
* test/test_session.py (TestSessionSimple.test_open_table_file): |
80 |
|
New. test case for OpenTableFile |
81 |
|
|
82 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
83 |
|
|
84 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
85 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
86 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
87 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
88 |
|
|
89 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
90 |
|
|
91 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
92 |
|
already a selection present, update the grid accordingly. |
93 |
|
|
94 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
95 |
|
resizeable and increase its initial size. |
96 |
|
|
97 |
|
2003-05-26 Frank Koormann <[email protected]> |
98 |
|
|
99 |
|
Table export functionality |
100 |
|
|
101 |
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
102 |
|
Return width (in characters) for a column. |
103 |
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
104 |
|
(table_to_dbf): Write table to dbf file. |
105 |
|
(table_to_csv): Write table to csv file. |
106 |
|
|
107 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
108 |
|
TransientTableBase.Precision): Return column width and precision. |
109 |
|
|
110 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
111 |
|
or table_to_csv depending on file selection. |
112 |
|
|
113 |
|
* test/test_dbf_table.py: |
114 |
|
Test table_to_dbf (extension of former part of test). |
115 |
|
|
116 |
|
* test/test_csv_table.py: |
117 |
|
Test table_to_csv. |
118 |
|
|
119 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
120 |
|
|
121 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
122 |
|
Use QueryTableFrame instead of TableFrame. |
123 |
|
|
124 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
125 |
|
table window with 'Layer Table:' instead of 'Table:'. |
126 |
|
|
127 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
128 |
|
|
129 |
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
130 |
|
|
131 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
132 |
|
only if it exists. |
133 |
|
|
134 |
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
135 |
|
and call its init-method with a default title. Remove Title() method. |
136 |
|
|
137 |
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
138 |
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
139 |
|
a default title. Remove Title() method. |
140 |
|
|
141 |
|
2003-05-23 Bernhard Herzog <[email protected]> |
142 |
|
|
143 |
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
144 |
|
AddShapeStore analogously to AddTable. |
145 |
|
|
146 |
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
147 |
|
New. Test for AddShapeStore |
148 |
|
|
149 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
150 |
|
|
151 |
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
152 |
|
|
153 |
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
154 |
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
155 |
|
The latter implements the selection GUI without dependency on a layer. |
156 |
|
LayerTableFrame now is derived from QueryTableFrame and connects |
157 |
|
to a layer. |
158 |
|
|
159 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
160 |
|
implementation that still needs work. |
161 |
|
|
162 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
163 |
|
|
164 |
|
2003-05-22 Frank Koormann <[email protected]> |
165 |
|
|
166 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
167 |
|
Added "outer_join = False" as optional parameter. |
168 |
|
(TransientJoinedTable.create): If outer join is true, perform a |
169 |
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
170 |
|
the left table. Records not matching are filled with 0 / None. |
171 |
|
|
172 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
173 |
|
(JoinDialog.OnJoin): Consider outer join check box. |
174 |
|
|
175 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
176 |
|
|
177 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
178 |
|
somewhat safer way. Storing the traceback in a local variable can |
179 |
|
lead to memory leaks |
180 |
|
|
181 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
182 |
|
|
183 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
184 |
|
the wxMessageDialog's Destroy() method. |
185 |
|
|
186 |
|
2003-05-22 Frank Koormann <[email protected]> |
187 |
|
|
188 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
189 |
|
TransientTable.Title() |
190 |
|
|
191 |
|
2003-05-22 Frank Koormann <[email protected]> |
192 |
|
|
193 |
|
Join Dialog, initial version. |
194 |
|
|
195 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
196 |
|
|
197 |
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
198 |
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
199 |
|
in all occurences. |
200 |
|
|
201 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
202 |
|
Typo fixed. |
203 |
|
|
204 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
205 |
|
|
206 |
|
Give the tables titles so that the GUI can display more meaningful |
207 |
|
names. For now the titles are fixed but depend on e.g. filenames |
208 |
|
or the titles of the joined tables. |
209 |
|
|
210 |
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
211 |
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
212 |
|
|
213 |
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
214 |
|
|
215 |
|
* test/test_transientdb.py |
216 |
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
217 |
|
for the Title method |
218 |
|
(TestTransientTable.test_transient_joined_table) |
219 |
|
(TestTransientTable.test_transient_table): Add test for the Title |
220 |
|
methods |
221 |
|
|
222 |
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
223 |
|
Test for the Title method |
224 |
|
|
225 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
226 |
|
the Title method |
227 |
|
|
228 |
2003-05-22 Bernhard Herzog <[email protected]> |
2003-05-22 Bernhard Herzog <[email protected]> |
229 |
|
|
230 |
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |