Crossfire Server, Trunk
CREReplyPanel Class Reference

#include <CREReplyPanel.h>

+ Inheritance diagram for CREReplyPanel:
+ Collaboration diagram for CREReplyPanel:

Signals

void dataModified ()
 

Public Member Functions

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

Private Slots

void currentReplyChanged (QTreeWidgetItem *, QTreeWidgetItem *)
 
void onAddItem (bool)
 
void onDeleteItem (bool)
 
void onTextChanged (const QString &)
 
void onTypeChanged (int)
 

Private Member Functions

void setText (QTreeWidgetItem *item, QStringList data)
 
void updateItem ()
 

Private Attributes

QList< QStringList > myData
 
QLineEdit * myMessage
 
QTreeWidget * myReplies
 
QLineEdit * myText
 
QComboBox * myType
 

Detailed Description

This panel is the 'replies' subpanel in the messages panel.

Definition at line 26 of file CREReplyPanel.h.

Constructor & Destructor Documentation

◆ CREReplyPanel()

CREReplyPanel::CREReplyPanel ( QWidget *  parent)

Definition at line 16 of file CREReplyPanel.cpp.

References currentReplyChanged(), myMessage, myReplies, myText, myType, onAddItem(), onDeleteItem(), onTextChanged(), and onTypeChanged().

+ Here is the call graph for this function:

◆ ~CREReplyPanel()

CREReplyPanel::~CREReplyPanel ( )
virtual

Definition at line 49 of file CREReplyPanel.cpp.

Member Function Documentation

◆ currentReplyChanged

void CREReplyPanel::currentReplyChanged ( QTreeWidgetItem *  ,
QTreeWidgetItem *   
)
privateslot

Definition at line 126 of file CREReplyPanel.cpp.

References navar-midane_time::data, myData, myMessage, myReplies, myText, and myType.

Referenced by CREReplyPanel().

+ Here is the caller graph for this function:

◆ dataModified

void CREReplyPanel::dataModified ( )
signal

Emitted when the data this panel manages changes .

Referenced by onAddItem(), onDeleteItem(), and updateItem().

+ Here is the caller graph for this function:

◆ getData()

QList< QStringList > CREReplyPanel::getData ( )

Definition at line 63 of file CREReplyPanel.cpp.

References myData.

◆ onAddItem

void CREReplyPanel::onAddItem ( bool  )
privateslot

Definition at line 68 of file CREReplyPanel.cpp.

References dataModified(), myData, myReplies, and setText().

Referenced by CREReplyPanel().

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

◆ onDeleteItem

void CREReplyPanel::onDeleteItem ( bool  )
privateslot

Definition at line 78 of file CREReplyPanel.cpp.

References dataModified(), myData, and myReplies.

Referenced by CREReplyPanel().

+ Here is the caller graph for this function:

◆ onTextChanged

void CREReplyPanel::onTextChanged ( const QString &  )
privateslot

Definition at line 101 of file CREReplyPanel.cpp.

References updateItem().

Referenced by CREReplyPanel().

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

◆ onTypeChanged

void CREReplyPanel::onTypeChanged ( int  )
privateslot

Definition at line 106 of file CREReplyPanel.cpp.

References updateItem().

Referenced by CREReplyPanel().

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

◆ setData()

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

Definition at line 53 of file CREReplyPanel.cpp.

References navar-midane_time::data, myData, myReplies, say::reply, and setText().

+ Here is the call graph for this function:

◆ setText()

void CREReplyPanel::setText ( QTreeWidgetItem *  item,
QStringList  data 
)
private

Fill a line of myReplies with the data.

Parameters
itemline to fill.
datacontents to put in the line.

Definition at line 89 of file CREReplyPanel.cpp.

References navar-midane_time::data, and myType.

Referenced by onAddItem(), setData(), and updateItem().

+ Here is the caller graph for this function:

◆ updateItem()

void CREReplyPanel::updateItem ( )
private

Update the currently being edited reply with data in the various fields.

Definition at line 111 of file CREReplyPanel.cpp.

References navar-midane_time::data, dataModified(), myData, myMessage, myReplies, myText, myType, and setText().

Referenced by onTextChanged(), and onTypeChanged().

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

Field Documentation

◆ myData

QList<QStringList> CREReplyPanel::myData
private

The data this panel is working on.

Definition at line 43 of file CREReplyPanel.h.

Referenced by currentReplyChanged(), getData(), onAddItem(), onDeleteItem(), setData(), and updateItem().

◆ myMessage

QLineEdit* CREReplyPanel::myMessage
private

Zone to edit the message the NPC will say.

Definition at line 49 of file CREReplyPanel.h.

Referenced by CREReplyPanel(), currentReplyChanged(), and updateItem().

◆ myReplies

QTreeWidget* CREReplyPanel::myReplies
private

Display for the replies.

Definition at line 45 of file CREReplyPanel.h.

Referenced by CREReplyPanel(), currentReplyChanged(), onAddItem(), onDeleteItem(), setData(), and updateItem().

◆ myText

QLineEdit* CREReplyPanel::myText
private

Zone to edit the reply keyword.

Definition at line 47 of file CREReplyPanel.h.

Referenced by CREReplyPanel(), currentReplyChanged(), and updateItem().

◆ myType

QComboBox* CREReplyPanel::myType
private

Available reply type.

Definition at line 51 of file CREReplyPanel.h.

Referenced by CREReplyPanel(), currentReplyChanged(), setText(), and updateItem().


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