.TH "KParts::MainWindow" 3 "28 Jan 2004" "kparts Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KParts::MainWindow \- A KPart-aware main window, whose user interface is described in XML.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <mainwindow.h>\fP
.PP
Inherits \fBKMainWindow\fP, and \fBKParts::PartBase\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBMainWindow\fP (\fBQWidget\fP *parent, const  char *name=0L, WFlags f=WType_TopLevel|WDestructiveClose)"
.br
.RI "\fIConstructor, same signature as \fBKMainWindow\fP. \fP"
.ti -1c
.RI "\fBMainWindow\fP (const  char *name=0L, WFlags f=WDestructiveClose)"
.br
.RI "\fICompatibility Constructor, same signature as \fBKMainWindow\fP. \fP"
.ti -1c
.RI "virtual \fB~MainWindow\fP ()"
.br
.RI "\fIDestructor. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBcreateGUI\fP (\fBKParts::Part\fP *part)"
.br
.RI "\fICreate the GUI (by merging the host's and the active part's) You _must_ call this in order to see any GUI being created. \fP"
.ti -1c
.RI "virtual void \fBslotSetStatusBarText\fP (const  \fBQString\fP &)"
.br
.RI "\fICalled when the active part wants to change the statusbar message Reimplement if your mainwindow has a complex statusbar (with several items). \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBcreateShellGUI\fP (bool create=true)"
.br
.in -1c
.SH "Detailed Description"
.PP 
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 \fBsetXMLFile\fP() in the inherited constructor.
.PP
It implements all internal interfaces in the case of a \fBKMainWindow\fP as host: the builder and servant interface (for menu merging). 
.PP
Definition at line 47 of file mainwindow.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "MainWindow::MainWindow (\fBQWidget\fP * parent, const char * name = 0L, WFlags f = WType_TopLevel|WDestructiveClose)"
.PP
Constructor, same signature as \fBKMainWindow\fP. Definition at line 60 of file mainwindow.cpp.
.PP
References KStdAccel::name().
.SS "MainWindow::MainWindow (const char * name = 0L, WFlags f = WDestructiveClose)"
.PP
Compatibility Constructor, same signature as \fBKMainWindow\fP. Definition at line 67 of file mainwindow.cpp.
.PP
References KStdAccel::name().
.SS "MainWindow::~\fBMainWindow\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 74 of file mainwindow.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void MainWindow::createGUI (\fBKParts::Part\fP * part)\fC [protected, slot]\fP"
.PP
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 \fBKPartManager::activePartChanged\fP() signal
.PP
\fBParameters:\fP
.RS 4
\fIpart\fP The active part (set to 0L if no part). 
.RE
.PP
Definition at line 79 of file mainwindow.cpp.
.PP
References KXMLGUIFactory::addClient(), QObject::className(), KXMLGUIClient::factory(), KMainWindow::guiFactory(), KGlobal::instance(), KParts::PartBase::loadPlugins(), QObject::name(), KXMLGUIFactory::removeClient(), QApplication::sendEvent(), KMainWindow::setCaption(), and slotSetStatusBarText().
.SS "void MainWindow::slotSetStatusBarText (const \fBQString\fP &)\fC [protected, virtual, slot]\fP"
.PP
Called when the active part wants to change the statusbar message Reimplement if your mainwindow has a complex statusbar (with several items). Definition at line 135 of file mainwindow.cpp.
.PP
References QStatusBar::message(), and KMainWindow::statusBar().
.PP
Referenced by createGUI().

.SH "Author"
.PP 
Generated automatically by Doxygen for kparts Library from the source code.
