Crossfire Server, Trunk
|
#include <TreasureListPanel.h>
Public Slots | |
void | onGenerate (bool pressed) |
Public Member Functions | |
CRETreasurePanel (QWidget *parent) | |
virtual void | setItem (AssetWrapper *asset) override |
![]() | |
ArchetypeComboBox * | addArchetype (const QString &label, const char *property, bool readOnly=false, bool allowNone=true) |
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) |
QSpinBox * | addSpinBox (const QString &label, const char *property, int min=0, int max=100, bool readOnly=true) |
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) | |
![]() | |
CRETPanel (QWidget *parent) | |
![]() | |
virtual void | commitData () |
CREPanel (QWidget *parent) | |
virtual | ~CREPanel () |
Protected Attributes | |
QSpinBox * | myDifficulty |
QTreeWidget * | myGenerated |
TreasureListWrapper * | myTreasure |
QTreeWidget * | myUsing |
![]() | |
AssetWrapper * | myAsset |
QMetaObject::Connection | myChanged |
QMetaObject::Connection | myDelete |
bool | myInhibit |
QGridLayout * | myLayout |
QList< PropertyLink > | myLinks |
Additional Inherited Members | |
![]() | |
void | dataChanged () |
void | itemChanged () |
![]() | |
template<class T > | |
T * | addWidget (const QString &label, T *widget, bool sideBySide, const char *property, const char *widgetProperty) |
Definition at line 10 of file TreasureListPanel.h.
CRETreasurePanel::CRETreasurePanel | ( | QWidget * | parent | ) |
Definition at line 16 of file TreasureListPanel.cpp.
References AssetWrapperPanel::addCheckBox(), myDifficulty, myGenerated, AssetWrapperPanel::myLayout, myUsing, and onGenerate().
|
slot |
Definition at line 78 of file TreasureListPanel.cpp.
References create_treasure(), identify(), obj::inv, say::item, myDifficulty, myGenerated, myTreasure, object_free(), object_new(), object_remove(), CREUtils::objectNode(), and AssetTWrapper< T >::wrappedItem().
Referenced by CRETreasurePanel().
|
overridevirtual |
Reimplemented from AssetWrapperPanel.
Definition at line 38 of file TreasureListPanel.cpp.
References archininventory::arch, CREUtils::archetypeNode(), AssetsManager::archetypes(), TreasureListWrapper::displayName(), AssetsCollection< T, Key >::each(), getManager(), myTreasure, myUsing, give::name, root, and AssetWrapperPanel::setItem().
|
protected |
Definition at line 25 of file TreasureListPanel.h.
Referenced by CRETreasurePanel(), and onGenerate().
|
protected |
Definition at line 24 of file TreasureListPanel.h.
Referenced by CRETreasurePanel(), and onGenerate().
|
protected |
Definition at line 22 of file TreasureListPanel.h.
Referenced by onGenerate(), and setItem().
|
protected |
Definition at line 23 of file TreasureListPanel.h.
Referenced by CRETreasurePanel(), and setItem().