org.kde.koala
public class KSelectAction extends KAction
UNKNOWN: Action for selecting one of several items.
Constructor Summary | |
---|---|
protected | KSelectAction(Class dummy) |
KSelectAction(String text, KShortcut cut, QObject parent, String name)
Constructs a select action with text and potential keyboard
accelerator but nothing else. | |
KSelectAction(String text, KShortcut cut, QObject parent) | |
KSelectAction(String text, KShortcut cut) | |
KSelectAction(String text) | |
KSelectAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) | |
KSelectAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) | |
KSelectAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) | |
KSelectAction(String text, QIconSet pix, KShortcut cut, QObject parent) | |
KSelectAction(String text, QIconSet pix, KShortcut cut) | |
KSelectAction(String text, QIconSet pix) | |
KSelectAction(String text, String pix, KShortcut cut, QObject parent, String name) | |
KSelectAction(String text, String pix, KShortcut cut, QObject parent) | |
KSelectAction(String text, String pix, KShortcut cut) | |
KSelectAction(String text, String pix) | |
KSelectAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) | |
KSelectAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) | |
KSelectAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) | |
KSelectAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) | |
KSelectAction(QObject parent, String name) | |
KSelectAction(QObject parent) | |
KSelectAction() |
Method Summary | |
---|---|
void | changeItem(int index, String text)
Changes the text of item @param index to @param text . |
protected void | changeItem(int id, int index, String text) |
String | className() |
void | clear()
Clears up all the items in this action |
protected ArrayList | comboItems()
Depending on the menuAccelsEnabled property this method will return the
actions items in a way for inclusion in a combobox with the ampersand
character removed from all items or not. |
int | comboWidth()
When this action is plugged into a toolbar, it creates a combobox.
|
int | currentItem()
Returns the index of the current item. |
String | currentText()
Returns the text of the currently selected item. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isEditable()
When this action is plugged into a toolbar, it creates a combobox. |
ArrayList | items() |
boolean | menuAccelsEnabled() |
QMetaObject | metaObject() |
int | plug(QWidget widget, int index)
"Plug" or insert this action into a given widget.
|
int | plug(QWidget widget) |
QPopupMenu | popupMenu()
Returns a pointer to the popup menu used by this action. |
boolean | removeAmpersandsInCombo() |
void | setComboWidth(int width)
When this action is plugged into a toolbar, it creates a combobox.
|
void | setCurrentItem(int index)
Sets the currently checked item. |
void | setEditable(boolean arg1)
When this action is plugged into a toolbar, it creates a combobox.
|
void | setItems(String[] lst)
Sets the items to be displayed in this action
You need to call this. |
void | setMaxComboViewCount(int n)
Sets the maximum items that are visible at once if the action
is a combobox, that is the number of items in the combobox's viewport
Only works before the action is plugged |
void | setMenuAccelsEnabled(boolean b)
Sets whether any occurrence of the ampersand character ( & ) in items
should be interpreted as keyboard accelerator for items displayed in a
menu or not. |
protected void | slotActivated(int id) |
protected void | slotActivated(String text) |
protected void | slotActivated() |
protected void | updateClear(int id) |
protected void | updateComboWidth(int id) |
protected void | updateCurrentItem(int id) |
protected void | updateItems(int id) |
Parameters: text The text that will be displayed. cut The corresponding keyboard accelerator (shortcut). parent This action's parent. name An internal name for this action.
UNKNOWN: Constructs a select action with text and potential keyboard accelerator but nothing else.
Parameters: text The text that will be displayed. cut The corresponding keyboard accelerator (shortcut). receiver The SLOT's parent. slot The SLOT to invoke to execute this action. parent This action's parent. name An internal name for this action.
UNKNOWN:
Parameters: text The text that will be displayed. pix The icons that go with this action. cut The corresponding keyboard accelerator (shortcut). parent This action's parent. name An internal name for this action.
UNKNOWN:
Parameters: text The text that will be displayed. pix The dynamically loaded icon that goes with this action. cut The corresponding keyboard accelerator (shortcut). parent This action's parent. name An internal name for this action.
UNKNOWN:
Parameters: text The text that will be displayed. pix The icons that go with this action. cut The corresponding keyboard accelerator (shortcut). receiver The SLOT's parent. slot The SLOT to invoke to execute this action. parent This action's parent. name An internal name for this action.
UNKNOWN:
Parameters: text The text that will be displayed. pix The dynamically loaded icon that goes with this action. cut The corresponding keyboard accelerator (shortcut). receiver The SLOT's parent. slot The SLOT to invoke to execute this action. parent This action's parent. name An internal name for this action.
UNKNOWN:
Parameters: parent This action's parent. name An internal name for this action.
UNKNOWN:
UNKNOWN: Changes the text of item @param index to @param text .
UNKNOWN: Clears up all the items in this action
UNKNOWN: Depending on the menuAccelsEnabled property this method will return the actions items in a way for inclusion in a combobox with the ampersand character removed from all items or not.
UNKNOWN: When this action is plugged into a toolbar, it creates a combobox.
See Also: KSelectAction
UNKNOWN: Returns the index of the current item.
UNKNOWN: Returns the text of the currently selected item.
Returns: true if the combo editable.
UNKNOWN: When this action is plugged into a toolbar, it creates a combobox.
Returns: the items that can be selected with this action. Use setItems to set them.
UNKNOWN:
Parameters: widget The GUI element to display this action. index The index of the item.
UNKNOWN: "Plug" or insert this action into a given widget.
UNKNOWN: Returns a pointer to the popup menu used by this action.
UNKNOWN: When this action is plugged into a toolbar, it creates a combobox.
Parameters: index Index of the item (remember the first item is zero).
UNKNOWN: Sets the currently checked item.
UNKNOWN: When this action is plugged into a toolbar, it creates a combobox.
UNKNOWN: Sets the items to be displayed in this action You need to call this.
UNKNOWN: Sets the maximum items that are visible at once if the action is a combobox, that is the number of items in the combobox's viewport Only works before the action is plugged
UNKNOWN: Sets whether any occurrence of the ampersand character ( & ) in items should be interpreted as keyboard accelerator for items displayed in a menu or not.