summaryrefslogtreecommitdiff
path: root/lsmaterialeditor.cpp
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.cpp
parentf8c66ff96ae2417e744b2d46daa8577d642b9c9f (diff)
downloadLayoutStudio-b6f36ab434acbf89f0af6ecbea990fbd75035be6.tar.gz
LayoutStudio-b6f36ab434acbf89f0af6ecbea990fbd75035be6.zip
really should have got more done than this here :| oh well
Diffstat (limited to 'lsmaterialeditor.cpp')
-rw-r--r--lsmaterialeditor.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/lsmaterialeditor.cpp b/lsmaterialeditor.cpp
index 1b32635..20f36f5 100644
--- a/lsmaterialeditor.cpp
+++ b/lsmaterialeditor.cpp
@@ -3,4 +3,29 @@
LSMaterialEditor::LSMaterialEditor(QWidget *parent) :
QWidget(parent) {
+ QGridLayout *grid = new QGridLayout(this);
+
+ m_nameEntry = new QLineEdit(this);
+
+ grid->addWidget(new QLabel("Name:", this), 0, 0, 1, 1);
+ grid->addWidget(m_nameEntry, 0, 1, 1, 1);
+
+ m_currentlyLoadingMaterial = false;
+ m_material = 0;
+}
+
+void LSMaterialEditor::setMaterial(LYTMaterial *mat) {
+ m_currentlyLoadingMaterial = true;
+ m_material = mat;
+
+ m_currentlyLoadingMaterial = false;
+}
+
+
+void LSMaterialEditor::handleNameChanged(QString value) {
+
+}
+
+void LSMaterialEditor::handleSaveChangedName() {
+
}