Tome
A generic data editor for games supporting arbitrary input and output formats.
Source
Tome
Features
Fields
View
vector3iwidget.h
1
#ifndef VECTOR3IWIDGET_H
2
#define VECTOR3IWIDGET_H
3
4
#include <QHBoxLayout>
5
#include <QSpinBox>
6
#include <QVariant>
7
#include <QWidget>
8
9
10
namespace
Tome
11
{
15
class
Vector3IWidget
:
public
QWidget
16
{
17
Q_OBJECT
18
19
public
:
24
explicit
Vector3IWidget
(QWidget* parent = 0);
25
~
Vector3IWidget
();
26
31
QVariant
getValue
()
const
;
32
37
void
setValue
(
const
QVariant& v);
38
39
private
:
40
QHBoxLayout* layout;
41
42
QSpinBox* spinBoxX;
43
QSpinBox* spinBoxY;
44
QSpinBox* spinBoxZ;
45
};
46
}
47
48
#endif // VECTOR3IWIDGET_H
Tome
Definition:
commandlineoptions.h:6
Tome::Vector3IWidget
Allows editing three-dimensional vectors with integer components.
Definition:
vector3iwidget.h:15
Tome::Vector3IWidget::setValue
void setValue(const QVariant &v)
Sets the current vector.
Definition:
vector3iwidget.cpp:52
Tome::Vector3IWidget::getValue
QVariant getValue() const
Returns the vector as QVariantMap with keys BuiltInType::Vector::X, BuiltInType::Vector::Y and BuiltI...
Definition:
vector3iwidget.cpp:43
Tome::Vector3IWidget::Vector3IWidget
Vector3IWidget(QWidget *parent=0)
Constructs a new widget for editing three-dimensional vectors with integer components.
Definition:
vector3iwidget.cpp:11
Generated on Sun Jun 11 2017 19:29:35 for Tome by
1.8.13