![]() |
Crossfire Resources Editor
|
Display details about an artifact definition. More...
#include <ArtifactPanel.h>
Public Member Functions | |
ArtifactPanel (QWidget *parent, ResourcesManager *resources) | |
virtual void | updateItem () override |
Called when myItem is updated. More... | |
![]() | |
AssetTWrapperPanel (QWidget *parent) | |
virtual void | setAsset (AssetWrapper *asset) override |
![]() | |
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 () |
Protected Slots | |
void | artifactChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
![]() | |
void | dataChanged () |
void | itemChanged () |
Protected Member Functions | |
void | computeMadeViaAlchemy (const artifact *artifact) const |
![]() | |
template<class T > | |
T * | addWidget (const QString &label, T *widget, bool sideBySide, const char *property, const char *widgetProperty) |
Protected Attributes | |
AnimationControl * | myAnimation |
QTreeWidget * | myArchetypes |
QLineEdit * | myChance |
AnimationWidget * | myFace |
QTextEdit * | myInstance |
QLineEdit * | myName |
QLabel * | myOrigin |
ResourcesManager * | myResources |
QLineEdit * | myType |
QTextEdit * | myValues |
QLabel * | myViaAlchemy |
![]() | |
artifact * | myItem |
Item to display. More... | |
![]() | |
AssetWrapper * | myAsset |
QMetaObject::Connection | myChanged |
QMetaObject::Connection | myDelete |
bool | myInhibit |
QGridLayout * | myLayout |
QList< PropertyLink > | myLinks |
QTabWidget * | myTab |
Display details about an artifact definition.
Definition at line 29 of file ArtifactPanel.h.
ArtifactPanel::ArtifactPanel | ( | QWidget * | parent, |
ResourcesManager * | resources | ||
) |
Definition at line 24 of file ArtifactPanel.cpp.
References AssetWrapperPanel::addLabel(), AssetWrapperPanel::addLineEdit(), AssetWrapperPanel::addSpinBox(), AssetWrapperPanel::addTextEdit(), AssetWrapperPanel::addWidget(), artifactChanged(), myAnimation, myArchetypes, myFace, myInstance, myOrigin, myType, myValues, and myViaAlchemy.
|
protectedslot |
Definition at line 166 of file ArtifactPanel.cpp.
References myAnimation, myFace, myInstance, AssetTWrapperPanel< artifact >::myItem, AnimationWidget::setAnimation(), AnimationControl::setAnimation(), and AnimationWidget::step().
Referenced by ArtifactPanel().
|
protected |
Definition at line 49 of file ArtifactPanel.cpp.
References myViaAlchemy.
Referenced by updateItem().
|
overridevirtual |
Called when myItem is updated.
Implements AssetTWrapperPanel< artifact >.
Definition at line 132 of file ArtifactPanel.cpp.
References addArchetypes(), computeMadeViaAlchemy(), myArchetypes, myInstance, AssetTWrapperPanel< artifact >::myItem, myOrigin, myResources, myType, myValues, and ResourcesManager::originOf().
|
protected |
Definition at line 46 of file ArtifactPanel.h.
Referenced by artifactChanged(), and ArtifactPanel().
|
protected |
Definition at line 43 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and updateItem().
|
protected |
Definition at line 40 of file ArtifactPanel.h.
|
protected |
Definition at line 47 of file ArtifactPanel.h.
Referenced by artifactChanged(), and ArtifactPanel().
|
protected |
Definition at line 45 of file ArtifactPanel.h.
Referenced by artifactChanged(), ArtifactPanel(), and updateItem().
|
protected |
Definition at line 39 of file ArtifactPanel.h.
|
protected |
Definition at line 48 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and updateItem().
|
protected |
Definition at line 38 of file ArtifactPanel.h.
Referenced by updateItem().
|
protected |
Definition at line 41 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and updateItem().
|
protected |
Definition at line 44 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and updateItem().
|
protected |
Definition at line 42 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and computeMadeViaAlchemy().