21 #ifndef __kxmlguifactory_h__ 22 #define __kxmlguifactory_h__ 25 #include <tqptrlist.h> 27 #include <tqvaluelist.h> 29 #include <kdelibs_export.h> 32 class KXMLGUIFactoryPrivate;
41 struct ContainerClient;
64 friend class KXMLGUI::BuildHelper;
82 static TQString readConfigFile(
const TQString &filename,
bool never_null,
const KInstance *instance = 0 );
83 static TQString readConfigFile(
const TQString &filename,
const KInstance *instance = 0 );
84 static bool saveConfigFile(
const TQDomDocument& doc,
const TQString& filename,
87 static TQString documentToXML(
const TQDomDocument& doc );
88 static TQString elementToXML(
const TQDomElement& elem );
93 static void removeDOMComments( TQDomNode &node );
99 static TQDomElement actionPropertiesElement( TQDomDocument& doc );
106 static TQDomElement findActionByName( TQDomElement& elem,
const TQString& sName,
bool create );
127 void plugActionList(
KXMLGUIClient *client,
const TQString &name,
const TQPtrList<KAction> &actionList );
128 void unplugActionList(
KXMLGUIClient *client,
const TQString &name );
133 TQPtrList<KXMLGUIClient> clients()
const;
155 TQWidget *container(
const TQString &containerName,
KXMLGUIClient *client,
bool useTagName =
false );
157 TQPtrList<TQWidget> containers(
const TQString &tagName );
178 void resetContainer(
const TQString &containerName,
bool useTagName =
false );
196 int configureShortcuts(
bool bAllowLetterShortcuts =
true,
bool bSaveSettings =
true);
204 TQWidget *findRecursive( KXMLGUI::ContainerNode *node,
bool tag );
206 TQPtrList<TQWidget> findRecursive( KXMLGUI::ContainerNode *node,
const TQString &tagName );
208 void applyActionProperties(
const TQDomElement &element );
209 void configureAction(
KAction *action,
const TQDomNamedNodeMap &attributes );
210 void configureAction(
KAction *action,
const TQDomAttr &attribute );
213 virtual void virtual_hook(
int id,
void* data );
215 KXMLGUIFactoryPrivate *d;
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document...
Abstract interface for a "GUI builder", used by the GUIFactory This interface is implemented by KMain...
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
Class to encapsulate user-driven action or event.