Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/advancedcolorselector/kis_color_selector.h
Context not available. | |||||
42 | KisColorSelectorConfiguration configuration() const; | 42 | KisColorSelectorConfiguration configuration() const; | ||
---|---|---|---|---|---|
43 | void setColor(const KoColor &color) override; | 43 | void setColor(const KoColor &color) override; | ||
44 | 44 | | |||
45 | /// update icons when a theme update happens | ||||
46 | void updateIcons(); | ||||
47 | | ||||
48 | void hasAtLeastOneDocument(bool value); | ||||
49 | | ||||
45 | public Q_SLOTS: | 50 | public Q_SLOTS: | ||
46 | void reset() override; | 51 | void reset() override; | ||
47 | void updateSettings() override; | 52 | void updateSettings() override; | ||
48 | 53 | | |||
54 | | ||||
49 | Q_SIGNALS: | 55 | Q_SIGNALS: | ||
50 | void settingsButtonClicked(); | 56 | void settingsButtonClicked(); | ||
51 | 57 | | |||
Context not available. | |||||
57 | void mouseReleaseEvent(QMouseEvent*) override; | 63 | void mouseReleaseEvent(QMouseEvent*) override; | ||
58 | bool displaySettingsButton(); | 64 | bool displaySettingsButton(); | ||
59 | 65 | | |||
60 | | ||||
61 | private: | 66 | private: | ||
62 | void mouseEvent(QMouseEvent* e); | 67 | void mouseEvent(QMouseEvent* e); | ||
63 | void init(); | 68 | void init(); | ||
Context not available. | |||||
82 | Acs::ColorRole m_lastColorRole; | 87 | Acs::ColorRole m_lastColorRole; | ||
83 | 88 | | |||
84 | 89 | | |||
90 | /// if Krita starts with a reference to this componenet that is attached to a canvas, it will call setCanvas() | ||||
91 | /// that check will be what ultimately decides whether this component will look enabled or disabled | ||||
92 | /// This color selector is sometimes not attached to the canvas, so we shouldn't disable it in that situation | ||||
93 | /// One instane of that is when you select the color wheel type from the settings. | ||||
94 | bool m_hasAtLeastOneDocumentOpen = true; | ||||
95 | | ||||
85 | public: | 96 | public: | ||
86 | void setDisplayBlip(bool disp) {m_blipDisplay = disp;} | 97 | void setDisplayBlip(bool disp) {m_blipDisplay = disp;} | ||
87 | bool displayBlip() const {return m_blipDisplay;} | 98 | bool displayBlip() const {return m_blipDisplay;} | ||
Context not available. |