OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | Private Attributes | List of all members
CSMTools::ReportModel Class Reference

#include <reportmodel.hpp>

Inheritance diagram for CSMTools::ReportModel:
Collaboration diagram for CSMTools::ReportModel:

Public Member Functions

 ReportModel (bool fieldColumn=false, bool severityColumn=true)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
void add (const CSMDoc::Message &message)
 
void flagAsReplaced (int index)
 
const CSMWorld::UniversalIdgetUniversalId (int row) const
 
std::string getHint (int row) const
 
void clear ()
 
int countErrors () const
 

Private Types

enum  Columns { Column_Type = 0, Column_Id = 1, Column_Hint = 2 }
 

Private Attributes

std::vector< CSMDoc::MessagemRows
 
int mColumnDescription
 
int mColumnField
 
int mColumnSeverity
 

Member Enumeration Documentation

Enumerator
Column_Type 
Column_Id 
Column_Hint 

Constructor & Destructor Documentation

CSMTools::ReportModel::ReportModel ( bool  fieldColumn = false,
bool  severityColumn = true 
)

Member Function Documentation

void CSMTools::ReportModel::add ( const CSMDoc::Message message)

Here is the caller graph for this function:

void CSMTools::ReportModel::clear ( )
int CSMTools::ReportModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Here is the caller graph for this function:

int CSMTools::ReportModel::countErrors ( ) const
QVariant CSMTools::ReportModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

Here is the call graph for this function:

void CSMTools::ReportModel::flagAsReplaced ( int  index)
std::string CSMTools::ReportModel::getHint ( int  row) const

Here is the caller graph for this function:

const CSMWorld::UniversalId & CSMTools::ReportModel::getUniversalId ( int  row) const

Here is the caller graph for this function:

QVariant CSMTools::ReportModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
virtual
bool CSMTools::ReportModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
virtual
int CSMTools::ReportModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Member Data Documentation

int CSMTools::ReportModel::mColumnDescription
private
int CSMTools::ReportModel::mColumnField
private
int CSMTools::ReportModel::mColumnSeverity
private
std::vector<CSMDoc::Message> CSMTools::ReportModel::mRows
private

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