Table model for the array's table.
Data Structures | |
struct | ArrayInfo |
Public Types | |
enum | ColumnRoles { PROCESSING = 0, NAME = 1, NEW_NAME = 2, COMPONENTS = 3 } |
typedef QPair< QString, ArrayInfo > | ArraysInfoItemType |
typedef QVector < ArraysInfoItemType > | ArraysInfoType |
Public Member Functions | |
pqArraysModel (QObject *parentObject=0) | |
virtual | ~pqArraysModel () |
virtual Qt::ItemFlags | flags (const QModelIndex &idx) const |
virtual int | rowCount (const QModelIndex &idx=QModelIndex()) const |
virtual int | columnCount (const QModelIndex &idx=QModelIndex()) const |
virtual QVariant | data (const QModelIndex &idx, int role=Qt::DisplayRole) const |
virtual bool | setData (const QModelIndex &idx, const QVariant &value, int role=Qt::EditRole) |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
QString | arrayName (const QModelIndex &idx) const |
void | setArraysInfo (const QVector< QPair< QString, ArrayInfo > > &data) |
const ArraysInfoType & | arraysInfo () const |
ArraysInfoType & | editArraysInfo () |
Private Types | |
typedef QAbstractTableModel | Superclass |
Private Member Functions | |
Q_DISABLE_COPY (pqArraysModel) | |
Private Attributes | |
ArraysInfoType | myArraysInfo |
|
private |
typedef QPair<QString, ArrayInfo> pqArraysModel::ArraysInfoItemType |
typedef QVector<ArraysInfoItemType> pqArraysModel::ArraysInfoType |
pqArraysModel::pqArraysModel | ( | QObject * | parentObject = 0 | ) |
|
virtual |
|
virtual |
References NEW_NAME, and PROCESSING.
|
virtual |
References myArraysInfo.
|
virtual |
|
virtual |
References myArraysInfo, NAME, NEW_NAME, and PROCESSING.
|
virtual |
References myArraysInfo, NEW_NAME, and PROCESSING.
QVariant pqArraysModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role | ||
) | const |
References COMPONENTS, NAME, NEW_NAME, and PROCESSING.
QString pqArraysModel::arrayName | ( | const QModelIndex & | idx | ) | const |
References myArraysInfo.
void pqArraysModel::setArraysInfo | ( | const QVector< QPair< QString, ArrayInfo > > & | data | ) |
References data(), and myArraysInfo.
const ArraysInfoType& pqArraysModel::arraysInfo | ( | ) | const |
References myArraysInfo.
ArraysInfoType& pqArraysModel::editArraysInfo | ( | ) |
References myArraysInfo.
|
private |
|
private |