Last change
on this file since 412 was 324, checked in by Sanahuja Guillaume, 5 years ago |
removing opencv dependency
|
File size:
930 bytes
|
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 DOUBLESPINBOX_H
|
---|
6 | #define DOUBLESPINBOX_H
|
---|
7 |
|
---|
8 | #include "FormLayout.h"
|
---|
9 |
|
---|
10 | class Layout;
|
---|
11 | class QDoubleSpinBox;
|
---|
12 |
|
---|
13 | class DoubleSpinBox : public FormLayout {
|
---|
14 | Q_OBJECT
|
---|
15 |
|
---|
16 | public:
|
---|
17 | // handle value as string, becouse double value are not exact
|
---|
18 | DoubleSpinBox(Layout *parent, int row, int col, QString name, QString suffix,
|
---|
19 | QString value, float min, float max, float step, int decimals);
|
---|
20 | ~DoubleSpinBox();
|
---|
21 |
|
---|
22 | private:
|
---|
23 | QDoubleSpinBox *doublespinbox;
|
---|
24 | QString doublespinbox_value;
|
---|
25 | void SetUptodate(void);
|
---|
26 | void Reset(void);
|
---|
27 | void LoadEvent(QDomElement *dom);
|
---|
28 | void ui_to_var(void);
|
---|
29 | void ui_to_xml(void);
|
---|
30 | bool eventFilter(QObject *o, QEvent *e);
|
---|
31 | void adjust_decimals(QString value);
|
---|
32 |
|
---|
33 | private slots:
|
---|
34 | void valuechanged(const QString &value);
|
---|
35 | };
|
---|
36 |
|
---|
37 | #endif // DOUBLESPINBOX_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.