ParaView
Public Member Functions | List of all members
pqOutputWindowModel Class Reference

This is a model for the pqOutputWindow table that shows collated and abbreviated messages. More...

#include <pqOutputWindowModel.h>

Inherits QAbstractTableModel.

Public Member Functions

 pqOutputWindowModel (QObject *parent, const QList< MessageT > &messages)
 
 ~pqOutputWindowModel ()
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void setView (QTableView *view)
 
void appendLastRow ()
 Appends the last message to the table. More...
 
void clear ()
 clears the table More...
 
void ShowMessages (bool *show)
 Shows in the table only messages that match the 'show' array. More...
 
void expandRow (int r)
 Expand/Contract a row to show/hide the location of the message. More...
 
void contractRow (int r)
 
void updateCount (int messageIndex)
 Updates the model when the count for the message at 'messageIndex' was updated. More...
 

Detailed Description

This is a model for the pqOutputWindow table that shows collated and abbreviated messages.

Definition at line 61 of file pqOutputWindowModel.h.

Constructor & Destructor Documentation

◆ pqOutputWindowModel()

pqOutputWindowModel::pqOutputWindowModel ( QObject *  parent,
const QList< MessageT > &  messages 
)

◆ ~pqOutputWindowModel()

pqOutputWindowModel::~pqOutputWindowModel ( )

Member Function Documentation

◆ rowCount()

int pqOutputWindowModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

◆ columnCount()

int pqOutputWindowModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

◆ data()

QVariant pqOutputWindowModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

◆ flags()

virtual Qt::ItemFlags pqOutputWindowModel::flags ( const QModelIndex &  index) const
virtual

◆ setData()

virtual bool pqOutputWindowModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
virtual

◆ setView()

void pqOutputWindowModel::setView ( QTableView *  view)

◆ appendLastRow()

void pqOutputWindowModel::appendLastRow ( )

Appends the last message to the table.

◆ clear()

void pqOutputWindowModel::clear ( )

clears the table

◆ ShowMessages()

void pqOutputWindowModel::ShowMessages ( bool *  show)

Shows in the table only messages that match the 'show' array.

'show' tells us if a pqOutputArray::MessageType element should be shown or not

◆ expandRow()

void pqOutputWindowModel::expandRow ( int  r)

Expand/Contract a row to show/hide the location of the message.

◆ contractRow()

void pqOutputWindowModel::contractRow ( int  r)

◆ updateCount()

void pqOutputWindowModel::updateCount ( int  messageIndex)

Updates the model when the count for the message at 'messageIndex' was updated.


The documentation for this class was generated from the following file: