Crossfire Server, Trunk
AttackMessagePanel Class Reference

#include <AttackMessagePanel.h>

+ Inheritance diagram for AttackMessagePanel:
+ Collaboration diagram for AttackMessagePanel:

Public Member Functions

 AttackMessagePanel (QWidget *parent)
 
virtual void updateItem () override
 
- Public Member Functions inherited from AssetSWrapperPanel< SingleAttackWrapper >
 AssetSWrapperPanel (QWidget *parent)
 
virtual void setAsset (AssetWrapper *asset) override
 
- Public Member Functions inherited from AssetWrapperPanel
ArchetypeComboBoxaddArchetype (const QString &label, const char *property, bool readOnly=false, bool allowNone=true)
 
AssetUseTreeaddAssetUseTree (const QString &label, AssetModel *assets, const char *property)
 
void addBottomFiller ()
 
QCheckBox * addCheckBox (const QString &label, const char *property, bool readOnly=true)
 
void addFaceChoice (const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
 
QLabel * addLabel (const QString &label, const char *property, bool wrapText=false)
 
QLineEdit * addLineEdit (const QString &label, const char *property, bool readOnly=true)
 
void addQuestChoice (const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
 
QSpinBox * addSpinBox (const QString &label, const char *property, int min=0, int max=100, bool readOnly=true)
 
void addTab (const QString &title)
 
QTextEdit * addTextEdit (const QString &label, const char *property, bool readOnly=true)
 
TreasureListComboBoxaddTreasureList (const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
 
 AssetWrapperPanel (QWidget *parent)
 
virtual ~AssetWrapperPanel ()
 

Private Slots

void currentCellChanged (int currentRow, int currentColumn, int previousRow, int previousColumn)
 

Private Attributes

uint8_t myAttackType
 
QLabel * myForHitter
 
QLabel * myForVictim
 
QTableWidget * myMessages
 

Additional Inherited Members

- Protected Slots inherited from AssetWrapperPanel
void dataChanged ()
 
void itemChanged ()
 
- Protected Member Functions inherited from AssetWrapperPanel
template<class T >
T * addWidget (const QString &label, T *widget, bool sideBySide, const char *property, const char *widgetProperty)
 
- Protected Attributes inherited from AssetSWrapperPanel< SingleAttackWrapper >
SingleAttackWrappermyItem
 
- Protected Attributes inherited from AssetWrapperPanel
AssetWrappermyAsset
 
QMetaObject::Connection myChanged
 
QMetaObject::Connection myDelete
 
bool myInhibit
 
QGridLayout * myLayout
 
QList< PropertyLinkmyLinks
 
QTabWidget * myTab
 

Detailed Description

Display attack messages for a single attack type.

Definition at line 26 of file AttackMessagePanel.h.

Constructor & Destructor Documentation

◆ AttackMessagePanel()

AttackMessagePanel::AttackMessagePanel ( QWidget *  parent)

Definition at line 20 of file AttackMessagePanel.cpp.

References AssetWrapperPanel::addLabel(), AssetWrapperPanel::addWidget(), currentCellChanged(), myForHitter, myForVictim, and myMessages.

+ Here is the call graph for this function:

Member Function Documentation

◆ currentCellChanged

void AttackMessagePanel::currentCellChanged ( int  currentRow,
int  currentColumn,
int  previousRow,
int  previousColumn 
)
privateslot

Definition at line 52 of file AttackMessagePanel.cpp.

References attack_mess, get_attack_message_for_attack_type(), MAX_BUF, myAttackType, myForHitter, myForVictim, and NROFATTACKMESS.

Referenced by AttackMessagePanel().

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

◆ updateItem()

void AttackMessagePanel::updateItem ( )
overridevirtual

Field Documentation

◆ myAttackType

uint8_t AttackMessagePanel::myAttackType
private

Definition at line 37 of file AttackMessagePanel.h.

Referenced by currentCellChanged(), and updateItem().

◆ myForHitter

QLabel* AttackMessagePanel::myForHitter
private

Definition at line 39 of file AttackMessagePanel.h.

Referenced by AttackMessagePanel(), and currentCellChanged().

◆ myForVictim

QLabel* AttackMessagePanel::myForVictim
private

Definition at line 40 of file AttackMessagePanel.h.

Referenced by AttackMessagePanel(), and currentCellChanged().

◆ myMessages

QTableWidget* AttackMessagePanel::myMessages
private

Definition at line 38 of file AttackMessagePanel.h.

Referenced by AttackMessagePanel(), and updateItem().


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