karbon

VPatternTool Class Reference

Inheritance diagram for VPatternTool:

VTool List of all members.

Detailed Description

Definition at line 60 of file vpatterntool.h.


Public Member Functions

 VPatternTool (KarbonView *view)
virtual ~VPatternTool ()
virtual void activate ()
virtual void deactivate ()
virtual void setup (KActionCollection *collection)
virtual QString uiname ()
virtual QString contextHelp ()
virtual bool showDialog () const
virtual void draw (VPainter *painter)

Protected Slots

void targetChanged ()

Protected Member Functions

virtual void draw ()
virtual void mouseButtonRelease ()
virtual void mouseButtonPress ()
virtual void mouseDragRelease ()
virtual void mouseDrag ()
virtual void cancel ()
virtual void setCursor () const
virtual bool keyReleased (Qt::Key key)
bool getPattern (VPattern &pattern)

Member Function Documentation

void VPatternTool::activate (  )  [virtual]

Called during the tool activation.

A tool is supposed to set a mouse cursor and/or the statusbar properly here.

Reimplemented from VTool.

Definition at line 137 of file vpatterntool.cc.

void VPatternTool::cancel (  )  [protected, virtual]

Cancels all tool operations.

This event is invoked when ESC is pressed.

Reimplemented from VTool.

Definition at line 441 of file vpatterntool.cc.

QString VPatternTool::contextHelp (  )  [virtual]

The context help of the tool.

Reimplemented from VTool.

Definition at line 181 of file vpatterntool.cc.

void VPatternTool::deactivate (  )  [virtual]

Deactivates the tool.

Reimplemented from VTool.

Definition at line 161 of file vpatterntool.cc.

void VPatternTool::draw ( VPainter painter  )  [virtual]

Draws the actual tool state.

Parameters:
painter the painter on which to paint

Reimplemented from VTool.

Definition at line 251 of file vpatterntool.cc.

bool VPatternTool::getPattern ( VPattern pattern  )  [protected]

Determines the actual pattern to be edited.

Parameters:
pattern the found pattern
Returns:
true if pattern was found, else false

Definition at line 224 of file vpatterntool.cc.

bool VPatternTool::keyReleased ( Qt::Key  key  )  [protected, virtual]

Specified key released.

Reimplemented from VTool.

Definition at line 482 of file vpatterntool.cc.

void VPatternTool::mouseButtonPress (  )  [protected, virtual]

Left mouse button press.

Reimplemented from VTool.

Definition at line 298 of file vpatterntool.cc.

void VPatternTool::mouseButtonRelease (  )  [protected, virtual]

Left mouse button release.

The mouse wasn't moved.

Reimplemented from VTool.

Definition at line 318 of file vpatterntool.cc.

void VPatternTool::mouseDrag (  )  [protected, virtual]

Mouse drag.

Reimplemented from VTool.

Definition at line 285 of file vpatterntool.cc.

void VPatternTool::mouseDragRelease (  )  [protected, virtual]

Mouse button release.

The mouse was moved before.

Reimplemented from VTool.

Definition at line 385 of file vpatterntool.cc.

void VPatternTool::setCursor (  )  const [protected, virtual]

This function is called on each mouse event the tool receives.

Reimplemented from VTool.

Definition at line 470 of file vpatterntool.cc.

void VPatternTool::setup ( KActionCollection *  collection  )  [virtual]

Called after tool creation.

A tool is supposed to hook its associated action into the specified action collection here.

Reimplemented from VTool.

Definition at line 456 of file vpatterntool.cc.

bool VPatternTool::showDialog (  )  const [virtual]

Shows the tools option dialog.

Reimplemented from VTool.

Definition at line 450 of file vpatterntool.cc.

virtual QString VPatternTool::uiname (  )  [inline, virtual]

The name of the tool.

Reimplemented from VTool.

Definition at line 72 of file vpatterntool.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys