org.kde.koala

Class MainWindow

public class MainWindow extends KMainWindow implements PartBaseInterface

A KPart-aware main window, whose user interface is described in XML. Inherit your main 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 KMainWindow as host: the builder and servant interface (for menu merging).

UNKNOWN: A KPart-aware main window, whose user interface is described in XML.

Constructor Summary
protected MainWindow(Class dummy)
MainWindow(QWidget parent, String name, int f)
Constructor, same signature as KMainWindow.
MainWindow(QWidget parent, String name)
MainWindow(QWidget parent)
MainWindow(String name, int f)
Compatibility Constructor
MainWindow(String name)
MainWindow()
MainWindow(int cflags, QWidget parent, String name, int f)
Constructor with creation flags, see KMainWindow.
MainWindow(int cflags, QWidget parent, String name)
MainWindow(int cflags, QWidget parent)
Method Summary
StringclassName()
protected voidcreateGUI(Part part)
Create the GUI (by merging the host's and the active part's) You _must_ call this in order to see any GUI being created.
protected voidcreateShellGUI(boolean create)
protected voidcreateShellGUI()
protected voidloadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance)
Load the Plugins honoring the PluginLoadingMode.
QMetaObjectmetaObject()
QObjectpartObject()
protected voidsaveNewToolbarConfig()
Rebuilds the GUI after KEditToolbar changed the toolbar layout.
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 Reimplement if your mainwindow has a complex statusbar (with several items)

Constructor Detail

MainWindow

protected MainWindow(Class dummy)

MainWindow

public MainWindow(QWidget parent, String name, int f)
Constructor, same signature as KMainWindow.

UNKNOWN: Constructor, same signature as KMainWindow.

MainWindow

public MainWindow(QWidget parent, String name)

MainWindow

public MainWindow(QWidget parent)

MainWindow

public MainWindow(String name, int f)
Compatibility Constructor

UNKNOWN: Compatibility Constructor

MainWindow

public MainWindow(String name)

MainWindow

public MainWindow()

MainWindow

public MainWindow(int cflags, QWidget parent, String name, int f)
Constructor with creation flags, see KMainWindow.

UNKNOWN: Constructor with creation flags, see KMainWindow.

MainWindow

public MainWindow(int cflags, QWidget parent, String name)

MainWindow

public MainWindow(int cflags, QWidget parent)

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) You _must_ call this in order to see any GUI being created. In a main window with multiple parts being shown (e.g. as in Konqueror) you need to connect this slot to the KPartManager.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) You _must_ call this in order to see any GUI being created.

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()

saveNewToolbarConfig

protected void saveNewToolbarConfig()
Rebuilds the GUI after KEditToolbar changed the toolbar layout.

See Also: MainWindow KDE4: MainWindow MainWindow # (For MainWindow MainWindow MainWindow MainWindow MainWindow MainWindow MainWindow 's MainWindow MainWindow MainWindow MainWindow MainWindow MainWindow MainWindow MainWindow MainWindow )#

UNKNOWN: Rebuilds the GUI after KEditToolbar changed the toolbar layout.

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 mainwindow has a complex statusbar (with several items)

UNKNOWN: Called when the active part wants to change the statusbar message Reimplement if your mainwindow has a complex statusbar (with several items)