00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KINPUTDIALOG_H
00021 #define KINPUTDIALOG_H
00022
00023 #include <QtCore/QStringList>
00024
00025 #include <kdeui_export.h>
00026
00027 #include <limits.h>
00028 #include <float.h>
00029
00030 class QValidator;
00031
00039 namespace KInputDialog
00040 {
00068 KDEUI_EXPORT QString getText( const QString &caption, const QString &label,
00069 const QString &value=QString(), bool *ok=0, QWidget *parent=0,
00070 QValidator *validator=0,
00071 const QString &mask=QString(),
00072 const QString& whatsThis=QString(),
00073 const QStringList &completionList=QStringList() );
00074
00091 KDEUI_EXPORT QString getMultiLineText( const QString &caption,
00092 const QString &label, const QString &value=QString(),
00093 bool *ok=0, QWidget *parent=0 );
00094
00118 KDEUI_EXPORT int getInteger( const QString &caption, const QString &label,
00119 int value=0, int minValue=INT_MIN, int maxValue=INT_MAX,
00120 int step=1, int base=10, bool *ok=0, QWidget *parent=0 );
00121
00126 KDEUI_EXPORT int getInteger( const QString &caption, const QString &label,
00127 int value=0, int minValue=INT_MIN, int maxValue=INT_MAX,
00128 int step=1, bool *ok=0, QWidget *parent=0 );
00129
00152 KDEUI_EXPORT double getDouble( const QString &caption, const QString &label,
00153 double value=0, double minValue=-DBL_MAX,
00154 double maxValue=DBL_MAX, double step=0.1, int decimals=1,
00155 bool *ok=0, QWidget *parent=0 );
00156
00161 KDEUI_EXPORT double getDouble( const QString &caption, const QString &label,
00162 double value=0, double minValue=-DBL_MAX,
00163 double maxValue=DBL_MAX, int decimals=1, bool *ok=0,
00164 QWidget *parent=0 );
00165
00185 KDEUI_EXPORT QString getItem( const QString &caption, const QString &label,
00186 const QStringList &list, int current=0, bool editable=false,
00187 bool *ok=0, QWidget *parent=0 );
00188
00208 KDEUI_EXPORT QStringList getItemList( const QString &caption,
00209 const QString &label, const QStringList &list=QStringList(),
00210 const QStringList &select=QStringList(), bool multiple=false,
00211 bool *ok=0, QWidget *parent=0 );
00212 }
00213
00214 #endif // KINPUTDIALOG_H
00215
00216
00217