Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_color_selector_settings.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Celarek Adam <kdedev at xibo dot at>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_COLOR_SELECTOR_SETTINGS_H
8#define KIS_COLOR_SELECTOR_SETTINGS_H
9
10
11#include <QDialog>
13
14namespace Ui {
16}
17class QIcon;
18
20 Q_OBJECT
21public:
22 KisColorSelectorSettings(QWidget *parent = 0);
24
25 QString id() override;
26 QString name() override;
27 QString header() override;
28 QIcon icon() override;
29
30public Q_SLOTS:
31 void savePreferences() const override;
32 void loadPreferences() override;
33 void loadDefaultPreferences() override;
34
35 void changedColorDocker(int);
40 void changedACSColorAlignment(bool);
42
43Q_SIGNALS:
44 void settingsChanged() const;
45 void hsxchanged(int);
46
47private:
48 Ui::KisColorSelectorSettings *ui;
49};
50
52 Q_OBJECT
53Q_SIGNALS:
55public Q_SLOTS:
57 Q_EMIT settingsUpdated();
58 }
59};
60
62public:
65 QObject::connect(ps, SIGNAL(settingsChanged()), &repeater, SLOT(updateSettings()), Qt::UniqueConnection);
66 return ps;
67 }
68 QString id() const override { return "ColorSelectorSettings"; }
70};
71
72class KisColorSelectorSettingsDialog : public QDialog {
73Q_OBJECT
74public:
75 KisColorSelectorSettingsDialog(QWidget *parent = 0);
76private:
78};
79
80
81#endif // KIS_COLOR_SELECTOR_SETTINGS_H
KisColorSelectorSettingsUpdateRepeater repeater
KisPreferenceSet * createPreferenceSet() override
void settingsChanged() const
Ui::KisColorSelectorSettings * ui