Public Member Functions |
Protected Types |
Protected Member Functions |
Friends |
List of all members
KParts::PartBase Class Reference
#include <part.h>
Inheritance diagram for KParts::PartBase:

Public Member Functions | |
PartBase () | |
virtual | ~PartBase () |
void | setPartObject (TQObject *object) |
TQObject * | partObject () const |
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) |
Friends | |
class | PartBasePrivate |
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.
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:
if( factory() )
{
TQPtrList<KParts::Plugin> plugins = KParts::Plugin::pluginObjects( this );
TQPtrListIterator<KParts::Plugin> it( plugins );
KParts::Plugin * plugin;
while( ( plugin = it.current() ) != 0 )
{
++it;
factory()->addClient( plugin );
}
}
|
protectedvirtual |
|
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: