Crossfire Server, Trunk
|
#include <ArtifactPanel.h>
Public Member Functions | |
ArtifactPanel (QWidget *parent) | |
virtual void | updateItem () override |
![]() | |
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) |
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 void | commitData () |
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 |
QLineEdit * | myType |
QTextEdit * | myValues |
QLabel * | myViaAlchemy |
![]() | |
artifact * | myItem |
![]() | |
AssetWrapper * | myAsset |
QMetaObject::Connection | myChanged |
QMetaObject::Connection | myDelete |
bool | myInhibit |
QGridLayout * | myLayout |
QList< PropertyLink > | myLinks |
QTabWidget * | myTab |
Definition at line 26 of file ArtifactPanel.h.
ArtifactPanel::ArtifactPanel | ( | QWidget * | parent | ) |
Definition at line 23 of file ArtifactPanel.cpp.
References AssetWrapperPanel::addLineEdit(), AssetWrapperPanel::addSpinBox(), AssetWrapperPanel::addWidget(), artifactChanged(), myAnimation, myArchetypes, myFace, myInstance, AssetWrapperPanel::myLayout, myType, myValues, and myViaAlchemy.
|
protectedslot |
Definition at line 169 of file ArtifactPanel.cpp.
References obj::animation, archininventory::arch, arch_to_object(), AssetsManager::archetypes(), replace::current, describe_item(), obj::face, dragon_attune::faces, AssetsCollection< T, Key >::find(), FLAG_IDENTIFIED, FLAG_IS_TURNABLE, FREE_OBJ_FREE_INVENTORY, FREE_OBJ_NO_DESTROY_CALLBACK, getManager(), give_artifact_abilities(), artifactstruct::item, myAnimation, myFace, myInstance, AssetTWrapperPanel< artifact >::myItem, Face::number, object_free(), object_give_identified_properties(), QUERY_FLAG, SET_FLAG, AnimationWidget::setAnimation(), AnimationControl::setAnimation(), AnimationWidget::step(), and stringbuffer_finish().
Referenced by ArtifactPanel().
|
protected |
Definition at line 53 of file ArtifactPanel.cpp.
References disinfect::a, artifactstruct::allowed_size, archininventory::arch, recipestruct::arch_name, recipestruct::arch_names, find_archetype(), get_formulalist(), artifactstruct::item, legal_artifact_combination(), guildoracle::list, myViaAlchemy, obj::name, recipestruct::next, recipestruct::title, and obj::type.
Referenced by updateItem().
|
overridevirtual |
Called when myItem is updated.
Implements AssetTWrapperPanel< artifact >.
Definition at line 136 of file ArtifactPanel.cpp.
References addArchetypes(), artifactstruct::allowed, reputation_trigger_connect::check(), archt::clone, computeMadeViaAlchemy(), empty_archetype, get_ob_diff(), artifactstruct::item, myArchetypes, myInstance, AssetTWrapperPanel< artifact >::myItem, myType, myValues, give::name, linked_char::next, stringbuffer_finish(), stringbuffer_new(), and obj::type.
|
protected |
Definition at line 42 of file ArtifactPanel.h.
Referenced by artifactChanged(), and ArtifactPanel().
|
protected |
Definition at line 39 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and updateItem().
|
protected |
Definition at line 36 of file ArtifactPanel.h.
|
protected |
Definition at line 43 of file ArtifactPanel.h.
Referenced by artifactChanged(), and ArtifactPanel().
|
protected |
Definition at line 41 of file ArtifactPanel.h.
Referenced by artifactChanged(), ArtifactPanel(), and updateItem().
|
protected |
Definition at line 35 of file ArtifactPanel.h.
|
protected |
Definition at line 37 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and updateItem().
|
protected |
Definition at line 40 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and updateItem().
|
protected |
Definition at line 38 of file ArtifactPanel.h.
Referenced by ArtifactPanel(), and computeMadeViaAlchemy().