diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/PartBase.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/PartBase.java | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/PartBase.java b/kdejava/koala/org/kde/koala/PartBase.java new file mode 100644 index 00000000..8e2bbe34 --- /dev/null +++ b/kdejava/koala/org/kde/koala/PartBase.java @@ -0,0 +1,72 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; +import org.kde.qt.QObject; + +/** + + Base class for all parts. + @short Base class for all parts. + +*/ +public class PartBase extends KXMLGUIClient { + protected PartBase(Class dummy){super((Class) null);} + /** + Constructor. + @short Constructor. + */ + public PartBase() { + super((Class) null); + newPartBase(); + } + private native void newPartBase(); + /** + Internal method. Called by KParts.Part to specify the parent object for plugin objects. + @short Internal method. + */ + public native void setPartObject(QObject object); + public native QObject partObject(); + /** + Set the instance ( KInstance) for this part. + Call this first in the inherited class constructor, + because it loads the i18n catalogues. + @short Set the instance ( KInstance) for this part. + */ + protected native 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. + @short Set the instance ( KInstance) for this part. + */ + protected native void setInstance(KInstanceInterface instance, boolean loadPlugins); + /** + 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: + <pre> + if( factory() ) + { + QPtrList<KParts.Plugin> plugins = KParts.Plugin.pluginObjects( this ); + QPtrListIterator<KParts.Plugin> it( plugins ); + KParts.Plugin plugin; + while( ( plugin = it.current() ) != 0 ) + { + ++it; + factory().addClient( plugin ); + } + } + </pre> + @short Load the Plugins honoring the PluginLoadingMode. + */ + protected native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance); + /** + For a KParts.Part: call this before setInstance(). + For a KParts.MainWindow: call this before createGUI(). + @short For a KParts.Part: call this before setInstance(). + */ + // void setPluginLoadingMode(KParts::PartBase::PluginLoadingMode arg1); >>>> NOT CONVERTED +} |