25 #ifndef __tdeactioncollection_h__
26 #define __tdeactioncollection_h__
28 #include <tdeaction.h>
30 #include <tqkeysequence.h>
32 #include <tqvaluelist.h>
33 #include <tqguardedptr.h>
35 #include <tdeshortcut.h>
36 #include <kstdaction.h>
37 #include <kicontheme.h>
48 class TDEAccelActions;
59 typedef TQValueList<TDEAction *> TDEActionPtrList;
102 virtual void setWidget( TQWidget *widget );
111 void setAutoConnectShortcuts(
bool );
119 bool isAutoConnectShortcuts();
146 virtual TDEAccel* accel() KDE_DEPRECATED;
148 virtual const TDEAccel* accel()
const KDE_DEPRECATED;
162 virtual uint count()
const;
163 bool isEmpty()
const {
return (count() == 0); }
176 virtual TDEAction*
action(
const char* name,
const char* classname = 0 )
const;
182 virtual TQStringList groups()
const;
187 virtual TDEActionPtrList actions(
const TQString& group )
const;
189 virtual TDEActionPtrList actions()
const;
194 bool readShortcutSettings(
const TQString& sConfigGroup = TQString::null,
TDEConfigBase* pConfig = 0 );
198 bool writeShortcutSettings(
const TQString& sConfigGroup = TQString::null,
TDEConfigBase* pConfig = 0 )
const;
211 const TQString&
xmlFile()
const;
225 void setHighlightingEnabled(
bool enable );
234 bool highlightingEnabled()
const;
249 void connectHighlight( TQWidget *container,
TDEAction *action );
263 void disconnectHighlight( TQWidget *container,
TDEAction *action );
282 void actionHighlighted(
TDEAction *action );
291 void actionHighlighted(
TDEAction *action,
bool highlight );
301 void actionStatusText(
const TQString &text );
307 void clearStatusText();
320 void unplugShortcuts(
TDEAccel* tdeaccel );
328 void slotMenuItemHighlighted(
int id );
329 void slotToolBarButtonHighlighted(
int id,
bool highlight );
330 void slotMenuAboutToHide();
331 void slotDestroyed();
334 TDEAction *findAction( TQWidget *container,
int id );
336 #ifndef KDE_NO_COMPAT
371 #ifndef KDE_NO_COMPAT
375 #endif // !KDE_NO_COMPAT
386 virtual void virtual_hook(
int id,
void* data );
389 class TDEActionCollectionPrivate;
390 TDEActionCollectionPrivate *d;
virtual void setXMLFile(const TQString &file, bool merge=false, bool setXMLDoc=true)
Sets the name of the rc file containing the XML for the part.
void prepareXMLUnplug(TQWidget *)
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document...
virtual void setInstance(TDEInstance *instance)
Returns true if client was added to super client list.
A managed set of TDEAction objects.
Class to encapsulate user-driven action or event.
TDEAction * action(const char *name) const
Retrieves an action of the client by name.
KDE top level main window
virtual TDEInstance * instance() const
void beginXMLPlug(TQWidget *)
virtual TQString xmlFile() const
This will return the name of the XML file as set by setXMLFile().