| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#ifndef __KIS_GAMMA_EXPOSURE_ACTION_H |
| 8 |
#define __KIS_GAMMA_EXPOSURE_ACTION_H |
| 9 |
|
| 10 |
#include "kis_abstract_input_action.h" |
| 11 |
|
| 12 |
|
| 13 |
class KisGammaExposureAction : public KisAbstractInputAction |
| 14 |
{ |
| 15 |
public: |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
enum Shortcuts { |
| 20 |
ExposureShortcut, |
| 21 |
GammaShortcut, |
| 22 |
AddExposure05Shortcut, |
| 23 |
RemoveExposure05Shortcut, |
| 24 |
AddGamma05Shortcut, |
| 25 |
RemoveGamma05Shortcut, |
| 26 |
AddExposure02Shortcut, |
| 27 |
RemoveExposure02Shortcut, |
| 28 |
AddGamma02Shortcut, |
| 29 |
RemoveGamma02Shortcut, |
| 30 |
ResetExposureAndGammaShortcut |
| 31 |
}; |
| 32 |
explicit KisGammaExposureAction(); |
| 33 |
~KisGammaExposureAction() override; |
| 34 |
|
| 35 |
int priority() const override; |
| 36 |
|
| 37 |
void activate(int shortcut) override; |
| 38 |
void deactivate(int shortcut) override; |
| 39 |
|
| 40 |
void begin(int shortcut, QEvent *event = nullptr) override; |
| 41 |
void cursorMovedAbsolute(const QPointF &lastPos, const QPointF &pos) override; |
| 42 |
|
| 43 |
bool isShortcutRequired(int shortcut) const override; |
| 44 |
|
| 45 |
private: |
| 46 |
class Private; |
| 47 |
Private * const d {nullptr}; |
| 48 |
}; |
| 49 |
|
| 50 |
#endif |