KDevelop API Documentation

PluginController Class Reference

#include <plugincontroller.h>

Inheritance diagram for PluginController:

QObject List of all members.

Signals

void loadingPlugin (const QString &plugin)

Public Member Functions

 ~PluginController ()
QString currentProfile () const
QString currentProfilePath () const
void loadInitialPlugins ()
void integratePart (KXMLGUIClient *part)
void removePart (KXMLGUIClient *part)
const QDict< KDevPlugin > & globalParts ()

Static Public Member Functions

void createInstance ()
PluginControllergetInstance ()
KService::List pluginServices (const QString &scope=QString::null)
KDevPluginloadPlugin (const KService::Ptr &service)
QStringList argumentsFromService (const KService::Ptr &service)

Protected Member Functions

 PluginController ()

Private Slots

void slotConfigWidget (KDialogBase *)
void loadGlobalPlugins ()
void loadCorePlugins ()
void unloadGlobalPlugins ()

Private Member Functions

void loadDefaultParts ()

Private Attributes

QDict< KDevPluginm_globalParts
QString m_profile
QString m_profilePath
QString m_defaultProfile
QString m_defaultProfilePath

Static Private Attributes

PluginControllers_instance = 0

Constructor & Destructor Documentation

PluginController::~PluginController  ) 
 

Definition at line 113 of file plugincontroller.cpp.

References unloadGlobalPlugins().

PluginController::PluginController  )  [protected]
 

Definition at line 70 of file plugincontroller.cpp.

References m_defaultProfile, m_defaultProfilePath, and slotConfigWidget().

Referenced by getInstance().


Member Function Documentation

QStringList PluginController::argumentsFromService const KService::Ptr service  )  [static]
 

Definition at line 251 of file plugincontroller.cpp.

References argumentsFromService().

Referenced by argumentsFromService(), and loadPlugin().

void PluginController::createInstance  )  [static]
 

QString PluginController::currentProfile  )  const [inline]
 

Definition at line 31 of file plugincontroller.h.

References m_profile.

QString PluginController::currentProfilePath  )  const [inline]
 

Definition at line 32 of file plugincontroller.h.

References m_profilePath.

PluginController * PluginController::getInstance  )  [static]
 

Definition at line 62 of file plugincontroller.cpp.

References PluginController(), and s_instance.

Referenced by ProjectManager::closeProject(), ProjectManager::loadCreateFileSupport(), ProjectManager::loadLanguageSupport(), ProjectManager::loadLocalParts(), ProjectManager::loadProject(), ProjectManager::loadProjectPart(), main(), ProjectManager::unloadCreateFileSupport(), ProjectManager::unloadLanguageSupport(), ProjectManager::unloadLocalParts(), and ProjectManager::unloadProjectPart().

const QDict<KDevPlugin>& PluginController::globalParts  )  [inline]
 

Definition at line 39 of file plugincontroller.h.

References m_globalParts.

Referenced by ProjectManager::closeProject(), and ProjectManager::loadProject().

void PluginController::integratePart KXMLGUIClient part  ) 
 

Definition at line 271 of file plugincontroller.cpp.

References KXMLGUIClient::actionCollection(), KXMLGUIFactory::addClient(), TopLevel::getInstance(), KMainWindow::guiFactory(), integratePart(), and KDevMainWindow::main().

Referenced by integratePart(), loadCorePlugins(), ProjectManager::loadCreateFileSupport(), loadDefaultParts(), loadGlobalPlugins(), ProjectManager::loadLanguageSupport(), ProjectManager::loadLocalParts(), and ProjectManager::loadProjectPart().

void PluginController::loadCorePlugins  )  [private, slot]
 

Definition at line 160 of file plugincontroller.cpp.

References integratePart(), loadingPlugin(), loadPlugin(), m_globalParts, and pluginServices().

Referenced by loadInitialPlugins().

void PluginController::loadDefaultParts  )  [private]
 

Definition at line 119 of file plugincontroller.cpp.

