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

Last change on this file since 269 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
RevLine 
[10]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[10]4// %flair:license}
[9]5#ifndef VECTOR3DSPINBOX_H
6#define VECTOR3DSPINBOX_H
7
8#include "XmlWidget.h"
9#include <QDoubleSpinBox>
10
11class Layout;
12class QGroupBox;
13class QGridLayout;
14
[15]15class Vector3DSpinBox : public XmlWidget {
16 Q_OBJECT
[9]17
[15]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();
[9]24
[15]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);
[269]34 void LoadEvent(QDomElement *dom);
[15]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);
[9]40
[15]41private slots:
42 void valuechanged(const QString &value);
[9]43};
44
45#endif // VECTOR3DSPINBOX_H
Note: See TracBrowser for help on using the repository browser.