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

Last change on this file since 313 was 269, checked in by Sanahuja Guillaume, 6 years ago

flairgcs:
speed up processing time when receiving datas from uav
triger watchdog while receiving datas from uav
(avoids connection lost in uav)

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