Crossfire Server, Trunk
TreasurePanel Class Reference

#include <TreasurePanel.h>

+ Inheritance diagram for TreasurePanel:
+ Collaboration diagram for TreasurePanel:

Public Member Functions

 TreasurePanel (QWidget *parent)
 
- 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, 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)
 
TreasureListComboBoxaddTreasureList (const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
 
 AssetWrapperPanel (QWidget *parent)
 
virtual void setAsset (AssetWrapper *item)
 
virtual ~AssetWrapperPanel ()
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event) override
 
virtual void dragMoveEvent (QDragMoveEvent *event) override
 
virtual void dropEvent (QDropEvent *event) override
 
- 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

ArchetypeComboBoxmyArch
 
TreasureListComboBoxmyList
 
- 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 ()
 

Detailed Description

Display and allow edition of a treasure in a treasure list.

Definition at line 26 of file TreasurePanel.h.

Constructor & Destructor Documentation

◆ TreasurePanel()

TreasurePanel::TreasurePanel ( QWidget *  parent)

Member Function Documentation

◆ dragEnterEvent()

void TreasurePanel::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual

Definition at line 36 of file TreasurePanel.cpp.

References MimeUtils::Archetype, animate::event, and MimeUtils::TreasureList.

◆ dragMoveEvent()

void TreasurePanel::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotectedvirtual

Definition at line 42 of file TreasurePanel.cpp.

◆ dropEvent()

void TreasurePanel::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual

Field Documentation

◆ myArch

ArchetypeComboBox* TreasurePanel::myArch
protected

Definition at line 33 of file TreasurePanel.h.

Referenced by dropEvent(), and TreasurePanel().

◆ myList

TreasureListComboBox* TreasurePanel::myList
protected

Definition at line 34 of file TreasurePanel.h.

Referenced by dropEvent(), and TreasurePanel().


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