karbon
VGradientTool Class Reference
Inheritance diagram for VGradientTool:

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] |
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] |
void VGradientTool::mouseButtonPress | ( | ) | [protected, virtual] |
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] |
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] |
virtual QString VGradientTool::uiname | ( | ) | [inline, virtual] |
The documentation for this class was generated from the following files: