summaryrefslogtreecommitdiff
path: root/lstexcoordseteditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstexcoordseteditor.h')
-rw-r--r--lstexcoordseteditor.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/lstexcoordseteditor.h b/lstexcoordseteditor.h
new file mode 100644
index 0000000..5d7d567
--- /dev/null
+++ b/lstexcoordseteditor.h
@@ -0,0 +1,40 @@
+#ifndef LSTEXCOORDSETEDITOR_H
+#define LSTEXCOORDSETEDITOR_H
+
+#include <QWidget>
+#include <QComboBox>
+#include <QDoubleSpinBox>
+#include "lyt/common.h"
+
+class LSTexCoordSetEditor : public QWidget
+{
+ Q_OBJECT
+public:
+ explicit LSTexCoordSetEditor(QWidget *parent = 0);
+
+ void setCoordPtr(QVector<LYTTexCoords> *coords);
+
+private:
+ QVector<LYTTexCoords> *m_targetCoords;
+ QSpinBox *m_coordCount;
+ QComboBox *m_chooser;
+ QDoubleSpinBox *m_coordEntry[8];
+
+ int m_loadingThings;
+
+ void changeChooserCountTo(int count);
+ void showCoordSet(int index);
+
+private slots:
+ void handleCoordCountChanged(int count);
+ void handleSetSelected(int index);
+ void handleCoordChanged(double value);
+
+signals:
+ void coordsEdited();
+
+public slots:
+
+};
+
+#endif // LSTEXCOORDSETEDITOR_H