Crossfire Server, Trunk
CREPrePostList Class Reference

#include <CREPrePostList.h>

+ Inheritance diagram for CREPrePostList:
+ Collaboration diagram for CREPrePostList:

Public Types

enum  Mode { PreConditions, PostConditions, SetWhen }
 

Public Member Functions

 CREPrePostList (QWidget *parent, Mode mode, const MessageManager *manager)
 
QList< QStringList > data () const
 
void setData (const QList< QStringList > &data)
 
virtual ~CREPrePostList ()
 

Private Slots

void onAddCondition (bool)
 
void onDeleteCondition (bool)
 
void onReset (bool)
 

Private Member Functions

void addItem (const QStringList &item)
 

Private Attributes

QListWidget * myList
 
Mode myMode
 
QList< QStringList > myOriginal
 

Detailed Description

Display and allow edition of a list of pre- or post- conditions for a NPC message, or quest states for a quest step.

Definition at line 13 of file CREPrePostList.h.

Member Enumeration Documentation

◆ Mode

Enumerator
PreConditions 
PostConditions 
SetWhen 

Definition at line 18 of file CREPrePostList.h.

Constructor & Destructor Documentation

◆ CREPrePostList()

CREPrePostList::CREPrePostList ( QWidget *  parent,
Mode  mode,
const MessageManager manager 
)

Definition at line 5 of file CREPrePostList.cpp.

References banquet::l, manager, myList, onAddCondition(), onDeleteCondition(), onReset(), PostConditions, PreConditions, and SetWhen.

+ Here is the call graph for this function:

◆ ~CREPrePostList()

CREPrePostList::~CREPrePostList ( )
virtual

Definition at line 43 of file CREPrePostList.cpp.

Member Function Documentation

◆ addItem()

void CREPrePostList::addItem ( const QStringList &  item)
private

Definition at line 61 of file CREPrePostList.cpp.

References myList, myMode, and SetWhen.

Referenced by onAddCondition(), and setData().

+ Here is the caller graph for this function:

◆ data()

QList< QStringList > CREPrePostList::data ( ) const

Definition at line 47 of file CREPrePostList.cpp.

References myList, myMode, SetWhen, and autojail::value.

Referenced by setData().

+ Here is the caller graph for this function:

◆ onAddCondition

void CREPrePostList::onAddCondition ( bool  )
privateslot

Definition at line 84 of file CREPrePostList.cpp.

References addItem(), say::item, and myList.

Referenced by CREPrePostList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onDeleteCondition

void CREPrePostList::onDeleteCondition ( bool  )
privateslot

Definition at line 93 of file CREPrePostList.cpp.

References myList.

Referenced by CREPrePostList().

+ Here is the caller graph for this function:

◆ onReset

void CREPrePostList::onReset ( bool  )
privateslot

Definition at line 101 of file CREPrePostList.cpp.

References myOriginal, and setData().

Referenced by CREPrePostList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setData()

void CREPrePostList::setData ( const QList< QStringList > &  data)

Definition at line 72 of file CREPrePostList.cpp.

References addItem(), data(), myList, myMode, myOriginal, and SetWhen.

Referenced by onReset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ myList

QListWidget* CREPrePostList::myList
private

◆ myMode

Mode CREPrePostList::myMode
private

Definition at line 35 of file CREPrePostList.h.

Referenced by addItem(), data(), and setData().

◆ myOriginal

QList<QStringList> CREPrePostList::myOriginal
private

Definition at line 34 of file CREPrePostList.h.

Referenced by onReset(), and setData().


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