mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-23 07:38:09 -05:00
31 lines
502 B
C++
31 lines
502 B
C++
#ifndef VECTOR3EDIT_H
|
|
#define VECTOR3EDIT_H
|
|
|
|
#include <QDoubleSpinBox>
|
|
#include <QWidget>
|
|
|
|
#include <types.h>
|
|
|
|
class Vector3Edit : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Vector3Edit(QWidget *parent = nullptr);
|
|
|
|
si::Vector3 GetValue() const;
|
|
void SetValue(const si::Vector3 &xyz);
|
|
|
|
signals:
|
|
void changed(const si::Vector3 &v);
|
|
|
|
private:
|
|
QDoubleSpinBox *x_edit_;
|
|
QDoubleSpinBox *y_edit_;
|
|
QDoubleSpinBox *z_edit_;
|
|
|
|
private slots:
|
|
void internalChanged();
|
|
|
|
};
|
|
|
|
#endif // VECTOR3EDIT_H
|