Changeset View
Changeset View
Standalone View
Standalone View
libs/widgets/KisDlgInternalColorSelector.h
- This file was moved from libs/ui/dialogs/kis_dlg_internal_color_selector.h.
Context not available. | |||||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
---|---|---|---|---|---|
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef KISINTERNALCOLORSELECTOR_H | 19 | #ifndef KISDLGINTERNALCOLORSELECTOR_H | ||
20 | #define KISINTERNALCOLORSELECTOR_H | 20 | #define KISDLGINTERNALCOLORSELECTOR_H | ||
21 | 21 | | |||
22 | #include "kritaui_export.h" | 22 | #include "kritawidgets_export.h" | ||
23 | #include "KoColor.h" | 23 | #include "KoColor.h" | ||
24 | #include "KoColorSpace.h" | 24 | #include "KoColorSpace.h" | ||
25 | #include "KoColorDisplayRendererInterface.h" | 25 | #include "KoColorDisplayRendererInterface.h" | ||
Context not available. | |||||
27 | 27 | | |||
28 | #include <QScopedPointer> | 28 | #include <QScopedPointer> | ||
29 | 29 | | |||
30 | #include "ui_wdgdlginternalcolorselector.h" | 30 | #include "KisScreenColorPickerBase.h" | ||
31 | #include "ui_WdgDlgInternalColorSelector.h" | ||||
31 | 32 | | |||
32 | /** | 33 | /** | ||
33 | * @brief The KisInternalColorSelector class | 34 | * @brief The KisInternalColorSelector class | ||
34 | * | 35 | * | ||
35 | * A non-modal color selector dialog that is not a plugin and can thus be used for filters. | 36 | * A non-modal color selector dialog that is not a plugin and can thus be used for filters. | ||
36 | */ | 37 | */ | ||
37 | class KRITAUI_EXPORT KisDlgInternalColorSelector : public QDialog | 38 | class KRITAWIDGETS_EXPORT KisDlgInternalColorSelector : public QDialog | ||
38 | { | 39 | { | ||
39 | Q_OBJECT | 40 | Q_OBJECT | ||
41 | | ||||
42 | private: | ||||
43 | static std::function<KisScreenColorPickerBase *(QWidget *)> s_screenColorPickerFactory; | ||||
44 | | ||||
40 | public: | 45 | public: | ||
41 | struct Config | 46 | struct Config | ||
42 | { | 47 | { | ||
Context not available. | |||||
170 | 175 | | |||
171 | 176 | | |||
172 | protected: | 177 | protected: | ||
173 | | ||||
174 | void showEvent(QShowEvent *event); | 178 | void showEvent(QShowEvent *event); | ||
175 | 179 | | |||
176 | private: | 180 | private: | ||
177 | Ui_WdgDlgInternalColorSelector *m_ui; //the UI | 181 | void focusInEvent(QFocusEvent *) override; | ||
178 | struct Private; //The private struct | | |||
179 | const QScopedPointer<Private> m_d; //the private pointer | | |||
180 | | ||||
181 | | ||||
182 | | ||||
183 | /** | 182 | /** | ||
184 | * @brief updateAllElements | 183 | * @brief updateAllElements | ||
185 | * Updates each widget with the new element, and if it's responsible for the update sents | 184 | * Updates each widget with the new element, and if it's responsible for the update sents | ||
Context not available. | |||||
187 | */ | 186 | */ | ||
188 | void updateAllElements(QObject *source); | 187 | void updateAllElements(QObject *source); | ||
189 | 188 | | |||
190 | void focusInEvent(QFocusEvent *) override; | 189 | private: | ||
190 | Ui_WdgDlgInternalColorSelector *m_ui; | ||||
191 | struct Private; //The private struct | ||||
192 | const QScopedPointer<Private> m_d; //the private pointer | ||||
191 | }; | 193 | }; | ||
192 | 194 | | |||
193 | #endif // KISINTERNALCOLORSELECTOR_H | 195 | #endif // KISDLGINTERNALCOLORSELECTOR_H | ||
Context not available. |