krita

KisPaintOpFactory Class Reference

#include <kis_paintop.h>

Inherits KShared.

List of all members.


Detailed Description

The paintop factory is responsible for creating paintops of the specified class.

If there is an optionWidget, the derived paintop itself must support settings, and it's up to the factory to do that.

Definition at line 111 of file kis_paintop.h.


Public Member Functions

virtual KisPaintOp * createOp (const KisPaintOpSettings *settings, KisPainter *painter)=0
virtual KisID id ()
virtual QString pixmap ()
virtual bool userVisible (KisColorSpace *cs=0)
virtual KisPaintOpSettings * settings (QWidget *parent, const KisInputDevice &inputDevice)

Member Function Documentation

virtual QString KisPaintOpFactory::pixmap (  )  [inline, virtual]

The filename of the pixmap we can use to represent this paintop in the ui.

Definition at line 124 of file kis_paintop.h.

virtual bool KisPaintOpFactory::userVisible ( KisColorSpace cs = 0  )  [inline, virtual]

Whether this paintop is internal to a certain tool or can be used in various tools.

If false, it won't show up in the toolchest. The KisColorSpace argument can be used when certain paintops only support a specific cs

Definition at line 131 of file kis_paintop.h.

KisPaintOpSettings * KisPaintOpFactory::settings ( QWidget *  parent,
const KisInputDevice &  inputDevice 
) [virtual]

Create and return an (abstracted) widget with options for this paintop when used with the specified input device.

Return 0 if there are no settings available for the given device.

Definition at line 113 of file kis_paintop.cc.


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