Last change
on this file since 110 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
679 bytes
|
Rev | Line | |
---|
[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 SPINBOX_H
|
---|
| 6 | #define SPINBOX_H
|
---|
| 7 |
|
---|
| 8 | #include "FormLayout.h"
|
---|
| 9 |
|
---|
| 10 | class Layout;
|
---|
| 11 | class QSpinBox;
|
---|
| 12 |
|
---|
[15] | 13 | class SpinBox : public FormLayout {
|
---|
| 14 | Q_OBJECT
|
---|
[9] | 15 |
|
---|
[15] | 16 | public:
|
---|
| 17 | SpinBox(Layout *parent, int row, int col, QString name, QString suffix,
|
---|
| 18 | int value, int min, int max, int step);
|
---|
| 19 | ~SpinBox();
|
---|
[9] | 20 |
|
---|
[15] | 21 | private:
|
---|
| 22 | QSpinBox *spinbox;
|
---|
| 23 | int spinbox_value;
|
---|
| 24 | void SetUptodate(void);
|
---|
| 25 | void Reset(void);
|
---|
| 26 | void LoadEvent(QDomElement dom);
|
---|
[9] | 27 |
|
---|
[15] | 28 | void ui_to_var(void);
|
---|
| 29 | void ui_to_xml(void);
|
---|
[9] | 30 |
|
---|
[15] | 31 | private slots:
|
---|
| 32 | void valuechanged(int value);
|
---|
[9] | 33 | };
|
---|
| 34 |
|
---|
| 35 | #endif // SPINBOX_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.