C# Class Kimono.KInputDialog

ファイルを表示 Open project: 0xd34df00d/Qross

Public Methods

Method Description
GetItem ( string caption, string label, List list ) : string
GetItem ( string caption, string label, List list, int current ) : string
GetItem ( string caption, string label, List list, int current, bool editable ) : string
GetItem ( string caption, string label, List list, int current, bool editable, bool &ok ) : string
GetItem ( string caption, string label, List list, int current, bool editable, bool &ok, QWidget parent ) : string 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. If editable is true, the user can enter his own text. name="caption" Caption of the dialog name="label" Text of the label for the list name="list" List of item for user to choose from name="current" Index of the selected item name="editable" If true, user can enter own text name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget
GetItemList ( string caption, string label ) : List
GetItemList ( string caption, string label, List list ) : List
GetItemList ( string caption, string label, List list, List select ) : List
GetItemList ( string caption, string label, List list, List select, bool multiple ) : List
GetItemList ( string caption, string label, List list, List select, bool multiple, bool &ok ) : List
GetItemList ( string caption, string label, List list, List select, bool multiple, bool &ok, QWidget parent ) : List 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. If multiple is true, the user can select multiple items. name="caption" Caption of the dialog name="label" Text of the label for the list name="list" List of item for user to choose from name="select" List of item(s) that should be selected name="multiple" If true, user can select multiple items name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget
GetMultiLineText ( string caption, string label ) : string
GetMultiLineText ( string caption, string label, string value ) : string
GetMultiLineText ( string caption, string label, string value, bool &ok ) : string
GetMultiLineText ( string caption, string label, string value, bool &ok, QWidget parent ) : string 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. name="caption" Caption of the dialog name="label" Text of the label for the line edit name="value" Initial value of the line edit name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget
GetText ( string caption, string label ) : string
GetText ( string caption, string label, string value ) : string
GetText ( string caption, string label, string value, bool &ok ) : string
GetText ( string caption, string label, string value, bool &ok, QWidget parent ) : string
GetText ( string caption, string label, string value, bool &ok, QWidget parent, QValidator validator ) : string
GetText ( string caption, string label, string value, bool &ok, QWidget parent, QValidator validator, string mask ) : string
GetText ( string caption, string label, string value, bool &ok, QWidget parent, QValidator validator, string mask, string whatsThis ) : string
GetText ( string caption, string label, string value, bool &ok, QWidget parent, QValidator validator, string mask, string whatsThis, List completionList ) : string 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. If you provide a validator, the Ok button is disabled as long as the validator doesn't return Acceptable. If there is no validator, the Ok button is enabled whenever the line edit isn't empty. If you want to accept empty input, create a trivial QValidator that always returns acceptable, e.g. QRegExpValidator with a regexp of ".*". name="caption" Caption of the dialog name="label" Text of the label for the line edit name="value" Initial value of the line edit name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget name="validator" A to be associated with the line edit name="mask" Mask associated with the line edit. See the documentation for about masks name="whatsThis" a QWhatsThis text for the input widget. name="completionList" a list of items which should be used for input completion

Private Methods

Method Description
KInputDialog ( ) : System

Method Details

GetItem() public static method

public static GetItem ( string caption, string label, List list ) : string
caption string
label string
list List
return string

GetItem() public static method

public static GetItem ( string caption, string label, List list, int current ) : string
caption string
label string
list List
current int
return string

GetItem() public static method

public static GetItem ( string caption, string label, List list, int current, bool editable ) : string
caption string
label string
list List
current int
editable bool
return string

GetItem() public static method

public static GetItem ( string caption, string label, List list, int current, bool editable, bool &ok ) : string
caption string
label string
list List
current int
editable bool
ok bool
return string

GetItem() public static method

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. If editable is true, the user can enter his own text. name="caption" Caption of the dialog name="label" Text of the label for the list name="list" List of item for user to choose from name="current" Index of the selected item name="editable" If true, user can enter own text name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget
public static GetItem ( string caption, string label, List list, int current, bool editable, bool &ok, QWidget parent ) : string
caption string
label string
list List
current int
editable bool
ok bool
parent Qyoto.QWidget
return string

GetItemList() public static method

