KDevelop API Documentation

Core Class Reference

#include <core.h>

Inheritance diagram for Core:

KDevCore QObject 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

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 ()

Static Private Attributes

Cores_instance = 0

Constructor & Destructor Documentation

Core::~Core  ) 
 

Definition at line 38 of file core.cpp.

Core::Core  )  [protected]
 

Definition at line 32 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 38 of file core.h.

References doEmitConfigWidget().

Referenced by doEmitConfigWidget(), and MainWindowShare::slotSettings().

void Core::doEmitCoreInitialized  )  [inline]
 

Definition at line 36 of file core.h.

References KDevCore::coreInitialized().

Referenced by main().

void Core::doEmitLanguageChanged  )  [inline]
 

Definition at line 35 of file core.h.

References KDevCore::languageChanged().

Referenced by ProjectManager::switchLanguage().

void Core::doEmitProjectClosed  )  [inline]
 

Definition at line 34 of file core.h.

References KDevCore::projectClosed().

Referenced by ProjectManager::closeProject().

void Core::doEmitProjectConfigWidget KDialogBase base  )  [inline]
 

Definition at line 37 of file core.h.

References doEmitProjectConfigWidget().

Referenced by doEmitProjectConfigWidget(), and ProjectManager::slotProjectOptions().

void Core::doEmitProjectOpened  )  [inline]
 

Definition at line 33 of file core.h.

References KDevCore::projectOpened().

Referenced by ProjectManager::loadProject().

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

Definition at line 39 of file core.h.

References doEmitStopButtonPressed().

Referenced by doEmitStopButtonPressed(), 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 81 of file core.cpp.

References fillContextMenu().

Referenced by fillContextMenu(), and EditorProxy::popupAboutToShow().

Core * Core::getInstance  )  [static]
 

Definition at line 24 of file core.cpp.

References s_instance.

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

void Core::insertNewAction KAction action  )  [virtual]
 

Parameters:
action 

Implements KDevCore.

Definition at line 42 of file core.cpp.

References insertNewAction().

Referenced by insertNewAction().

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

close the current project and opens the new one

Implements KDevCore.

Definition at line 87 of file core.cpp.

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

Referenced by openProject().

bool Core::queryClose  ) 
 

Definition at line 48 of file core.cpp.

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

Referenced by 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 75 of file core.cpp.

References activeProcessChanged(), and running().

Referenced by running().


Member Data Documentation

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

Definition at line 21 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.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:21 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003