20 #ifndef __kxmlguifactory_h__
21 #define __kxmlguifactory_h__
24 #include <tqptrlist.h>
26 #include <tqvaluelist.h>
28 #include <tdelibs_export.h>
31 class KXMLGUIFactoryPrivate;
40 struct ContainerClient;
63 friend class KXMLGUI::BuildHelper;
81 static TQString readConfigFile(
const TQString &filename,
bool never_null,
const TDEInstance *instance = 0 );
82 static TQString readConfigFile(
const TQString &filename,
const TDEInstance *instance = 0 );
83 static bool saveConfigFile(
const TQDomDocument& doc,
const TQString& filename,
86 static TQString documentToXML(
const TQDomDocument& doc );
87 static TQString elementToXML(
const TQDomElement& elem );
92 static void removeDOMComments( TQDomNode &node );
98 static TQDomElement actionPropertiesElement( TQDomDocument& doc );
105 static TQDomElement findActionByName( TQDomElement& elem,
const TQString& sName,
bool create );
126 void plugActionList(
KXMLGUIClient *client,
const TQString &name,
const TQPtrList<TDEAction> &actionList );
127 void unplugActionList(
KXMLGUIClient *client,
const TQString &name );
132 TQPtrList<KXMLGUIClient> clients()
const;
154 TQWidget *container(
const TQString &containerName,
KXMLGUIClient *client,
bool useTagName =
false );
156 TQPtrList<TQWidget> containers(
const TQString &tagName );
177 void resetContainer(
const TQString &containerName,
bool useTagName =
false );
195 int configureShortcuts(
bool bAllowLetterShortcuts =
true,
bool bSaveSettings =
true);
203 TQWidget *findRecursive( KXMLGUI::ContainerNode *node,
bool tag );
205 TQPtrList<TQWidget> findRecursive( KXMLGUI::ContainerNode *node,
const TQString &tagName );
207 void applyActionProperties(
const TQDomElement &element );
208 void configureAction(
TDEAction *action,
const TQDomNamedNodeMap &attributes );
209 void configureAction(
TDEAction *action,
const TQDomAttr &attribute );
212 virtual void virtual_hook(
int id,
void* data );
214 KXMLGUIFactoryPrivate *d;
Abstract interface for a "GUI builder", used by the GUIFactory This interface is implemented by TDEMa...
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
Class to encapsulate user-driven action or event.