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