public static GetItemList ( string caption, string label ) : List
caption string
label string
return List

GetItemList() public static method

public static GetItemList ( string caption, string label, List list ) : List
caption string
label string
list List
return List

GetItemList() public static method

public static GetItemList ( string caption, string label, List list, List select ) : List
caption string
label string
list List
select List
return List

GetItemList() public static method

public static GetItemList ( string caption, string label, List list, List select, bool multiple ) : List
caption string
label string
list List
select List
multiple bool
return List

GetItemList() public static method

public static GetItemList ( string caption, string label, List list, List select, bool multiple, bool &ok ) : List
caption string
label string
list List
select List
multiple bool
ok bool
return List

GetItemList() public static method

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. If multiple is true, the user can select multiple items. name="caption" Caption of the dialog name="label" Text of the label for the list name="list" List of item for user to choose from name="select" List of item(s) that should be selected name="multiple" If true, user can select multiple items name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget
public static GetItemList ( string caption, string label, List list, List select, bool multiple, bool &ok, QWidget parent ) : List
caption string
label string
list List
select List
multiple bool
ok bool
parent Qyoto.QWidget
return List

GetMultiLineText() public static method

public static GetMultiLineText ( string caption, string label ) : string
caption string
label string
return string

GetMultiLineText() public static method

public static GetMultiLineText ( string caption, string label, string value ) : string
caption string
label string
value string
return string

GetMultiLineText() public static method

public static GetMultiLineText ( string caption, string label, string value, bool &ok ) : string
caption string
label string
value string
ok bool
return string

GetMultiLineText() public static method

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. name="caption" Caption of the dialog name="label" Text of the label for the line edit name="value" Initial value of the line edit name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget
public static GetMultiLineText ( string caption, string label, string value, bool &ok, QWidget parent ) : string
caption string
label string
value string
ok bool
parent Qyoto.QWidget
return string

GetText() public static method

public static GetText ( string caption, string label ) : string
caption string
label string
return string

GetText() public static method

public static GetText ( string caption, string label, string value ) : string
caption string
label string
value string
return string

GetText() public static method

public static GetText ( string caption, string label, string value, bool &ok ) : string
caption string
label string
value string
ok bool
return string

GetText() public static method

public static GetText ( string caption, string label, string value, bool &ok, QWidget parent ) : string
caption string
label string
value string
ok bool
parent Qyoto.QWidget
return string

GetText() public static method

public static GetText ( string caption, string label, string value, bool &ok, QWidget parent, QValidator validator ) : string
caption string
label string
value string
ok bool
parent Qyoto.QWidget
validator Qyoto.QValidator
return string

GetText() public static method

public static GetText ( string caption, string label, string value, bool &ok, QWidget parent, QValidator validator, string mask ) : string
caption string
label string
value string
ok bool
parent Qyoto.QWidget
validator Qyoto.QValidator
mask string
return string

GetText() public static method

public static GetText ( string caption, string label, string value, bool &ok, QWidget parent, QValidator validator, string mask, string whatsThis ) : string
caption string
label string
value string
ok bool
parent Qyoto.QWidget
validator Qyoto.QValidator
mask string
whatsThis string
return string

GetText() public static method

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. If you provide a validator, the Ok button is disabled as long as the validator doesn't return Acceptable. If there is no validator, the Ok button is enabled whenever the line edit isn't empty. If you want to accept empty input, create a trivial QValidator that always returns acceptable, e.g. QRegExpValidator with a regexp of ".*". name="caption" Caption of the dialog name="label" Text of the label for the line edit name="value" Initial value of the line edit name="ok" This bool would be set to true if user pressed Ok name="parent" Parent of the dialog widget name="validator" A to be associated with the line edit name="mask" Mask associated with the line edit. See the documentation for about masks name="whatsThis" a QWhatsThis text for the input widget. name="completionList" a list of items which should be used for input completion
public static GetText ( string caption, string label, string value, bool &ok, QWidget parent, QValidator validator, string mask, string whatsThis, List completionList ) : string
caption string
label string
value string
ok bool
parent Qyoto.QWidget
validator Qyoto.QValidator
mask string
whatsThis string
completionList List
return string