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