class MainWindow

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

Full nameKParts::MainWindow
Definition#include <mainwindow.h>
InheritsKTMainWindow (kdeui), KParts::PartBase [virtual public]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Slots


Detailed Description

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 KTMainWindow as host: the builder and servant interface (for menu merging).

 MainWindow ( const char *name = 0L, WFlags f = WDestructiveClose )

Constructor, same signature as KTMainWindow.

MainWindow ()

[virtual]

Destructor.

void  createGUI ( KParts::Part * part )

[protected virtual slot]

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 KPartManager::activePartChanged() signal

Parameters:
partThe active part (set to 0L if no part).

Reimplemented from KTMainWindow

void  slotSetStatusBarText ( const QString & )

[protected virtual slot]

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


Generated by: dfaure@faure on Sun Mar 26 14:24:54 2000, using kdoc 2.0a35.