org.kde.koala
public class KInputDialog extends KDialogBase
UNKNOWN: The KInputDialog class provides a simple dialog to get a single value from the user.
Constructor Summary | |
---|---|
protected | KInputDialog(Class dummy) |
Method Summary | |
---|---|
String | className() |
static String | getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok, QWidget parent, String name)
Static convenience function to let the user select an item from a
list. caption is the text that is displayed in the title bar.
label is the text that appears as the label for the list. list
is the string list which is inserted into the list, and current
is the number of the item which should be the selected item. |
static String | getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok, QWidget parent) |
static String | getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok) |
static String | getItem(String caption, String label, String[] list, int current, boolean editable) |
static String | getItem(String caption, String label, String[] list, int current) |
static String | getItem(String caption, String label, String[] list) |
static ArrayList | getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok, QWidget parent, String name)
Static convenience function to let the user select one or more
items from a listbox. caption is the text that is displayed in the
title bar. label is the text that appears as the label for the listbox.
list is the string list which is inserted into the listbox, select
is the list of item(s) that should be the selected. |
static ArrayList | getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok, QWidget parent) |
static ArrayList | getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok) |
static ArrayList | getItemList(String caption, String label, String[] list, String[] select, boolean multiple) |
static ArrayList | getItemList(String caption, String label, String[] list, String[] select) |
static ArrayList | getItemList(String caption, String label, String[] list) |
static ArrayList | getItemList(String caption, String label) |
static String | getMultiLineText(String caption, String label, String value, boolean[] ok, QWidget parent, String name)
Static convenience function to get a multiline string from the user.
caption is the text that is displayed in the title bar. label is the
text that appears as a label for the line edit. value is the initial
value of the line edit. ok will be set to true if user pressed Ok
and false if user pressed Cancel. |
static String | getMultiLineText(String caption, String label, String value, boolean[] ok, QWidget parent) |
static String | getMultiLineText(String caption, String label, String value, boolean[] ok) |
static String | getMultiLineText(String caption, String label, String value) |
static String | getMultiLineText(String caption, String label) |
static String | getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask)
Static convenience function to get a string from the user.
caption is the text that is displayed in the title bar. label is the
text that appears as a label for the line edit. value is the initial
value of the line edit. ok will be set to true if user pressed Ok
and false if user pressed Cancel.
|
static String | getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator) |
static String | getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name) |
static String | getText(String caption, String label, String value, boolean[] ok, QWidget parent) |
static String | getText(String caption, String label, String value, boolean[] ok) |
static String | getText(String caption, String label, String value) |
static String | getText(String caption, String label) |
QMetaObject | metaObject() |
static String | text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask, String whatsThis)
Same as KInputDialog except it provides an extra parameter to specify
a QWhatsThis text for the input widget.
|
static String | text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask) |
static String | text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator) |
static String | text(String caption, String label, String value, boolean[] ok, QWidget parent, String name) |
static String | text(String caption, String label, String value, boolean[] ok, QWidget parent) |
static String | text(String caption, String label, String value, boolean[] ok) |
static String | text(String caption, String label, String value) |
static String | text(String caption, String label) |
Parameters: caption Caption of the dialog label Text of the label for the spin box list List of item for user to choose from current Index of the selected item editable If true, user can enter own text ok This boolean would be set to true if user pressed Ok parent Parent of the dialog widget name Name of the dialog widget
Returns: Text of the selected item. If editable
is true this can be
a text entered by the user.
UNKNOWN: Static convenience function to let the user select an item from a list.
Parameters: caption Caption of the dialog label Text of the label for the spin box list List of item for user to choose from select List of item(s) that should be selected multiple If true, user can select multiple items ok This boolean would be set to true if user pressed Ok parent Parent of the dialog widget name Name of the dialog widget
Returns: List of selected items if multiple is true, else currently selected item as an ArrayList
UNKNOWN: Static convenience function to let the user select one or more items from a listbox.
Parameters: caption Caption of the dialog label Text of the label for the line edit value Initial value of the line edit ok This boolean would be set to true if user pressed Ok parent Parent of the dialog widget name Name of the dialog widget
Returns: String user entered if Ok was pressed, else a null string
UNKNOWN: Static convenience function to get a multiline string from the user.
Parameters: caption Caption of the dialog label Text of the label for the line edit value Initial value of the line edit ok This boolean would be set to true if user pressed Ok parent Parent of the dialog widget name Name of the dialog widget validator A QValidator to be associated with the line edit mask Mask associated with the line edit. See the documentation for QLineEdit about masks.
Returns: String user entered if Ok was pressed, else a null string
UNKNOWN: Static convenience function to get a string from the user.
UNKNOWN: Same as @ref getText except it provides an extra parameter to specify a QWhatsThis text for the input widget.