\section{KParts::Part\-Base Class Reference}
\label{classKParts_1_1PartBase}\index{KParts::PartBase@{KParts::PartBase}}
Base class for all parts. Base class for all parts.  


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

Inheritance diagram for KParts::Part\-Base:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=212pt]{classKParts_1_1PartBase__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KParts::Part\-Base:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=110pt]{classKParts_1_1PartBase__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Part\-Base} ()
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$Part\-Base} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void {\bf set\-Part\-Object} ({\bf QObject} $\ast$object)
\begin{CompactList}\small\item\em Internal method. \item\end{CompactList}\item 
{\bf QObject} $\ast$ {\bf part\-Object} () const \label{classKParts_1_1PartBase_a3}

\end{CompactItemize}
\subsection*{Protected Types}
\begin{CompactItemize}
\item 
enum {\bf Plugin\-Loading\-Mode} \{ {\bf Do\-Not\-Load\-Plugins} =  0, 
{\bf Load\-Plugins} =  1, 
{\bf Load\-Plugins\-If\-Enabled} =  2
 \}
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf set\-Instance} ({\bf KInstance} $\ast${\bf instance})
\begin{CompactList}\small\item\em Set the instance ({\bf KInstance}) for this part. \item\end{CompactList}\item 
virtual void {\bf set\-Instance} ({\bf KInstance} $\ast${\bf instance}, bool load\-Plugins)
\begin{CompactList}\small\item\em Set the instance ({\bf KInstance}) for this part. \item\end{CompactList}\item 
void {\bf load\-Plugins} ({\bf QObject} $\ast$parent, {\bf KXMLGUIClient} $\ast$parent\-GUIClient, {\bf KInstance} $\ast${\bf instance})
\begin{CompactList}\small\item\em Load the Plugins honoring the Plugin\-Loading\-Mode. \item\end{CompactList}\item 
void {\bf set\-Plugin\-Loading\-Mode} (Plugin\-Loading\-Mode loading\-Mode)
\begin{CompactList}\small\item\em For a {\bf KParts::Part}{\rm (p.\,\pageref{classKParts_1_1Part})}: call this before set\-Instance. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf Part\-Base\-Private}\label{classKParts_1_1PartBase_n0}

\end{CompactItemize}


\subsection{Detailed Description}
Base class for all parts. Base class for all parts. 



Definition at line 57 of file part.h.

\subsection{Constructor \& Destructor Documentation}
\index{KParts::PartBase@{KParts::Part\-Base}!PartBase@{PartBase}}
\index{PartBase@{PartBase}!KParts::PartBase@{KParts::Part\-Base}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Part\-Base::Part\-Base ()}\label{classKParts_1_1PartBase_a0}


Constructor. 



Definition at line 82 of file part.cpp.\index{KParts::PartBase@{KParts::Part\-Base}!~PartBase@{$\sim$PartBase}}
\index{~PartBase@{$\sim$PartBase}!KParts::PartBase@{KParts::Part\-Base}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Part\-Base::$\sim${\bf Part\-Base} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartBase_a1}


Destructor. 



Definition at line 88 of file part.cpp.

\subsection{Member Function Documentation}
\index{KParts::PartBase@{KParts::Part\-Base}!setPartObject@{setPartObject}}
\index{setPartObject@{setPartObject}!KParts::PartBase@{KParts::Part\-Base}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Base::set\-Part\-Object ({\bf QObject} $\ast$ {\em object})}\label{classKParts_1_1PartBase_a2}


Internal method. 

Called by {\bf KParts::Part}{\rm (p.\,\pageref{classKParts_1_1Part})} to specify the parent object for plugin objects. 

Definition at line 93 of file part.cpp.\index{KParts::PartBase@{KParts::Part\-Base}!setInstance@{setInstance}}
\index{setInstance@{setInstance}!KParts::PartBase@{KParts::Part\-Base}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Base::set\-Instance ({\bf KInstance} $\ast$ {\em instance})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKParts_1_1PartBase_b0}


Set the instance ({\bf KInstance}) for this part. 

Call this $\ast$first$\ast$ in the inherited class constructor, because it loads the i18n catalogues. 

Reimplemented from {\bf KXMLGUIClient}.

Definition at line 103 of file part.cpp.\index{KParts::PartBase@{KParts::Part\-Base}!setInstance@{setInstance}}
\index{setInstance@{setInstance}!KParts::PartBase@{KParts::Part\-Base}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Base::set\-Instance ({\bf KInstance} $\ast$ {\em instance}, bool {\em load\-Plugins})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKParts_1_1PartBase_b1}


Set the instance ({\bf KInstance}) for this part. 

Call this $\ast$first$\ast$ in the inherited class constructor, because it loads the i18n catalogues. 

Definition at line 108 of file part.cpp.

References KStandard\-Dirs::add\-Resource\-Type(), KGlobal::dirs(), QString::from\-Latin1(), KLocale::insert\-Catalogue(), KXMLGUIClient::instance(), KInstance::instance\-Name(), KStandard\-Dirs::kde\_\-default(), load\-Plugins(), KGlobal::locale(), and KXMLGUIClient::set\-Instance().\index{KParts::PartBase@{KParts::Part\-Base}!loadPlugins@{loadPlugins}}
\index{loadPlugins@{loadPlugins}!KParts::PartBase@{KParts::Part\-Base}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Base::load\-Plugins ({\bf QObject} $\ast$ {\em parent}, {\bf KXMLGUIClient} $\ast$ {\em parent\-GUIClient}, {\bf KInstance} $\ast$ {\em instance})\hspace{0.3cm}{\tt  [protected]}}\label{classKParts_1_1PartBase_b2}


Load the Plugins honoring the Plugin\-Loading\-Mode. 



Definition at line 120 of file part.cpp.

References KNotify\-Client::instance().

Referenced by KParts::Main\-Window::create\-GUI(), KParts::Dock\-Main\-Window::create\-GUI(), and set\-Instance().\index{KParts::PartBase@{KParts::Part\-Base}!setPluginLoadingMode@{setPluginLoadingMode}}
\index{setPluginLoadingMode@{setPluginLoadingMode}!KParts::PartBase@{KParts::Part\-Base}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Base::set\-Plugin\-Loading\-Mode (Plugin\-Loading\-Mode {\em loading\-Mode})\hspace{0.3cm}{\tt  [protected]}}\label{classKParts_1_1PartBase_b3}


For a {\bf KParts::Part}{\rm (p.\,\pageref{classKParts_1_1Part})}: call this before set\-Instance. 

For a {\bf KParts::Main\-Window}{\rm (p.\,\pageref{classKParts_1_1MainWindow})}: call this before create\-GUI. 

Definition at line 126 of file part.cpp.

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