Crossfire Server, Trunk
PrePostWidget Class Reference

#include <CREPrePostList.h>

+ Inheritance diagram for PrePostWidget:
+ Collaboration diagram for PrePostWidget:

Public Types

enum  Mode { PreConditions, PostConditions, SetWhen }
 

Signals

void dataModified ()
 

Public Member Functions

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

Properties

QList< QStringList > data
 

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

Definition at line 21 of file CREPrePostList.h.

Member Enumeration Documentation

◆ Mode

Enumerator
PreConditions 
PostConditions 
SetWhen 

Definition at line 27 of file CREPrePostList.h.

Constructor & Destructor Documentation

◆ PrePostWidget()

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

Definition at line 17 of file CREPrePostList.cpp.

References dataModified(), banquet::l, manager, myList, onAddCondition(), onDeleteCondition(), and onReset().

+ Here is the call graph for this function:

Member Function Documentation

◆ addItem()

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

Definition at line 57 of file CREPrePostList.cpp.

References dataModified(), myList, myMode, and SetWhen.

Referenced by onAddCondition(), and setData().

+ Here is the caller graph for this function:

◆ data()

QList<QStringList> PrePostWidget::data ( ) const

◆ dataModified

void PrePostWidget::dataModified ( )
signal

Referenced by addItem(), onAddCondition(), onDeleteCondition(), onReset(), and PrePostWidget().

+ Here is the caller graph for this function:

◆ onAddCondition

void PrePostWidget::onAddCondition ( bool  )
privateslot

Definition at line 81 of file CREPrePostList.cpp.

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

Referenced by PrePostWidget().

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

◆ onDeleteCondition

void PrePostWidget::onDeleteCondition ( bool  )
privateslot

Definition at line 91 of file CREPrePostList.cpp.

References dataModified(), and myList.

Referenced by PrePostWidget().

+ Here is the caller graph for this function:

◆ onReset

void PrePostWidget::onReset ( bool  )
privateslot

Definition at line 100 of file CREPrePostList.cpp.

References dataModified(), myOriginal, and setData().

Referenced by PrePostWidget().

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

◆ setData()

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

Definition at line 69 of file CREPrePostList.cpp.

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

Referenced by onReset(), and CREPrePostList::setData().

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

Field Documentation

◆ myList

QListWidget* PrePostWidget::myList
private

Definition at line 44 of file CREPrePostList.h.

Referenced by addItem(), onAddCondition(), onDeleteCondition(), PrePostWidget(), and setData().

◆ myMode

Mode PrePostWidget::myMode
private

Definition at line 46 of file CREPrePostList.h.

Referenced by addItem(), and setData().

◆ myOriginal

QList<QStringList> PrePostWidget::myOriginal
private

Definition at line 45 of file CREPrePostList.h.

Referenced by onReset(), and setData().

Property Documentation

◆ data

QList< QStringList > PrePostWidget::data
readwrite

Definition at line 24 of file CREPrePostList.h.

Referenced by CREPrePostList::data(), and setData().


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