org.kde.koala

Class DockMainWindow

public class DockMainWindow extends KDockMainWindow implements PartBaseInterface

A KPart-aware main window with ability for docking widgets, whose user interface is described in XML. Inherit your main dock-window from this class and don't forget to call setXMLFile() in the inherited constructor. It implements all internal interfaces in the case of a KDockMainWindow as host: the builder and servant interface (for menu merging).

UNKNOWN: A KPart-aware main window with ability for docking widgets, whose user interface is described in XML.

Constructor Summary
protected DockMainWindow(Class dummy)
DockMainWindow(QWidget parent, String name, int f)
Constructor, same signature as KDockMainWindow.
DockMainWindow(QWidget parent, String name)
DockMainWindow(QWidget parent)
DockMainWindow()
Method Summary
StringclassName()
protected voidcreateGUI(Part part)
Create the GUI (by merging the host's and the active part's) Called on startup and whenever the active part changes.
protected voidcreateShellGUI(boolean create)
protected voidcreateShellGUI()
protected voidloadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance)
Load the Plugins honoring the PluginLoadingMode.
QMetaObjectmetaObject()
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.
protected voidslotSetStatusBarText(String arg1)
Called when the active part wants to change the statusbar message.

Constructor Detail

DockMainWindow

protected DockMainWindow(Class dummy)

DockMainWindow

public DockMainWindow(QWidget parent, String name, int f)
Constructor, same signature as KDockMainWindow.

UNKNOWN: Constructor, same signature as KDockMainWindow.

DockMainWindow

public DockMainWindow(QWidget parent, String name)

DockMainWindow

public DockMainWindow(QWidget parent)

DockMainWindow

public DockMainWindow()

Method Detail

className

public String className()

createGUI

protected void createGUI(Part part)
Create the GUI (by merging the host's and the active part's) Called on startup and whenever the active part changes. For this you need to connect this slot to the PartManager.activePartChanged() signal

Parameters: part The active part (set to null if no part).

UNKNOWN: Create the GUI (by merging the host's and the active part's)

createShellGUI

protected void createShellGUI(boolean create)

createShellGUI

protected void createShellGUI()

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.

metaObject

public QMetaObject metaObject()

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.

slotSetStatusBarText

protected void slotSetStatusBarText(String arg1)
Called when the active part wants to change the statusbar message. Reimplement if your dock-mainwindow has a complex statusbar (with several items)

UNKNOWN: Called when the active part wants to change the statusbar message.