KDevelop API Documentation

buildtools/ada/adaproject_part.h

Go to the documentation of this file.
00001 /* $Id: adaproject_part.h,v 1.4 2003/09/13 14:28:06 aclu Exp $ 00002 * Copyright (C) 2003 Oliver Kellogg 00003 * okellogg@users.sourceforge.net 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 */ 00010 #ifndef __KDEVPART_ADAPROJECT_H__ 00011 #define __KDEVPART_ADAPROJECT_H__ 00012 00013 #include <qguardedptr.h> 00014 00015 #include "kdevproject.h" 00016 00017 class AdaProjectWidget; 00018 class KDialogBase; 00019 class KDevCompilerOptions; 00020 00021 class AdaProjectPart : public KDevProject 00022 { 00023 Q_OBJECT 00024 public: 00025 AdaProjectPart(QObject *parent, const char *name, const QStringList &); 00026 ~AdaProjectPart(); 00027 00028 virtual void openProject(const QString &dirName, const QString &projectName); 00029 virtual void closeProject(); 00030 00033 virtual QString mainProgram(bool relative = false) const; 00035 virtual QString mainSource() const; 00036 virtual void setMainSource(QString fullPath); 00037 00038 virtual QString projectDirectory() const; 00039 virtual QString projectName() const; 00040 virtual QString activeDirectory() const; 00042 virtual QString buildDirectory() const; 00043 virtual QString runDirectory() const; 00044 virtual QString runArguments() const; 00045 virtual DomUtil::PairList runEnvironmentVars() const; 00046 00048 virtual QStringList allFiles() const; 00050 virtual void addFile(const QString &fileName); 00052 virtual void addFiles(const QStringList &fileList); 00054 virtual void removeFile(const QString &fileName); 00056 virtual void removeFiles(const QStringList &fileList); 00057 00058 virtual void changedFiles( const QStringList & fileList ); 00059 virtual void changedFile( const QString & fileName ); 00060 00061 KDevCompilerOptions *createCompilerOptions(const QString &name); 00062 00063 virtual QString defaultOptions(const QString compiler); 00064 00065 public slots: 00067 void loadProjectConfig(); 00068 00069 private slots: 00070 void slotBuild(); 00071 void slotExecute(); 00072 void projectConfigWidget(KDialogBase *dlg); 00073 void configWidget(KDialogBase *dlg); 00074 00075 private: 00076 QGuardedPtr<AdaProjectWidget> m_widget; 00077 00078 void listOfFiles(QStringList &result, QString path) const; 00079 00080 QString m_buildDir; 00081 QString m_projectDir; 00082 QString m_projectName; 00083 00084 QString m_mainProg; 00085 QString m_mainSource; 00086 QString m_compilerExec; 00087 QString m_compilerOpts; 00088 00089 QStringList m_sourceFiles; 00090 }; 00091 00092 #endif
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:01:35 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003