svcore
1.9
|
#include <PlayParameterRepository.h>
Classes | |
class | EditCommand |
Signals | |
void | playParametersChanged (int playableId) |
void | playClipIdChanged (int playableId, QString) |
Public Member Functions | |
virtual | ~PlayParameterRepository () |
void | addPlayable (int id, const Playable *) |
Register a playable. More... | |
void | removePlayable (int id) |
Unregister a playable. More... | |
void | copyParameters (int fromId, int toId) |
Copy the play parameters from one playable to another. More... | |
std::shared_ptr< PlayParameters > | getPlayParameters (int id) |
Retrieve the play parameters for a playable. More... | |
void | clear () |
Static Public Member Functions | |
static PlayParameterRepository * | getInstance () |
Protected Types | |
typedef std::map< int, std::shared_ptr< PlayParameters > > | PlayableParameterMap |
Protected Slots | |
void | playParametersChanged () |
void | playClipIdChanged (QString) |
Protected Attributes | |
PlayableParameterMap | m_playParameters |
Static Protected Attributes | |
static PlayParameterRepository * | m_instance = new PlayParameterRepository |
Detailed Description
Definition at line 30 of file PlayParameterRepository.h.
Member Typedef Documentation
|
protected |
Definition at line 91 of file PlayParameterRepository.h.
Constructor & Destructor Documentation
|
virtual |
Definition at line 31 of file PlayParameterRepository.cpp.
Member Function Documentation
|
static |
Definition at line 26 of file PlayParameterRepository.cpp.
References m_instance.
Referenced by WritableWaveFileModel::init(), NoteModel::NoteModel(), ReadOnlyWaveFileModel::ReadOnlyWaveFileModel(), SparseOneDimensionalModel::SparseOneDimensionalModel(), SparseTimeValueModel::SparseTimeValueModel(), NoteModel::~NoteModel(), ReadOnlyWaveFileModel::~ReadOnlyWaveFileModel(), SparseOneDimensionalModel::~SparseOneDimensionalModel(), SparseTimeValueModel::~SparseTimeValueModel(), and WritableWaveFileModel::~WritableWaveFileModel().
void PlayParameterRepository::addPlayable | ( | int | id, |
const Playable * | playable | ||
) |
Register a playable.
The id can be anything you like, so long as it is unique among playables.
Definition at line 36 of file PlayParameterRepository.cpp.
References Playable::getDefaultPlayAudible(), Playable::getDefaultPlayClipId(), getPlayParameters(), m_playParameters, playClipIdChanged(), and playParametersChanged().
Referenced by WritableWaveFileModel::init(), NoteModel::NoteModel(), ReadOnlyWaveFileModel::ReadOnlyWaveFileModel(), SparseOneDimensionalModel::SparseOneDimensionalModel(), and SparseTimeValueModel::SparseTimeValueModel().
void PlayParameterRepository::removePlayable | ( | int | id | ) |
Unregister a playable.
This must happen before a playable is deleted.
Definition at line 61 of file PlayParameterRepository.cpp.
References m_playParameters.
Referenced by NoteModel::~NoteModel(), ReadOnlyWaveFileModel::~ReadOnlyWaveFileModel(), SparseOneDimensionalModel::~SparseOneDimensionalModel(), SparseTimeValueModel::~SparseTimeValueModel(), and WritableWaveFileModel::~WritableWaveFileModel().
void PlayParameterRepository::copyParameters | ( | int | fromId, |
int | toId | ||
) |
Copy the play parameters from one playable to another.
Definition at line 70 of file PlayParameterRepository.cpp.
References getPlayParameters().
std::shared_ptr< PlayParameters > PlayParameterRepository::getPlayParameters | ( | int | id | ) |
Retrieve the play parameters for a playable.
Definition at line 84 of file PlayParameterRepository.cpp.
References m_playParameters.
Referenced by addPlayable(), and copyParameters().
void PlayParameterRepository::clear | ( | ) |
Definition at line 117 of file PlayParameterRepository.cpp.
References m_playParameters.
|
signal |
|
signal |
Referenced by addPlayable(), and playClipIdChanged().
|
protectedslot |
Definition at line 93 of file PlayParameterRepository.cpp.
References m_playParameters.
Referenced by addPlayable().
|
protectedslot |
Definition at line 105 of file PlayParameterRepository.cpp.
References m_playParameters, and playClipIdChanged().
Member Data Documentation
|
protected |
Definition at line 92 of file PlayParameterRepository.h.
Referenced by addPlayable(), clear(), getPlayParameters(), playClipIdChanged(), playParametersChanged(), and removePlayable().
|
staticprotected |
Definition at line 94 of file PlayParameterRepository.h.
Referenced by getInstance().
The documentation for this class was generated from the following files:
Generated by 1.8.11