summaryrefslogtreecommitdiff
path: root/lsmaterialeditor.cpp
blob: 20f36f5dda85540dbdde504ee9517491bd6a1270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "lsmaterialeditor.h"

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() {

}