source: flair-src/trunk/tools/FlairGCS/src/Vector3DSpinBox.h @ 9

Last change on this file since 9 was 9, checked in by Sanahuja Guillaume, 5 years ago

gcs

File size: 1.1 KB
Line 
1#ifndef VECTOR3DSPINBOX_H
2#define VECTOR3DSPINBOX_H
3
4#include "XmlWidget.h"
5#include <QDoubleSpinBox>
6
7class Layout;
8class QGroupBox;
9class QGridLayout;
10
11class Vector3DSpinBox: public XmlWidget
12{
13    Q_OBJECT
14
15    public:
16        //handle value as string, becouse double value are not exact
17        Vector3DSpinBox(Layout* parent,int row, int col,QString name,QString value[3],float min,float max,float step,int decimals);
18        ~Vector3DSpinBox();
19
20    private:
21        QGridLayout* qgridlayout;
22        QGroupBox* box;
23        QDoubleSpinBox doublespinbox[3];
24        QString doublespinbox_value[3];
25        void AddElement(QString name,int index);
26        void SetUptodate(void);
27        void SetValues(QString value[3]);
28        void Reset(void);
29        void LoadEvent(QDomElement dom);
30        void ui_to_var(void);
31        void ui_to_xml(void);
32        bool eventFilter(QObject *o, QEvent *e);
33        void adjust_decimals(QString value[3]);
34        bool IsUptodate(void);
35
36    private slots:
37        void valuechanged(const QString &value);
38};
39
40#endif // VECTOR3DSPINBOX_H
Note: See TracBrowser for help on using the repository browser.