References endl(), API::getInstance(), integratePart(), kdDebug(), loadingPlugin(), KDevApi::setAppFrontend(), KDevApi::setDiffFrontend(), KDevApi::setMakeFrontend(), and KDevApi::setSourceFormatter().

Referenced by loadInitialPlugins().

void PluginController::loadGlobalPlugins  )  [private, slot]
 

Definition at line 185 of file plugincontroller.cpp.

References config, integratePart(), loadingPlugin(), loadPlugin(), m_globalParts, m_profilePath, pluginServices(), KConfigBase::readBoolEntry(), removePart(), and KConfigBase::setGroup().

Referenced by loadInitialPlugins(), and slotConfigWidget().

void PluginController::loadingPlugin const QString plugin  )  [signal]
 

Referenced by loadCorePlugins(), loadDefaultParts(), and loadGlobalPlugins().

void PluginController::loadInitialPlugins  ) 
 

Definition at line 83 of file plugincontroller.cpp.

References KCmdLineArgs::getOption(), KCmdLineArgs::isSet(), loadCorePlugins(), loadDefaultParts(), loadGlobalPlugins(), locate(), m_defaultProfile, m_defaultProfilePath, m_profile, and m_profilePath.

Referenced by main().

KDevPlugin * PluginController::loadPlugin const KService::Ptr service  )  [static]
 

Definition at line 244 of file plugincontroller.cpp.

References argumentsFromService(), API::getInstance(), loadPlugin(), and KService::Ptr.

Referenced by loadCorePlugins(), loadGlobalPlugins(), and loadPlugin().

KService::List PluginController::pluginServices const QString scope = QString::null  )  [static]
 

Definition at line 234 of file plugincontroller.cpp.

References KDEVELOP_PLUGIN_VERSION, and pluginServices().

Referenced by loadCorePlugins(), loadGlobalPlugins(), and pluginServices().

void PluginController::removePart KXMLGUIClient part  ) 
 

Definition at line 281 of file plugincontroller.cpp.

References TopLevel::getInstance(), KMainWindow::guiFactory(), KDevMainWindow::main(), KXMLGUIFactory::removeClient(), and removePart().

Referenced by loadGlobalPlugins(), ProjectManager::loadLocalParts(), removePart(), ProjectManager::unloadCreateFileSupport(), unloadGlobalPlugins(), ProjectManager::unloadLanguageSupport(), ProjectManager::unloadLocalParts(), and ProjectManager::unloadProjectPart().

void PluginController::slotConfigWidget KDialogBase  )  [private, slot]
 

Definition at line 263 of file plugincontroller.cpp.

References KDialogBase::addVBoxPage(), loadGlobalPlugins(), and slotConfigWidget().

Referenced by PluginController(), and slotConfigWidget().

void PluginController::unloadGlobalPlugins  )  [private, slot]
 

Definition at line 223 of file plugincontroller.cpp.

References m_globalParts, and removePart().

Referenced by ~PluginController().


Member Data Documentation

QString PluginController::m_defaultProfile [private]
 

Definition at line 59 of file plugincontroller.h.

Referenced by loadInitialPlugins(), and PluginController().

QString PluginController::m_defaultProfilePath [private]
 

Definition at line 60 of file plugincontroller.h.

Referenced by loadInitialPlugins(), and PluginController().

QDict<KDevPlugin> PluginController::m_globalParts [private]
 

Definition at line 56 of file plugincontroller.h.

Referenced by globalParts(), loadCorePlugins(), loadGlobalPlugins(), and unloadGlobalPlugins().

QString PluginController::m_profile [private]
 

Definition at line 57 of file plugincontroller.h.

Referenced by currentProfile(), and loadInitialPlugins().

QString PluginController::m_profilePath [private]
 

Definition at line 58 of file plugincontroller.h.

Referenced by currentProfilePath(), loadGlobalPlugins(), and loadInitialPlugins().

PluginController * PluginController::s_instance = 0 [static, private]
 

Definition at line 59 of file plugincontroller.cpp.

Referenced by getInstance().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003