project
KDevelop::ProjectBaseItem Class Reference
#include <projectmodel.h>
Inheritance diagram for KDevelop::ProjectBaseItem:

Detailed Description
Interface that allows a developer to implement the three basic types of items you would see in a multi-project.
- Folder
- Project
- Custom Target
- Library Target
- Executable Target
- Test Executable Target
- File
Definition at line 57 of file projectmodel.h.
Public Types | |
| enum | ProjectItemType { BuildFolder = QStandardItem::UserType, Folder = QStandardItem::UserType+1, ExecutableTarget = QStandardItem::UserType+2, LibraryTarget = QStandardItem::UserType+3, TestTarget = QStandardItem::UserType+4, Target = QStandardItem::UserType+5, File = QStandardItem::UserType+6 } |
Public Member Functions | |
| void | add (ProjectBaseItem *item) |
| virtual ProjectFileItem * | file () const |
| QList< ProjectFileItem * > | fileList () const |
| virtual ProjectFolderItem * | folder () const |
| QList< ProjectFolderItem * > | folderList () const |
| IProject * | project () const |
| ProjectBaseItem (IProject *, const QString &name, QStandardItem *parent=0) | |
| virtual void | setIcon () |
| void | setParent (QStandardItem *parent) |
| virtual ProjectTargetItem * | target () const |
| QList< ProjectTargetItem * > | targetList () const |
| QList< ProjectTestTargetItem * > | testList () const |
Protected Member Functions | |
| ProjectBaseItem (ProjectBaseItemPrivate &dd) | |
Protected Attributes | |
| class ProjectBaseItemPrivate *const | d_ptr |
Member Function Documentation
| void KDevelop::ProjectBaseItem::add | ( | ProjectBaseItem * | item | ) |
add the item item to the list of children for this item do not use this function if you gave the item a parent when you created it
Definition at line 121 of file projectmodel.cpp.
| ProjectFileItem * KDevelop::ProjectBaseItem::file | ( | ) | const [virtual] |
- Returns:
- If this item is a file, it returns a pointer to the file, otherwise returns a 0 pointer.
Definition at line 136 of file projectmodel.cpp.
| QList< ProjectFileItem * > KDevelop::ProjectBaseItem::fileList | ( | ) | const |
- Returns:
- Returns a list of the files that have this object as the parent.
Definition at line 193 of file projectmodel.cpp.
| ProjectFolderItem * KDevelop::ProjectBaseItem::folder | ( | ) | const [virtual] |
- Returns:
- If this item is a folder, it returns a pointer to the folder, otherwise returns a 0 pointer.
Definition at line 126 of file projectmodel.cpp.
| QList< ProjectFolderItem * > KDevelop::ProjectBaseItem::folderList | ( | ) | const |
- Returns:
- Returns a list of the folders that have this object as the parent.
Definition at line 141 of file projectmodel.cpp.
| IProject * KDevelop::ProjectBaseItem::project | ( | ) | const |
- Returns:
- Returns the project that the item belongs to.
Definition at line 105 of file projectmodel.cpp.
| void KDevelop::ProjectBaseItem::setParent | ( | QStandardItem * | parent | ) |
| ProjectTargetItem * KDevelop::ProjectBaseItem::target | ( | ) | const [virtual] |
- Returns:
- If this item is a target, it returns a pointer to the target, otherwise returns a 0 pointer.
Definition at line 131 of file projectmodel.cpp.
| QList< ProjectTargetItem * > KDevelop::ProjectBaseItem::targetList | ( | ) | const |
- Returns:
- Returns a list of the targets that have this object as the parent.
Definition at line 158 of file projectmodel.cpp.
| QList< ProjectTestTargetItem * > KDevelop::ProjectBaseItem::testList | ( | ) | const |
- Returns:
- Returns a list of the test targets that have this object as the parent.
Definition at line 176 of file projectmodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference