25 #ifndef __kactioncollection_h__ 26 #define __kactioncollection_h__ 30 #include <tqkeysequence.h> 32 #include <tqvaluelist.h> 33 #include <tqguardedptr.h> 35 #include <kshortcut.h> 36 #include <kstdaction.h> 37 #include <kicontheme.h> 59 typedef TQValueList<KAction *> KActionPtrList;
102 virtual void setWidget( TQWidget *widget );
111 void setAutoConnectShortcuts(
bool );
119 bool isAutoConnectShortcuts();
146 virtual KAccel* accel() KDE_DEPRECATED;
148 virtual const KAccel* accel()
const KDE_DEPRECATED;
153 const KAccel* kaccel()
const;
156 KAccel* builderKAccel()
const;
162 virtual uint count()
const;
163 bool isEmpty()
const {
return (count() == 0); }
176 virtual KAction*
action(
const char* name,
const char* classname = 0 )
const;
182 virtual TQStringList groups()
const;
187 virtual KActionPtrList actions(
const TQString& group )
const;
189 virtual KActionPtrList actions()
const;
194 bool readShortcutSettings(
const TQString& sConfigGroup = TQString::null,
KConfigBase* pConfig = 0 );
198 bool writeShortcutSettings(
const TQString& sConfigGroup = TQString::null,
KConfigBase* pConfig = 0 )
const;
211 const TQString&
xmlFile()
const;
225 void setHighlightingEnabled(
bool enable );
234 bool highlightingEnabled()
const;
249 void connectHighlight( TQWidget *container,
KAction *action );
263 void disconnectHighlight( TQWidget *container,
KAction *action );
282 void actionHighlighted(
KAction *action );
291 void actionHighlighted(
KAction *action,
bool highlight );
301 void actionStatusText(
const TQString &text );
307 void clearStatusText();
320 void unplugShortcuts(
KAccel* kaccel );
328 void slotMenuItemHighlighted(
int id );
329 void slotToolBarButtonHighlighted(
int id,
bool highlight );
330 void slotMenuAboutToHide();
331 void slotDestroyed();
334 KAction *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 KActionCollectionPrivate;
390 KActionCollectionPrivate *d;
A managed set of KAction objects.
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...
KDE top level main window
KAction * action(const char *name) const
Retrieves an action of the client by name.
virtual void setInstance(KInstance *instance)
Returns true if client was added to super client list.
virtual TQString xmlFile() const
This will return the name of the XML file as set by setXMLFile().
Class to encapsulate user-driven action or event.
void beginXMLPlug(TQWidget *)
virtual KInstance * instance() const