tdeactioncollection.h
92 TDEActionCollection( TQWidget *watch, TQObject* parent, const char *name = 0, TDEInstance *instance = 0 );
194 bool readShortcutSettings( const TQString& sConfigGroup = TQString::null, TDEConfigBase* pConfig = 0 );
198 bool writeShortcutSettings( const TQString& sConfigGroup = TQString::null, TDEConfigBase* pConfig = 0 ) const;
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
Definition kxmlguiclient.h:44
virtual TDEActionPtrList actions(const TQString &group) const
Returns the list of actions in a particular group managed by this action collection.
Definition tdeactioncollection.cpp:435
virtual TDEAccel * accel() TDE_DEPRECATED
Returns the number of widgets which this collection is associated with.
Definition tdeactioncollection.cpp:369
TDEAccel * tdeaccel()
Returns the TDEAccel object of the most recently set widget.
Definition tdeactioncollection.cpp:282
void insert(TDEAction *action)
Add an action to the collection.
Definition tdeactioncollection.cpp:365
bool highlightingEnabled() const
Return whether highlighting notifications are enabled.
Definition tdeactioncollection.cpp:488
virtual TQStringList groups() const
Returns a list of all the groups of all the TDEActions in this action collection.
Definition tdeactioncollection.cpp:423
void disconnectHighlight(TQWidget *container, TDEAction *action)
Disconnect highlight notifications for a particular pair of contianer and action.
Definition tdeactioncollection.cpp:526
const KXMLGUIClient * parentGUIClient() const
The parent KXMLGUIClient, return 0L if not available.
Definition tdeactioncollection.cpp:627
TDEAction * take(TDEAction *action)
Removes an action from the collection.
Definition tdeactioncollection.cpp:367
void clearStatusText()
Emitted when an action loses highlighting.
void setHighlightingEnabled(bool enable)
Enable highlighting notification for specific TDEActions.
Definition tdeactioncollection.cpp:483
TDEInstance * instance() const
The instance with which this class is associated.
Definition tdeactioncollection.cpp:468
bool readShortcutSettings(const TQString &sConfigGroup=TQString::null, TDEConfigBase *pConfig=0)
Used for reading shortcut configuration from a non-XML rc file.
Definition tdeactioncollection.cpp:408
void actionHighlighted(TDEAction *action, bool highlight)
Emitted when action is highlighed or loses highlighting.
void clear()
Clears the entire actionCollection, deleting all actions.
Definition tdeactioncollection.cpp:368
virtual TDEAction * action(int index) const
Return the TDEAction* at position "index" in the action collection.
Definition tdeactioncollection.cpp:400
TDEAccel * builderTDEAccel() const
Definition tdeactioncollection.cpp:371
void setXMLFile(const TQString &)
Definition tdeactioncollection.cpp:473
void connectHighlight(TQWidget *container, TDEAction *action)
Call this function if you want to receive a signal whenever a TDEAction is highlighted in a menu or a...
Definition tdeactioncollection.cpp:493
bool addDocCollection(TDEActionCollection *pDoc)
This sets the default shortcut scope for new actions created in this collection.
Definition tdeactioncollection.cpp:177
void actionHighlighted(TDEAction *action)
Emitted when action is highlighted.
bool writeShortcutSettings(const TQString &sConfigGroup=TQString::null, TDEConfigBase *pConfig=0) const
Used for writing shortcut configuration to a non-XML rc file.
Definition tdeactioncollection.cpp:413
void remove(TDEAction *action)
Removes an action from the collection and deletes it.
Definition tdeactioncollection.cpp:366
virtual void setWidget(TQWidget *widget)
This sets the widget to which the keyboard shortcuts should be attached.
Definition tdeactioncollection.cpp:152
virtual uint count() const
Returns the TDEAccel object associated with widget #.
Definition tdeactioncollection.cpp:418
bool isAutoConnectShortcuts()
This indicates whether new actions which are created in this collection have their keyboard shortcuts...
Definition tdeactioncollection.cpp:172
void actionStatusText(const TQString &text)
Emitted when an action is highlighted, with text being the tooltip for the action.
void setAutoConnectShortcuts(bool)
This indicates whether new actions which are created in this collection should have their keyboard sh...
Definition tdeactioncollection.cpp:167
Trinity API Reference