Crossfire Server, Trunk
SoundFile Class Reference

#include <SoundFile.h>

+ Inheritance diagram for SoundFile:
+ Collaboration diagram for SoundFile:

Public Member Functions

virtual QString displayName () const override
 
const std::vector< std::string > & events () const
 
std::vector< LicenseManager::LicenseItem > & license ()
 
 SoundFile (const std::vector< std::string > &events, AssetWrapper *parent, const QString &name)
 
- Public Member Functions inherited from AssetWrapper
 AssetWrapper (AssetWrapper *parent, const QString &panelName="empty")
 
virtual bool canDrag () const
 
virtual bool canDrop (const QMimeData *, int) const
 
virtual AssetWrapperchild (int)
 
virtual int childIndex (AssetWrapper *)
 
virtual int childrenCount () const
 
virtual QIcon displayIcon () const
 
virtual QString displayPanelName () const
 
AssetWrapperdisplayParent () const
 
virtual void drag (QMimeData *) const
 
virtual void drop (const QMimeData *, int)
 
virtual void fillMenu (QMenu *)
 
void markModified (ChangeType change, int extra=0)
 
AssetWrapperself ()
 
void setDisplayParent (AssetWrapper *parent)
 
virtual PossibleUse uses (const AssetWrapper *, std::string &) const
 
virtual ~AssetWrapper () override
 

Private Attributes

std::vector< std::string > myEvents
 
std::vector< LicenseManager::LicenseItemmyLicense
 
QString myName
 

Additional Inherited Members

- Public Types inherited from AssetWrapper
enum  ChangeType {
  AssetUpdated, BeforeChildAdd, AfterChildAdd, BeforeChildRemove,
  AfterChildRemove, BeforeLayoutChange, AfterLayoutChange
}
 
enum  PossibleUse { Uses, ChildrenMayUse, DoesntUse }
 
- Public Slots inherited from AssetWrapper
virtual void removeChild (AssetWrapper *)
 
- Signals inherited from AssetWrapper
void dataModified (AssetWrapper *asset, AssetWrapper::ChangeType type, int extra)
 
void modified ()
 
- Static Public Member Functions inherited from AssetWrapper
static bool compareByDisplayName (const AssetWrapper *left, const AssetWrapper *right)
 
- Static Public Attributes inherited from AssetWrapper
static const char * tipProperty = "_cre_internal"
 
- Protected Member Functions inherited from AssetWrapper
virtual void wasModified (AssetWrapper *asset, ChangeType type, int extra)
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Detailed Description

Definition at line 19 of file SoundFile.h.

Constructor & Destructor Documentation

◆ SoundFile()

SoundFile::SoundFile ( const std::vector< std::string > &  events,
AssetWrapper parent,
const QString &  name 
)

Definition at line 16 of file SoundFile.cpp.

Member Function Documentation

◆ displayName()

virtual QString SoundFile::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 23 of file SoundFile.h.

References myName.

◆ events()

const std::vector<std::string>& SoundFile::events ( ) const
inline

Definition at line 27 of file SoundFile.h.

References myEvents.

◆ license()

std::vector<LicenseManager::LicenseItem>& SoundFile::license ( )
inline

Definition at line 25 of file SoundFile.h.

References myLicense.

Referenced by SoundFilePanel::updateItem().

+ Here is the caller graph for this function:

Field Documentation

◆ myEvents

std::vector<std::string> SoundFile::myEvents
private

Definition at line 32 of file SoundFile.h.

Referenced by events().

◆ myLicense

std::vector<LicenseManager::LicenseItem> SoundFile::myLicense
private

Definition at line 31 of file SoundFile.h.

Referenced by license().

◆ myName

QString SoundFile::myName
private

Definition at line 30 of file SoundFile.h.

Referenced by displayName().


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