Crossfire Server, Trunk
CRETreasurePanel Class Reference

#include <TreasureListPanel.h>

+ Inheritance diagram for CRETreasurePanel:
+ Collaboration diagram for CRETreasurePanel:

Public Slots

void onGenerate (bool pressed)
 

Public Member Functions

 CRETreasurePanel (AssetModel *model, QWidget *parent)
 
virtual void updateItem () override
 
- Public Member Functions inherited from AssetTWrapperPanel< treasurelist >
 AssetTWrapperPanel (QWidget *parent)
 
virtual void setAsset (AssetWrapper *asset) override
 
- Public Member Functions inherited from AssetWrapperPanel
ArchetypeComboBoxaddArchetype (const QString &label, const char *property, bool readOnly=false, bool allowNone=true)
 
AssetUseTreeaddAssetUseTree (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)
 
TreasureListComboBoxaddTreasureList (const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
 
 AssetWrapperPanel (QWidget *parent)
 
virtual ~AssetWrapperPanel ()
 

Protected Attributes

QSpinBox * myDifficulty
 
QTreeWidget * myGenerated
 
- Protected Attributes inherited from AssetTWrapperPanel< treasurelist >
treasurelistmyItem
 
- Protected Attributes inherited from AssetWrapperPanel
AssetWrappermyAsset
 
QMetaObject::Connection myChanged
 
QMetaObject::Connection myDelete
 
bool myInhibit
 
QGridLayout * myLayout
 
QList< PropertyLinkmyLinks
 
QTabWidget * myTab
 

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)
 

Detailed Description

Display and allow edition of a treasure list.

Definition at line 28 of file TreasureListPanel.h.

Constructor & Destructor Documentation

◆ CRETreasurePanel()

CRETreasurePanel::CRETreasurePanel ( AssetModel model,
QWidget *  parent 
)

Member Function Documentation

◆ onGenerate

void CRETreasurePanel::onGenerate ( bool  pressed)
slot

Definition at line 53 of file TreasureListPanel.cpp.

References create_treasure(), identify(), say::item, myDifficulty, myGenerated, AssetTWrapperPanel< treasurelist >::myItem, object_free(), object_new(), object_remove(), CREUtils::objectNode(), and rotate-tower::result.

Referenced by CRETreasurePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateItem()

void CRETreasurePanel::updateItem ( )
overridevirtual

Called when myItem is updated.

Implements AssetTWrapperPanel< treasurelist >.

Definition at line 49 of file TreasureListPanel.cpp.

References myGenerated.

Field Documentation

◆ myDifficulty

QSpinBox* CRETreasurePanel::myDifficulty
protected

Definition at line 41 of file TreasureListPanel.h.

Referenced by CRETreasurePanel(), and onGenerate().

◆ myGenerated

QTreeWidget* CRETreasurePanel::myGenerated
protected

Definition at line 40 of file TreasureListPanel.h.

Referenced by CRETreasurePanel(), onGenerate(), and updateItem().


The documentation for this class was generated from the following files: