diff options
author | Treeki <treeki@gmail.com> | 2012-08-19 01:48:36 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-19 01:48:36 +0200 |
commit | 2883326061ccadc1b21376dc25c92e1d6751d592 (patch) | |
tree | 8488da79605991d1b02a97d3eb78741c47647103 /lstexcoordseteditor.h | |
parent | 195efe4ebab933bfbba7f7bf06cf4592b865d008 (diff) | |
download | LayoutStudio-2883326061ccadc1b21376dc25c92e1d6751d592.tar.gz LayoutStudio-2883326061ccadc1b21376dc25c92e1d6751d592.zip |
added a tex coord set editor and the beginnings of a Picture tab
Diffstat (limited to '')
-rw-r--r-- | lstexcoordseteditor.h | 40 |
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 |