1 |
|
2002-12-09 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_command.py: New. Tests for the command classes. |
4 |
|
|
5 |
|
* Thuban/UI/command.py (ToolCommand): New class for tool commands. |
6 |
|
(Command.IsTool): New method to distinguish between command |
7 |
|
switching tools and other commands. |
8 |
|
|
9 |
|
* Thuban/UI/view.py (MapCanvas.SelectTool): New method to select |
10 |
|
the tool to avoid direct assignments to instance variables |
11 |
|
(MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool) |
12 |
|
(MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to |
13 |
|
change the tool |
14 |
|
|
15 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an |
16 |
|
active tool's command turns insensitive, disable the tool. |
17 |
|
(_tool_command): Use the new ToolCommand class |
18 |
|
|
19 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Use the |
20 |
|
SelectTool method to change the tool |
21 |
|
(iconfile): Use the ToolCommand class |
22 |
|
|
23 |
2002-12-03 Bernhard Herzog <[email protected]> |
2002-12-03 Bernhard Herzog <[email protected]> |
24 |
|
|
25 |
* Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle |
* Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle |