20 #ifndef KINPUTDIALOG_H
21 #define KINPUTDIALOG_H
25 #include <kdialogbase.h>
34 class KInputDialogPrivate;
58 KInputDialog(
const TQString &caption,
const TQString &label,
59 const TQString &value, TQWidget *parent,
const char *name,
60 TQValidator *validator,
const TQString &mask );
61 KInputDialog(
const TQString &caption,
const TQString &label,
62 const TQString &value, TQWidget *parent,
const char *name );
63 KInputDialog(
const TQString &caption,
const TQString &label,
int value,
64 int minValue,
int maxValue,
int step,
int base, TQWidget *parent,
66 KInputDialog(
const TQString &caption,
const TQString &label,
double value,
67 double minValue,
double maxValue,
double step,
int decimals,
68 TQWidget *parent,
const char *name );
69 KInputDialog(
const TQString &caption,
const TQString &label,
70 const TQStringList &list,
int current,
bool editable, TQWidget *parent,
72 KInputDialog(
const TQString &caption,
const TQString &label,
73 const TQStringList &list,
const TQStringList &select,
bool editable,
74 TQWidget *parent,
const char *name );
87 void slotEditTextChanged(
const TQString& );
88 void slotUpdateButtons(
const TQString& );
119 static TQString getText(
const TQString &caption,
const TQString &label,
120 const TQString &value=TQString::null,
bool *ok=0, TQWidget *parent=0,
121 const char *name=0, TQValidator *validator=0,
122 const TQString &mask=TQString::null );
132 static TQString text(
const TQString &caption,
const TQString &label,
133 const TQString &value=TQString::null,
bool *ok=0, TQWidget *parent=0,
134 const char *name=0, TQValidator *validator=0,
135 const TQString &mask=TQString::null,
136 const TQString& whatsThis=TQString::null );
156 static TQString getMultiLineText(
const TQString &caption,
157 const TQString &label,
const TQString &value=TQString::null,
158 bool *ok=0, TQWidget *parent=0,
const char *name=0 );
184 static int getInteger(
const TQString &caption,
const TQString &label,
185 int value=0,
int minValue=-2147483647,
int maxValue=2147483647,
186 int step=1,
int base=10,
bool *ok=0, TQWidget *parent=0,
187 const char *name=0 );
193 static int getInteger(
const TQString &caption,
const TQString &label,
194 int value=0,
int minValue=-2147483647,
int maxValue=2147483647,
195 int step=1,
bool *ok=0, TQWidget *parent=0,
const char *name=0 );
220 static double getDouble(
const TQString &caption,
const TQString &label,
221 double value=0,
double minValue=-2147483647,
222 double maxValue=2147483647,
double step=0.1,
int decimals=1,
223 bool *ok=0, TQWidget *parent=0,
const char *name=0 );
229 static double getDouble(
const TQString &caption,
const TQString &label,
230 double value=0,
double minValue=-2147483647,
231 double maxValue=2147483647,
int decimals=1,
bool *ok=0,
232 TQWidget *parent=0,
const char *name=0 );
254 static TQString getItem(
const TQString &caption,
const TQString &label,
255 const TQStringList &list,
int current=0,
bool editable=
false,
256 bool *ok=0, TQWidget *parent=0,
const char *name=0 );
278 static TQStringList getItemList(
const TQString &caption,
279 const TQString &label,
const TQStringList &list=TQStringList(),
280 const TQStringList &select=TQStringList(),
bool multiple=
false,
281 bool *ok=0, TQWidget *parent=0,
const char *name=0 );
285 KInputDialogPrivate*
const d;
286 friend class KInputDialogPrivate;
A dialog base class with standard buttons and predefined layouts.
A spin box for fractional numbers.
A TQSpinBox with support for arbitrary base numbers.
An enhanced TQLineEdit widget for inputting text.
A variant of TQListBox that honors KDE's system-wide settings.