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

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

.in +1c
.ti -1c
.RI "\fBDockMainWindow\fP (\fBQWidget\fP *parent=0L, const  char *name=0L, WFlags f=WDestructiveClose)"
.br
.RI "\fIConstructor, same signature as \fBKDockMainWindow\fP. \fP"
.ti -1c
.RI "virtual \fB~DockMainWindow\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). \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 dock-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 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 \fBsetXMLFile\fP() in the inherited constructor.
.PP
It implements all internal interfaces in the case of a \fBKDockMainWindow\fP as host: the builder and servant interface (for menu merging). 
.PP
Definition at line 47 of file dockmainwindow.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "DockMainWindow::DockMainWindow (\fBQWidget\fP * parent = 0L, const char * name = 0L, WFlags f = WDestructiveClose)"
.PP
Constructor, same signature as \fBKDockMainWindow\fP. Definition at line 61 of file dockmainwindow.cpp.
.PP
References KStdAccel::name().
.SS "DockMainWindow::~\fBDockMainWindow\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 68 of file dockmainwindow.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void DockMainWindow::createGUI (\fBKParts::Part\fP * part)\fC [protected, slot]\fP"
.PP
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 \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 73 of file dockmainwindow.cpp.
.PP
References KXMLGUIFactory::addClient(), KXMLGUIClient::factory(), KMainWindow::guiFactory(), KGlobal::instance(), KParts::PartBase::loadPlugins(), QObject::name(), KXMLGUIFactory::removeClient(), QApplication::sendEvent(), KMainWindow::setCaption(), and slotSetStatusBarText().
.SS "void DockMainWindow::slotSetStatusBarText (const \fBQString\fP &)\fC [protected, virtual, slot]\fP"
.PP
Called when the active part wants to change the statusbar message Reimplement if your dock-mainwindow has a complex statusbar (with several items). Definition at line 125 of file dockmainwindow.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.
