AntProjectPart Class Reference
ant build tool part. More...
#include <antprojectpart.h>
Inheritance diagram for AntProjectPart:


Public Member Functions | |
AntProjectPart (QObject *parent, const char *name, const QStringList &args) | |
~AntProjectPart () | |
QStringList | distFiles () const |
Returns a list of files that are part of the distribution but not under project control. | |
Protected Member Functions | |
virtual void | openProject (const QString &dirName, const QString &projectName) |
virtual void | closeProject () |
This method is invoked when the project is about to be closed. | |
virtual QString | projectDirectory () const |
Returns the canonical toplevel directory of the project. | |
virtual QString | projectName () const |
Returns the name of the project. | |
virtual QString | mainProgram (bool relative=false) const |
Retuns the currently selected main program The returned string can be: if run/directoryradio == executable The executable name if run/directoryradio == build The path to executable relative to build directory if run/directoryradio == custom or relative == false The absolute path to executable. | |
virtual QString | activeDirectory () const |
Returns the path (relative to the project directory) of the active directory. | |
virtual QStringList | allFiles () const |
Returns a list of all files in the project. | |
virtual QString | buildDirectory () const |
Returns the canonical build directory of the project. | |
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 void | addFile (const QString &fileName) |
Adds a file to the project. | |
virtual void | addFiles (const QStringList &fileList) |
Adds a list of files to the project. | |
virtual void | removeFile (const QString &fileName) |
Removes a file from the project. | |
virtual void | removeFiles (const QStringList &fileList) |
Removes a list of files from the project. | |
Private Slots | |
void | slotBuild () |
void | slotTargetMenuActivated (int id) |
void | projectConfigWidget (KDialogBase *dlg) |
void | contextMenu (QPopupMenu *popup, const Context *context) |
void | optionsAccepted () |
void | slotAddToProject () |
void | slotRemoveFromProject () |
Private Member Functions | |
void | parseBuildXML () |
void | fillMenu () |
void | populateProject () |
void | ant (const QString &target) |
Private Attributes | |
QString | m_projectDirectory |
QString | m_projectName |
QStringList | m_classPath |
QStringList | m_sourceFiles |
AntOptions | m_antOptions |
KAction * | m_buildProjectAction |
QPopupMenu * | m_targetMenu |
AntOptionsWidget * | m_antOptionsWidget |
ClassPathWidget * | m_classPathWidget |
QString | m_contextFileName |
Detailed Description
ant build tool part.
- Unmaintained:
- This part is currently un-maintained
Definition at line 41 of file antprojectpart.h.
Constructor & Destructor Documentation
|
|
Definition at line 73 of file antprojectpart.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 283 of file antprojectpart.cpp. |
|
Adds a file to the project. The given file name must be relative to the project directory. Implements KDevProject. Definition at line 318 of file antprojectpart.cpp. References addFiles(). |
|
Adds a list of files to the project. Provided for convenience when adding many files. The given file names must be relative to the project directory. Implements KDevProject. Definition at line 326 of file antprojectpart.cpp. References KDevProject::addedFilesToProject(), kdDebug(), and m_sourceFiles. Referenced by addFile(), and slotAddToProject(). |
|
Returns a list of all files in the project. The files are relative to the project directory. Implements KDevProject. Definition at line 295 of file antprojectpart.cpp. Referenced by distFiles(). |
|
Definition at line 430 of file antprojectpart.cpp. References m_antOptions, AntOptions::m_buildXML, m_classPath, AntOptions::m_defineProperties, m_projectDirectory, AntOptions::m_properties, AntOptions::m_verbosity, KDevPlugin::makeFrontend(), and KDevMakeFrontend::queueCommand(). Referenced by slotBuild(), and slotTargetMenuActivated(). |
|
Returns the canonical build directory of the project. If the separate build directory is not supported, this should return the same as projectDiretory(). Implements KDevProject. Definition at line 184 of file antprojectpart.cpp. Referenced by mainProgram(), and runDirectory(). |
|
This method is invoked when the project is about to be closed.
Implements KDevProject. Definition at line 154 of file antprojectpart.cpp. References m_antOptions, m_buildProjectAction, m_projectDirectory, m_projectName, m_sourceFiles, m_targetMenu, and KAction::setEnabled(). |
|
Definition at line 543 of file antprojectpart.cpp. References KDevProject::allFiles(), FileContext::fileName(), Context::hasType(), FileContext::isDirectory(), Structure::length(), m_contextFileName, KDevPlugin::project(), projectDirectory(), slotAddToProject(), and slotRemoveFromProject(). Referenced by AntProjectPart(). |
|
Returns a list of files that are part of the distribution but not under project control.
Implements KDevProject. Definition at line 596 of file antprojectpart.cpp. References allFiles(), and projectDirectory(). |
|
Definition at line 406 of file antprojectpart.cpp. References m_antOptions, m_buildProjectAction, AntOptions::m_defaultTarget, m_targetMenu, AntOptions::m_targets, and KAction::setEnabled(). Referenced by openProject(). |
|
Retuns the currently selected main program The returned string can be: if run/directoryradio == executable The executable name if run/directoryradio == build The path to executable relative to build directory if run/directoryradio == custom or relative == false The absolute path to executable.
Implements KDevProject. Definition at line 247 of file antprojectpart.cpp. References buildDirectory(), KDevPlugin::projectDom(), and DomUtil::readEntry(). |
|
Reimplemented from KDevProject. Definition at line 78 of file antprojectpart.cpp. References fillMenu(), m_antOptions, AntOptions::m_buildXML, m_projectDirectory, m_projectName, m_sourceFiles, KDevProject::openProject(), parseBuildXML(), populateProject(), KDevPlugin::projectDom(), DomUtil::readEntry(), and DomUtil::writeEntry(). |
|
Definition at line 506 of file antprojectpart.cpp. References AntOptionsWidget::BuildXML, ClassPathWidget::ClassPath, KEditListBox::items, kdDebug(), m_antOptions, m_antOptionsWidget, AntOptions::m_buildXML, m_classPath, m_classPathWidget, AntOptions::m_defineProperties, AntOptions::m_properties, AntOptions::m_verbosity, AntOptionsWidget::Properties, KURLRequester::url, and AntOptionsWidget::Verbosity. Referenced by projectConfigWidget(). |
|
Definition at line 360 of file antprojectpart.cpp. References m_antOptions, AntOptions::m_buildXML, AntOptions::m_defaultTarget, AntOptions::m_defineProperties, m_projectDirectory, m_projectName, AntOptions::m_properties, and AntOptions::m_targets. Referenced by openProject(). |
|
Definition at line 115 of file antprojectpart.cpp. References kdDebug(), m_projectDirectory, and m_sourceFiles. Referenced by openProject(). |
|
|
Returns the canonical toplevel directory of the project.
Implements KDevProject. Definition at line 178 of file antprojectpart.cpp. Referenced by contextMenu(), and distFiles(). |
|
Returns the name of the project.
Implements KDevProject. Definition at line 189 of file antprojectpart.cpp. |
|
Removes a file from the project. The given file name must be relative to the project directory. Implements KDevProject. Definition at line 339 of file antprojectpart.cpp. References removeFiles(). |
|
Removes a list of files from the project. Provided for convenience when removing many files. The given file names must be relative to the project directory. Implements KDevProject. Definition at line 347 of file antprojectpart.cpp. References kdDebug(), m_sourceFiles, and KDevProject::removedFilesFromProject(). Referenced by removeFile(), and slotRemoveFromProject(). |
|
Retuns a QString with the run command line arguments.
Implements KDevProject. Definition at line 276 of file antprojectpart.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 212 of file antprojectpart.cpp. References buildDirectory(), KDevPlugin::projectDom(), and DomUtil::readEntry(). |
|
Retuns a PairList with the run environment variables.
Implements KDevProject. Definition at line 196 of file antprojectpart.cpp. References DomUtil::PairList, KDevPlugin::projectDom(), and DomUtil::readPairListEntry(). |
|
Definition at line 574 of file antprojectpart.cpp. References addFiles(), and m_contextFileName. Referenced by contextMenu(). |
|
Definition at line 418 of file antprojectpart.cpp. References ant(), m_antOptions, and AntOptions::m_defaultTarget. Referenced by AntProjectPart(). |
|
Definition at line 582 of file antprojectpart.cpp. References m_contextFileName, and removeFiles(). Referenced by contextMenu(). |
|
Definition at line 424 of file antprojectpart.cpp. References ant(), m_antOptions, and AntOptions::m_targets. Referenced by AntProjectPart(). |
Member Data Documentation
|
Definition at line 100 of file antprojectpart.h. Referenced by ant(), closeProject(), fillMenu(), openProject(), optionsAccepted(), parseBuildXML(), projectConfigWidget(), slotBuild(), and slotTargetMenuActivated(). |
|
Definition at line 106 of file antprojectpart.h. Referenced by AntProjectPart(), optionsAccepted(), and projectConfigWidget(). |
|
Definition at line 102 of file antprojectpart.h. Referenced by AntProjectPart(), closeProject(), and fillMenu(). |
|
Definition at line 96 of file antprojectpart.h. Referenced by ant(), optionsAccepted(), and projectConfigWidget(). |
|
Definition at line 107 of file antprojectpart.h. Referenced by optionsAccepted(), and projectConfigWidget(). |
|
Definition at line 109 of file antprojectpart.h. Referenced by contextMenu(), slotAddToProject(), and slotRemoveFromProject(). |
|
Definition at line 95 of file antprojectpart.h. Referenced by ant(), closeProject(), openProject(), parseBuildXML(), and populateProject(). |
|
Definition at line 95 of file antprojectpart.h. Referenced by closeProject(), openProject(), and parseBuildXML(). |
|
Definition at line 98 of file antprojectpart.h. Referenced by addFiles(), closeProject(), openProject(), populateProject(), and removeFiles(). |
|
Definition at line 104 of file antprojectpart.h. Referenced by AntProjectPart(), closeProject(), and fillMenu(). |
The documentation for this class was generated from the following files:
- buildtools/ant/antprojectpart.h
- buildtools/ant/antprojectpart.cpp