krita

KisPaintDeviceAction Class Reference

#include <kis_paint_device_action.h>

List of all members.


Detailed Description

Defines an action to do with a paint device.

It can be force used by the gui on creation of a layer, for example. Or just appear in a list of actions to do.

Definition at line 28 of file kis_paint_device_action.h.


Public Member Functions

virtual void act (KisPaintDeviceSP paintDev, Q_INT32 w=0, Q_INT32 h=0) const =0
virtual QString name () const =0
virtual QString description () const =0

Member Function Documentation

virtual void KisPaintDeviceAction::act ( KisPaintDeviceSP  paintDev,
Q_INT32  w = 0,
Q_INT32  h = 0 
) const [pure virtual]

Do something with the paint device.

This can be anything, like, for example, popping up a dialog to choose a texture. The width and height are added because these may be needed in some cases.

virtual QString KisPaintDeviceAction::name (  )  const [pure virtual]

The name of the action, to be displayed in the GUI.

virtual QString KisPaintDeviceAction::description (  )  const [pure virtual]

A description of the action, to be displayed in the GUI.


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