Crossfire Server, Trunk  R20513
Public Slots | Public Member Functions | Protected Attributes
CREQuestItemModel Class Reference

#include <CREQuestItemModel.h>

Inheritance diagram for CREQuestItemModel:
Inheritance graph
Collaboration diagram for CREQuestItemModel:
Collaboration graph

Public Slots

void addStep (bool)
 

Public Member Functions

virtual int columnCount (const QModelIndex &parent) const
 
 CREQuestItemModel (QObject *parent)
 
virtual QVariant data (const QModelIndex &index, int role) const
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent) const
 
void moveDown (int step)
 
void moveUp (int step)
 
virtual QModelIndex parent (const QModelIndex &index) const
 
Questquest () const
 
virtual bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
virtual int rowCount (const QModelIndex &parent) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void setQuest (Quest *quest)
 
virtual ~CREQuestItemModel ()
 

Protected Attributes

QuestmyQuest
 

Detailed Description

Definition at line 9 of file CREQuestItemModel.h.

Constructor & Destructor Documentation

CREQuestItemModel::CREQuestItemModel ( QObject *  parent)

Definition at line 4 of file CREQuestItemModel.cpp.

References myQuest.

CREQuestItemModel::~CREQuestItemModel ( )
virtual

Definition at line 9 of file CREQuestItemModel.cpp.

Member Function Documentation

void CREQuestItemModel::addStep ( bool  )
slot

Definition at line 147 of file CREQuestItemModel.cpp.

References myQuest, Quest::setModified(), and Quest::steps().

Here is the call graph for this function:

int CREQuestItemModel::columnCount ( const QModelIndex &  parent) const
virtual

Definition at line 23 of file CREQuestItemModel.cpp.

References myQuest.

QVariant CREQuestItemModel::data ( const QModelIndex &  index,
int  role 
) const
virtual

Definition at line 58 of file CREQuestItemModel.cpp.

References myQuest, and Quest::steps().

Here is the call graph for this function:

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

Definition at line 111 of file CREQuestItemModel.cpp.

QVariant CREQuestItemModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
virtual

Definition at line 91 of file CREQuestItemModel.cpp.

QModelIndex CREQuestItemModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const
virtual

Definition at line 34 of file CREQuestItemModel.cpp.

void CREQuestItemModel::moveDown ( int  step)

Definition at line 188 of file CREQuestItemModel.cpp.

References myQuest, Quest::setModified(), and Quest::steps().

Referenced by CREQuestPanel::moveDown().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREQuestItemModel::moveUp ( int  step)

Definition at line 175 of file CREQuestItemModel.cpp.

References myQuest, Quest::setModified(), and Quest::steps().

Referenced by CREQuestPanel::moveUp().

Here is the call graph for this function:

Here is the caller graph for this function:

QModelIndex CREQuestItemModel::parent ( const QModelIndex &  index) const
virtual

Definition at line 42 of file CREQuestItemModel.cpp.

Quest * CREQuestItemModel::quest ( ) const

Definition at line 12 of file CREQuestItemModel.cpp.

References myQuest.

Referenced by setQuest().

Here is the caller graph for this function:

bool CREQuestItemModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
virtual

Definition at line 160 of file CREQuestItemModel.cpp.

References myQuest, and Quest::steps().

Here is the call graph for this function:

int CREQuestItemModel::rowCount ( const QModelIndex &  parent) const
virtual

Definition at line 47 of file CREQuestItemModel.cpp.

References myQuest, and Quest::steps().

Here is the call graph for this function:

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

Definition at line 122 of file CREQuestItemModel.cpp.

References myQuest, QuestStep::setCompletion(), QuestStep::setDescription(), Quest::setModified(), QuestStep::setStep(), QuestStep::setWhen(), and Quest::steps().

Referenced by CREMultilineItemDelegate::setModelData().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREQuestItemModel::setQuest ( Quest quest)

Definition at line 17 of file CREQuestItemModel.cpp.

References myQuest, and quest().

Referenced by CREQuestPanel::displaySteps().

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

Quest* CREQuestItemModel::myQuest
protected

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