Diffstat (limited to 'noncore/apps/opie-sheet/numberdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/numberdlg.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/noncore/apps/opie-sheet/numberdlg.h b/noncore/apps/opie-sheet/numberdlg.h new file mode 100644 index 0000000..46af1d0 --- a/dev/null +++ b/noncore/apps/opie-sheet/numberdlg.h @@ -0,0 +1,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 |