karbon

VGradientTool Class Reference

Inheritance diagram for VGradientTool:

VTool List of all members.

Detailed Description

Definition at line 31 of file vgradienttool.h.


Public Member Functions

 VGradientTool (KarbonView *view)
virtual ~VGradientTool ()
virtual void activate ()
virtual void deactivate ()
virtual void setup (KActionCollection *collection)
virtual QString uiname ()
virtual QString statusText ()
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 getGradient (VGradient &gradient)
bool getOpacity (double &opacity)

Member Function Documentation

void VGradientTool::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 62 of file vgradienttool.cc.

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

Cancels all tool operations.

This event is invoked when ESC is pressed.

Reimplemented from VTool.

Definition at line 458 of file vgradienttool.cc.

QString VGradientTool::contextHelp (  )  [virtual]

The context help of the tool.

Reimplemented from VTool.

Definition at line 111 of file vgradienttool.cc.

void VGradientTool::deactivate (  )  [virtual]

Deactivates the tool.

Reimplemented from VTool.

Definition at line 86 of file vgradienttool.cc.

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

Draws the actual tool state.

Parameters:
painter the painter on which to paint

Reimplemented from VTool.

Definition at line 177 of file vgradienttool.cc.

bool VGradientTool::getGradient ( VGradient gradient  )  [protected]

Determines the actual gradient to be edited.

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

Definition at line 126 of file vgradienttool.cc.

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

Specified key released.

Reimplemented from VTool.

Definition at line 499 of file vgradienttool.cc.

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

Left mouse button press.

Reimplemented from VTool.

Definition at line 287 of file vgradienttool.cc.

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

Left mouse button release.

The mouse wasn't moved.

Reimplemented from VTool.

Definition at line 311 of file vgradienttool.cc.

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

Mouse drag.

Reimplemented from VTool.

Definition at line 273 of file vgradienttool.cc.

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

Mouse button release.

The mouse was moved before.

Reimplemented from VTool.

Definition at line 411 of file vgradienttool.cc.

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

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

Reimplemented from VTool.

Definition at line 487 of file vgradienttool.cc.

void VGradientTool::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 473 of file vgradienttool.cc.

bool VGradientTool::showDialog (  )  const [virtual]

Shows the tools option dialog.

Reimplemented from VTool.

Definition at line 467 of file vgradienttool.cc.

QString VGradientTool::statusText (  )  [virtual]

The tool status text.

Reimplemented from VTool.

Definition at line 105 of file vgradienttool.cc.

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

The name of the tool.

Reimplemented from VTool.

Definition at line 43 of file vgradienttool.h.


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