00001 /* 00002 =. This file is part of the Opie Project 00003 .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> 00004 .>+-= 00005 _;:, .> :=|. This program is free software; you can 00006 .> <`_, > . <= redistribute it and/or modify it under 00007 :`=1 )Y*s>-.-- : the terms of the GNU General Public 00008 .="- .-=="i, .._ License as published by the Free Software 00009 - . .-<_> .<> Foundation; either version 2 of the License, 00010 ._= =} : or (at your option) any later version. 00011 .%`+i> _;_. 00012 .i_,=:_. -<s. This program is distributed in the hope that 00013 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00014 : .. .:, . . . without even the implied warranty of 00015 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00016 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00017 ..}^=.= = ; Library General Public License for more 00018 ++= -. .` .: details. 00019 : = ...= . :.=- 00020 -. .:....=;==+<; You should have received a copy of the GNU 00021 -_. . . )=. = Library General Public License along with 00022 -- :-=` this library; see the file COPYING.LIB. 00023 If not, write to the Free Software Foundation, 00024 Inc., 59 Temple Place - Suite 330, 00025 Boston, MA 02111-1307, USA. 00026 00027 */ 00028 00029 /* 00030 * Opie Sheet (formerly Sheet/Qt) 00031 * by Serdar Ozler <sozler@sitebest.com> 00032 */ 00033 00034 #ifndef NUMBERDLG_H 00035 #define NUMBERDLG_H 00036 00037 /* QT */ 00038 #include <qdialog.h> 00039 #include <qlabel.h> 00040 #include <qspinbox.h> 00041 00042 class NumberDialog: public QDialog 00043 { 00044 Q_OBJECT 00045 00046 // QT objects 00047 QLabel *label; 00048 QSpinBox *edit; 00049 00050 public: 00051 NumberDialog(QWidget *parent=0); 00052 ~NumberDialog(); 00053 00054 int exec(const QString &caption, const QString &text, int value=1, int min=1, int max=99, int step=1); 00055 int getValue(); 00056 }; 00057 00058 #endif
1.4.2