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

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

gcs

File size: 857 bytes
Line 
1#ifndef DOUBLESPINBOX_H
2#define DOUBLESPINBOX_H
3
4#include "FormLayout.h"
5
6class Layout;
7class QDoubleSpinBox;
8
9class DoubleSpinBox: public FormLayout
10{
11    Q_OBJECT
12
13    public:
14        //handle value as string, becouse double value are not exact
15        DoubleSpinBox(Layout* parent,int row, int col,QString name,QString suffix,QString value,float min,float max,float step,int decimals);
16        ~DoubleSpinBox();
17
18    private:
19        QDoubleSpinBox* doublespinbox;
20        QString doublespinbox_value;
21        void SetUptodate(void);
22        void Reset(void);
23        void LoadEvent(QDomElement dom);
24        void ui_to_var(void);
25        void ui_to_xml(void);
26        bool eventFilter(QObject *o, QEvent *e);
27        void adjust_decimals(QString value);
28
29    private slots:
30        void valuechanged(const QString &value);
31};
32
33#endif // DOUBLESPINBOX_H
Note: See TracBrowser for help on using the repository browser.