\section{KParts::Part\-Manager Class Reference}
\label{classKParts_1_1PartManager}\index{KParts::PartManager@{KParts::PartManager}}
The part manager is an object which knows about a collection of parts (even nested ones) and handles activation/deactivation.  


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

Inheritance diagram for KParts::Part\-Manager:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=73pt]{classKParts_1_1PartManager__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KParts::Part\-Manager:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=73pt]{classKParts_1_1PartManager__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Selection\-Policy} \{ {\bf Direct}, 
{\bf Tri\-State}
 \}
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf part\-Added} ({\bf KParts::Part} $\ast$part)
\begin{CompactList}\small\item\em Emitted when a new part has been added. \item\end{CompactList}\item 
void {\bf part\-Removed} ({\bf KParts::Part} $\ast$part)
\begin{CompactList}\small\item\em Emitted when a part has been removed. \item\end{CompactList}\item 
void {\bf active\-Part\-Changed} ({\bf KParts::Part} $\ast$new\-Part)
\begin{CompactList}\small\item\em Emitted when the active part has changed. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Part\-Manager} ({\bf QWidget} $\ast${\bf parent}, const  char $\ast${\bf name}=0L)
\begin{CompactList}\small\item\em Constructs a part manager. \item\end{CompactList}\item 
{\bf Part\-Manager} ({\bf QWidget} $\ast$top\-Level, {\bf QObject} $\ast${\bf parent}, const  char $\ast${\bf name}=0)
\begin{CompactList}\small\item\em Constructs a part manager. \item\end{CompactList}\item 
void {\bf set\-Selection\-Policy} (Selection\-Policy policy)
\begin{CompactList}\small\item\em Sets the selection policy of the partmanager. \item\end{CompactList}\item 
Selection\-Policy {\bf selection\-Policy} () const 
\begin{CompactList}\small\item\em Returns the current selection policy. \item\end{CompactList}\item 
void {\bf set\-Allow\-Nested\-Parts} (bool allow)
\begin{CompactList}\small\item\em Specifies whether the partmanager should handle/allow nested parts or not. \item\end{CompactList}\item 
bool {\bf allow\-Nested\-Parts} () const 
\item 
void {\bf set\-Ignore\-Scroll\-Bars} (bool ignore)
\begin{CompactList}\small\item\em Specifies whether the partmanager should ignore mouse click events for scrollbars or not. \item\end{CompactList}\item 
bool {\bf ignore\-Scroll\-Bars} () const 
\item 
void {\bf set\-Activation\-Button\-Mask} (short int button\-Mask)
\begin{CompactList}\small\item\em Specifies which mouse buttons the partmanager should react upon. \item\end{CompactList}\item 
short int {\bf activation\-Button\-Mask} () const 
\item 
virtual bool {\bf event\-Filter} ({\bf QObject} $\ast$obj, {\bf QEvent} $\ast$ev)\label{classKParts_1_1PartManager_a11}

