|
MorphoGraphX
2.0-1-227
|
#include <TaskEditDlg.hpp>
Inheritance diagram for TasksModel:Public Types | |
| typedef QList< mgx::ProcessDefinition > | task_t |
| typedef QMap< QString, task_t > | tasks_t |
Public Member Functions | |
| TasksModel (const tasks_t &ts, QObject *parent=0) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role) const |
| QMap< int, QVariant > | itemData (const QModelIndex &index) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| bool | setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles) |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | taskIndex (int task_id) const |
| QModelIndex | taskIndex (const QString &task_name) const |
| QModelIndex | processIndex (int task_id, int row) const |
| QModelIndex | parent (const QModelIndex &index) const |
| bool | insertRows (int position, int rows, const QModelIndex &index=QModelIndex()) |
| bool | removeRows (int position, int rows, const QModelIndex &index=QModelIndex()) |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| QStringList | mimeTypes () const |
| Qt::DropActions | supportedDropActions () const |
| Qt::DropActions | supportedDragActions () const |
| QMimeData * | mimeData (const QModelIndexList &indexes) const |
| bool | addTask (const QString &name) |
| bool | addProcess (const QString &task_name, const mgx::ProcessDefinition &def) |
| bool | deleteTask (const QString &name) |
| bool | renameTask (const QString &old_name, const QString &new_name) |
| bool | copyTask (const QString &old_name, const QString &new_name) |
| void | deleteItems (const QModelIndexList &lst) |
| void | deleteItems (QList< QList< int > > lst) |
| bool | isTask (const QModelIndex &idx) const |
Public Attributes | |
| QStringList | task_names |
| QList< int > | task_numbers |
| tasks_t | tasks |
Definition at line 28 of file TaskEditDlg.hpp.
| typedef QList<mgx::ProcessDefinition> TasksModel::task_t |
Definition at line 32 of file TaskEditDlg.hpp.
| typedef QMap<QString, task_t> TasksModel::tasks_t |
Definition at line 33 of file TaskEditDlg.hpp.
| TasksModel::TasksModel | ( | const tasks_t & | ts, |
| QObject * | parent = 0 |
||
| ) |
| bool TasksModel::addProcess | ( | const QString & | task_name, |
| const mgx::ProcessDefinition & | def | ||
| ) |
| bool TasksModel::addTask | ( | const QString & | name | ) |
| int TasksModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
| bool TasksModel::copyTask | ( | const QString & | old_name, |
| const QString & | new_name | ||
| ) |
| QVariant TasksModel::data | ( | const QModelIndex & | index, |
| int | role | ||
| ) | const |
| void TasksModel::deleteItems | ( | const QModelIndexList & | lst | ) |
| void TasksModel::deleteItems | ( | QList< QList< int > > | lst | ) |
| bool TasksModel::deleteTask | ( | const QString & | name | ) |
| bool TasksModel::dropMimeData | ( | const QMimeData * | data, |
| Qt::DropAction | action, | ||
| int | row, | ||
| int | column, | ||
| const QModelIndex & | parent | ||
| ) |
| Qt::ItemFlags TasksModel::flags | ( | const QModelIndex & | index | ) | const |
| QVariant TasksModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole |
||
| ) | const |
| QModelIndex TasksModel::index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const |
| bool TasksModel::insertRows | ( | int | position, |
| int | rows, | ||
| const QModelIndex & | index = QModelIndex() |
||
| ) |
| bool TasksModel::isTask | ( | const QModelIndex & | idx | ) | const |
| QMap<int, QVariant> TasksModel::itemData | ( | const QModelIndex & | index | ) | const |
| QMimeData* TasksModel::mimeData | ( | const QModelIndexList & | indexes | ) | const |
| QStringList TasksModel::mimeTypes | ( | ) | const |
| QModelIndex TasksModel::parent | ( | const QModelIndex & | index | ) | const |
|
inline |
Definition at line 52 of file TaskEditDlg.hpp.
| bool TasksModel::removeRows | ( | int | position, |
| int | rows, | ||
| const QModelIndex & | index = QModelIndex() |
||
| ) |
| bool TasksModel::renameTask | ( | const QString & | old_name, |
| const QString & | new_name | ||
| ) |
| int TasksModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
| bool TasksModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) |
| bool TasksModel::setItemData | ( | const QModelIndex & | index, |
| const QMap< int, QVariant > & | roles | ||
| ) |
|
inline |
Definition at line 63 of file TaskEditDlg.hpp.
| Qt::DropActions TasksModel::supportedDropActions | ( | ) | const |
|
inline |
Definition at line 49 of file TaskEditDlg.hpp.
|
inline |
Definition at line 46 of file TaskEditDlg.hpp.
| QStringList TasksModel::task_names |
Definition at line 75 of file TaskEditDlg.hpp.
| QList<int> TasksModel::task_numbers |
Definition at line 76 of file TaskEditDlg.hpp.
| tasks_t TasksModel::tasks |
Definition at line 77 of file TaskEditDlg.hpp.
1.8.17