Crossfire Server, Trunk
GameSound Class Reference

#include <GameSound.h>

+ Inheritance diagram for GameSound:
+ Collaboration diagram for GameSound:

Public Member Functions

const QString & description () const
 
virtual QString displayName () const
 
 GameSound (AssetWrapper *parent, const QString &name, const QString &description)
 
virtual PossibleUse uses (const AssetWrapper *asset, std::string &) const override
 
- 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 ~AssetWrapper () override
 

Properties

QString description
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Private Attributes

QString myDescription
 
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
 

Detailed Description

Definition at line 18 of file GameSound.h.

Constructor & Destructor Documentation

◆ GameSound()

GameSound::GameSound ( AssetWrapper parent,
const QString &  name,
const QString &  description 
)

Definition at line 16 of file GameSound.cpp.

Member Function Documentation

◆ description()

const QString& GameSound::description ( ) const
inline

Definition at line 26 of file GameSound.h.

References myDescription.

◆ displayName()

virtual QString GameSound::displayName ( ) const
inlinevirtual

Implements AssetWrapper.

Definition at line 25 of file GameSound.h.

References myName.

◆ uses()

AssetWrapper::PossibleUse GameSound::uses ( const AssetWrapper asset,
std::string &   
) const
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 20 of file GameSound.cpp.

References AssetWrapper::DoesntUse, animate::event, and AssetWrapper::Uses.

Field Documentation

◆ myDescription

QString GameSound::myDescription
private

Definition at line 32 of file GameSound.h.

Referenced by description().

◆ myName

QString GameSound::myName
private

Definition at line 31 of file GameSound.h.

Referenced by displayName().

Property Documentation

◆ description

QString GameSound::description
read

Definition at line 21 of file GameSound.h.


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