Crossfire Server, Trunk
SoundFiles Class Reference

#include <SoundFiles.h>

+ Inheritance diagram for SoundFiles:
+ Collaboration diagram for SoundFiles:

Public Member Functions

virtual AssetWrapperchild (int index) override
 
virtual int childIndex (AssetWrapper *child) override
 
virtual int childrenCount () const override
 
virtual QString displayName () const override
 
QString licenseInformation () const
 
void refreshSounds ()
 
 SoundFiles (AssetWrapper *parent)
 
- 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 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
 

Protected Attributes

std::vector< SoundFile * > mySounds
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

Properties

QString licenseInformation
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

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)
 

Detailed Description

Definition at line 20 of file SoundFiles.h.

Constructor & Destructor Documentation

◆ SoundFiles()

SoundFiles::SoundFiles ( AssetWrapper parent)

Definition at line 22 of file SoundFiles.cpp.

References refreshSounds(), and AssetWrapper::tipProperty.

+ Here is the call graph for this function:

Member Function Documentation

◆ child()

AssetWrapper * SoundFiles::child ( int  index)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 93 of file SoundFiles.cpp.

References npc_dialog::index, and mySounds.

Referenced by childIndex().

+ Here is the caller graph for this function:

◆ childIndex()

int SoundFiles::childIndex ( AssetWrapper child)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 97 of file SoundFiles.cpp.

References child(), and mySounds.

+ Here is the call graph for this function:

◆ childrenCount()

virtual int SoundFiles::childrenCount ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 31 of file SoundFiles.h.

References mySounds.

◆ displayName()

virtual QString SoundFiles::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 27 of file SoundFiles.h.

◆ licenseInformation()

QString SoundFiles::licenseInformation ( ) const

◆ refreshSounds()

Field Documentation

◆ mySounds

std::vector<SoundFile *> SoundFiles::mySounds
protected

Definition at line 38 of file SoundFiles.h.

Referenced by child(), childIndex(), childrenCount(), and refreshSounds().

Property Documentation

◆ licenseInformation

QString SoundFiles::licenseInformation
read

Definition at line 23 of file SoundFiles.h.


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