Crossfire Server, Trunk
|
#include <SoundFiles.h>
Public Member Functions | |
virtual AssetWrapper * | child (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 |
AssetWrapper * | displayParent () const |
virtual void | drag (QMimeData *) const |
virtual void | drop (const QMimeData *, int) |
virtual void | fillMenu (QMenu *) |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
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 |
AssetWrapper * | myParent |
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) |
Definition at line 20 of file SoundFiles.h.
SoundFiles::SoundFiles | ( | AssetWrapper * | parent | ) |
Definition at line 22 of file SoundFiles.cpp.
References refreshSounds(), and AssetWrapper::tipProperty.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 93 of file SoundFiles.cpp.
References npc_dialog::index, and mySounds.
Referenced by childIndex().
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 97 of file SoundFiles.cpp.
References child(), and mySounds.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements AssetWrapper.
Definition at line 27 of file SoundFiles.h.
QString SoundFiles::licenseInformation | ( | ) | const |
void SoundFiles::refreshSounds | ( | ) |
Definition at line 27 of file SoundFiles.cpp.
References AssetWrapper::AfterLayoutChange, AssetWrapper::BeforeLayoutChange, bufferreader_destroy(), bufferreader_init_from_file(), events, mad_mage_user::file, is_valid_types_gen::line, llevError, AssetWrapper::markModified(), mySounds, bigchest::Name, give::name, LicenseManager::parseLicenseFile(), python_init::path, settings, and split().
Referenced by SoundFiles().
|
protected |
Definition at line 38 of file SoundFiles.h.
Referenced by child(), childIndex(), childrenCount(), and refreshSounds().
|
read |
Definition at line 23 of file SoundFiles.h.