#include <part.h>

Public Member Functions | |
PartBase () | |
virtual | ~PartBase () |
void | setPartObject (TQObject *object) |
TQObject * | partObject () const |
![]() | |
KXMLGUIClient (KXMLGUIClient *parent) | |
KAction * | action (const char *name) const |
virtual KAction * | action (const TQDomElement &element) const |
virtual KActionCollection * | actionCollection () const |
virtual KInstance * | instance () const |
virtual TQDomDocument | domDocument () const |
virtual TQString | xmlFile () const |
virtual TQString | localXMLFile () const |
void | setXMLGUIBuildDocument (const TQDomDocument &doc) |
TQDomDocument | xmlguiBuildDocument () const |
void | setFactory (KXMLGUIFactory *factory) |
KXMLGUIFactory * | factory () const |
KXMLGUIClient * | parentClient () const |
void | insertChildClient (KXMLGUIClient *child) |
void | removeChildClient (KXMLGUIClient *child) |
const TQPtrList< KXMLGUIClient > * | childClients () |
void | setClientBuilder (KXMLGUIBuilder *builder) |
KXMLGUIBuilder * | clientBuilder () const |
void | reloadXML () |
void | plugActionList (const TQString &name, const TQPtrList< KAction > &actionList) |
void | unplugActionList (const TQString &name) |
void | addStateActionEnabled (const TQString &state, const TQString &action) |
void | addStateActionDisabled (const TQString &state, const TQString &action) |
StateChange | getActionsToChangeForState (const TQString &state) |
void | beginXMLPlug (TQWidget *) |
void | endXMLPlug () |
void | prepareXMLUnplug (TQWidget *) |
Protected Types | |
enum | PluginLoadingMode { DoNotLoadPlugins = 0, LoadPlugins = 1, LoadPluginsIfEnabled = 2 } |
Protected Member Functions | |
virtual void | setInstance (KInstance *instance) |
virtual void | setInstance (KInstance *instance, bool loadPlugins) |
void | loadPlugins (TQObject *parent, KXMLGUIClient *parentGUIClient, KInstance *instance) |
void | setPluginLoadingMode (PluginLoadingMode loadingMode) |
![]() | |
virtual void | setXMLFile (const TQString &file, bool merge=false, bool setXMLDoc=true) |
virtual void | setLocalXMLFile (const TQString &file) |
virtual void | setXML (const TQString &document, bool merge=false) |
virtual void | setDOMDocument (const TQDomDocument &document, bool merge=false) |
virtual void | conserveMemory () |
virtual void | stateChanged (const TQString &newstate, ReverseStateChange reverse=StateNoReverse) |
virtual void | virtual_hook (int id, void *data) |
Friends | |
class | PartBasePrivate |
Additional Inherited Members | |
![]() | |
static TQString | findMostRecentXMLFile (const TQStringList &files, TQString &doc) |
Detailed Description
Member Enumeration Documentation
|
protected |
We have three different policies, whether to load new plugins or not.
The value in the KConfig object of the KInstance object always overrides LoadPlugins and LoadPluginsIfEnabled.
- Enumerator:
Constructor & Destructor Documentation
Member Function Documentation
|
protected |
Load the Plugins honoring the PluginLoadingMode.
If you call this method in an already constructed GUI (like when the user has changed which plugins are enabled) you need to add the new plugins to the KXMLGUIFactory:
|
protectedvirtual |
Set the instance ( KInstance) for this part.
Call this first in the inherited class constructor, because it loads the i18n catalogues.
Reimplemented from KXMLGUIClient.
|
protectedvirtual |
void PartBase::setPartObject | ( | TQObject * | object | ) |
Internal method.
Called by KParts::Part to specify the parent object for plugin objects.
|
protected |
For a KParts::Part: call this before setInstance().
For a KParts::MainWindow: call this before createGUI().
The documentation for this class was generated from the following files: