14 * |
14 * |
15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 */ |
17 */ |
18 |
18 |
19 #ifndef LDFORGE_COLORSELECTOR_H |
19 #pragma once |
20 #define LDFORGE_COLORSELECTOR_H |
|
21 |
|
22 #include <QDialog> |
20 #include <QDialog> |
23 #include "Main.h" |
21 #include "Main.h" |
24 |
22 |
25 class LDColor; |
23 class LDColor; |
26 class Ui_ColorSelUI; |
24 class Ui_ColorSelUI; |
27 class QGraphicsScene; |
25 class QGraphicsScene; |
28 |
26 |
29 class ColorSelector : public QDialog |
27 class ColorSelector : public QDialog |
30 { |
28 { |
31 Q_OBJECT |
29 Q_OBJECT |
32 PROPERTY (private, LDColor*, Selection, NO_OPS, STOCK_WRITE) |
30 PROPERTY (private, LDColor*, selection, setSelection, STOCK_WRITE) |
33 |
31 |
34 public: |
32 public: |
35 explicit ColorSelector (int defval = -1, QWidget* parent = null); |
33 explicit ColorSelector (int defval = -1, QWidget* parent = null); |
36 virtual ~ColorSelector(); |
34 virtual ~ColorSelector(); |
37 static bool selectColor (int& val, int defval = -1, QWidget* parent = null); |
35 static bool selectColor (int& val, int defval = -1, QWidget* parent = null); |