org.kde.koala
public class KActionCollection extends QObject
actionCollection().setHighlightingEnabled(true); connect(actionCollection(), SIGNAL("actionStatusText( String )"), statusBar(), SLOT("message( String )") ); connect(actionCollection(), SIGNAL("clearStatusText()"), statusBar(), SLOT("clear()") );See KActionCollectionSignals for signals emitted by KActionCollection
UNKNOWN: A managed set of KAction objects.
Constructor Summary | |
---|---|
protected | KActionCollection(Class dummy) |
KActionCollection(QWidget parent, String name, KInstanceInterface instance) | |
KActionCollection(QWidget parent, String name) | |
KActionCollection(QWidget parent) | |
KActionCollection(QWidget watch, QObject parent, String name, KInstanceInterface instance)
Use this constructor if you want the collection's actions to restrict
their accelerator keys to watch rather than the parent. If
you don't require shortcuts, you can pass a null to the watch parameter. | |
KActionCollection(QWidget watch, QObject parent, String name) | |
KActionCollection(QWidget watch, QObject parent) | |
KActionCollection(KActionCollection copy) | |
KActionCollection(QObject parent, String name, KInstanceInterface instance) | |
KActionCollection(QObject parent, String name) | |
KActionCollection(QObject parent) |
Method Summary | |
---|---|
KAction | action(int index)
Return the KAction at position "index" in the action collection. |
KAction | action(String name, String classname)
Find an action (optionally, of a given subclass of KAction) in the action collection. |
KAction | action(String name) |
boolean | addDocCollection(KActionCollection pDoc)
Doc/View model. |
KAccel | builderKAccel() |
String | className() |
void | clear()
Clears the entire actionCollection, deleting all actions. |
void | connectHighlight(QWidget container, KAction action)
Call this function if you want to receive a signal whenever a KAction is highlighted in a menu or a toolbar.
|
int | count() Returns the number of actions in the collection @short Returns the number of actions in the collection |
void | disconnectHighlight(QWidget container, KAction action)
Disconnect highlight notifications for a particular pair of contianer and action.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
ArrayList | groups() Returns a list of all the groups of all the KActions in this action collection. |
boolean | highlightingEnabled()
Return whether highlighting notifications are enabled. |
void | insert(KAction action)
Add an action to the collection.
|
KInstanceInterface | instance() The instance with which this class is associated. |
boolean | isAutoConnectShortcuts()
This indicates whether new actions which are created in this collection
have their keyboard shortcuts automatically connected on
construction. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isEmpty() |
KAccel | kaccel() Returns the KAccel object of the most recently set widget. |
QMetaObject | metaObject() |
KActionCollection | op_plus(KActionCollection arg1) |
KActionCollection | op_plus_assign(KActionCollection arg1) |
KXMLGUIClientInterface | parentGUIClient()
The parent KXMLGUIClient, return null if not available. |
boolean | readShortcutSettings(String sConfigGroup, KConfigBase pConfig)
Used for reading shortcut configuration from a non-XML rc file. |
boolean | readShortcutSettings(String sConfigGroup) |
boolean | readShortcutSettings() |
void | remove(KAction action)
Removes an action from the collection and deletes it.
|
void | setAutoConnectShortcuts(boolean arg1)
This indicates whether new actions which are created in this collection
should have their keyboard shortcuts automatically connected on
construction. |
void | setHighlightingEnabled(boolean enable)
Enable highlighting notification for specific KActions.
|
void | setInstance(KInstanceInterface instance) |
void | setWidget(QWidget widget)
This sets the widget to which the keyboard shortcuts should be attached.
|
KAction | take(KAction action)
Removes an action from the collection.
|
boolean | writeShortcutSettings(String sConfigGroup, KConfigBase pConfig)
Used for writing shortcut configuration to a non-XML rc file. |
boolean | writeShortcutSettings(String sConfigGroup) |
boolean | writeShortcutSettings() |
watch
rather than the parent.
If
you don't require shortcuts, you can pass a null to the watch
parameter.UNKNOWN: Use this constructor if you want the collection's actions to restrict their accelerator keys to watch
rather than the parent.
See Also: KActionCollection
UNKNOWN: Return the KAction at position "index" in the action collection.
Parameters: name Name of the KAction. classname Name of the KAction subclass.
Returns: A pointer to the first KAction in the collection which matches the parameters or null if nothing matches.
UNKNOWN: Find an action (optionally, of a given subclass of KAction) in the action collection.
UNKNOWN: Doc/View model.
UNKNOWN: for KAction.kaccelCurrent() @short @internal, for KAction.kaccelCurrent()
See Also: KActionCollection
UNKNOWN: Clears the entire actionCollection, deleting all actions.
Parameters: container A container in which the KAction is plugged (must inherit QPopupMenu or KToolBar) action The action you are interested in
See Also: KActionCollection KActionCollection KActionCollection KActionCollection KActionCollection
UNKNOWN: Call this function if you want to receive a signal whenever a KAction is highlighted in a menu or a toolbar.
Parameters: container A container in which the KAction is plugged (must inherit QPopupMenu or KToolBar) action The action you are interested in
See Also: KActionCollection KActionCollection KActionCollection KActionCollection KActionCollection
UNKNOWN: Disconnect highlight notifications for a particular pair of contianer and action.
UNKNOWN: Returns a list of all the groups of all the KActions in this action collection.
See Also: KActionCollection KActionCollection KActionCollection KActionCollection KActionCollection
UNKNOWN: Return whether highlighting notifications are enabled.
Parameters: action The KAction to add.
UNKNOWN: Add an action to the collection.
See Also: KActionCollection
UNKNOWN: This indicates whether new actions which are created in this collection have their keyboard shortcuts automatically connected on construction.
UNKNOWN: The parent KXMLGUIClient, return 0L if not available.
UNKNOWN: Used for reading shortcut configuration from a non-XML rc file.
Parameters: action The KAction to remove.
UNKNOWN: Removes an action from the collection and deletes it.
See Also: KActionCollection
UNKNOWN: This indicates whether new actions which are created in this collection should have their keyboard shortcuts automatically connected on construction.
See Also: KActionCollection KActionCollection KActionCollection KActionCollection KActionCollection
UNKNOWN: Enable highlighting notification for specific KActions.
UNKNOWN: This sets the widget to which the keyboard shortcuts should be attached.
Parameters: action the KAction to remove.
Returns: NULL if not found else returns action.
UNKNOWN: Removes an action from the collection.
UNKNOWN: Used for writing shortcut configuration to a non-XML rc file.