src/widgets/colorindexinput.h

changeset 214
8e1fe64ce4e3
parent 205
1a4342d80de7
child 258
fe094d0687ad
equal deleted inserted replaced
213:ee5758ddb6d2 214:8e1fe64ce4e3
3 3
4 class ColorIndexInput : public QWidget 4 class ColorIndexInput : public QWidget
5 { 5 {
6 Q_OBJECT 6 Q_OBJECT
7 public: 7 public:
8 ColorIndexInput(EditorTabWidget *document, ColorIndex color = MAIN_COLOR, QWidget *parent = nullptr); 8 ColorIndexInput(ColorTable *colorTable, ColorIndex color = MAIN_COLOR, QWidget *parent = nullptr);
9 ~ColorIndexInput(); 9 ~ColorIndexInput();
10 ldraw::Color selectedColor() const; 10 ldraw::Color selectedColor() const;
11 void setSelectedColor(ldraw::Color color); 11 void setSelectedColor(ldraw::Color color);
12 Q_SIGNALS: 12 Q_SIGNALS:
13 void colorChanged(ldraw::Color color); 13 void colorChanged(ldraw::Color color);
14 private: 14 private:
15 EditorTabWidget* const document; 15 ColorTable* const colorTable;
16 class Ui_ColorIndexInput& ui; 16 class Ui_ColorIndexInput& ui;
17 }; 17 };

mercurial