kinputdialog.h
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
class QValidator;
00024
00025
class KLineEdit;
00026
class KIntSpinBox;
00027
class KDoubleSpinBox;
00028
class KComboBox;
00029
class KTextEdit;
00030
class KInputDialogPrivate;
00031
00032
#include <kdialogbase.h>
00033
00046 class KInputDialog :
public KDialogBase
00047 {
00048 Q_OBJECT
00049
00050
private:
00051
00056
KInputDialog(
const QString &caption,
const QString &label,
00057
const QString &value,
QWidget *parent,
const char *name,
00058
QValidator *validator,
const QString &mask );
00059
KInputDialog(
const QString &caption,
const QString &label,
00060
const QString &value,
QWidget *parent,
const char *name );
00061
KInputDialog(
const QString &caption,
const QString &label,
int value,
00062
int minValue,
int maxValue,
int step,
int base,
QWidget *parent,
00063
const char *name );
00064
KInputDialog(
const QString &caption,
const QString &label,
double value,
00065
double minValue,
double maxValue,
double step,
int decimals,
00066
QWidget *parent,
const char *name );
00067
KInputDialog(
const QString &caption,
const QString &label,
00068
const QStringList &list,
int current,
bool editable,
QWidget *parent,
00069
const char *name );
00070
KInputDialog(
const QString &caption,
const QString &label,
00071
const QStringList &list,
const QStringList &select,
bool editable,
00072
QWidget *parent,
const char *name );
00073
00074 ~
KInputDialog();
00075
00076
KLineEdit *lineEdit()
const;
00077
KIntSpinBox *intSpinBox()
const;
00078
KDoubleSpinBox *doubleSpinBox()
const;
00079
KComboBox *comboBox()
const;
00080
KListBox *listBox()
const;
00081
KTextEdit *textEdit()
const;
00082
00083
private slots:
00084
00085
void slotEditTextChanged(
const QString& );
00086
void slotUpdateButtons(
const QString& );
00087
00088
public:
00089
00117
static QString getText(
const QString &caption,
const QString &label,
00118
const QString &value=QString::null,
bool *ok=0,
QWidget *parent=0,
00119
const char *name=0,
QValidator *validator=0,
00120
const QString &mask=QString::null );
00121
00130
static QString text(
const QString &caption,
const QString &label,
00131
const QString &value=QString::null,
bool *ok=0,
QWidget *parent=0,
00132
const char *name=0,
QValidator *validator=0,
00133
const QString &mask=QString::null,
00134
const QString& whatsThis=QString::null );
00135
00154
static QString getMultiLineText(
const QString &caption,
00155
const QString &label,
const QString &value=QString::null,
00156
bool *ok=0,
QWidget *parent=0,
const char *name=0 );
00157
00182
static int getInteger(
const QString &caption,
const QString &label,
00183
int value=0,
int minValue=-2147483647,
int maxValue=2147483647,
00184
int step=1,
int base=10,
bool *ok=0,
QWidget *parent=0,
00185
const char *name=0 );
00186
00191
static int getInteger(
const QString &caption,
const QString &label,
00192
int value=0,
int minValue=-2147483647,
int maxValue=2147483647,
00193
int step=1,
bool *ok=0,
QWidget *parent=0,
const char *name=0 );
00194
00218
static double getDouble(
const QString &caption,
const QString &label,
00219
double value=0,
double minValue=-2147483647,
00220
double maxValue=2147483647,
double step=0.1,
int decimals=1,
00221
bool *ok=0,
QWidget *parent=0,
const char *name=0 );
00222
00227
static double getDouble(
const QString &caption,
const QString &label,
00228
double value=0,
double minValue=-2147483647,
00229
double maxValue=2147483647,
int decimals=1,
bool *ok=0,
00230
QWidget *parent=0,
const char *name=0 );
00231
00252
static QString getItem(
const QString &caption,
const QString &label,
00253
const QStringList &list,
int current=0,
bool editable=
false,
00254
bool *ok=0,
QWidget *parent=0,
const char *name=0 );
00255
00276
static QStringList getItemList(
const QString &caption,
00277
const QString &label,
const QStringList &list=
QStringList(),
00278
const QStringList &select=
QStringList(),
bool multiple=
false,
00279
bool *ok=0,
QWidget *parent=0,
const char *name=0 );
00280
00281
private:
00282
00283 KInputDialogPrivate *d;
00284
friend class KInputDialogPrivate;
00285 };
00286
00287
#endif // KINPUTDIALOG_H
00288
00289
00290
This file is part of the documentation for kdeui Library Version 3.3.0.