AutoProjectWidget Class Reference
#include <autoprojectwidget.h>
Inheritance diagram for AutoProjectWidget:

Public Slots | |
void | slotOverviewSelectionChanged (QListViewItem *item) |
void | slotDetailsSelectionChanged (QListViewItem *item) |
Public Member Functions | |
AutoProjectWidget (AutoProjectPart *part, bool kde) | |
~AutoProjectWidget () | |
void | openProject (const QString &dirName) |
void | closeProject () |
QStringList | allSubprojects () |
A list of the (relative) names of all subprojects (== subdirectories). | |
QPtrList< SubprojectItem > | allSubprojectItems () |
A list of all Subproject items in the overview KListView. | |
QStringList | allLibraries () |
A list of the (relative) names of all libraries. | |
QStringList | allFiles () |
A list of all files that belong to the project. | |
QString | projectDirectory () const |
The top level directory of the project. | |
QString | subprojectDirectory () |
The directory of the currently shown subproject. | |
bool | kdeMode () const |
Are we in KDE mode? | |
void | setActiveTarget (const QString &targetPath) |
Sets the given target active. | |
QString | activeDirectory () |
Returns the active target as path relative to the project directory. | |
void | addFiles (const QStringList &list) |
Adds a file to the active target. | |
void | removeFiles (const QStringList &list) |
Removes the file fileName from the directory directory. | |
TargetItem * | selectedTarget () |
Returns the currently selected target. | |
FileItem * | selectedFile () |
Returns the currently selected file. | |
SubprojectItem * | selectedSubproject () |
Returns the currently selected subproject (directory with Makefile.am). | |
TargetItem * | createTargetItem (const QString &name, const QString &prefix, const QString &primary, bool take=true) |
Creates a TargetItem instance without a parent item. | |
FileItem * | createFileItem (const QString &name, SubprojectItem *subproject) |
Creates a FileItem instance without a parent item. | |
SubprojectItem * | activeSubproject () |
Returns the Subproject that contains the Active Target. | |
void | setActiveSubproject (SubprojectItem *spitem) |
TargetItem * | activeTarget () |
Returns the Active Target. | |
SubprojectItem * | subprojectItemForPath (const QString &path, bool pathIsAbsolute=false) |
Returns the sub project item, if any, for a given path. | |
QString | pathForTarget (const TargetItem *item) const |
Returns the projectdir-relative path for a target item. | |
void | addToTarget (const QString &fileName, SubprojectItem *spitem, TargetItem *titem) |
Adds file fileName to target titem in subproject spitem. | |
void | restoreSession (const QDomElement *el) |
Restores the last settings of the AutoProjectWidget. | |
void | saveSession (QDomElement *el) |
Saves the latest changes of the AutoProjectWidget to the session file. | |
AutoSubprojectView * | getSubprojectView () |
AutoDetailsView * | getDetailsView () |
void | emitAddedFile (const QString &name) |
void | emitAddedFiles (const QStringList &fileList) |
void | emitRemovedFile (const QString &name) |
void | emitRemovedFiles (const QStringList &fileList) |
void | parse (SubprojectItem *item) |
Protected Member Functions | |
void | initOverview (QWidget *parent) |
void | initDetailview (QWidget *parent) |
void | initActions () |
Private Attributes | |
QToolButton * | subProjectOptionsButton |
QToolButton * | addSubprojectButton |
QToolButton * | addExistingSubprojectButton |
QToolButton * | addTargetButton |
QToolButton * | addServiceButton |
QToolButton * | addApplicationButton |
QToolButton * | buildSubprojectButton |
QToolButton * | targetOptionsButton |
QToolButton * | addNewFileButton |
QToolButton * | addExistingFileButton |
QToolButton * | buildTargetButton |
QToolButton * | removeButton |
AutoSubprojectView * | m_subprojectView |
AutoDetailsView * | m_detailView |
bool | m_kdeMode |
AutoProjectPart * | m_part |
SubprojectItem * | m_activeSubproject |
TargetItem * | m_activeTarget |
TargetItem * | m_choosenTarget |
SubprojectItem * | m_shownSubproject |
Constructor & Destructor Documentation
|
Definition at line 74 of file autoprojectwidget.cpp. References AutoProjectWidget(), initActions(), initDetailview(), initOverview(), m_activeSubproject, m_activeTarget, m_choosenTarget, m_kdeMode, m_part, and m_shownSubproject. Referenced by AutoProjectWidget(). |
|
Definition at line 93 of file autoprojectwidget.cpp. |
Member Function Documentation
|
Returns the active target as path relative to the project directory.
Definition at line 488 of file autoprojectwidget.cpp. References m_activeSubproject, m_part, SubprojectItem::path, and AutoProjectPart::projectDirectory(). |
|
Returns the Subproject that contains the Active Target. The Active Target is a special target to which e.g. all files are added to. Definition at line 264 of file autoprojectwidget.cpp. References m_activeSubproject. Referenced by ChooseTargetDialog::accept(), and AutoSubprojectView::slotRemoveSubproject(). |
|
Returns the Active Target. The Active Target is a special target to which e.g. all files are added to. Definition at line 269 of file autoprojectwidget.cpp. References m_activeTarget. Referenced by ChooseTargetDialog::accept(), ChooseTargetDialog::ChooseTargetDialog(), and ChooseTargetDialog::slotSubprojectChanged(). |
|
Adds a file to the active target. If the file does not contain a "/" character, it is added to the active target. If it does contain "/" character(s), ...
Definition at line 502 of file autoprojectwidget.cpp. References addFiles(), addToTarget(), URLUtil::directory(), emitAddedFiles(), m_activeSubproject, m_activeTarget, m_part, ChooseTargetDlgBase::neverAskAgainCheckBox, KDevPlugin::projectDom(), subprojectItemForPath(), and SubprojectItem::targets. Referenced by addFiles(). |
|
Adds file fileName to target titem in subproject spitem.
Definition at line 582 of file autoprojectwidget.cpp. References addToTarget(), createFileItem(), endl(), AutoSubprojectView::findNoinstHeaders(), getSubprojectView(), AutoProjectPrivate::isHeader(), kdDebug(), TargetItem::name, SubprojectItem::path, TargetItem::primary, slotDetailsSelectionChanged(), TargetItem::sources, and SubprojectItem::variables. Referenced by addFiles(), and addToTarget(). |
|
A list of all files that belong to the project.
Definition at line 380 of file autoprojectwidget.cpp. References m_part, m_subprojectView, SubprojectItem::path, AutoProjectPart::projectDirectory(), URLUtil::relativePath(), and SubprojectItem::targets. |
|
A list of the (relative) names of all libraries.
Definition at line 354 of file autoprojectwidget.cpp. References m_part, m_subprojectView, SubprojectItem::path, AutoProjectPart::projectDirectory(), and SubprojectItem::targets. |
|
A list of all Subproject items in the overview KListView.
Definition at line 292 of file autoprojectwidget.cpp. References m_subprojectView. Referenced by RemoveTargetDialog::init(). |
|
A list of the (relative) names of all subprojects (== subdirectories).
Definition at line 274 of file autoprojectwidget.cpp. References m_part, m_subprojectView, and AutoProjectPart::projectDirectory(). Referenced by AddExistingDirectoriesDialog::slotAddAll(), AddExistingDirectoriesDialog::slotAddSelected(), AddExistingDirectoriesDialog::slotDropped(), and SubprojectOptionsDialog::SubprojectOptionsDialog(). |
|
Definition at line 257 of file autoprojectwidget.cpp. References m_detailView, m_shownSubproject, and m_subprojectView. |
|
Creates a FileItem instance without a parent item.
Definition at line 793 of file autoprojectwidget.cpp. References createFileItem(), AutoDetailsView::getUiFileLink(), m_detailView, m_subprojectView, FileItem::name, SubprojectItem::relativePath(), KListView::takeItem(), and FileItem::uiFileLink. Referenced by ChooseTargetDialog::accept(), AddServiceDialog::accept(), AddIconDialog::accept(), AddFileDialog::accept(), AddApplicationDialog::accept(), addToTarget(), createFileItem(), AutoSubprojectView::parse(), AutoSubprojectView::parseKDEDOCS(), AutoSubprojectView::parseKDEICON(), AutoSubprojectView::parsePrimary(), and AddExistingFilesDialog::slotOk(). |
|
Creates a TargetItem instance without a parent item.
Definition at line 761 of file autoprojectwidget.cpp. References createTargetItem(), m_detailView, TargetItem::name, nicePrimary(), TargetItem::prefix, TargetItem::primary, KListView::takeItem(), and text(). Referenced by AddTargetDialog::accept(), AddServiceDialog::accept(), AddApplicationDialog::accept(), createTargetItem(), AutoSubprojectView::findNoinstHeaders(), AutoSubprojectView::parseKDEDOCS(), AutoSubprojectView::parseKDEICON(), and AutoSubprojectView::parsePrimary(). |
|
Definition at line 809 of file autoprojectwidget.cpp. References KDevProject::addedFilesToProject(), emitAddedFile(), and m_part. Referenced by AddIconDialog::accept(), AddFileDialog::accept(), and emitAddedFile(). |
|
Definition at line 804 of file autoprojectwidget.cpp. References KDevProject::addedFilesToProject(), emitAddedFiles(), and m_part. Referenced by ChooseTargetDialog::accept(), addFiles(), emitAddedFiles(), and AddExistingFilesDialog::slotOk(). |
|
Definition at line 821 of file autoprojectwidget.cpp. References emitRemovedFile(), m_part, and KDevProject::removedFilesFromProject(). Referenced by RemoveFileDialog::accept(), and emitRemovedFile(). |
|
Definition at line 816 of file autoprojectwidget.cpp. References emitRemovedFiles(), m_part, and KDevProject::removedFilesFromProject(). Referenced by RemoveTargetDialog::accept(), and emitRemovedFiles(). |
|
Definition at line 246 of file autoprojectwidget.cpp. References m_detailView. |
|
Definition at line 241 of file autoprojectwidget.cpp. References m_subprojectView. Referenced by ChooseTargetDialog::accept(), addToTarget(), and AddExistingDirectoriesDialog::slotOk(). |
|
Definition at line 218 of file autoprojectwidget.cpp. References addApplicationButton, addExistingFileButton, addNewFileButton, addServiceButton, addSubprojectButton, addTargetButton, buildSubprojectButton, buildTargetButton, m_detailView, m_subprojectView, removeButton, slotDetailsSelectionChanged(), slotOverviewSelectionChanged(), subProjectOptionsButton, and targetOptionsButton. Referenced by AutoProjectWidget(). |
|
Definition at line 159 of file autoprojectwidget.cpp. References KListView::addColumn(), addExistingFileButton, addNewFileButton, buildTargetButton, initDetailview(), m_detailView, m_part, removeButton, KListView::setSorting(), and targetOptionsButton. Referenced by AutoProjectWidget(), and initDetailview(). |
|
Definition at line 96 of file autoprojectwidget.cpp. References addApplicationButton, KListView::addColumn(), addServiceButton, addSubprojectButton, addTargetButton, buildSubprojectButton, initOverview(), m_part, m_subprojectView, KListView::setSorting(), and subProjectOptionsButton. Referenced by AutoProjectWidget(), and initOverview(). |
|
Are we in KDE mode?
Definition at line 81 of file autoprojectwidget.h. References m_kdeMode. |
|
Definition at line 251 of file autoprojectwidget.cpp. References AutoSubprojectView::loadMakefileams(), m_subprojectView, and openProject(). Referenced by openProject(). |
|
|
|
Returns the projectdir-relative path for a target item.
Definition at line 334 of file autoprojectwidget.cpp. References endl(), kdDebug(), m_part, m_subprojectView, TargetItem::name, SubprojectItem::path, pathForTarget(), AutoProjectPart::projectDirectory(), and SubprojectItem::targets. Referenced by pathForTarget(). |
|
The top level directory of the project.
|
|
Removes the file fileName from the directory directory. (not implemented currently) Definition at line 615 of file autoprojectwidget.cpp. References removeFiles(). Referenced by removeFiles(). |
|
Restores the last settings of the AutoProjectWidget.
Definition at line 828 of file autoprojectwidget.cpp. References restoreSession(). Referenced by restoreSession(). |
|
Saves the latest changes of the AutoProjectWidget to the session file.
Definition at line 833 of file autoprojectwidget.cpp. References endl(), kdDebug(), m_activeSubproject, m_activeTarget, m_part, TargetItem::name, SubprojectItem::path, KDevPlugin::project(), KDevProject::projectDirectory(), and saveSession(). Referenced by saveSession(). |
|
Returns the currently selected file. Returns 0 if no file is selected. Definition at line 742 of file autoprojectwidget.cpp. References m_detailView, and ProjectItem::type(). |
|
Returns the currently selected subproject (directory with Makefile.am). Returns 0 if no subproject is selected. Definition at line 751 of file autoprojectwidget.cpp. References m_subprojectView, and ProjectItem::type(). Referenced by AutoDetailsView::slotAddExistingFile(), AutoDetailsView::slotAddIcon(), AutoDetailsView::slotAddNewFile(), AutoDetailsView::slotBuildTarget(), AutoDetailsView::slotDetailsContextMenu(), AutoDetailsView::slotDetailsExecuted(), slotOverviewSelectionChanged(), AutoDetailsView::slotRemoveDetail(), AutoDetailsView::slotSetActiveTarget(), and subprojectDirectory(). |
|
Returns the currently selected target. Returns 0 if no target is selected. Definition at line 732 of file autoprojectwidget.cpp. References m_detailView, and ProjectItem::type(). |
|
Definition at line 853 of file autoprojectwidget.cpp. References m_activeSubproject, and setActiveSubproject(). Referenced by setActiveSubproject(), and AutoSubprojectView::slotRemoveSubproject(). |
|
Sets the given target active. The argument is given relative to the project directory. Definition at line 433 of file autoprojectwidget.cpp. References m_activeSubproject, m_activeTarget, m_detailView, m_part, m_subprojectView, SubprojectItem::path, AutoProjectPart::projectDirectory(), setActiveTarget(), ProjectItem::setBold(), and SubprojectItem::targets. Referenced by setActiveTarget(), and AutoDetailsView::slotSetActiveTarget(). |
|
Definition at line 679 of file autoprojectwidget.cpp. References addExistingFileButton, addNewFileButton, buildTargetButton, TargetItem::primary, removeButton, slotDetailsSelectionChanged(), targetOptionsButton, and ProjectItem::type(). Referenced by addToTarget(), initActions(), and slotDetailsSelectionChanged(). |
|
Definition at line 621 of file autoprojectwidget.cpp. References addExistingFileButton, addNewFileButton, buildTargetButton, endl(), kdDebug(), m_detailView, m_shownSubproject, removeButton, selectedSubproject(), slotOverviewSelectionChanged(), SubprojectItem::subdir, KListView::takeItem(), targetOptionsButton, and SubprojectItem::targets. Referenced by initActions(), slotOverviewSelectionChanged(), and AutoDetailsView::slotRemoveDetail(). |
|
The directory of the currently shown subproject.
Definition at line 424 of file autoprojectwidget.cpp. References SubprojectItem::path, and selectedSubproject(). Referenced by TargetOptionsDialog::storeConfig(), and TargetOptionsDialog::TargetOptionsDialog(). |
|
Returns the sub project item, if any, for a given path. The path supplied can be either absolute, or relative to the project directory. If no subproject item is found for the path, null is returned. Definition at line 312 of file autoprojectwidget.cpp. References endl(), kdDebug(), m_part, m_subprojectView, SubprojectItem::path, AutoProjectPart::projectDirectory(), and subprojectItemForPath(). Referenced by addFiles(), and subprojectItemForPath(). |
Member Data Documentation
|
Definition at line 200 of file autoprojectwidget.h. Referenced by initActions(), and initOverview(). |
|
Definition at line 202 of file autoprojectwidget.h. Referenced by initActions(), initDetailview(), slotDetailsSelectionChanged(), and slotOverviewSelectionChanged(). |
|
Definition at line 199 of file autoprojectwidget.h. |
|
Definition at line 202 of file autoprojectwidget.h. Referenced by initActions(), initDetailview(), slotDetailsSelectionChanged(), and slotOverviewSelectionChanged(). |
|
Definition at line 200 of file autoprojectwidget.h. Referenced by initActions(), and initOverview(). |
|
Definition at line 199 of file autoprojectwidget.h. Referenced by initActions(), and initOverview(). |
|
Definition at line 200 of file autoprojectwidget.h. Referenced by initActions(), and initOverview(). |
|
Definition at line 201 of file autoprojectwidget.h. Referenced by initActions(), and initOverview(). |
|
Definition at line 203 of file autoprojectwidget.h. Referenced by initActions(), initDetailview(), slotDetailsSelectionChanged(), and slotOverviewSelectionChanged(). |
|
Definition at line 210 of file autoprojectwidget.h. Referenced by activeDirectory(), activeSubproject(), addFiles(), AutoProjectWidget(), saveSession(), setActiveSubproject(), and setActiveTarget(). |
|
Definition at line 211 of file autoprojectwidget.h. Referenced by activeTarget(), addFiles(), AutoProjectWidget(), saveSession(), and setActiveTarget(). |
|
Definition at line 212 of file autoprojectwidget.h. Referenced by AutoProjectWidget(). |
|
Definition at line 206 of file autoprojectwidget.h. Referenced by closeProject(), createFileItem(), createTargetItem(), getDetailsView(), initActions(), initDetailview(), selectedFile(), selectedTarget(), setActiveTarget(), and slotOverviewSelectionChanged(). |
|
Definition at line 208 of file autoprojectwidget.h. Referenced by AutoProjectWidget(), and kdeMode(). |
|
|
Definition at line 213 of file autoprojectwidget.h. Referenced by AutoProjectWidget(), closeProject(), and slotOverviewSelectionChanged(). |
|
Definition at line 205 of file autoprojectwidget.h. Referenced by allFiles(), allLibraries(), allSubprojectItems(), allSubprojects(), closeProject(), createFileItem(), getSubprojectView(), initActions(), initOverview(), openProject(), pathForTarget(), selectedSubproject(), setActiveTarget(), and subprojectItemForPath(). |
|
Definition at line 203 of file autoprojectwidget.h. Referenced by initActions(), initDetailview(), slotDetailsSelectionChanged(), and slotOverviewSelectionChanged(). |
|
Definition at line 199 of file autoprojectwidget.h. Referenced by initActions(), and initOverview(). |
|
Definition at line 201 of file autoprojectwidget.h. Referenced by initActions(), initDetailview(), slotDetailsSelectionChanged(), and slotOverviewSelectionChanged(). |
The documentation for this class was generated from the following files:
- buildtools/autotools/autoprojectwidget.h
- buildtools/autotools/autoprojectwidget.cpp