org.kde.koala

Class PartBase

public class PartBase extends KXMLGUIClient

Base class for all parts.

UNKNOWN: Base class for all parts.

Constructor Summary
protected PartBase(Class dummy)
PartBase()
Constructor.
Method Summary
protected voidloadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance)
Load the Plugins honoring the PluginLoadingMode.
QObjectpartObject()
protected voidsetInstance(KInstanceInterface instance)
Set the instance ( KInstance) for this part.
protected voidsetInstance(KInstanceInterface instance, boolean loadPlugins)
Set the instance ( KInstance) for this part.
voidsetPartObject(QObject object)
Internal method.

Constructor Detail

PartBase

protected PartBase(Class dummy)

PartBase

public PartBase()
Constructor.

UNKNOWN: Constructor.

Method Detail

loadPlugins

protected void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance)
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() )
		 {
		   QPtrList plugins = KParts.Plugin.pluginObjects( this );
		   QPtrListIterator it( plugins );
		   KParts.Plugin  plugin;
		   while( ( plugin = it.current() ) != 0 )
		   {
		     ++it;
		     factory().addClient(  plugin );
		   }
		 }
		 

UNKNOWN: Load the Plugins honoring the PluginLoadingMode.

partObject

public QObject partObject()

setInstance

protected void setInstance(KInstanceInterface instance)
Set the instance ( KInstance) for this part. Call this first in the inherited class constructor, because it loads the i18n catalogues.

UNKNOWN: Set the instance ( KInstance) for this part.

setInstance

protected void setInstance(KInstanceInterface instance, boolean loadPlugins)
Set the instance ( KInstance) for this part. Call this first in the inherited class constructor, because it loads the i18n catalogues.

UNKNOWN: Set the instance ( KInstance) for this part.

setPartObject

public void setPartObject(QObject object)
Internal method. Called by KParts.Part to specify the parent object for plugin objects.

UNKNOWN: Internal method.