Crossfire Server, Trunk
SoundFilePanel Class Reference

#include <SoundFilePanel.h>

+ Inheritance diagram for SoundFilePanel:
+ Collaboration diagram for SoundFilePanel:

Public Member Functions

 SoundFilePanel (QWidget *parent, AssetModel *model)
 
virtual void updateItem ()
 
- Public Member Functions inherited from AssetSWrapperPanel< SoundFile >
 AssetSWrapperPanel (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, 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 ()
 

Private Attributes

QTreeWidget * myLicense
 

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)
 
- Protected Attributes inherited from AssetSWrapperPanel< SoundFile >
SoundFilemyItem
 
- Protected Attributes inherited from AssetWrapperPanel
AssetWrappermyAsset
 
QMetaObject::Connection myChanged
 
QMetaObject::Connection myDelete
 
bool myInhibit
 
QGridLayout * myLayout
 
QList< PropertyLinkmyLinks
 
QTabWidget * myTab
 

Detailed Description

Definition at line 22 of file SoundFilePanel.h.

Constructor & Destructor Documentation

◆ SoundFilePanel()

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

Definition at line 15 of file SoundFilePanel.cpp.

References AssetWrapperPanel::addAssetUseTree(), AssetWrapperPanel::addLabel(), AssetWrapperPanel::addWidget(), and myLicense.

+ Here is the call graph for this function:

Member Function Documentation

◆ updateItem()

void SoundFilePanel::updateItem ( )
virtual

Called when myItem was updated.

Implements AssetSWrapperPanel< SoundFile >.

Definition at line 23 of file SoundFilePanel.cpp.

References SoundFile::license(), AssetSWrapperPanel< SoundFile >::myItem, and myLicense.

+ Here is the call graph for this function:

Field Documentation

◆ myLicense

QTreeWidget* SoundFilePanel::myLicense
private

Definition at line 30 of file SoundFilePanel.h.

Referenced by SoundFilePanel(), and updateItem().


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