20 #ifndef KINPUTDIALOG_H
21 #define KINPUTDIALOG_H
23 #include <kdialogbase.h>
32 class KInputDialogPrivate;
56 KInputDialog(
const TQString &caption,
const TQString &label,
57 const TQString &value, TQWidget *parent,
const char *name,
58 TQValidator *validator,
const TQString &mask );
59 KInputDialog(
const TQString &caption,
const TQString &label,
60 const TQString &value, TQWidget *parent,
const char *name );
61 KInputDialog(
const TQString &caption,
const TQString &label,
int value,
62 int minValue,
int maxValue,
int step,
int base, TQWidget *parent,
64 KInputDialog(
const TQString &caption,
const TQString &label,
double value,
65 double minValue,
double maxValue,
double step,
int decimals,
66 TQWidget *parent,
const char *name );
67 KInputDialog(
const TQString &caption,
const TQString &label,
68 const TQStringList &list,
int current,
bool editable, TQWidget *parent,
70 KInputDialog(
const TQString &caption,
const TQString &label,
71 const TQStringList &list,
const TQStringList &select,
bool editable,
72 TQWidget *parent,
const char *name );
85 void slotEditTextChanged(
const TQString& );
86 void slotUpdateButtons(
const TQString& );
117 static TQString getText(
const TQString &caption,
const TQString &label,
118 const TQString &value=TQString::null,
bool *ok=0, TQWidget *parent=0,
119 const char *name=0, TQValidator *validator=0,
120 const TQString &mask=TQString::null );
130 static TQString text(
const TQString &caption,
const TQString &label,
131 const TQString &value=TQString::null,
bool *ok=0, TQWidget *parent=0,
132 const char *name=0, TQValidator *validator=0,
133 const TQString &mask=TQString::null,
134 const TQString& whatsThis=TQString::null );
154 static TQString getMultiLineText(
const TQString &caption,
155 const TQString &label,
const TQString &value=TQString::null,
156 bool *ok=0, TQWidget *parent=0,
const char *name=0 );
182 static int getInteger(
const TQString &caption,
const TQString &label,
183 int value=0,
int minValue=-2147483647,
int maxValue=2147483647,
184 int step=1,
int base=10,
bool *ok=0, TQWidget *parent=0,
185 const char *name=0 );
191 static int getInteger(
const TQString &caption,
const TQString &label,
192 int value=0,
int minValue=-2147483647,
int maxValue=2147483647,
193 int step=1,
bool *ok=0, TQWidget *parent=0,
const char *name=0 );
218 static double getDouble(
const TQString &caption,
const TQString &label,
219 double value=0,
double minValue=-2147483647,
220 double maxValue=2147483647,
double step=0.1,
int decimals=1,
221 bool *ok=0, TQWidget *parent=0,
const char *name=0 );
227 static double getDouble(
const TQString &caption,
const TQString &label,
228 double value=0,
double minValue=-2147483647,
229 double maxValue=2147483647,
int decimals=1,
bool *ok=0,
230 TQWidget *parent=0,
const char *name=0 );
252 static TQString getItem(
const TQString &caption,
const TQString &label,
253 const TQStringList &list,
int current=0,
bool editable=
false,
254 bool *ok=0, TQWidget *parent=0,
const char *name=0 );
276 static TQStringList getItemList(
const TQString &caption,
277 const TQString &label,
const TQStringList &list=TQStringList(),
278 const TQStringList &select=TQStringList(),
bool multiple=
false,
279 bool *ok=0, TQWidget *parent=0,
const char *name=0 );
283 KInputDialogPrivate*
const d;
284 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.