Inheritance diagram for MoveTool:
Public Methods | |
MoveTool () | |
void | start () |
called when the tool is selected in the tool window | |
int | mouseClick (const Position &pos) |
When the mouse is clicked on the canvas, it iterates over each selected object by using Drawing's Selection class and iteration functions. | |
void | stop () |
called when another tool is selected | |
Static Public Attributes | |
MoveTool::Factory | factory |
|
00008 : Tool("move-button.bmp") {} |
|
When the mouse is clicked on the canvas, it iterates over each selected object by using Drawing's Selection class and iteration functions. It then uses the move method on each object to move it to the clicked point. Implements Tool.
00017 { 00018 Drawing::Selection begin = drawing->begin_selection(), 00019 end = drawing->end_selection(); 00020 for (Drawing::Selection i = begin; i != end; ++i) { 00021 (*i)->move(pos); 00022 } 00023 return begin != end; 00024 } |
|
called when the tool is selected in the tool window
Implements Tool.
00010 {} |
|
called when another tool is selected
Implements Tool.
00026 {} |
|
|