\section{KParts::Dock\-Main\-Window Class Reference}
\label{classKParts_1_1DockMainWindow}\index{KParts::DockMainWindow@{KParts::DockMainWindow}}
A KPart-aware main window with ability for docking widgets, whose user interface is described in XML.  


{\tt \#include $<$dockmainwindow.h$>$}

Inheritance diagram for KParts::Dock\-Main\-Window:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=182pt]{classKParts_1_1DockMainWindow__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KParts::Dock\-Main\-Window:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=302pt]{classKParts_1_1DockMainWindow__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Dock\-Main\-Window} ({\bf QWidget} $\ast$parent=0L, const  char $\ast$name=0L, WFlags f=WDestructive\-Close)
\begin{CompactList}\small\item\em Constructor, same signature as {\bf KDock\-Main\-Window}. \item\end{CompactList}\item 
virtual {\bf $\sim$Dock\-Main\-Window} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf create\-GUI} ({\bf KParts::Part} $\ast$part)
\begin{CompactList}\small\item\em Create the GUI (by merging the host's and the active part's). \item\end{CompactList}\item 
virtual void {\bf slot\-Set\-Status\-Bar\-Text} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Called when the active part wants to change the statusbar message Reimplement if your dock-mainwindow has a complex statusbar (with several items). \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf create\-Shell\-GUI} (bool create=true)\label{classKParts_1_1DockMainWindow_b0}

\end{CompactItemize}


\subsection{Detailed Description}
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 {\bf set\-XMLFile}() in the inherited constructor.

It implements all internal interfaces in the case of a {\bf KDock\-Main\-Window} as host: the builder and servant interface (for menu merging). 



Definition at line 47 of file dockmainwindow.h.

\subsection{Constructor \& Destructor Documentation}
\index{KParts::DockMainWindow@{KParts::Dock\-Main\-Window}!DockMainWindow@{DockMainWindow}}
\index{DockMainWindow@{DockMainWindow}!KParts::DockMainWindow@{KParts::Dock\-Main\-Window}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Dock\-Main\-Window::Dock\-Main\-Window ({\bf QWidget} $\ast$ {\em parent} = 0L, const char $\ast$ {\em name} = 0L, WFlags {\em f} = WDestructive\-Close)}\label{classKParts_1_1DockMainWindow_a0}


Constructor, same signature as {\bf KDock\-Main\-Window}. 



Definition at line 61 of file dockmainwindow.cpp.

References KStd\-Accel::name().\index{KParts::DockMainWindow@{KParts::Dock\-Main\-Window}!~DockMainWindow@{$\sim$DockMainWindow}}
\index{~DockMainWindow@{$\sim$DockMainWindow}!KParts::DockMainWindow@{KParts::Dock\-Main\-Window}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Dock\-Main\-Window::$\sim${\bf Dock\-Main\-Window} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1DockMainWindow_a1}


Destructor. 



Definition at line 68 of file dockmainwindow.cpp.

\subsection{Member Function Documentation}
\index{KParts::DockMainWindow@{KParts::Dock\-Main\-Window}!createGUI@{createGUI}}
\index{createGUI@{createGUI}!KParts::DockMainWindow@{KParts::Dock\-Main\-Window}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Dock\-Main\-Window::create\-GUI ({\bf KParts::Part} $\ast$ {\em part})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKParts_1_1DockMainWindow_j0}


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 KPart\-Manager::active\-Part\-Changed() signal \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em part}]The active part (set to 0L if no part). \end{description}
\end{Desc}


Definition at line 73 of file dockmainwindow.cpp.

References KXMLGUIFactory::add\-Client(), KXMLGUIClient::factory(), KMain\-Window::gui\-Factory(), KGlobal::instance(), KParts::Part\-Base::load\-Plugins(), QObject::name(), KXMLGUIFactory::remove\-Client(), QApplication::send\-Event(), KMain\-Window::set\-Caption(), and slot\-Set\-Status\-Bar\-Text().\index{KParts::DockMainWindow@{KParts::Dock\-Main\-Window}!slotSetStatusBarText@{slotSetStatusBarText}}
\index{slotSetStatusBarText@{slotSetStatusBarText}!KParts::DockMainWindow@{KParts::Dock\-Main\-Window}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Dock\-Main\-Window::slot\-Set\-Status\-Bar\-Text (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKParts_1_1DockMainWindow_j1}


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.

References QStatus\-Bar::message(), and KMain\-Window::status\-Bar().

Referenced by create\-GUI().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
dockmainwindow.h\item 
dockmainwindow.cpp\end{CompactItemize}
