#include <part.h>
Public Member Functions | |
PartBase () | |
virtual | ~PartBase () |
void | setPartObject (TQObject *object) |
TQObject * | partObject () const |
Public Member Functions inherited from KXMLGUIClient | |
KXMLGUIClient (KXMLGUIClient *parent) | |
TDEAction * | action (const char *name) const |
virtual TDEAction * | action (const TQDomElement &element) const |
virtual TDEActionCollection * | actionCollection () const |
virtual TDEInstance * | instance () const |
virtual TQDomDocument | domDocument () const |
virtual TQString | xmlFile () 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< TDEAction > &actionList) |
void | unplugActionList (const TQString &name) |
void | beginXMLPlug (TQWidget *) |
void | endXMLPlug () |
void | prepareXMLUnplug (TQWidget *) |
Protected Types | |
enum | PluginLoadingMode { DoNotLoadPlugins = 0 , LoadPlugins = 1 , LoadPluginsIfEnabled = 2 } |
Protected Member Functions | |
virtual void | setInstance (TDEInstance *instance) |
virtual void | setInstance (TDEInstance *instance, bool loadPlugins) |
void | loadPlugins (TQObject *parent, KXMLGUIClient *parentGUIClient, TDEInstance *instance) |
void | setPluginLoadingMode (PluginLoadingMode loadingMode) |
Protected Member Functions inherited from KXMLGUIClient | |
virtual void | setXMLFile (const TQString &file, bool merge=false, bool setXMLDoc=true) |
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) |
Friends | |
class | PartBasePrivate |
Detailed Description
Member Enumeration Documentation
◆ PluginLoadingMode
|
protected |
We have three different policies, whether to load new plugins or not.
The value in the TDEConfig object of the TDEInstance object always overrides LoadPlugins and LoadPluginsIfEnabled.
Constructor & Destructor Documentation
◆ PartBase()
◆ ~PartBase()
Member Function Documentation
◆ loadPlugins()
|
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:
◆ setInstance() [1/2]
|
protectedvirtual |
Set the instance ( TDEInstance) for this part.
Call this first in the inherited class constructor, because it loads the i18n catalogues.
Reimplemented from KXMLGUIClient.
◆ setInstance() [2/2]
|
protectedvirtual |
Set the instance ( TDEInstance) for this part.
Call this first in the inherited class constructor, because it loads the i18n catalogues.
◆ setPartObject()
void PartBase::setPartObject | ( | TQObject * | object | ) |
Internal method.
Called by KParts::Part to specify the parent object for plugin objects.
◆ setPluginLoadingMode()
|
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: