Crossfire Server, Trunk  R20513
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
CREReplyPanel Class Reference

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

#include <CREReplyPanel.h>

Inheritance diagram for CREReplyPanel:
Inheritance graph
Collaboration diagram for CREReplyPanel:
Collaboration graph

Signals

void dataModified ()
 Emitted when the data this panel manages changes . More...
 

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)
 Fill a line of myReplies with the data. More...
 
void updateItem ()
 Update the currently being edited reply with data in the various fields. More...
 

Private Attributes

QList< QStringList > myData
 The data this panel is working on. More...
 
QLineEdit * myMessage
 Zone to edit the message the NPC will say. More...
 
QTreeWidget * myReplies
 Display for the replies. More...
 
QLineEdit * myText
 Zone to edit the reply keyword. More...
 
QComboBox * myType
 Available reply type. More...
 

Detailed Description

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

Definition at line 14 of file CREReplyPanel.h.

Constructor & Destructor Documentation

CREReplyPanel::CREReplyPanel ( QWidget *  parent)

Definition at line 4 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 ( )
virtual

Definition at line 37 of file CREReplyPanel.cpp.

Member Function Documentation

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

Definition at line 114 of file CREReplyPanel.cpp.

References myData, myMessage, myReplies, myText, and myType.

Referenced by CREReplyPanel().

Here is the caller graph for this function:

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:

QList< QStringList > CREReplyPanel::getData ( )

Definition at line 51 of file CREReplyPanel.cpp.

References myData.

Referenced by CRERulePanel::onRepliesModified().

Here is the caller graph for this function:

void CREReplyPanel::onAddItem ( bool  )
privateslot

Definition at line 56 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:

void CREReplyPanel::onDeleteItem ( bool  )
privateslot

Definition at line 66 of file CREReplyPanel.cpp.

References dataModified(), myData, and myReplies.

Referenced by CREReplyPanel().

Here is the caller graph for this function:

void CREReplyPanel::onTextChanged ( const QString &  )
privateslot

Definition at line 89 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:

void CREReplyPanel::onTypeChanged ( int  )
privateslot

Definition at line 94 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:

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

Definition at line 41 of file CREReplyPanel.cpp.

References myData, myReplies, and setText().

Referenced by CRERulePanel::setMessageRule().

Here is the call graph for this function:

Here is the caller graph for this function:

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 77 of file CREReplyPanel.cpp.

References myType.

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

Here is the caller graph for this function:

void CREReplyPanel::updateItem ( )
private

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

Definition at line 99 of file CREReplyPanel.cpp.

References 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

QList<QStringList> CREReplyPanel::myData
private

The data this panel is working on.

Definition at line 31 of file CREReplyPanel.h.

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

QLineEdit* CREReplyPanel::myMessage
private

Zone to edit the message the NPC will say.

Definition at line 37 of file CREReplyPanel.h.

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

QTreeWidget* CREReplyPanel::myReplies
private

Display for the replies.

Definition at line 33 of file CREReplyPanel.h.

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

QLineEdit* CREReplyPanel::myText
private

Zone to edit the reply keyword.

Definition at line 35 of file CREReplyPanel.h.

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

QComboBox* CREReplyPanel::myType
private

Available reply type.

Definition at line 39 of file CREReplyPanel.h.

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


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