AdaProjectPart Class Reference
Ada Project: the common project part for all available ada compilers (currently only gnat). More...
#include <adaproject_part.h>
Inheritance diagram for AdaProjectPart:


Public Slots | |
void | loadProjectConfig () |
loads config from project file | |
Public Member Functions | |
AdaProjectPart (QObject *parent, const char *name, const QStringList &) | |
~AdaProjectPart () | |
virtual void | openProject (const QString &dirName, const QString &projectName) |
This method is invoked when the project is opened (i.e. | |
virtual void | closeProject () |
This method is invoked when the project is about to be closed. | |
virtual QString | mainProgram (bool relative=false) const |
Returns the name of the main source file without extension. | |
virtual QString | mainSource () const |
Main source file (like src/main.adb). | |
virtual void | setMainSource (QString fullPath) |
virtual QString | projectDirectory () const |
Returns the canonical toplevel directory of the project. | |
virtual QString | projectName () const |
Returns the name of the project. | |
virtual QString | activeDirectory () const |
Returns the path (relative to the project directory) of the active directory. | |
virtual QString | buildDirectory () const |
The location of the main source file. | |
virtual QString | runDirectory () const |
Retuns the currently selected run directory The returned string can be: if run/directoryradio == executable The directory where the executable is if run/directoryradio == build The directory where the executable is relative to build directory if run/directoryradio == custom The custom directory absolute path. | |
virtual QString | runArguments () const |
Retuns a QString with the run command line arguments. | |
virtual DomUtil::PairList | runEnvironmentVars () const |
Retuns a PairList with the run environment variables. | |
virtual QStringList | allFiles () const |
Returns everything in the project directory. | |
virtual void | addFile (const QString &fileName) |
This does absolutelly nothing. | |
virtual void | addFiles (const QStringList &fileList) |
This does absolutelly nothing. | |
virtual void | removeFile (const QString &fileName) |
This does absolutelly nothing. | |
virtual void | removeFiles (const QStringList &fileList) |
This does absolutelly nothing. | |
virtual void | changedFiles (const QStringList &fileList) |
Notifies the project of changes to the files. | |
virtual void | changedFile (const QString &fileName) |
Notifies the project of a change to one of the files. | |
KDevCompilerOptions * | createCompilerOptions (const QString &name) |
virtual QString | defaultOptions (const QString compiler) |
QStringList | distFiles () const |
Returns a list of files that are part of the distribution but not under project control. | |
Private Slots | |
void | slotBuild () |
void | slotExecute () |
void | projectConfigWidget (KDialogBase *dlg) |
void | configWidget (KDialogBase *dlg) |
Private Member Functions | |
void | listOfFiles (QStringList &result, QString path) const |
Private Attributes | |
QGuardedPtr< AdaProjectWidget > | m_widget |
QString | m_buildDir |
QString | m_projectDir |
QString | m_projectName |
QString | m_mainProg |
QString | m_mainSource |
QString | m_compilerExec |
QString | m_compilerOpts |
QStringList | m_sourceFiles |
Detailed Description
Ada Project: the common project part for all available ada compilers (currently only gnat).It holds the project file list and tries to abstract from their specifics.
- Unmaintained:
- This part is currently un-maintained
- Deprecated:
- This class is deprecated, use GenericProjectPart (buildtools/generic) instead.
- Feature(s):
- supports gnat compiler
Holds the project file list and tries to abstract from their specifics
- Requirement(s):
- Ada gnat compiler
Definition at line 21 of file adaproject_part.h.
Constructor & Destructor Documentation
|
|
|
Definition at line 82 of file adaproject_part.cpp. |
Member Function Documentation
|
Returns the path (relative to the project directory) of the active directory. All newly generated classes are added here. Implements KDevProject. Definition at line 275 of file adaproject_part.cpp. References mainSource(), and projectDirectory(). |
|
This does absolutelly nothing.
Implements KDevProject. Definition at line 325 of file adaproject_part.cpp. |
|
This does absolutelly nothing.
Implements KDevProject. Definition at line 329 of file adaproject_part.cpp. |
|
Returns everything in the project directory.
Implements KDevProject. Definition at line 315 of file adaproject_part.cpp. Referenced by distFiles(). |
|
The location of the main source file.
Implements KDevProject. Definition at line 281 of file adaproject_part.cpp. References mainSource(). Referenced by mainProgram(), runDirectory(), slotBuild(), and slotExecute(). |
|
Notifies the project of a change to one of the files. The given file name must be relative to the project directory. Reimplemented from KDevProject. Definition at line 375 of file adaproject_part.cpp. References KDevProject::changedFile(). |
|
Notifies the project of changes to the files. Provided for convenience when changing many files. The given file names must be relative to the project directory. Reimplemented from KDevProject. Definition at line 370 of file adaproject_part.cpp. References KDevProject::changedFiles(). |
|
This method is invoked when the project is about to be closed.
Implements KDevProject. Definition at line 170 of file adaproject_part.cpp. |
|
Definition at line 411 of file adaproject_part.cpp. References KDialogBase::addVBoxPage(). |
|
Definition at line 419 of file adaproject_part.cpp. References KLibFactory::create(), KMessageBox::error(), KLibLoader::factory(), kdDebug(), KLibLoader::lastErrorMessage(), KService::Ptr, KLibLoader::self(), and KService::serviceByDesktopName(). Referenced by AdaProjectOptionsDlg::optionsButtonClicked(), and AdaGlobalOptionsDlg::optionsButtonClicked(). |
|
Definition at line 452 of file adaproject_part.cpp. References KGlobal::config(), KConfigBase::readPathEntry(), and KConfigBase::setGroup(). Referenced by AdaProjectOptionsDlg::setDefaultOptions(). |
|
Returns a list of files that are part of the distribution but not under project control.
Implements KDevProject. Definition at line 465 of file adaproject_part.cpp. References allFiles(), and projectDirectory(). |
|
Definition at line 287 of file adaproject_part.cpp. References KDevPlugin::d, and kdDebug(). |
|
loads config from project file
Definition at line 389 of file adaproject_part.cpp. References m_compilerExec, m_compilerOpts, m_mainSource, KDevPlugin::projectDom(), and DomUtil::readEntry(). Referenced by openProject(), and projectConfigWidget(). |
|
Returns the name of the main source file without extension. We assume that all Ada compilers call the binary that way.
Implements KDevProject. Definition at line 221 of file adaproject_part.cpp. References buildDirectory(), mainSource(), KDevPlugin::projectDom(), and DomUtil::readEntry(). Referenced by slotExecute(). |
|
Main source file (like src/main.adb).
Definition at line 255 of file adaproject_part.cpp. References projectDirectory(). Referenced by activeDirectory(), buildDirectory(), mainProgram(), and slotBuild(). |
|
This method is invoked when the project is opened (i.e. actually just after this class has been instantiated). The first parameter is the project directory, which should afterwards be returned by the projectDirectory() method. The second parameter is the project name, which is equivalent with the project file name without the .kdevelop suffix. Reimplemented from KDevProject. Definition at line 103 of file adaproject_part.cpp. References kdDebug(), KDevPlugin::languageSupport(), KMimeType::List, loadProjectConfig(), m_buildDir, m_projectDir, m_projectName, m_sourceFiles, matchesPattern(), KDevLanguageSupport::mimeTypes(), KDevProject::openProject(), KDevPlugin::projectDom(), DomUtil::readEntry(), and DomUtil::writeEntry(). |
|
Definition at line 380 of file adaproject_part.cpp. References KDialogBase::addVBoxPage(), and loadProjectConfig(). |
|
Returns the canonical toplevel directory of the project.
Implements KDevProject. Definition at line 265 of file adaproject_part.cpp. Referenced by activeDirectory(), distFiles(), mainSource(), AdaProjectOptionsDlg::readConfig(), AdaProjectOptionsDlg::saveConfig(), and setMainSource(). |
|
Returns the name of the project.
Implements KDevProject. Definition at line 270 of file adaproject_part.cpp. |
|
This does absolutelly nothing.
Implements KDevProject. Definition at line 333 of file adaproject_part.cpp. |
|
This does absolutelly nothing.
Implements KDevProject. Definition at line 337 of file adaproject_part.cpp. |
|
Retuns a QString with the run command line arguments.
Implements KDevProject. Definition at line 250 of file adaproject_part.cpp. References KDevPlugin::projectDom(), and DomUtil::readEntry(). |
|
Retuns the currently selected run directory The returned string can be: if run/directoryradio == executable The directory where the executable is if run/directoryradio == build The directory where the executable is relative to build directory if run/directoryradio == custom The custom directory absolute path.
Implements KDevProject. Definition at line 190 of file adaproject_part.cpp. References buildDirectory(), KDevPlugin::projectDom(), and DomUtil::readEntry(). |
|
Retuns a PairList with the run environment variables.
Implements KDevProject. Definition at line 175 of file adaproject_part.cpp. References DomUtil::PairList, KDevPlugin::projectDom(), and DomUtil::readPairListEntry(). |
|
Definition at line 260 of file adaproject_part.cpp. References m_mainSource, and projectDirectory(). |
|
Definition at line 341 of file adaproject_part.cpp. References buildDirectory(), m_compilerExec, m_compilerOpts, mainSource(), KDevPlugin::makeFrontend(), KDevPlugin::partController(), KDevMakeFrontend::queueCommand(), KProcess::quote(), KDevPartController::saveAllFiles(), and KMessageBox::sorry(). |
|
Definition at line 363 of file adaproject_part.cpp. References KDevPlugin::appFrontend(), buildDirectory(), mainProgram(), KDevPlugin::partController(), KDevPartController::saveAllFiles(), and KDevAppFrontend::startAppCommand(). |
Member Data Documentation
|
Definition at line 81 of file adaproject_part.h. Referenced by openProject(). |
|
Definition at line 87 of file adaproject_part.h. Referenced by loadProjectConfig(), and slotBuild(). |
|
Definition at line 88 of file adaproject_part.h. Referenced by loadProjectConfig(), and slotBuild(). |
|
Definition at line 85 of file adaproject_part.h. |
|
Definition at line 86 of file adaproject_part.h. Referenced by loadProjectConfig(), and setMainSource(). |
|
Definition at line 82 of file adaproject_part.h. Referenced by openProject(). |
|
Definition at line 83 of file adaproject_part.h. Referenced by openProject(). |
|
Definition at line 90 of file adaproject_part.h. Referenced by openProject(). |
|
Definition at line 77 of file adaproject_part.h. |
The documentation for this class was generated from the following files:
- buildtools/ada/adaproject_part.h
- buildtools/ada/adaproject_part.cpp