#include <WLModel.h>
Public Slots | |
| void | displayPathChanged (const QString &oldPath, const QString &newPath) |
| void | displayDeleted (const QString &path) |
| void | displayCreated (const QString &path) |
Signals | |
| void | pathChanged (const QString &oldPath, const QString &newPath) |
| void | deleted (const QString &path) |
| void | created (const QString &path) |
| void | objChanged (const QString &path) |
| void | newSelectedIndexes (const QModelIndexList &) |
Public Member Functions | |
| WLModel (WLView *view) | |
| ~WLModel () | |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | parent (const QModelIndex &index) const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| Qt::ItemFlags | flags (const QModelIndex &index=QModelIndex()) const |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| bool | insertRows (int position, int rows, const QModelIndex &parent=QModelIndex()) |
| bool | removeRows (int position, int rows, const QModelIndex &parent=QModelIndex()) |
| bool | insertColumns (int position, int columns, const QModelIndex &parent=QModelIndex()) |
| bool | removeColumns (int position, int columns, const QModelIndex &parent=QModelIndex()) |
| QStringList | mimeTypes () const |
| QMimeData * | mimeData (const QModelIndexList &indexes) const |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| WLItem * | itemFromIndex (const QModelIndex &index) const |
| WLItem * | itemFromPath (const QString &path) const |
| QModelIndex | moveUp (QModelIndex &index) |
| QModelIndex | moveDown (QModelIndex &index) |
| void | clear (QModelIndex &parent) |
| WLItem * | createItem (const QString &path) |
| void | BIR (WLItem *parent, int position, int rows) |
| void | EIR () |
| QModelIndex | newFolder (const QModelIndexList &indexes) |
| void | deleteAllDataItems () |
| void | deleteAllTimeIntervalItems () |
| void | deleteAllConstantItems () |
| bool | deleteItem (WLItem *item) |
| void | setUpConnections (WLItem *item) |
| void | setUpConnectionsRec (WLItem *root) |
| void | emitPathChanged (const QString &oldPath, const QString &newPath) |
| void | emitDeleted (const QString &path) |
| void | emitCreated (const QString &path) |
| void | emitObjChanged (const QString &path) |
| void | appendStatus (QLinkedList< bool > &status, QModelIndex &index) |
| void | myReset () |
| void | setStatus (QLinkedList< bool > &status, QModelIndex &index) |
| QModelIndex | indexFromItem (WLItem *i) |
Public Attributes | |
| WLItem * | _root |
| WLItem * | _data |
| WLItem * | _time |
| WLItem * | _constants |
| WLView * | view |
Friends | |
| Vostream & | operator<< (Vostream &, WLModel &) |
| Vistream & | operator>> (Vistream &, WLModel &) |
| WLModel::WLModel | ( | WLView * | view | ) |
| WLModel::~WLModel | ( | ) |
| void WLModel::appendStatus | ( | QLinkedList< bool > & | status, | |
| QModelIndex & | index | |||
| ) |
| void WLModel::BIR | ( | WLItem * | parent, | |
| int | position, | |||
| int | rows | |||
| ) | [inline] |
| void WLModel::clear | ( | QModelIndex & | parent | ) |
| int WLModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
| void WLModel::created | ( | const QString & | path | ) | [signal] |
| WLItem * WLModel::createItem | ( | const QString & | path | ) |
| QVariant WLModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const |
| void WLModel::deleteAllConstantItems | ( | ) | [inline] |
| void WLModel::deleteAllDataItems | ( | ) | [inline] |
| void WLModel::deleteAllTimeIntervalItems | ( | ) | [inline] |
| void WLModel::deleted | ( | const QString & | path | ) | [signal] |
| bool WLModel::deleteItem | ( | WLItem * | item | ) |
| void WLModel::displayCreated | ( | const QString & | path | ) | [inline, slot] |
| void WLModel::displayDeleted | ( | const QString & | path | ) | [inline, slot] |
| void WLModel::displayPathChanged | ( | const QString & | oldPath, | |
| const QString & | newPath | |||
| ) | [inline, slot] |
| bool WLModel::dropMimeData | ( | const QMimeData * | data, | |
| Qt::DropAction | action, | |||
| int | row, | |||
| int | column, | |||
| const QModelIndex & | parent | |||
| ) |
| void WLModel::EIR | ( | ) | [inline] |
| void WLModel::emitCreated | ( | const QString & | path | ) | [inline] |
| void WLModel::emitDeleted | ( | const QString & | path | ) | [inline] |
| void WLModel::emitObjChanged | ( | const QString & | path | ) | [inline] |
| void WLModel::emitPathChanged | ( | const QString & | oldPath, | |
| const QString & | newPath | |||
| ) | [inline] |
| Qt::ItemFlags WLModel::flags | ( | const QModelIndex & | index = QModelIndex() |
) | const |
| QModelIndex WLModel::index | ( | int | row, | |
| int | column, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) | const |
| QModelIndex WLModel::indexFromItem | ( | WLItem * | i | ) | [inline] |
| bool WLModel::insertColumns | ( | int | position, | |
| int | columns, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) |
| bool WLModel::insertRows | ( | int | position, | |
| int | rows, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) |
| WLItem* WLModel::itemFromIndex | ( | const QModelIndex & | index | ) | const [inline] |
| WLItem* WLModel::itemFromPath | ( | const QString & | path | ) | const [inline] |
| QMimeData * WLModel::mimeData | ( | const QModelIndexList & | indexes | ) | const |
| QStringList WLModel::mimeTypes | ( | ) | const |
| QModelIndex WLModel::moveDown | ( | QModelIndex & | index | ) |
| QModelIndex WLModel::moveUp | ( | QModelIndex & | index | ) |
| void WLModel::myReset | ( | ) |
| QModelIndex WLModel::newFolder | ( | const QModelIndexList & | indexes | ) |
| void WLModel::newSelectedIndexes | ( | const QModelIndexList & | ) | [signal] |
| void WLModel::objChanged | ( | const QString & | path | ) | [signal] |
| QModelIndex WLModel::parent | ( | const QModelIndex & | index | ) | const |
| void WLModel::pathChanged | ( | const QString & | oldPath, | |
| const QString & | newPath | |||
| ) | [signal] |
| bool WLModel::removeColumns | ( | int | position, | |
| int | columns, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) |
| bool WLModel::removeRows | ( | int | position, | |
| int | rows, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) |
| int WLModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
| bool WLModel::setData | ( | const QModelIndex & | index, | |
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) |
| void WLModel::setStatus | ( | QLinkedList< bool > & | status, | |
| QModelIndex & | index | |||
| ) |
| void WLModel::setUpConnections | ( | WLItem * | item | ) | [inline] |
| void WLModel::setUpConnectionsRec | ( | WLItem * | root | ) | [inline] |
1.5.7