\item 
virtual void {\bf add\-Part} ({\bf Part} $\ast$part, bool set\-Active=true)
\begin{CompactList}\small\item\em Adds a part to the manager. \item\end{CompactList}\item 
virtual void {\bf remove\-Part} ({\bf Part} $\ast$part)
\begin{CompactList}\small\item\em Removes a part from the manager (this does not delete the object) . \item\end{CompactList}\item 
virtual void {\bf replace\-Part} ({\bf Part} $\ast$old\-Part, {\bf Part} $\ast$new\-Part, bool set\-Active=true)
\begin{CompactList}\small\item\em Replaces {\tt old\-Part} with {\tt new\-Part}, and sets {\tt new\-Part} as active if {\tt set\-Active} is true. \item\end{CompactList}\item 
virtual void {\bf set\-Active\-Part} ({\bf Part} $\ast$part, {\bf QWidget} $\ast$widget=0L)
\begin{CompactList}\small\item\em Sets the active part. \item\end{CompactList}\item 
virtual {\bf Part} $\ast$ {\bf active\-Part} () const 
\begin{CompactList}\small\item\em Returns the active part. \item\end{CompactList}\item 
virtual {\bf QWidget} $\ast$ {\bf active\-Widget} () const 
\begin{CompactList}\small\item\em Returns the active widget of the current active part (see {\bf active\-Part}{\rm (p.\,\pageref{classKParts_1_1PartManager_a16})} ). \item\end{CompactList}\item 
virtual void {\bf set\-Selected\-Part} ({\bf Part} $\ast$part, {\bf QWidget} $\ast$widget=0L)
\begin{CompactList}\small\item\em Sets the selected part. \item\end{CompactList}\item 
virtual {\bf Part} $\ast$ {\bf selected\-Part} () const 
\begin{CompactList}\small\item\em Returns the current selected part. \item\end{CompactList}\item 
virtual {\bf QWidget} $\ast$ {\bf selected\-Widget} () const 
\begin{CompactList}\small\item\em Returns the selected widget of the current selected part (see {\bf selected\-Part}{\rm (p.\,\pageref{classKParts_1_1PartManager_a19})} ). \item\end{CompactList}\item 
const  {\bf QPtr\-List}$<$ {\bf Part} $>$ $\ast$ {\bf parts} () const 
\begin{CompactList}\small\item\em Returns the list of parts being managed by the partmanager. \item\end{CompactList}\item 
void {\bf add\-Managed\-Top\-Level\-Widget} (const  {\bf QWidget} $\ast$top\-Level)
\begin{CompactList}\small\item\em Adds the {\tt top\-Level} widget to the list of managed toplevel widgets. \item\end{CompactList}\item 
void {\bf remove\-Managed\-Top\-Level\-Widget} (const  {\bf QWidget} $\ast$top\-Level)
\begin{CompactList}\small\item\em Removes the {\tt top\-Level} widget from the list of managed toplevel widgets. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Object\-Destroyed} ()
\begin{CompactList}\small\item\em Removes a part when it is destroyed. \item\end{CompactList}\item 
void {\bf slot\-Widget\-Destroyed} ()\label{classKParts_1_1PartManager_j1}

\item 
void {\bf slot\-Managed\-Top\-Level\-Widget\-Destroyed} ()\label{classKParts_1_1PartManager_j2}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf set\-Active\-Instance} ({\bf KInstance} $\ast$instance)
\begin{CompactList}\small\item\em Changes the active instance when the active part changes. \item\end{CompactList}\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKParts_1_1PartManager_b1}

\end{CompactItemize}


\subsection{Detailed Description}
The part manager is an object which knows about a collection of parts (even nested ones) and handles activation/deactivation. 

Applications that want to embed parts without merging GUIs only use a KParts::Part\-Manager. Those who want to merge GUIs use a {\bf KParts::Main\-Window}{\rm (p.\,\pageref{classKParts_1_1MainWindow})} for example, in addition to a part manager.

Parts know about the part manager to add nested parts to it. See also {\bf KParts::Part::manager}{\rm (p.\,\pageref{classKParts_1_1Part_a5})}() and KParts::Part::set\-Manager(). 



Definition at line 47 of file partmanager.h.

\subsection{Constructor \& Destructor Documentation}
\index{KParts::PartManager@{KParts::Part\-Manager}!PartManager@{PartManager}}
\index{PartManager@{PartManager}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Part\-Manager::Part\-Manager ({\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0L)}\label{classKParts_1_1PartManager_a0}


Constructs a part manager. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]The toplevel widget (window / dialog) the partmanager should monitor for activation/selection events \end{description}
\end{Desc}


Definition at line 73 of file partmanager.cpp.

References add\-Managed\-Top\-Level\-Widget(), and KStd\-Accel::name().\index{KParts::PartManager@{KParts::Part\-Manager}!PartManager@{PartManager}}
\index{PartManager@{PartManager}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Part\-Manager::Part\-Manager ({\bf QWidget} $\ast$ {\em top\-Level}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0)}\label{classKParts_1_1PartManager_a1}


Constructs a part manager. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em top\-Level}]The toplevel widget (window / dialog ) the partmanager should monitor for activation/selection events \item[{\em parent}]The parent {\bf QObject}. \end{description}
\end{Desc}


Definition at line 85 of file partmanager.cpp.

References add\-Managed\-Top\-Level\-Widget(), and KStd\-Accel::name().

\subsection{Member Function Documentation}
\index{KParts::PartManager@{KParts::Part\-Manager}!setSelectionPolicy@{setSelectionPolicy}}
\index{setSelectionPolicy@{setSelectionPolicy}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::set\-Selection\-Policy (Selection\-Policy {\em policy})}\label{classKParts_1_1PartManager_a3}


Sets the selection policy of the partmanager. 



