Crossfire Server, Trunk
AssetTWrapperPanel< T > Class Template Referenceabstract

#include <AssetWrapperPanel.h>

+ Inheritance diagram for AssetTWrapperPanel< T >:
+ Collaboration diagram for AssetTWrapperPanel< T >:

Public Member Functions

 AssetTWrapperPanel (QWidget *parent)
 
virtual void setAsset (AssetWrapper *asset) override
 
virtual void updateItem ()=0
 
- 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 ~AssetWrapperPanel ()
 

Protected Attributes

T * myItem
 
- 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

template<typename T>
class AssetTWrapperPanel< T >

Panel displaying information about a AssetTWrapper.

Definition at line 92 of file AssetWrapperPanel.h.

Constructor & Destructor Documentation

◆ AssetTWrapperPanel()

template<typename T >
AssetTWrapperPanel< T >::AssetTWrapperPanel ( QWidget *  parent)
inline

Definition at line 94 of file AssetWrapperPanel.h.

Member Function Documentation

◆ setAsset()

template<typename T >
virtual void AssetTWrapperPanel< T >::setAsset ( AssetWrapper asset)
inlineoverridevirtual

Reimplemented from AssetWrapperPanel.

Definition at line 96 of file AssetWrapperPanel.h.

◆ updateItem()

template<typename T >
virtual void AssetTWrapperPanel< T >::updateItem ( )
pure virtual

Called when myItem is updated.

Implemented in ArtifactPanel, CREFacePanel, AnimationPanel, CRETreasurePanel, FacesetsPanel, RecipePanel, and ArtifactListPanel.

Referenced by AssetTWrapperPanel< recipe >::setAsset().

+ Here is the caller graph for this function:

Field Documentation

◆ myItem

template<typename T >
T* AssetTWrapperPanel< T >::myItem
protected

Item to display.

Definition at line 106 of file AssetWrapperPanel.h.

Referenced by AssetTWrapperPanel< recipe >::setAsset().


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