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

#include <CREMessagePanel.h>

Inheritance diagram for CREMessagePanel:
Inheritance graph
Collaboration diagram for CREMessagePanel:
Collaboration graph

Public Member Functions

virtual void commitData ()
 
 CREMessagePanel (const MessageManager *manager, const QuestManager *quests)
 
virtual void setItem (MessageFile *message)
 
virtual ~CREMessagePanel ()
 
- Public Member Functions inherited from CREPanel
 CREPanel ()
 
virtual ~CREPanel ()
 

Private Slots

void currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
 
void currentRuleModified ()
 
void onAddRule (bool)
 
void onDeleteRule (bool)
 
void onDuplicate (bool)
 
void onMoveDown (bool)
 
void onMoveUp (bool)
 

Private Member Functions

void fillRuleItem (QTreeWidgetItem *item, MessageRule *rule)
 

Private Attributes

QBrush myDefaultBackground
 
QLineEdit * myLocation
 
MessageFilemyMessage
 
const MessageManagermyMessageManager
 
QLineEdit * myPath
 
CRERulePanelmyRulePanel
 
QTreeWidget * myRules
 
QTreeWidget * myUse
 

Detailed Description

Definition at line 18 of file CREMessagePanel.h.

Constructor & Destructor Documentation

CREMessagePanel::CREMessagePanel ( const MessageManager manager,
const QuestManager quests 
)
CREMessagePanel::~CREMessagePanel ( )
virtual

Definition at line 82 of file CREMessagePanel.cpp.

Member Function Documentation

void CREMessagePanel::commitData ( )
virtual

Reimplemented from CREPanel.

Definition at line 314 of file CREMessagePanel.cpp.

References myLocation, myMessage, myPath, MessageFile::setLocation(), and MessageFile::setPath().

Here is the call graph for this function:

void CREMessagePanel::currentItemChanged ( QTreeWidgetItem *  current,
QTreeWidgetItem *  previous 
)
privateslot

Definition at line 186 of file CREMessagePanel.cpp.

References myDefaultBackground, myMessage, myRulePanel, myRules, MessageRule::postconditions(), MessageRule::preconditions(), MessageFile::rules(), setBackgroundColor(), and CRERulePanel::setMessageRule().

Referenced by CREMessagePanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMessagePanel::currentRuleModified ( )
privateslot

Definition at line 278 of file CREMessagePanel.cpp.

References fillRuleItem(), myMessage, myRules, and MessageFile::rules().

Referenced by CREMessagePanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMessagePanel::fillRuleItem ( QTreeWidgetItem *  item,
MessageRule rule 
)
private

Definition at line 285 of file CREMessagePanel.cpp.

References MessageRule::include(), MessageRule::match(), MessageRule::messages(), MessageRule::postconditions(), MessageRule::preconditions(), MessageRule::replies(), and toDisplay().

Referenced by currentRuleModified(), and onDuplicate().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMessagePanel::onAddRule ( bool  )
privateslot

Definition at line 295 of file CREMessagePanel.cpp.

References MessageRule::match(), myMessage, myRules, MessageFile::rules(), and MessageRule::setModified().

Referenced by CREMessagePanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMessagePanel::onDeleteRule ( bool  )
privateslot

Definition at line 304 of file CREMessagePanel.cpp.

References myMessage, myRules, and MessageFile::rules().

Referenced by CREMessagePanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMessagePanel::onDuplicate ( bool  )
privateslot

Definition at line 352 of file CREMessagePanel.cpp.

References fillRuleItem(), MessageRule::match(), myMessage, myRules, and MessageFile::rules().

Referenced by CREMessagePanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMessagePanel::onMoveDown ( bool  )
privateslot

Definition at line 336 of file CREMessagePanel.cpp.

References myMessage, myRules, MessageFile::rules(), and MessageFile::setModified().

Referenced by CREMessagePanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMessagePanel::onMoveUp ( bool  )
privateslot

Definition at line 320 of file CREMessagePanel.cpp.

References myMessage, myRules, MessageFile::rules(), and MessageFile::setModified().

Referenced by CREMessagePanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void CREMessagePanel::setItem ( MessageFile message)
virtual

Field Documentation

QBrush CREMessagePanel::myDefaultBackground
private

Definition at line 35 of file CREMessagePanel.h.

Referenced by currentItemChanged(), and setItem().

QLineEdit* CREMessagePanel::myLocation
private

Definition at line 33 of file CREMessagePanel.h.

Referenced by commitData(), CREMessagePanel(), and setItem().

MessageFile* CREMessagePanel::myMessage
private
const MessageManager* CREMessagePanel::myMessageManager
private

Definition at line 30 of file CREMessagePanel.h.

Referenced by CREMessagePanel(), and setItem().

QLineEdit* CREMessagePanel::myPath
private

Definition at line 32 of file CREMessagePanel.h.

Referenced by commitData(), CREMessagePanel(), and setItem().

CRERulePanel* CREMessagePanel::myRulePanel
private

Definition at line 36 of file CREMessagePanel.h.

Referenced by CREMessagePanel(), currentItemChanged(), and setItem().

QTreeWidget* CREMessagePanel::myRules
private
QTreeWidget* CREMessagePanel::myUse
private

Definition at line 37 of file CREMessagePanel.h.

Referenced by CREMessagePanel(), and setItem().


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