Definition at line 112 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!selectionPolicy@{selectionPolicy}}
\index{selectionPolicy@{selectionPolicy}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Part\-Manager::Selection\-Policy Part\-Manager::selection\-Policy () const}\label{classKParts_1_1PartManager_a4}


Returns the current selection policy. 



Definition at line 117 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!setAllowNestedParts@{setAllowNestedParts}}
\index{setAllowNestedParts@{setAllowNestedParts}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::set\-Allow\-Nested\-Parts (bool {\em allow})}\label{classKParts_1_1PartManager_a5}


Specifies whether the partmanager should handle/allow nested parts or not. 

This is a property the shell has to set/specify. Per default we assume that the shell cannot handle nested parts. However in case of a KOffice shell for example we allow nested parts. A {\bf Part}{\rm (p.\,\pageref{classKParts_1_1Part})} is nested (a child part) if its parent object inherits {\bf KParts::Part}{\rm (p.\,\pageref{classKParts_1_1Part})}. If a child part is activated and nested parts are not allowed/handled, then the top parent part in the tree is activated. 

Definition at line 122 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!allowNestedParts@{allowNestedParts}}
\index{allowNestedParts@{allowNestedParts}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Part\-Manager::allow\-Nested\-Parts () const}\label{classKParts_1_1PartManager_a6}


\begin{Desc}
\item[See also:]{\bf set\-Allow\-Nested\-Parts}{\rm (p.\,\pageref{classKParts_1_1PartManager_a5})} \end{Desc}


Definition at line 127 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!setIgnoreScrollBars@{setIgnoreScrollBars}}
\index{setIgnoreScrollBars@{setIgnoreScrollBars}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::set\-Ignore\-Scroll\-Bars (bool {\em ignore})}\label{classKParts_1_1PartManager_a7}


Specifies whether the partmanager should ignore mouse click events for scrollbars or not. 

If the partmanager ignores them, then clicking on the scrollbars of a non-active/non-selected part will not change the selection or activation state.

The default value is false (read: scrollbars are NOT ignored). 

Definition at line 132 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!ignoreScrollBars@{ignoreScrollBars}}
\index{ignoreScrollBars@{ignoreScrollBars}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Part\-Manager::ignore\-Scroll\-Bars () const}\label{classKParts_1_1PartManager_a8}


\begin{Desc}
\item[See also:]{\bf set\-Ignore\-Scroll\-Bars}{\rm (p.\,\pageref{classKParts_1_1PartManager_a7})} \end{Desc}


Definition at line 137 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!setActivationButtonMask@{setActivationButtonMask}}
\index{setActivationButtonMask@{setActivationButtonMask}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::set\-Activation\-Button\-Mask (short int {\em button\-Mask})}\label{classKParts_1_1PartManager_a9}


Specifies which mouse buttons the partmanager should react upon. 

By default it reacts on all mouse buttons (LMB/MMB/RMB). \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mouse\-Buttons}]a combination of Qt::Button\-State values e.g. Qt::Left\-Button $|$ Qt::Mid\-Button \end{description}
\end{Desc}


Definition at line 142 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!activationButtonMask@{activationButtonMask}}
\index{activationButtonMask@{activationButtonMask}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short int Part\-Manager::activation\-Button\-Mask () const}\label{classKParts_1_1PartManager_a10}


\begin{Desc}
\item[See also:]{\bf set\-Activation\-Button\-Mask}{\rm (p.\,\pageref{classKParts_1_1PartManager_a9})} \end{Desc}


Definition at line 147 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!addPart@{addPart}}
\index{addPart@{addPart}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::add\-Part ({\bf Part} $\ast$ {\em part}, bool {\em set\-Active} = true)\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a12}


Adds a part to the manager. 

Sets it to the active part automatically if {\tt set\-Active} is true (default ). 

Definition at line 301 of file partmanager.cpp.

References QWidget::focus\-Policy(), QObject::name(), part\-Added(), set\-Active\-Part(), QWidget::set\-Focus(), KParts::Part::set\-Manager(), QWidget::show(), and KParts::Part::widget().

Referenced by replace\-Part().\index{KParts::PartManager@{KParts::Part\-Manager}!removePart@{removePart}}
\index{removePart@{removePart}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::remove\-Part ({\bf Part} $\ast$ {\em part})\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a13}


Removes a part from the manager (this does not delete the object) . 

Sets the active part to 0 if {\tt part} is the {\bf active\-Part}{\rm (p.\,\pageref{classKParts_1_1PartManager_a16})}() . 

