Crossfire Server, Trunk
CREPlayerRepliesPanel Class Reference

#include <CREPlayerRepliesPanel.h>

+ Inheritance diagram for CREPlayerRepliesPanel:
+ Collaboration diagram for CREPlayerRepliesPanel:

Public Member Functions

 CREPlayerRepliesPanel (QWidget *parent)
 
QList< QStringList > data () const
 
void setData (const QList< QStringList > &data)
 
virtual ~CREPlayerRepliesPanel ()
 

Private Slots

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

Private Member Functions

void addItem (const QStringList &item)
 

Private Attributes

QList< QStringList > myOriginal
 
QTableWidget * myReplies
 

Detailed Description

Display and edition of player replies to NPC messages.

Definition at line 11 of file CREPlayerRepliesPanel.h.

Constructor & Destructor Documentation

◆ CREPlayerRepliesPanel()

CREPlayerRepliesPanel::CREPlayerRepliesPanel ( QWidget *  parent)

Definition at line 56 of file CREPlayerRepliesPanel.cpp.

References addReply(), banquet::l, myReplies, onAddCondition(), onDeleteCondition(), and onReset().

+ Here is the call graph for this function:

◆ ~CREPlayerRepliesPanel()

CREPlayerRepliesPanel::~CREPlayerRepliesPanel ( )
virtual

Definition at line 85 of file CREPlayerRepliesPanel.cpp.

Member Function Documentation

◆ addItem()

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

Definition at line 105 of file CREPlayerRepliesPanel.cpp.

References convertType(), createItem(), and myReplies.

Referenced by onAddCondition(), and setData().

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

◆ data()

QList< QStringList > CREPlayerRepliesPanel::data ( ) const

Definition at line 126 of file CREPlayerRepliesPanel.cpp.

References myReplies, ring_occidental_mages::r, and autojail::value.

Referenced by setData(), and CREPlayerRepliesDelegate::setModelData().

+ Here is the caller graph for this function:

◆ onAddCondition

void CREPlayerRepliesPanel::onAddCondition ( bool  )
privateslot

Definition at line 140 of file CREPlayerRepliesPanel.cpp.

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

Referenced by CREPlayerRepliesPanel().

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

◆ onDeleteCondition

void CREPlayerRepliesPanel::onDeleteCondition ( bool  )
privateslot

Definition at line 148 of file CREPlayerRepliesPanel.cpp.

References myReplies.

Referenced by CREPlayerRepliesPanel().

+ Here is the caller graph for this function:

◆ onReset

void CREPlayerRepliesPanel::onReset ( bool  )
privateslot

Definition at line 156 of file CREPlayerRepliesPanel.cpp.

References myOriginal, and setData().

Referenced by CREPlayerRepliesPanel().

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

◆ setData()

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

Definition at line 114 of file CREPlayerRepliesPanel.cpp.

References addItem(), data(), myOriginal, and myReplies.

Referenced by onReset(), and CREPlayerRepliesDelegate::setEditorData().

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

Field Documentation

◆ myOriginal

QList<QStringList> CREPlayerRepliesPanel::myOriginal
private

Definition at line 31 of file CREPlayerRepliesPanel.h.

Referenced by onReset(), and setData().

◆ myReplies

QTableWidget* CREPlayerRepliesPanel::myReplies
private

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