![]() |
Crossfire Resources Editor
|
Display attack messages for a single attack type. More...
#include <AttackMessagePanel.h>
Inheritance diagram for AttackMessagePanel:
Collaboration diagram for AttackMessagePanel:Public Member Functions | |
| AttackMessagePanel (QWidget *parent) | |
| virtual void | updateItem () override |
| Called when myItem was updated. More... | |
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 |
| Item to display. More... | |
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.
Here is the call graph for this function:
|
privateslot |
Definition at line 52 of file AttackMessagePanel.cpp.
References myAttackType, myForHitter, and myForVictim.
Referenced by AttackMessagePanel().
Here is the caller graph for this function:
|
overridevirtual |
Called when myItem was updated.
Implements AssetSWrapperPanel< SingleAttackWrapper >.
Definition at line 39 of file AttackMessagePanel.cpp.
References SingleAttackWrapper::attackType(), createItem(), myAttackType, AssetSWrapperPanel< SingleAttackWrapper >::myItem, and myMessages.
Here is the call graph for this function:
|
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().