Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/artisticcolorselector/artisticcolorselector_dock.h
Show All 13 Lines | |||||
14 | * along with this program; if not, write to the Free Software | 14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #ifndef H_ARTISTIC_COLOR_SELECTOR_DOCK_H | 18 | #ifndef H_ARTISTIC_COLOR_SELECTOR_DOCK_H | ||
19 | #define H_ARTISTIC_COLOR_SELECTOR_DOCK_H | 19 | #define H_ARTISTIC_COLOR_SELECTOR_DOCK_H | ||
20 | 20 | | |||
21 | #include <QDockWidget> | 21 | #include <QDockWidget> | ||
22 | #include <QPointer> | ||||
23 | #include <QRegExpValidator> | ||||
24 | | ||||
25 | #include <KoCanvasObserverBase.h> | ||||
26 | #include <KoResourceServerProvider.h> | ||||
27 | #include <KoResourceServerAdapter.h> | ||||
28 | #include <KoResourceServerObserver.h> | ||||
29 | #include <resources/KoGamutMask.h> | ||||
30 | #include <KisDocument.h> | ||||
31 | //#include <KisView.h> | ||||
dkazakov: Avoid commented out code :) | |||||
32 | #include <kis_types.h> | ||||
33 | #include <KoResourceItemChooser.h> | ||||
34 | | ||||
22 | #include <kis_mainwindow_observer.h> | 35 | #include <kis_mainwindow_observer.h> | ||
23 | 36 | | |||
24 | class KisCanvasResourceProvider; | 37 | class KisCanvasResourceProvider; | ||
25 | class KisColor; | 38 | class KisColor; | ||
26 | class QButtonGroup; | 39 | class QButtonGroup; | ||
27 | class QMenu; | 40 | class QMenu; | ||
41 | | ||||
28 | struct ArtisticColorSelectorUI; | 42 | struct ArtisticColorSelectorUI; | ||
29 | struct ColorPreferencesPopupUI; | 43 | struct ARCSSettingsUI; | ||
44 | struct WheelPreferencesPopupUI; | ||||
30 | 45 | | |||
31 | class ArtisticColorSelectorDock: public QDockWidget, public KisMainwindowObserver | 46 | class ArtisticColorSelectorDock: public QDockWidget, public KisMainwindowObserver | ||
32 | { | 47 | { | ||
33 | Q_OBJECT | 48 | Q_OBJECT | ||
34 | 49 | | |||
35 | public: | 50 | public: | ||
36 | ArtisticColorSelectorDock(); | 51 | ArtisticColorSelectorDock(); | ||
37 | ~ArtisticColorSelectorDock() override; | 52 | ~ArtisticColorSelectorDock() override; | ||
38 | QString observerName() override { return "ArtisticColorSelectorDock"; } | 53 | QString observerName() override { return "ArtisticColorSelectorDock"; } | ||
39 | void setMainWindow(KisViewManager* kisview) override; | 54 | void setMainWindow(KisViewManager* kisview) override; | ||
40 | void setCanvas(KoCanvasBase *canvas) override; | 55 | void setCanvas(KoCanvasBase *canvas) override; | ||
41 | void unsetCanvas() override; | 56 | void unsetCanvas() override; | ||
42 | 57 | | |||
58 | //Q_SIGNALS: | ||||
59 | // void sigGamutMaskChanged(); | ||||
43 | 60 | | |||
44 | private Q_SLOTS: | 61 | private Q_SLOTS: | ||
45 | void slotCanvasResourceChanged(int key, const QVariant& value); | 62 | void slotCanvasResourceChanged(int key, const QVariant& value); | ||
46 | void slotFgColorChanged(const KisColor& color); | 63 | void slotFgColorChanged(const KisColor& color); | ||
47 | void slotBgColorChanged(const KisColor& color); | 64 | void slotBgColorChanged(const KisColor& color); | ||
48 | void slotColorSpaceSelected(int type); | 65 | void slotColorSpaceSelected(int type); | ||
49 | void slotPreferenceChanged(); | 66 | void slotPreferenceChanged(); | ||
50 | void slotMenuActionTriggered(QAction* action); | 67 | void slotResetRingPositions(); | ||
51 | void slotResetDefaultSettings(); | 68 | void slotResetDefaultSettings(); | ||
52 | void slotLightModeChanged(bool setToAbsolute); | 69 | void slotLightModeChanged(bool setToAbsolute); | ||
70 | void slotGamutMaskToggle(bool value); | ||||
71 | void slotGamutMaskActivatePreview(bool value); | ||||
72 | void slotGamutMaskSet(KoGamutMask* mask); | ||||
73 | void slotGamutMaskUnset(); | ||||
74 | void slotGamutMaskPreviewUpdate(); | ||||
53 | 75 | | |||
54 | private: | 76 | private: | ||
55 | KisCanvasResourceProvider* m_resourceProvider; | 77 | KisCanvasResourceProvider* m_resourceProvider; | ||
56 | QButtonGroup* m_hsxButtons; | 78 | QButtonGroup* m_hsxButtons; | ||
57 | QMenu* m_resetMenu; | | |||
58 | ArtisticColorSelectorUI* m_selectorUI; | 79 | ArtisticColorSelectorUI* m_selectorUI; | ||
59 | ColorPreferencesPopupUI* m_preferencesUI; | 80 | ARCSSettingsUI* m_preferencesUI; | ||
81 | WheelPreferencesPopupUI* m_wheelPrefsUI; | ||||
82 | KoGamutMask* m_selectedMask; | ||||
83 | | ||||
84 | QPixmap m_infinityPixmap; | ||||
85 | | ||||
86 | void updateWheelInfoStrip(); | ||||
60 | }; | 87 | }; | ||
61 | 88 | | |||
62 | 89 | | |||
63 | #endif // H_ARTISTIC_COLOR_SELECTOR_DOCK_H | 90 | #endif // H_ARTISTIC_COLOR_SELECTOR_DOCK_H |
Avoid commented out code :)