summaryrefslogtreecommitdiff
path: root/lsmaterialeditor.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-05 00:41:39 +0200
committerTreeki <treeki@gmail.com>2012-09-05 00:41:39 +0200
commitb6f36ab434acbf89f0af6ecbea990fbd75035be6 (patch)
treeeebd245ec08b029f3f9c8733cdffd3d287c1640d /lsmaterialeditor.h
parentf8c66ff96ae2417e744b2d46daa8577d642b9c9f (diff)
downloadLayoutStudio-b6f36ab434acbf89f0af6ecbea990fbd75035be6.tar.gz
LayoutStudio-b6f36ab434acbf89f0af6ecbea990fbd75035be6.zip
really should have got more done than this here :| oh well
Diffstat (limited to '')
-rw-r--r--lsmaterialeditor.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/lsmaterialeditor.h b/lsmaterialeditor.h
index e594acc..ba18762 100644
--- a/lsmaterialeditor.h
+++ b/lsmaterialeditor.h
@@ -2,16 +2,37 @@
#define LSMATERIALEDITOR_H
#include <QWidget>
+#include <QGridLayout>
+#include <QLabel>
+#include <QLineEdit>
+#include "lyt/materials/materialcontainer.h"
+#include "lscolorpicker.h"
class LSMaterialEditor : public QWidget {
Q_OBJECT
public:
explicit LSMaterialEditor(QWidget *parent = 0);
-
+
+private:
+ QLineEdit *m_nameEntry;
+
+ LSColorPicker *m_colourPickers[7];
+
+ bool m_currentlyLoadingMaterial;
+ LYTMaterial *m_material;
+
+private slots:
+ void handleNameChanged(QString value);
+ void handleSaveChangedName();
+
+ void handleColourPicked(QColor value);
+
signals:
-
+ void mustRedrawLayout();
+
public slots:
-
+ void setMaterial(LYTMaterial *mat);
+
};
#endif // LSMATERIALEDITOR_H