.TH "KParts::PartBase" 3 "28 Jan 2004" "kparts Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KParts::PartBase \- Base class for all parts. Base class for all parts.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <part.h>\fP
.PP
Inherits \fBKXMLGUIClient\fP.
.PP
Inherited by \fBKParts::DockMainWindow\fP\fC [virtual]\fP, \fBKParts::MainWindow\fP\fC [virtual]\fP, and \fBKParts::Part\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBPartBase\fP ()"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "virtual \fB~PartBase\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "void \fBsetPartObject\fP (\fBQObject\fP *object)"
.br
.RI "\fIInternal method. \fP"
.ti -1c
.RI "\fBQObject\fP * \fBpartObject\fP () const "
.br
.in -1c
.SS "Protected Types"

.in +1c
.ti -1c
.RI "enum \fBPluginLoadingMode\fP { \fBDoNotLoadPlugins\fP =  0, \fBLoadPlugins\fP =  1, \fBLoadPluginsIfEnabled\fP =  2 }"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBsetInstance\fP (\fBKInstance\fP *\fBinstance\fP)"
.br
.RI "\fISet the instance (\fBKInstance\fP) for this part. \fP"
.ti -1c
.RI "virtual void \fBsetInstance\fP (\fBKInstance\fP *\fBinstance\fP, bool loadPlugins)"
.br
.RI "\fISet the instance (\fBKInstance\fP) for this part. \fP"
.ti -1c
.RI "void \fBloadPlugins\fP (\fBQObject\fP *parent, \fBKXMLGUIClient\fP *parentGUIClient, \fBKInstance\fP *\fBinstance\fP)"
.br
.RI "\fILoad the Plugins honoring the PluginLoadingMode. \fP"
.ti -1c
.RI "void \fBsetPluginLoadingMode\fP (PluginLoadingMode loadingMode)"
.br
.RI "\fIFor a \fBKParts::Part\fP: call this before setInstance. \fP"
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBPartBasePrivate\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Base class for all parts. Base class for all parts. Definition at line 57 of file part.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "PartBase::PartBase ()"
.PP
Constructor. Definition at line 82 of file part.cpp.
.SS "PartBase::~\fBPartBase\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 88 of file part.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void PartBase::setPartObject (\fBQObject\fP * object)"
.PP
Internal method. Called by \fBKParts::Part\fP to specify the parent object for plugin objects. Definition at line 93 of file part.cpp.
.SS "void PartBase::setInstance (\fBKInstance\fP * instance)\fC [protected, virtual]\fP"
.PP
Set the instance (\fBKInstance\fP) for this part. Call this *first* in the inherited class constructor, because it loads the i18n catalogues. Reimplemented from \fBKXMLGUIClient\fP.
.PP
Definition at line 103 of file part.cpp.
.SS "void PartBase::setInstance (\fBKInstance\fP * instance, bool loadPlugins)\fC [protected, virtual]\fP"
.PP
Set the instance (\fBKInstance\fP) for this part. Call this *first* in the inherited class constructor, because it loads the i18n catalogues. Definition at line 108 of file part.cpp.
.PP
References KStandardDirs::addResourceType(), KGlobal::dirs(), QString::fromLatin1(), KLocale::insertCatalogue(), KXMLGUIClient::instance(), KInstance::instanceName(), KStandardDirs::kde_default(), loadPlugins(), KGlobal::locale(), and KXMLGUIClient::setInstance().
.SS "void PartBase::loadPlugins (\fBQObject\fP * parent, \fBKXMLGUIClient\fP * parentGUIClient, \fBKInstance\fP * instance)\fC [protected]\fP"
.PP
Load the Plugins honoring the PluginLoadingMode. Definition at line 120 of file part.cpp.
.PP
References KNotifyClient::instance().
.PP
Referenced by KParts::MainWindow::createGUI(), KParts::DockMainWindow::createGUI(), and setInstance().
.SS "void PartBase::setPluginLoadingMode (PluginLoadingMode loadingMode)\fC [protected]\fP"
.PP
For a \fBKParts::Part\fP: call this before setInstance. For a \fBKParts::MainWindow\fP: call this before createGUI. Definition at line 126 of file part.cpp.

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