1 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): Create |
4 |
|
the string with the bounding box on the fly because of platform |
5 |
|
differences in the way %g is handled. |
6 |
|
|
7 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Create an empty |
8 |
|
DBFfile too because Thuban layers can't yet cope missing DBF |
9 |
|
files. |
10 |
|
|
11 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
12 |
|
|
13 |
|
* test/test_menu.py: Use initthuban instead of |
14 |
|
add_thuban_dir_to_path to initialize Thuban. |
15 |
|
|
16 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
17 |
|
Mixin class for float comparisons |
18 |
|
(SubscriberMixin): New. Mixin class to test messages sent through |
19 |
|
the Connector class |
20 |
|
|
21 |
|
* test/README: Fix a typo and add the -v flag to the command for |
22 |
|
individual tests |
23 |
|
|
24 |
|
* test/test_session.py: New. Test cases for Thuban.Model.session |
25 |
|
|
26 |
|
* test/test_proj.py: New. Test cases for Thuban.Model.proj |
27 |
|
|
28 |
|
* test/test_map.py: New. Test cases for Thuban.Model.map |
29 |
|
|
30 |
|
* test/test_layer.py: New. Test cases for Thuban.Model.layer |
31 |
|
|
32 |
|
* test/test_label.py: New. Test cases for Thuban.Model.label |
33 |
|
|
34 |
|
* test/test_connector.py: New. Test cases for Thuban.Lib.connector |
35 |
|
|
36 |
|
* test/test_color.py: New. Test cases for Thuban.Model.color |
37 |
|
|
38 |
|
* test/test_base.py: New. Test cases for Thuban.Model.base |
39 |
|
|
40 |
|
2002-09-13 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
43 |
|
the CHANGED channel too. |
44 |
|
|
45 |
|
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
46 |
|
CHANGED channel too. |
47 |
|
(Map.__init__): Call the Modifiable constructor as well. |
48 |
|
|
49 |
|
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
50 |
|
event if the modified flag changes. |
51 |
|
(Modifiable.changed): Tweak the doc-string. |
52 |
|
|
53 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
54 |
|
(MainWindow.set_position_text): Put the code that puts the text |
55 |
|
with the mouse position into the status bar into the new method |
56 |
|
set_position_text so that it can overwritten in derived classes. |
57 |
|
|
58 |
|
2002-09-12 Bernhard Herzog <[email protected]> |
59 |
|
|
60 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
61 |
|
message box on the main window. |
62 |
|
|
63 |
|
2002-09-11 Bernhard Herzog <[email protected]> |
64 |
|
|
65 |
|
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
66 |
|
the 'E' because it's less likely to interfere with other menu |
67 |
|
entries. |
68 |
|
(MainWindow.build_menu): remove an incorrect comment. |
69 |
|
|
70 |
|
2002-09-10 Bernhard Herzog <[email protected]> |
71 |
|
|
72 |
|
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
73 |
|
(_tool_command): Add sensitive parameter |
74 |
|
(_has_visible_map): Sensitivity callback to tools and other |
75 |
|
commands that require a visible map. Use it in map_zoom_in_tool, |
76 |
|
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
77 |
|
and map_full_extent |
78 |
|
|
79 |
|
2002-09-06 Bernhard Herzog <[email protected]> |
80 |
|
|
81 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
82 |
|
VIEW_POSITION |
83 |
|
|
84 |
|
2002-09-04 Frank Koormann <[email protected]> |
85 |
|
|
86 |
|
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
87 |
|
|
88 |
|
2002-09-02 Bernhard Herzog <[email protected]> |
89 |
|
|
90 |
|
* Thuban/UI/view.py: Get rid of the idle redraw. This is done by |
91 |
|
wxWindows already and our implementation doesn't work correctly |
92 |
|
with wxGTK 2.3: |
93 |
|
(MapCanvas.__init__): Remove the instance variable |
94 |
|
(MapCanvas.OnPaint): Always call do_redraw when there's a map to |
95 |
|
be drawin |
96 |
|
(MapCanvas.OnIdle): Removed. |
97 |
|
|
98 |
|
* Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add |
99 |
|
a parameter to determine the size of the rectangle. |
100 |
|
(MapCanvas.find_shape_at): Create the box around the point on a |
101 |
|
layer by layer basis and make the size depend on the shape type. |
102 |
|
This solves a problem with the selection of point shapes at the |
103 |
|
border of the layer's bounding box |
104 |
|
|
105 |
2002-08-30 Bernhard Herzog <[email protected]> |
2002-08-30 Bernhard Herzog <[email protected]> |
106 |
|
|
107 |
|
* Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method |
108 |
|
for the sensitivity of remove layer. |
109 |
|
(_can_remove_layer): New. Sensitivity callback for remove layer |
110 |
|
(Command layer_remove): Use _can_remove_layer |
111 |
|
|
112 |
|
* Thuban/Model/map.py (Map.CanRemoveLayer): New method to |
113 |
|
determine whether a given layer can be deleted. |
114 |
|
|
115 |
|
* Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint) |
116 |
|
(MapCanvas.do_redraw): Get rid of the unused update_region |
117 |
|
instance variable |
118 |
|
|
119 |
|
* Thuban/UI/view.py: Add/update some doc-strings. |
120 |
|
|
121 |
* test/: new subdirectory with a bunch of unit tests. |
* test/: new subdirectory with a bunch of unit tests. |
122 |
|
|
123 |
* test/README, test/test_table.py, test/test_save.py, |
* test/README, test/test_table.py, test/test_save.py, |