Crossfire Server, Trunk
|
#include <AttackMessagePanel.h>
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 | |
ArchetypeComboBox * | addArchetype (const QString &label, const char *property, bool readOnly=false, bool allowNone=true) |
AssetUseTree * | addAssetUseTree (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) |
TreasureListComboBox * | addTreasureList (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 > | |
SingleAttackWrapper * | myItem |
Protected Attributes inherited from AssetWrapperPanel | |
AssetWrapper * | myAsset |
QMetaObject::Connection | myChanged |
QMetaObject::Connection | myDelete |
bool | myInhibit |
QGridLayout * | myLayout |
QList< PropertyLink > | myLinks |
QTabWidget * | myTab |
Display attack messages for a single attack type.
Definition at line 26 of file AttackMessagePanel.h.
AttackMessagePanel::AttackMessagePanel | ( | QWidget * | parent | ) |
Definition at line 20 of file AttackMessagePanel.cpp.
References AssetWrapperPanel::addLabel(), AssetWrapperPanel::addWidget(), currentCellChanged(), myForHitter, myForVictim, and myMessages.
|
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().
|
overridevirtual |
Called when myItem was updated.
Implements AssetSWrapperPanel< SingleAttackWrapper >.
Definition at line 39 of file AttackMessagePanel.cpp.
References attack_mess, SingleAttackWrapper::attackType(), createItem(), attackmess_t::level, MAXATTACKMESS, diamondslots::message, myAttackType, AssetSWrapperPanel< SingleAttackWrapper >::myItem, and myMessages.
|
private |
Definition at line 37 of file AttackMessagePanel.h.
Referenced by currentCellChanged(), and updateItem().
|
private |
Definition at line 39 of file AttackMessagePanel.h.
Referenced by AttackMessagePanel(), and currentCellChanged().
|
private |
Definition at line 40 of file AttackMessagePanel.h.
Referenced by AttackMessagePanel(), and currentCellChanged().
|
private |
Definition at line 38 of file AttackMessagePanel.h.
Referenced by AttackMessagePanel(), and updateItem().