Version: 8.3.0
pqArraysModel Class Reference

Table model for the array's table.

Inheritance diagram for pqArraysModel:
Inheritance graph

Data Structures

struct  ArrayInfo
 

Public Types

enum  ColumnRoles { PROCESSING = 0, NAME = 1, NEW_NAME = 2, COMPONENTS = 3 }
 
typedef QPair< QString, ArrayInfoArraysInfoItemType
 
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 ArraysInfoTypearraysInfo () const
 
ArraysInfoTypeeditArraysInfo ()
 

Private Types

typedef QAbstractTableModel Superclass
 

Private Member Functions

 Q_DISABLE_COPY (pqArraysModel)
 

Private Attributes

ArraysInfoType myArraysInfo
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
PROCESSING 
NAME 
NEW_NAME 
COMPONENTS 

Constructor & Destructor Documentation

pqArraysModel::pqArraysModel ( QObject parentObject = 0)
virtual pqArraysModel::~pqArraysModel ( )
virtual

Member Function Documentation

virtual Qt::ItemFlags pqArraysModel::flags ( const QModelIndex &  idx) const
virtual

References NEW_NAME, and PROCESSING.

virtual int pqArraysModel::rowCount ( const QModelIndex &  idx = QModelIndex()) const
virtual

References myArraysInfo.

virtual int pqArraysModel::columnCount ( const QModelIndex &  idx = QModelIndex()) const
virtual
virtual QVariant pqArraysModel::data ( const QModelIndex &  idx,
int  role = Qt::DisplayRole 
) const
virtual

References myArraysInfo, NAME, NEW_NAME, and PROCESSING.

virtual bool pqArraysModel::setData ( const QModelIndex &  idx,
const QVariant &  value,
int  role = Qt::EditRole 
)
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.

pqArraysModel::Q_DISABLE_COPY ( pqArraysModel  )
private

Field Documentation

ArraysInfoType pqArraysModel::myArraysInfo
private