Definition at line 332 of file partmanager.cpp.

References QObject::name(), part\-Removed(), set\-Active\-Part(), KParts::Part::set\-Manager(), and set\-Selected\-Part().

Referenced by slot\-Object\-Destroyed(), and KParts::Part::$\sim$Part().\index{KParts::PartManager@{KParts::Part\-Manager}!replacePart@{replacePart}}
\index{replacePart@{replacePart}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::replace\-Part ({\bf Part} $\ast$ {\em old\-Part}, {\bf Part} $\ast$ {\em new\-Part}, bool {\em set\-Active} = true)\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a14}


Replaces {\tt old\-Part} with {\tt new\-Part}, and sets {\tt new\-Part} as active if {\tt set\-Active} is true. 

This is an optimised version of {\bf remove\-Part}{\rm (p.\,\pageref{classKParts_1_1PartManager_a13})} + {\bf add\-Part}{\rm (p.\,\pageref{classKParts_1_1PartManager_a12})} 

Definition at line 353 of file partmanager.cpp.

References add\-Part(), QObject::name(), part\-Removed(), and KParts::Part::set\-Manager().\index{KParts::PartManager@{KParts::Part\-Manager}!setActivePart@{setActivePart}}
\index{setActivePart@{setActivePart}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::set\-Active\-Part ({\bf Part} $\ast$ {\em part}, {\bf QWidget} $\ast$ {\em widget} = 0L)\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a15}


Sets the active part. 

The active part receives activation events.

{\tt widget} can be used to specify which widget was responsible for the activation. This is important if you have multiple views for a document/part , like in KOffice . 

Definition at line 371 of file partmanager.cpp.

References active\-Part\-Changed(), QObject::connect(), QObject::destroyed(), QObject::disconnect(), QObject::inherits(), QObject::name(), QObject::parent(), QApplication::send\-Event(), set\-Active\-Instance(), set\-Selected\-Part(), and KParts::Part::widget().

Referenced by add\-Part(), and remove\-Part().\index{KParts::PartManager@{KParts::Part\-Manager}!activePart@{activePart}}
\index{activePart@{activePart}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Part} $\ast$ Part\-Manager::active\-Part () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a16}


Returns the active part. 



Definition at line 453 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!activeWidget@{activeWidget}}
\index{activeWidget@{activeWidget}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QWidget} $\ast$ Part\-Manager::active\-Widget () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a17}


Returns the active widget of the current active part (see {\bf active\-Part}{\rm (p.\,\pageref{classKParts_1_1PartManager_a16})} ). 



Definition at line 458 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!setSelectedPart@{setSelectedPart}}
\index{setSelectedPart@{setSelectedPart}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::set\-Selected\-Part ({\bf Part} $\ast$ {\em part}, {\bf QWidget} $\ast$ {\em widget} = 0L)\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a18}


Sets the selected part. 

The selected part receives selection events.

{\tt widget} can be used to specify which widget was responsible for the selection. This is important if you have multiple views for a document/part , like in KOffice . 

Definition at line 463 of file partmanager.cpp.

References QApplication::send\-Event(), and KParts::Part::widget().

Referenced by remove\-Part(), and set\-Active\-Part().\index{KParts::PartManager@{KParts::Part\-Manager}!selectedPart@{selectedPart}}
\index{selectedPart@{selectedPart}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Part} $\ast$ Part\-Manager::selected\-Part () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a19}


Returns the current selected part. 



Definition at line 492 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!selectedWidget@{selectedWidget}}
\index{selectedWidget@{selectedWidget}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QWidget} $\ast$ Part\-Manager::selected\-Widget () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKParts_1_1PartManager_a20}


Returns the selected widget of the current selected part (see {\bf selected\-Part}{\rm (p.\,\pageref{classKParts_1_1PartManager_a19})} ). 



Definition at line 497 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!parts@{parts}}
\index{parts@{parts}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const  {\bf QPtr\-List}$<$ {\bf Part} $>$ $\ast$ Part\-Manager::parts () const}\label{classKParts_1_1PartManager_a21}


Returns the list of parts being managed by the partmanager. 



Definition at line 516 of file partmanager.cpp.\index{KParts::PartManager@{KParts::Part\-Manager}!addManagedTopLevelWidget@{addManagedTopLevelWidget}}
\index{addManagedTopLevelWidget@{addManagedTopLevelWidget}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::add\-Managed\-Top\-Level\-Widget (const {\bf QWidget} $\ast$ {\em top\-Level})}\label{classKParts_1_1PartManager_a22}


