1 |
|
2002-11-06 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py: Altered the order of tools in the toolbar: |
4 |
|
First now are all navigation tools (Zoom In/Out, Pan, Full Extent). |
5 |
|
|
6 |
|
2002-10-23 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
* setup.py (setup call): version now 0.1.3 |
9 |
|
|
10 |
|
* MANIFEST.in: Add the files in test/ |
11 |
|
|
12 |
|
* test/README: Add note about tests requiring the iceland data |
13 |
|
|
14 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to |
15 |
|
copyright notice. |
16 |
|
|
17 |
|
2002-10-18 Bernhard Herzog <[email protected]> |
18 |
|
|
19 |
|
* test/test_map.py |
20 |
|
(TestMapWithContents.test_projected_bounding_box): Use an explicit |
21 |
|
epsilon. |
22 |
|
|
23 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual) |
24 |
|
(FloatComparisonMixin.assertFloatSeqEqual): give a more useful |
25 |
|
message if the assertion fails and don't return the return value |
26 |
|
of self.assert_. In assertFloatSeqEqual the return meant that not |
27 |
|
all items of the sequence were compared. |
28 |
|
|
29 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
* test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil |
32 |
|
|
33 |
|
* Thuban/Lib/fileutil.py: Fixup some whitespace and typos |
34 |
|
|
35 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): Create |
36 |
|
the string with the bounding box on the fly because of platform |
37 |
|
differences in the way %g is handled. |
38 |
|
|
39 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Create an empty |
40 |
|
DBFfile too because Thuban layers can't yet cope missing DBF |
41 |
|
files. |
42 |
|
|
43 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
44 |
|
|
45 |
|
* test/test_menu.py: Use initthuban instead of |
46 |
|
add_thuban_dir_to_path to initialize Thuban. |
47 |
|
|
48 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
49 |
|
Mixin class for float comparisons |
50 |
|
(SubscriberMixin): New. Mixin class to test messages sent through |
51 |
|
the Connector class |
52 |
|
|
53 |
|
* test/README: Fix a typo and add the -v flag to the command for |
54 |
|
individual tests |
55 |
|
|
56 |
|
* test/test_session.py: New. Test cases for Thuban.Model.session |
57 |
|
|
58 |
|
* test/test_proj.py: New. Test cases for Thuban.Model.proj |
59 |
|
|
60 |
|
* test/test_map.py: New. Test cases for Thuban.Model.map |
61 |
|
|
62 |
|
* test/test_layer.py: New. Test cases for Thuban.Model.layer |
63 |
|
|
64 |
|
* test/test_label.py: New. Test cases for Thuban.Model.label |
65 |
|
|
66 |
|
* test/test_connector.py: New. Test cases for Thuban.Lib.connector |
67 |
|
|
68 |
|
* test/test_color.py: New. Test cases for Thuban.Model.color |
69 |
|
|
70 |
|
* test/test_base.py: New. Test cases for Thuban.Model.base |
71 |
|
|
72 |
|
2002-09-13 Bernhard Herzog <[email protected]> |
73 |
|
|
74 |
|
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
75 |
|
the CHANGED channel too. |
76 |
|
|
77 |
|
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
78 |
|
CHANGED channel too. |
79 |
|
(Map.__init__): Call the Modifiable constructor as well. |
80 |
|
|
81 |
|
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
82 |
|
event if the modified flag changes. |
83 |
|
(Modifiable.changed): Tweak the doc-string. |
84 |
|
|
85 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
86 |
|
(MainWindow.set_position_text): Put the code that puts the text |
87 |
|
with the mouse position into the status bar into the new method |
88 |
|
set_position_text so that it can overwritten in derived classes. |
89 |
|
|
90 |
|
2002-09-12 Bernhard Herzog <[email protected]> |
91 |
|
|
92 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
93 |
|
message box on the main window. |
94 |
|
|
95 |
|
2002-09-11 Bernhard Herzog <[email protected]> |
96 |
|
|
97 |
|
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
98 |
|
the 'E' because it's less likely to interfere with other menu |
99 |
|
entries. |
100 |
|
(MainWindow.build_menu): remove an incorrect comment. |
101 |
|
|
102 |
|
2002-09-10 Bernhard Herzog <[email protected]> |
103 |
|
|
104 |
|
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
105 |
|
(_tool_command): Add sensitive parameter |
106 |
|
(_has_visible_map): Sensitivity callback to tools and other |
107 |
|
commands that require a visible map. Use it in map_zoom_in_tool, |
108 |
|
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
109 |
|
and map_full_extent |
110 |
|
|
111 |
|
2002-09-06 Bernhard Herzog <[email protected]> |
112 |
|
|
113 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
114 |
|
VIEW_POSITION |
115 |
|
|
116 |
|
2002-09-04 Frank Koormann <[email protected]> |
117 |
|
|
118 |
|
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
119 |
|
|
120 |
|
2002-09-02 Bernhard Herzog <[email protected]> |
121 |
|
|
122 |
|
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
123 |
|
wxWindows already and our implementation doesn't work correctly |
124 |
|
with wxGTK 2.3: |
125 |
|
(MapCanvas.__init__): Remove the instance variable |
126 |
|
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
127 |
|
be drawin |
128 |
|
(MapCanvas.OnIdle): Removed. |
129 |
|
|
130 |
|
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
131 |
|
a parameter to determine the size of the rectangle. |
132 |
|
(MapCanvas.find_shape_at): Create the box around the point on a |
133 |
|
layer by layer basis and make the size depend on the shape type. |
134 |
|
This solves a problem with the selection of point shapes at the |
135 |
|
border of the layer's bounding box |
136 |
|
|
137 |
|
2002-08-30 Bernhard Herzog <[email protected]> |
138 |
|
|
139 |
|
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
140 |
|
for the sensitivity of remove layer. |
141 |
|
(_can_remove_layer): New. Sensitivity callback for remove layer |
142 |
|
(Command layer_remove): Use _can_remove_layer |
143 |
|
|
144 |
|
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
145 |
|
determine whether a given layer can be deleted. |
146 |
|
|
147 |
|
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
148 |
|
(MapCanvas.do_redraw): Get rid of the unused update_region |
149 |
|
instance variable |
150 |
|
|
151 |
|
* Thuban/UI/view.py: Add/update some doc-strings. |
152 |
|
|
153 |
|
* test/: new subdirectory with a bunch of unit tests. |
154 |
|
|
155 |
|
* test/README, test/test_table.py, test/test_save.py, |
156 |
|
test/test_menu.py, test/test_load.py: Initial set of tests and |
157 |
|
brief instructions on how to run them |
158 |
|
|
159 |
|
2002-08-29 Bernhard Herzog <[email protected]> |
160 |
|
|
161 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle |
162 |
|
arcs with multiple parts. |
163 |
|
|
164 |
|
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
165 |
|
Handle degenrate rectangles. |
166 |
|
|
167 |
|
* Thuban/Model/table.py: Make writing records work correctly: |
168 |
|
(Table.__init__): Keep track of whether the DBF is open for |
169 |
|
writing |
170 |
|
(Table.write_record): Open the DBF file for writing when necessary |
171 |
|
|
172 |
|
2002-08-27 Bernhard Herzog <[email protected]> |
173 |
|
|
174 |
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
175 |
|
dbf files only for reading by default. Use a new writable dbf |
176 |
|
object for writing. |
177 |
|
|
178 |
|
2002-08-26 Bernhard Herzog <[email protected]> |
179 |
|
|
180 |
|
* Thuban/UI/mainwindow.py: Refactor the context creation: |
181 |
|
(MainWindow.Context): New method to return a context |
182 |
|
(MainWindow.invoke_command, MainWindow.update_command_ui): Use the |
183 |
|
new method |
184 |
|
|
185 |
|
* Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the |
186 |
|
layer table specific code from TableGrid into LayerTableGrid |
187 |
|
(TableFrame, LayerTableFrame): Split the layer table specific code |
188 |
|
from TableFrame into LayerTableFrame |
189 |
|
(LayerTableGrid.select_shape): Remove a debug print |
190 |
|
|
191 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the |
192 |
|
LayerTableFrame |
193 |
|
|
194 |
|
2002-08-23 Bernhard Herzog <[email protected]> |
195 |
|
|
196 |
|
* Thuban/Model/layer.py (Layer.__init__): Make sure we have an |
197 |
|
absolute filename. |
198 |
|
|
199 |
|
2002-08-22 Bernhard Herzog <[email protected]> |
200 |
|
|
201 |
|
* Thuban/Model/table.py (Table.write_record): New method to write |
202 |
|
records. |
203 |
|
(Table.__init__): Open the DBF file for writing too. |
204 |
|
|
205 |
|
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
206 |
|
into the underlying table. |
207 |
|
|
208 |
|
* extensions/shapelib/shapefil.h (DBFCommit), |
209 |
|
extensions/shapelib/dbfopen.c (DBFCommit): New API function to |
210 |
|
commit any changes made to the DBF file. |
211 |
|
|
212 |
|
* Thuban/UI/mainwindow.py (make_check_current_tool) |
213 |
|
(_tool_command): Put the code that generates the "checked" |
214 |
|
callback into a separate function so that we can reuse it |
215 |
|
elsewhere |
216 |
|
|
217 |
|
* Thuban/Model/save.py (Saver): New class to handle serializing a |
218 |
|
session into an XML file. The main reason to introduce a class is |
219 |
|
that applications built on Thuban can derive from it so that they |
220 |
|
can save additional information in a session file. |
221 |
|
(save_session): Delegate almost all the work to the Saver class. |
222 |
|
Rename the filename argument to file because it may be a file like |
223 |
|
object now. |
224 |
|
|
225 |
|
* Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility |
226 |
|
code. Remove the little test code which would be executed when the |
227 |
|
module is run as a script which didn't work anymore since it can't |
228 |
|
import the other Thuban modules. |
229 |
|
(ProcessSession, load_session): Refactor the ProcessSession to |
230 |
|
have one method for each element start and end tag so that derived |
231 |
|
classes can easily override the processing of individual tags. |
232 |
|
Also, always parse with namespaces enabled because applications |
233 |
|
built on top of Thuban will likely use namespaces if they extend |
234 |
|
the session file format. |
235 |
|
|
236 |
|
2002-08-21 Bernhard Herzog <[email protected]> |
237 |
|
|
238 |
|
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
239 |
|
because thubaninit_contents will do it for us. |
240 |
|
|
241 |
2002-08-16 Jan-Oliver Wagner <[email protected]> |
2002-08-16 Jan-Oliver Wagner <[email protected]> |
242 |
|
|
243 |
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |