KDEUI
kactioncollection.h
Go to the documentation of this file.
187 void writeSettings( KConfigGroup* config = 0, bool writeDefaults = false, QAction* oneAction = 0 ) const;
348 KAction *addAction(KStandardAction::StandardAction actionType, const QObject *receiver = 0, const char *member = 0);
QAction * addAction(const QString &name, QAction *action)
Add an action under the given name to the collection.
Definition kactioncollection.cpp:217
virtual QT_MOC_COMPAT void slotActionHighlighted()
Definition kactioncollection.cpp:643
void addAssociatedWidget(QWidget *widget)
Associate all actions in this collection to the given widget, including any actions added after this ...
Definition kactioncollection.cpp:708
int count() const
Returns the number of actions in the collection.
Definition kactioncollection.cpp:147
ActionType * add(const QString &name, const QObject *receiver=0, const char *member=0)
Creates a new action under the given name, adds it to the collection and connects the action's trigge...
Definition kactioncollection.h:412
QList< QWidget * > associatedWidgets() const
Return a list of all associated widgets.
Definition kactioncollection.cpp:761
void actionHovered(QAction *action)
Indicates that action was hovered.
void readSettings(KConfigGroup *config=0)
Read all key associations from config.
Definition kactioncollection.cpp:413
virtual void connectNotify(const char *signal)
Overridden to perform connections when someone wants to know whether an action was highlighted or tri...
Definition kactioncollection.cpp:671
void writeSettings(KConfigGroup *config=0, bool writeDefaults=false, QAction *oneAction=0) const
Write the current configurable key associations to config.
Definition kactioncollection.cpp:563
void clear()
Clears the entire action collection, deleting all actions.
Definition kactioncollection.cpp:124
void importGlobalShortcuts(KConfigGroup *config)
Import from config all configurable global key associations.
Definition kactioncollection.cpp:386
QT_MOC_COMPAT void actionHighlighted(QAction *action)
Indicates that action was highlighted (hovered over).
void exportGlobalShortcuts(KConfigGroup *config, bool writeDefaults=false) const
Export the current configurable global key associations to config.
Definition kactioncollection.cpp:444
void setConfigGroup(const QString &group)
Sets group as the KConfig group with which settings will be loaded and saved.
Definition kactioncollection.cpp:371
void clearAssociatedWidgets()
Clear all associated widgets and remove the actions from those widgets.
Definition kactioncollection.cpp:766
KComponentData componentData() const
The KComponentData with which this class is associated.
Definition kactioncollection.cpp:176
void associateWidget(QWidget *widget) const
Associate all actions in this collection to the given widget.
Definition kactioncollection.cpp:700
const KXMLGUIClient * parentGUIClient() const
The parent KXMLGUIClient, or null if not available.
Definition kactioncollection.cpp:181
const QList< QAction * > actionsWithoutGroup() const
Returns the list of KActions without an QAction::actionGroup() which belong to this action collection...
Definition kactioncollection.cpp:191
QAction * takeAction(QAction *action)
Removes an action from the collection.
Definition kactioncollection.cpp:321
bool isEmpty() const
Returns whether the action collection is empty or not.
Definition kactioncollection.cpp:152
virtual void slotActionTriggered()
Definition kactioncollection.cpp:636
const QList< QActionGroup * > actionGroups() const
Returns the list of all QActionGroups associated with actions in this action collection.
Definition kactioncollection.cpp:200
QT_MOC_COMPAT void removed(QAction *action)
Indicates that action was removed from this action collection.
void removeAction(QAction *action)
Removes an action from the collection and deletes it.
Definition kactioncollection.cpp:316
void inserted(QAction *action)
Indicates that action was inserted into this action collection.
KActionCollection(QObject *parent, const KComponentData &cData=KComponentData())
Constructor.
Definition kactioncollection.cpp:96
static const QList< KActionCollection * > & allCollections()
Access the list of all action collections in existence for this app.
Definition kactioncollection.cpp:695
void setComponentData(const KComponentData &componentData)
Set the componentData associated with this action collection.
Definition kactioncollection.cpp:157
void removeAssociatedWidget(QWidget *widget)
Remove an association between all actions in this collection and the given widget,...
Definition kactioncollection.cpp:718
QList< QAction * > actions() const
Returns the list of KActions which belong to this action collection.
Definition kactioncollection.cpp:186
friend class KActionCollectionPrivate
Definition kactioncollection.h:427
void setConfigGlobal(bool global)
Set whether this action collection's configuration should be global to KDE ( true ),...
Definition kactioncollection.cpp:381
QAction * action(int index) const
Return the QAction* at position "index" in the action collection.
Definition kactioncollection.cpp:141
void actionTriggered(QAction *action)
Indicates that action was triggered.
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
Definition kxmlguiclient.h:47
Convenience methods to access all standard KDE actions.
Definition kstandardaction.cpp:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.