blob: 46af1d05e2aba90cfd441cb2c435b4bde17507a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef NUMBERDLG_H
#define NUMBERDLG_H
#include <qdialog.h>
#include <qlabel.h>
#include <qspinbox.h>
class NumberDialog: public QDialog
{
Q_OBJECT
// QT objects
QLabel *label;
QSpinBox *edit;
public:
NumberDialog(QWidget *parent=0);
~NumberDialog();
int exec(const QString &caption, const QString &text, int value=1, int min=1, int max=99, int step=1);
int getValue();
};
#endif
|