Adds the {\tt top\-Level} widget to the list of managed toplevel widgets. 

Usually a {\bf Part\-Manager}{\rm (p.\,\pageref{classKParts_1_1PartManager})} only listens for events (for activation/selection) for one toplevel widget (and its children) , the one specified in the constructor. Sometimes however (like for example when using the {\bf KDE} dockwidget library) , it is necessary to extend this. 

Definition at line 521 of file partmanager.cpp.

References QObject::connect(), QObject::destroyed(), and QWidget::is\-Top\-Level().

Referenced by Part\-Manager().\index{KParts::PartManager@{KParts::Part\-Manager}!removeManagedTopLevelWidget@{removeManagedTopLevelWidget}}
\index{removeManagedTopLevelWidget@{removeManagedTopLevelWidget}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::remove\-Managed\-Top\-Level\-Widget (const {\bf QWidget} $\ast$ {\em top\-Level})}\label{classKParts_1_1PartManager_a23}


Removes the {\tt top\-Level} widget from the list of managed toplevel widgets. 

\begin{Desc}
\item[See also:]{\bf add\-Managed\-Top\-Level\-Widget}{\rm (p.\,\pageref{classKParts_1_1PartManager_a22})} \end{Desc}


Definition at line 534 of file partmanager.cpp.

References QWidget::is\-Top\-Level().\index{KParts::PartManager@{KParts::Part\-Manager}!partAdded@{partAdded}}
\index{partAdded@{partAdded}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KParts::Part\-Manager::part\-Added ({\bf KParts::Part} $\ast$ {\em part})\hspace{0.3cm}{\tt  [signal]}}\label{classKParts_1_1PartManager_l0}


Emitted when a new part has been added. 

\begin{Desc}
\item[See also:]{\bf add\-Part()}{\rm (p.\,\pageref{classKParts_1_1PartManager_a12})} \end{Desc}


Referenced by add\-Part().\index{KParts::PartManager@{KParts::Part\-Manager}!partRemoved@{partRemoved}}
\index{partRemoved@{partRemoved}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KParts::Part\-Manager::part\-Removed ({\bf KParts::Part} $\ast$ {\em part})\hspace{0.3cm}{\tt  [signal]}}\label{classKParts_1_1PartManager_l1}


Emitted when a part has been removed. 

\begin{Desc}
\item[See also:]{\bf remove\-Part()}{\rm (p.\,\pageref{classKParts_1_1PartManager_a13})} \end{Desc}


Referenced by remove\-Part(), and replace\-Part().\index{KParts::PartManager@{KParts::Part\-Manager}!activePartChanged@{activePartChanged}}
\index{activePartChanged@{activePartChanged}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KParts::Part\-Manager::active\-Part\-Changed ({\bf KParts::Part} $\ast$ {\em new\-Part})\hspace{0.3cm}{\tt  [signal]}}\label{classKParts_1_1PartManager_l2}


Emitted when the active part has changed. 

\begin{Desc}
\item[See also:]{\bf set\-Active\-Part()}{\rm (p.\,\pageref{classKParts_1_1PartManager_a15})} \end{Desc}


Referenced by set\-Active\-Part().\index{KParts::PartManager@{KParts::Part\-Manager}!setActiveInstance@{setActiveInstance}}
\index{setActiveInstance@{setActiveInstance}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::set\-Active\-Instance ({\bf KInstance} $\ast$ {\em instance})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKParts_1_1PartManager_b0}


Changes the active instance when the active part changes. 

The active instance is used by {\bf KBug\-Report} and {\bf KAbout\-Dialog}. Override if you really need to - usually you don't need to. 

Definition at line 447 of file partmanager.cpp.

References KGlobal::\_\-active\-Instance, and KNotify\-Client::instance().

Referenced by set\-Active\-Part().\index{KParts::PartManager@{KParts::Part\-Manager}!slotObjectDestroyed@{slotObjectDestroyed}}
\index{slotObjectDestroyed@{slotObjectDestroyed}!KParts::PartManager@{KParts::Part\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Part\-Manager::slot\-Object\-Destroyed ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKParts_1_1PartManager_j0}


Removes a part when it is destroyed. 



Definition at line 502 of file partmanager.cpp.

References remove\-Part(), and QObject::sender().

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