1 |
|
2002-12-03 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle |
4 |
|
the case of selected items that are not children of Layers or Maps |
5 |
|
properly. Previously this bug would trigger an assertion in |
6 |
|
wxWindows. |
7 |
|
|
8 |
|
2002-11-06 Frank Koormann <[email protected]> |
9 |
|
|
10 |
|
* Thuban/UI/mainwindow.py: Altered the order of tools in the |
11 |
|
toolbar: First now are all navigation tools (Zoom In/Out, Pan, |
12 |
|
Full Extent). |
13 |
|
|
14 |
|
2002-10-23 Bernhard Herzog <[email protected]> |
15 |
|
|
16 |
|
* setup.py (setup call): version now 0.1.3 |
17 |
|
|
18 |
|
* MANIFEST.in: Add the files in test/ |
19 |
|
|
20 |
|
* test/README: Add note about tests requiring the iceland data |
21 |
|
|
22 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to |
23 |
|
copyright notice. |
24 |
|
|
25 |
|
2002-10-18 Bernhard Herzog <[email protected]> |
26 |
|
|
27 |
|
* test/test_map.py |
28 |
|
(TestMapWithContents.test_projected_bounding_box): Use an explicit |
29 |
|
epsilon. |
30 |
|
|
31 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual) |
32 |
|
(FloatComparisonMixin.assertFloatSeqEqual): give a more useful |
33 |
|
message if the assertion fails and don't return the return value |
34 |
|
of self.assert_. In assertFloatSeqEqual the return meant that not |
35 |
|
all items of the sequence were compared. |
36 |
|
|
37 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
|
* test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil |
40 |
|
|
41 |
|
* Thuban/Lib/fileutil.py: Fixup some whitespace and typos |
42 |
|
|
43 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): Create |
44 |
|
the string with the bounding box on the fly because of platform |
45 |
|
differences in the way %g is handled. |
46 |
|
|
47 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Create an empty |
48 |
|
DBFfile too because Thuban layers can't yet cope missing DBF |
49 |
|
files. |
50 |
|
|
51 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
52 |
|
|
53 |
|
* test/test_menu.py: Use initthuban instead of |
54 |
|
add_thuban_dir_to_path to initialize Thuban. |
55 |
|
|
56 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
57 |
|
Mixin class for float comparisons |
58 |
|
(SubscriberMixin): New. Mixin class to test messages sent through |
59 |
|
the Connector class |
60 |
|
|
61 |
|
* test/README: Fix a typo and add the -v flag to the command for |
62 |
|
individual tests |
63 |
|
|
64 |
|
* test/test_session.py: New. Test cases for Thuban.Model.session |
65 |
|
|
66 |
|
* test/test_proj.py: New. Test cases for Thuban.Model.proj |
67 |
|
|
68 |
|
* test/test_map.py: New. Test cases for Thuban.Model.map |
69 |
|
|
70 |
|
* test/test_layer.py: New. Test cases for Thuban.Model.layer |
71 |
|
|
72 |
|
* test/test_label.py: New. Test cases for Thuban.Model.label |
73 |
|
|
74 |
|
* test/test_connector.py: New. Test cases for Thuban.Lib.connector |
75 |
|
|
76 |
|
* test/test_color.py: New. Test cases for Thuban.Model.color |
77 |
|
|
78 |
|
* test/test_base.py: New. Test cases for Thuban.Model.base |
79 |
|
|
80 |
|
2002-09-13 Bernhard Herzog <[email protected]> |
81 |
|
|
82 |
|
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
83 |
|
the CHANGED channel too. |
84 |
|
|
85 |
|
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
86 |
|
CHANGED channel too. |
87 |
|
(Map.__init__): Call the Modifiable constructor as well. |
88 |
|
|
89 |
|
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
90 |
|
event if the modified flag changes. |
91 |
|
(Modifiable.changed): Tweak the doc-string. |
92 |
|
|
93 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
94 |
|
(MainWindow.set_position_text): Put the code that puts the text |
95 |
|
with the mouse position into the status bar into the new method |
96 |
|
set_position_text so that it can overwritten in derived classes. |
97 |
|
|
98 |
|
2002-09-12 Bernhard Herzog <[email protected]> |
99 |
|
|
100 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
101 |
|
message box on the main window. |
102 |
|
|
103 |
|
2002-09-11 Bernhard Herzog <[email protected]> |
104 |
|
|
105 |
|
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
106 |
|
the 'E' because it's less likely to interfere with other menu |
107 |
|
entries. |
108 |
|
(MainWindow.build_menu): remove an incorrect comment. |
109 |
|
|
110 |
|
2002-09-10 Bernhard Herzog <[email protected]> |
111 |
|
|
112 |
|
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
113 |
|
(_tool_command): Add sensitive parameter |
114 |
|
(_has_visible_map): Sensitivity callback to tools and other |
115 |
|
commands that require a visible map. Use it in map_zoom_in_tool, |
116 |
|
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
117 |
|
and map_full_extent |
118 |
|
|
119 |
|
2002-09-06 Bernhard Herzog <[email protected]> |
120 |
|
|
121 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
122 |
|
VIEW_POSITION |
123 |
|
|
124 |
|
2002-09-04 Frank Koormann <[email protected]> |
125 |
|
|
126 |
|
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
127 |
|
|
128 |
|
2002-09-02 Bernhard Herzog <[email protected]> |
129 |
|
|
130 |
|
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
131 |
|
wxWindows already and our implementation doesn't work correctly |
132 |
|
with wxGTK 2.3: |
133 |
|
(MapCanvas.__init__): Remove the instance variable |
134 |
|
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
135 |
|
be drawin |
136 |
|
(MapCanvas.OnIdle): Removed. |
137 |
|
|
138 |
|
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
139 |
|
a parameter to determine the size of the rectangle. |
140 |
|
(MapCanvas.find_shape_at): Create the box around the point on a |
141 |
|
layer by layer basis and make the size depend on the shape type. |
142 |
|
This solves a problem with the selection of point shapes at the |
143 |
|
border of the layer's bounding box |
144 |
|
|
145 |
|
2002-08-30 Bernhard Herzog <[email protected]> |
146 |
|
|
147 |
|
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
148 |
|
for the sensitivity of remove layer. |
149 |
|
(_can_remove_layer): New. Sensitivity callback for remove layer |
150 |
|
(Command layer_remove): Use _can_remove_layer |
151 |
|
|
152 |
|
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
153 |
|
determine whether a given layer can be deleted. |
154 |
|
|
155 |
|
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
156 |
|
(MapCanvas.do_redraw): Get rid of the unused update_region |
157 |
|
instance variable |
158 |
|
|
159 |
|
* Thuban/UI/view.py: Add/update some doc-strings. |
160 |
|
|
161 |
|
* test/: new subdirectory with a bunch of unit tests. |
162 |
|
|
163 |
|
* test/README, test/test_table.py, test/test_save.py, |
164 |
|
test/test_menu.py, test/test_load.py: Initial set of tests and |
165 |
|
brief instructions on how to run them |
166 |
|
|
167 |
|
2002-08-29 Bernhard Herzog <[email protected]> |
168 |
|
|
169 |
|
* Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle |
170 |
|
arcs with multiple parts. |
171 |
|
|
172 |
|
* Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp): |
173 |
|
Handle degenrate rectangles. |
174 |
|
|
175 |
|
* Thuban/Model/table.py: Make writing records work correctly: |
176 |
|
(Table.__init__): Keep track of whether the DBF is open for |
177 |
|
writing |
178 |
|
(Table.write_record): Open the DBF file for writing when necessary |
179 |
|
|
180 |
|
2002-08-27 Bernhard Herzog <[email protected]> |
181 |
|
|
182 |
|
* Thuban/Model/table.py (Table.write_record, Table.__init__): Open |
183 |
|
dbf files only for reading by default. Use a new writable dbf |
184 |
|
object for writing. |
185 |
|
|
186 |
2002-08-26 Bernhard Herzog <[email protected]> |
2002-08-26 Bernhard Herzog <[email protected]> |
187 |
|
|
188 |
* Thuban/UI/mainwindow.py: Refactor the context creation: |
* Thuban/UI/mainwindow.py: Refactor the context creation: |