KDevelop API Documentation

AdaSupportPart Class Reference

Ada Language Support. More...

#include <adasupportpart.h>

Inheritance diagram for AdaSupportPart:

Inheritance graph
[legend]
Collaboration diagram for AdaSupportPart:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AdaSupportPart (QObject *parent, const char *name, const QStringList &)
 ~AdaSupportPart ()
void parseContents (const QString &contents, const QString &fileName)

Protected Member Functions

Features features ()
 Returns the feature set of the language.
KMimeType::List mimeTypes ()
 Returns a typical mimetype list for the support language should be configurable in the languagesupport dialog.
QStringList fileExtensions ()

Private Slots

void projectOpened ()
void projectClosed ()
void addedFilesToProject (const QStringList &fileList)
void removedFilesFromProject (const QStringList &fileList)
void changedFilesInProject (const QStringList &fileList)
void initialParse ()
void savedFile (const KURL &)

Private Member Functions

void maybeParse (const QString &fileName)
void parse (const QString &fileName)
void saveProjectSourceInfo ()

Private Attributes

AdaSupportPartData * d

Detailed Description

Ada Language Support.

The ANTLR Ada core support files are:

These are ANTLR master files. They only depend on the ANTLR C++ runtime support and on the C++ STL. They should be kept free of all other dependencies. In particular, they do not depend on Kdevelop, KDE, or Qt.

In order to generate the parser by hand, antlr v2.7.2 is required. There are parser compilation errors with some gcc versions. To avoid them, replace file antlr/CppCodeGenerator.java in the antlr source code tree with the one from ftp://fara.cs.uni-potsdam.de/incoming/CppCodeGenerator.java.gz.

Unmaintained:
This part is currently un-maintained.

Author(s):
Oliver Kellogg

Roberto Raggi

Alexander Dymo

Feature(s):
Consult Programming Languages Support Status for a up to date features/status of this programming language support part.

Requirement(s):
Ada compiler

Definition at line 14 of file adasupportpart.h.


Constructor & Destructor Documentation

AdaSupportPart::AdaSupportPart QObject parent,
const char *  name,
const QStringList
 

Definition at line 53 of file adasupportpart.cpp.

References KDevPlugin::core(), d, KDevMainWindow::embedOutputView(), KDevPlugin::mainWindow(), projectClosed(), projectOpened(), savedFile(), KXMLGUIClient::setInstance(), and KXMLGUIClient::setXMLFile().

AdaSupportPart::~AdaSupportPart  ) 
 

Definition at line 85 of file adasupportpart.cpp.

References d, KDevPlugin::mainWindow(), and KDevMainWindow::removeView().


Member Function Documentation

void AdaSupportPart::addedFilesToProject const QStringList fileList  )  [private, slot]
 

Definition at line 178 of file adasupportpart.cpp.

References KDevLanguageSupport::addedSourceInfo(), maybeParse(), KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by projectOpened().

void AdaSupportPart::changedFilesInProject const QStringList fileList  )  [private, slot]
 

Definition at line 361 of file adasupportpart.cpp.

References KDevLanguageSupport::addedSourceInfo(), maybeParse(), KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by projectOpened().

KDevLanguageSupport::Features AdaSupportPart::features  )  [protected, virtual]
 

Returns the feature set of the language.

This is e.g. used by the class view to decide which organizer items to display and which not.

Reimplemented from KDevLanguageSupport.

Definition at line 96 of file adasupportpart.cpp.

QStringList AdaSupportPart::fileExtensions  )  [protected]
 

Definition at line 161 of file adasupportpart.cpp.

Referenced by maybeParse().

void AdaSupportPart::initialParse  )  [private, slot]
 

Definition at line 122 of file adasupportpart.cpp.

References KDevProject::allFiles(), kdDebug(), KDevPlugin::mainWindow(), maybeParse(), KDevPlugin::project(), KDevProject::projectDirectory(), KDevMainWindow::statusBar(), and KDevLanguageSupport::updatedSourceInfo().

Referenced by projectOpened().

void AdaSupportPart::maybeParse const QString fileName  )  [private]
 

Definition at line 166 of file adasupportpart.cpp.

References fileExtensions(), kdDebug(), and parse().

Referenced by addedFilesToProject(), changedFilesInProject(), initialParse(), and savedFile().

KMimeType::List AdaSupportPart::mimeTypes  )  [protected, virtual]
 

Returns a typical mimetype list for the support language should be configurable in the languagesupport dialog.

Reimplemented from KDevLanguageSupport.

Definition at line 306 of file adasupportpart.cpp.

References KMimeType::List, and KMimeType::mimeType().

void AdaSupportPart::parse const QString fileName  )  [private]
 

Definition at line 211 of file adasupportpart.cpp.

References AdaStoreWalker::compilation_unit(), AdaParser::compilation_unit(), d, data, AdaParser::getAST(), AdaParser::initializeASTFactory(), kdDebug(), AdaParser::numberOfErrors(), AdaLexer::numberOfErrors(), JAVADebugger::parser, RefAdaAST, AdaParser::resetErrors(), AdaLexer::resetErrors(), AdaStoreWalker::setCodeModel(), AdaStoreWalker::setFileName(), AdaParser::setProblemReporter(), and AdaLexer::setProblemReporter().

Referenced by maybeParse().

void AdaSupportPart::parseContents const QString contents,
const QString fileName
 

Definition at line 259 of file adasupportpart.cpp.

References AdaParser::compilation_unit(), d, kdDebug(), AdaParser::numberOfErrors(), AdaLexer::numberOfErrors(), JAVADebugger::parser, AdaParser::resetErrors(), AdaLexer::resetErrors(), AdaParser::setProblemReporter(), AdaLexer::setProblemReporter(), and text().

void AdaSupportPart::projectClosed  )  [private, slot]
 

Definition at line 116 of file adasupportpart.cpp.

References saveProjectSourceInfo().

Referenced by AdaSupportPart().

void AdaSupportPart::projectOpened  )  [private, slot]
 

Definition at line 103 of file adasupportpart.cpp.

References addedFilesToProject(), changedFilesInProject(), initialParse(), KDevPlugin::project(), and removedFilesFromProject().

Referenced by AdaSupportPart().

void AdaSupportPart::removedFilesFromProject const QStringList fileList  )  [private, slot]
 

Definition at line 191 of file adasupportpart.cpp.

References KDevLanguageSupport::aboutToRemoveSourceInfo(), KDevPlugin::codeModel(), CodeModel::hasFile(), kdDebug(), KDevPlugin::project(), KDevProject::projectDirectory(), and CodeModel::removeFile().

Referenced by projectOpened().

void AdaSupportPart::savedFile const KURL  )  [private, slot]
 

Definition at line 296 of file adasupportpart.cpp.

References KDevProject::allFiles(), kdDebug(), length(), maybeParse(), KURL::path(), KDevPlugin::project(), and KDevLanguageSupport::updatedSourceInfo().

Referenced by AdaSupportPart().

void AdaSupportPart::saveProjectSourceInfo  )  [private]
 

Definition at line 318 of file adasupportpart.cpp.

Referenced by projectClosed().


Member Data Documentation

AdaSupportPartData* AdaSupportPart::d [private]
 

Reimplemented from KDevPlugin.

Definition at line 45 of file adasupportpart.h.

Referenced by AdaSupportPart(), parse(), parseContents(), and ~AdaSupportPart().


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 Wed Mar 23 00:18:15 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003