1 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
4 |
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
5 |
|
Layer/Duplicate command. |
6 |
|
(layer_duplicate command): New. |
7 |
|
(main_menu): Add layer_duplicate to the Layer menu. |
8 |
|
|
9 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
10 |
|
|
11 |
|
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
12 |
|
renderer so that NULL/None values get displayed differently (by a |
13 |
|
gray rectangle). |
14 |
|
(TableGrid.__init__): Override the default renderers |
15 |
|
|
16 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
17 |
|
|
18 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
19 |
|
classification to "None" if the type of the field has changed. |
20 |
|
|
21 |
|
* test/test_layer.py (SetShapeStoreTests): New. Class with a few |
22 |
|
test for the Layer.SetShapeStore method |
23 |
|
|
24 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
25 |
|
|
26 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer |
27 |
|
does not necessarily have a filename). |
28 |
|
|
29 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
30 |
|
|
31 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow): |
32 |
|
sort the selection list for the dialog. |
33 |
|
|
34 |
|
2003-05-28 Frank Koormann <[email protected]> |
35 |
|
|
36 |
|
* extensions/thuban/wxproj.cpp |
37 |
|
(project_point): Removed cast to int for projected point coordinates. |
38 |
|
(shape_centroid): Return last point if all polygon vertices fall |
39 |
|
to one point. |
40 |
|
|
41 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
42 |
|
|
43 |
|
* Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope |
44 |
|
with layers that don't have shapestores, i.e. raster layers. |
45 |
|
|
46 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
47 |
|
|
48 |
|
* Thuban/Model/table.py (DBFTable.__init__): Omit the extension |
49 |
|
when determining the title from the filename. |
50 |
|
|
51 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): Update to |
52 |
|
reflect changes in the way the title is derived from the filename |
53 |
|
|
54 |
|
2003-05-28 Frank Koormann <[email protected]> |
55 |
|
|
56 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): |
57 |
|
Added wxDEFAULT_DIALOG_STYLE to show table dialog styles. |
58 |
|
|
59 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
60 |
|
|
61 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
62 |
|
delegate SelectedLayer. |
63 |
|
(MainWindow.LayerUnjoinTable): Implement. |
64 |
|
(_can_unjoin): New. Helper function for the sensitivity of the |
65 |
|
layer/unjoin command. |
66 |
|
|
67 |
|
* Thuban/Model/data.py (ShapefileStore.OrigShapeStore) |
68 |
|
(DerivedShapeStore.OrigShapeStore): New. Return the original |
69 |
|
shapestore. Used to figure out how to unjoin. |
70 |
|
(DerivedShapeStore.Shapefile): Fix a typo. |
71 |
|
|
72 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
73 |
|
|
74 |
|
* Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as |
75 |
|
well |
76 |
|
(JoinDialog.__init__): Use the layer parameter and only build the |
77 |
|
left choice when a layer is given |
78 |
|
(JoinDialog.OnJoin): Handle layer joins as well |
79 |
|
(JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case |
80 |
|
that the user selects the "Select..." item. The sensitivitly |
81 |
|
updating is now in update_sensitivity |
82 |
|
(JoinDialog.y): New method to refactor the sensitivity update of |
83 |
|
the join button into its own method. |
84 |
|
|
85 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement. |
86 |
|
|
87 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
88 |
|
|
89 |
|
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive |
90 |
|
iff there are unreferenced tables in the session |
91 |
|
|
92 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
93 |
|
|
94 |
|
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
95 |
|
|
96 |
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
97 |
|
to return tables that are not referenced by other tables or shape |
98 |
|
stores and can be removed. |
99 |
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
100 |
|
removing the table |
101 |
|
|
102 |
|
* Thuban/UI/mainwindow.py: Remove unused imports |
103 |
|
(MainWindow.TableClose): Implement. |
104 |
|
|
105 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
106 |
|
messages so that the frame will be automatically closed when a new |
107 |
|
session is opened or the table is removed. |
108 |
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
109 |
|
__init__ |
110 |
|
(TableFrame.close_on_session_replaced) |
111 |
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
112 |
|
the window |
113 |
|
|
114 |
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
115 |
|
(TestSessionSimple.test_remove_table): Move the test to |
116 |
|
TestSessionSimple and add test for the TABLE_REMOVED message |
117 |
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
118 |
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
119 |
|
UnreferencedTables method. |
120 |
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
121 |
|
tests for UnreferencedTables. |
122 |
|
|
123 |
2003-05-27 Frank Koormann <[email protected]> |
2003-05-27 Frank Koormann <[email protected]> |
124 |
|
|
125 |
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
133 |
|
|
134 |
2003-05-27 Jan-Oliver Wagner <[email protected]> |
2003-05-27 Jan-Oliver Wagner <[email protected]> |
135 |
|
|
136 |
* test/test_menu.py (MenuTest.test): Added test for Menu.RemoveItem(). |
* test/test_menu.py (MenuTest.test): Added test for |
137 |
|
Menu.RemoveItem(). |
138 |
|
|
139 |
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from the menu. |
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
140 |
|
the menu. |
141 |
|
|
142 |
2003-05-27 Frank Koormann <[email protected]> |
2003-05-27 Frank Koormann <[email protected]> |
143 |
|
|