KDevelop API Documentation

Core Class Reference

#include <core.h>

Inheritance diagram for Core:

Inheritance graph
[legend]
Collaboration diagram for Core:

Collaboration graph
[legend]
List of all members.

Signals

void activeProcessChanged (KDevPlugin *which, bool runs)

Public Member Functions

 ~Core ()
virtual void insertNewAction (KAction *action)
virtual void running (KDevPlugin *which, bool runs)
 Marks the component as running (or not running).
virtual void fillContextMenu (QPopupMenu *popup, const Context *context)
 This method should be called by a part that wants to show a context menu.
virtual void openProject (const QString &projectFileName)
 close the current project and opens the new one
virtual QDict< KDevLicenselicenses ()
 Returns a list of all available licenses.
void loadLicenses ()
void doEmitProjectOpened ()
void doEmitProjectClosed ()
void doEmitLanguageChanged ()
void doEmitCoreInitialized ()
void doEmitProjectConfigWidget (KDialogBase *base)
void doEmitConfigWidget (KDialogBase *base)
void doEmitStopButtonPressed (KDevPlugin *which=0)
bool queryClose ()

Static Public Member Functions

CoregetInstance ()

Protected Member Functions

 Core ()

Private Attributes

QDict< KDevLicensem_licenses

Static Private Attributes

Cores_instance = 0

Constructor & Destructor Documentation

Core::~Core  ) 
 

Definition at line 39 of file core.cpp.

Core::Core  )  [protected]
 

Definition at line 33 of file core.cpp.


Member Function Documentation

void Core::activeProcessChanged KDevPlugin which,
bool  runs
[signal]
 

Referenced by running().

void Core::doEmitConfigWidget KDialogBase base  )  [inline]
 

Definition at line 40 of file core.h.

References KDevCore::configWidget().

Referenced by MainWindowShare::slotSettings().

void Core::doEmitCoreInitialized  )  [inline]
 

Definition at line 38 of file core.h.

References KDevCore::coreInitialized().

Referenced by main().

void Core::doEmitLanguageChanged  )  [inline]
 

Definition at line 37 of file core.h.

References KDevCore::languageChanged().

Referenced by ProjectManager::switchLanguage().

void Core::doEmitProjectClosed  )  [inline]
 

Definition at line 36 of file core.h.

References KDevCore::projectClosed().

Referenced by ProjectManager::closeProject().

void Core::doEmitProjectConfigWidget KDialogBase base  )  [inline]
 

Definition at line 39 of file core.h.

References KDevCore::projectConfigWidget().

Referenced by ProjectManager::slotProjectOptions().

void Core::doEmitProjectOpened  )  [inline]
 

Definition at line 35 of file core.h.

References KDevCore::projectOpened().

Referenced by ProjectManager::slotLoadProject().

void Core::doEmitStopButtonPressed KDevPlugin which = 0  )  [inline]
 

Definition at line 41 of file core.h.

References KDevCore::stopButtonClicked().

Referenced by MainWindowShare::slotStopButtonPressed(), and MainWindowShare::slotStopPopupActivated().

void Core::fillContextMenu QPopupMenu popup,
const Context context
[virtual]
 

This method should be called by a part that wants to show a context menu.

The parameter context should be filled with information about the context in which this happens (see EditorContext, DocumentationContext, ClassContext, ...). Essentially, this method emits the signal contextMenu() which other parts can use to hook in.

Implements KDevCore.

Definition at line 75 of file core.cpp.

References KDevCore::contextMenu().

Referenced by EditorProxy::popupAboutToShow(), and NewMainWindow::tabContext().

Core * Core::getInstance  )  [static]
 

Definition at line 25 of file core.cpp.

References s_instance.

Referenced by ProjectManager::closeProject(), API::core(), NewMainWindow::init(), main(), EditorProxy::popupAboutToShow(), NewMainWindow::queryClose(), MainWindow::queryClose(), ProjectManager::slotLoadProject(), ProjectManager::slotProjectOptions(), MainWindowShare::slotSettings(), MainWindowShare::slotStopButtonPressed(), MainWindowShare::slotStopPopupActivated(), ProjectManager::switchLanguage(), and NewMainWindow::tabContext().

void Core::insertNewAction KAction action  )  [virtual]
 

Parameters:
action 

Implements KDevCore.

Definition at line 43 of file core.cpp.

QDict< KDevLicense > Core::licenses  )  [virtual]
 

Returns a list of all available licenses.

Implements KDevCore.

Definition at line 86 of file core.cpp.

void Core::loadLicenses  ) 
 

Definition at line 91 of file core.cpp.

References KStandardDirs::addResourceType(), KGlobal::dirs(), KStandardDirs::findAllResources(), KStandardDirs::findResource(), and m_licenses.

Referenced by NewMainWindow::init().

void Core::openProject const QString projectFileName  )  [virtual]
 

close the current project and opens the new one

Implements KDevCore.

Definition at line 81 of file core.cpp.

References ProjectManager::getInstance(), and ProjectManager::loadProject().

bool Core::queryClose  ) 
 

Definition at line 49 of file core.cpp.

References ProjectManager::closeProject(), ProjectManager::getInstance(), PartController::getInstance(), PartController::querySaveFiles(), PartController::readyToClose(), KConfigBase::setGroup(), and KConfigBase::writePathEntry().

Referenced by NewMainWindow::queryClose(), and MainWindow::queryClose().

void Core::running KDevPlugin which,
bool  runs
[virtual]
 

Marks the component as running (or not running).

As long as at least one component is running, the stop button is enabled. When it is pressed, all components get a stopButtonClicked().

Implements KDevCore.

Definition at line 69 of file core.cpp.

References activeProcessChanged().


Member Data Documentation

QDict< KDevLicense > Core::m_licenses [private]
 

Definition at line 57 of file core.h.

Referenced by loadLicenses().

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

Definition at line 22 of file core.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.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:38:45 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003