BoxTool Class Reference

Tool for drawing a new Rectangle. More...

#include <boxtool.h>

Collaboration diagram for BoxTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BoxTool (PDFScene *scene)
void activate ()
 Activate this Tool: set it to the current one in the Scene, set an appropriate cursor, emit activated(), etc.
void mouseMoveEvent (QGraphicsSceneMouseEvent *ev)
void mousePressEvent (QGraphicsSceneMouseEvent *ev)
void mouseReleaseEvent (QGraphicsSceneMouseEvent *ev)
void mouseLeftClickEvent (QGraphicsSceneMouseEvent *)

Private Attributes

Rectanglebox


Detailed Description

Tool for drawing a new Rectangle.

Definition at line 11 of file boxtool.h.


Constructor & Destructor Documentation

BoxTool::BoxTool ( PDFScene scene  ) 

Definition at line 5 of file boxtool.cpp.


Member Function Documentation

void BoxTool::activate (  )  [virtual]

Activate this Tool: set it to the current one in the Scene, set an appropriate cursor, emit activated(), etc.

Implements Tool.

Definition at line 11 of file boxtool.cpp.

References Tool::scene, and PDFScene::setTool().

Referenced by MainWindow::on_actionBox_toggled().

Here is the call graph for this function:

Here is the caller graph for this function:

void BoxTool::mouseLeftClickEvent ( QGraphicsSceneMouseEvent *   )  [inline, virtual]

Implements Tool.

Definition at line 19 of file boxtool.h.

void BoxTool::mouseMoveEvent ( QGraphicsSceneMouseEvent *  ev  )  [virtual]

Todo:
maybe: allow dragging to size in any direction, fix droppings some other way

Implements Tool.

Definition at line 28 of file boxtool.cpp.

References box.

void BoxTool::mousePressEvent ( QGraphicsSceneMouseEvent *  ev  )  [virtual]

Implements Tool.

Definition at line 21 of file boxtool.cpp.

References box, and Tool::scene.

void BoxTool::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  ev  )  [virtual]

Implements Tool.

Definition at line 45 of file boxtool.cpp.

References box.


Member Data Documentation

Rectangle* BoxTool::box [private]

Definition at line 19 of file boxtool.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().


The documentation for this class was generated from the following files:

Generated on Tue Sep 8 15:09:42 2009 for Taborca by  doxygen 1.5.8