Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_canvas_controls_manager.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2003-2009 Boudewijn Rempt <boud@valdyas.org>
3 * SPDX-FileCopyrightText: 2014 Sven Langkamp <sven.langkamp@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KIS_CANVAS_CONTROLS_MANAGER_H
9#define KIS_CANVAS_CONTROLS_MANAGER_H
10
11#include <QObject>
12#include <QPointer>
13
14#include <kritaui_export.h>
15
16class KisViewManager;
18class KisView;
19
20class KRITAUI_EXPORT KisCanvasControlsManager: public QObject
21{
22 Q_OBJECT
23
24public:
27
28 void setup(KisActionManager *actionManager);
29 void setView(QPointer<KisView>imageView);
30
31private Q_SLOTS:
32 void makeColorLighter();
33 void makeColorDarker();
34 void makeColorDesaturated();
35 void makeColorSaturated();
36 void shiftHueClockWise();
37 void shiftHueCounterClockWise();
38 void makeColorRed();
39 void makeColorGreen();
40 void makeColorBlue();
41 void makeColorYellow();
42
43 void increaseOpacity();
44 void decreaseOpacity();
45 void increaseFlow();
46 void decreaseFlow();
47 void increaseFade();
48 void decreaseFade();
49 void increaseScatter();
50 void decreaseScatter();
51
52 void forcePaletteColors(bool force);
53private:
54 void transformColor(int step);
55 void transformSaturation(int step);
56 void transformHue(int step);
57 void transformRed(int step);
58 void transformBlue(int step);
59 void stepAlpha(float step);
60 void stepFlow(float step);
61 void stepFade(float step);
62 void stepScatter(float step);
63
64private:
66};
67
68#endif // KIS_CANVAS_CONTROLS_MANAGER_H
A KisActionManager class keeps track of KisActions. These actions are always associated with the GUI....