Inheritance diagram for SelectTool:
Public Methods | |
SelectTool () | |
void | start () |
When the tool is selected, the drawing's selection is cleared. | |
int | mouseClick (const Position &pos) |
When the user clicks on the canvas, the drawing is asked to find the object that was clicked, and then that object is added to the list of selected objects in the drawing. | |
void | stop () |
called when another tool is selected | |
Static Public Attributes | |
SelectTool::Factory | factory |
|
00008 : Tool("select-button.bmp") {} |
|
When the user clicks on the canvas, the drawing is asked to find the object that was clicked, and then that object is added to the list of selected objects in the drawing.
Implements Tool.
00019 { 00020 if (DrawElement* e = drawing->get_contents()->find_hit(pos)) { 00021 drawing->add_selection(e); 00022 return 1; 00023 } else 00024 return 0; 00025 } |
|
When the tool is selected, the drawing's selection is cleared.
Implements Tool.
00011 { 00012 drawing->clear_selection(); 00013 } |
|
called when another tool is selected
Implements Tool.
00027 {} |
|
|