|
Krita Source Code Documentation
|
#include <kis_gamma_exposure_action.h>
Inheritance diagram for KisGammaExposureAction:Classes | |
| class | Private |
Public Member Functions | |
| void | activate (int shortcut) override |
| void | begin (int shortcut, QEvent *event=nullptr) override |
| void | cursorMovedAbsolute (const QPointF &lastPos, const QPointF &pos) override |
| void | deactivate (int shortcut) override |
| bool | isShortcutRequired (int shortcut) const override |
| KisGammaExposureAction () | |
| int | priority () const override |
| ~KisGammaExposureAction () override | |
Public Member Functions inherited from KisAbstractInputAction | |
| virtual bool | canIgnoreModifiers () const |
| virtual QString | description () const |
| virtual void | end (QEvent *event) |
| virtual QString | id () const |
| virtual KisInputActionGroup | inputActionGroup (int shortcut) const |
| virtual void | inputEvent (QEvent *event) |
| virtual bool | isAvailable () const |
| KisAbstractInputAction (const QString &id) | |
| virtual QString | name () const |
| virtual QHash< QString, int > | shortcutIndexes () const |
| virtual bool | supportsHiResInputEvents (int shortcut) const |
| virtual | ~KisAbstractInputAction () |
Private Attributes | |
| Private *const | d {nullptr} |
Additional Inherited Members | |
Public Attributes inherited from KisAbstractInputAction | |
| QString | description |
| QString | id |
| QHash< QString, int > | indexes |
| QPointF | lastCursorPosition |
| QString | name |
| QPointF | startCursorPosition |
Static Public Attributes inherited from KisAbstractInputAction | |
| static KisInputManager * | inputManager |
Protected Member Functions inherited from KisAbstractInputAction | |
| virtual void | cursorMoved (const QPointF &lastPos, const QPointF &pos) |
| QPoint | eventPos (const QEvent *event) |
| QPointF | eventPosF (const QEvent *event) |
| KisInputManager * | inputManager () const |
| void | setDescription (const QString &description) |
| void | setName (const QString &name) |
| void | setShortcutIndexes (const QHash< QString, int > &indexes) |
Definition at line 13 of file kis_gamma_exposure_action.h.
The different behaviours for this action.
Definition at line 19 of file kis_gamma_exposure_action.h.
|
explicit |
Definition at line 58 of file kis_gamma_exposure_action.cpp.
References AddExposure02Shortcut, AddExposure05Shortcut, AddGamma02Shortcut, AddGamma05Shortcut, ExposureShortcut, GammaShortcut, RemoveExposure02Shortcut, RemoveExposure05Shortcut, RemoveGamma02Shortcut, RemoveGamma05Shortcut, ResetExposureAndGammaShortcut, KisAbstractInputAction::setDescription(), KisAbstractInputAction::setName(), and KisAbstractInputAction::setShortcutIndexes().
|
override |
|
overridevirtual |
The method is called when the action is yet to be started, that is, e.g. the user has pressed all the modifiers for the action but hasn't started painting yet. This method is a right place to show the user what is going to happen, e.g. change the cursor.
Reimplemented from KisAbstractInputAction.
Definition at line 93 of file kis_gamma_exposure_action.cpp.
References KisCursor::changeExposureCursor(), KisCursor::changeGammaCursor(), and ExposureShortcut.
|
overridevirtual |
Begin the action.
| shortcut | The index of the behaviour to trigger. |
| event | The mouse event that has triggered this action. Is null for keyboard-activated actions. |
Reimplemented from KisAbstractInputAction.
Definition at line 108 of file kis_gamma_exposure_action.cpp.
References KisGammaExposureAction::Private::addExposure(), AddExposure02Shortcut, AddExposure05Shortcut, KisGammaExposureAction::Private::addGamma(), AddGamma02Shortcut, AddGamma05Shortcut, KisGammaExposureAction::Private::baseExposure, KisGammaExposureAction::Private::baseGamma, KisAbstractInputAction::begin(), Private::canvas, d, ExposureShortcut, GammaShortcut, KisAbstractInputAction::inputManager, KisGammaExposureAction::Private::mode, RemoveExposure02Shortcut, RemoveExposure05Shortcut, RemoveGamma02Shortcut, RemoveGamma05Shortcut, and ResetExposureAndGammaShortcut.
|
overridevirtual |
Reimplemented from KisAbstractInputAction.
Definition at line 163 of file kis_gamma_exposure_action.cpp.
References KisGammaExposureAction::Private::baseExposure, Private::canvas, d, ExposureShortcut, GammaShortcut, KisAbstractInputAction::inputManager, and KisGammaExposureAction::Private::mode.
|
overridevirtual |
The method is called when the action is not a candidate for the starting anymore. The action should revert everything that was done in activate() method.
Reimplemented from KisAbstractInputAction.
Definition at line 102 of file kis_gamma_exposure_action.cpp.
|
overridevirtual |
Return true when the specified shortcut is required for basic user interaction. This is used by the configuration system to prevent basic actions like painting from being removed.
| shortcut | The shortcut index to check. |
Reimplemented from KisAbstractInputAction.
Definition at line 184 of file kis_gamma_exposure_action.cpp.
|
overridevirtual |
The priority for this action.
Priority determines how "important" the action is and is used to resolve conflicts when multiple actions can be activated.
Reimplemented from KisAbstractInputAction.
Definition at line 88 of file kis_gamma_exposure_action.cpp.
|
private |
Definition at line 47 of file kis_gamma_exposure_action.h.