Mercurial > hg > svcore
annotate base/PlayParameterRepository.h @ 30:a6ef94ecbe74
* As previous commit
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:11:08 +0000 |
parents | 8460b3bf8f04 |
children | 39ae3dee27b9 |
rev | line source |
---|---|
Chris@28 | 1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@28 | 2 |
Chris@28 | 3 /* |
Chris@28 | 4 A waveform viewer and audio annotation editor. |
Chris@28 | 5 Chris Cannam, Queen Mary University of London, 2005-2006 |
Chris@28 | 6 |
Chris@28 | 7 This is experimental software. Not for distribution. |
Chris@28 | 8 */ |
Chris@28 | 9 |
Chris@28 | 10 #ifndef _PLAY_PARAMETER_REPOSITORY_H_ |
Chris@28 | 11 #define _PLAY_PARAMETER_REPOSITORY_H_ |
Chris@28 | 12 |
Chris@28 | 13 class PlayParameters; |
Chris@28 | 14 class Model; |
Chris@28 | 15 |
Chris@28 | 16 #include <map> |
Chris@28 | 17 |
Chris@29 | 18 #include <QObject> |
Chris@29 | 19 |
Chris@29 | 20 class PlayParameterRepository : public QObject |
Chris@28 | 21 { |
Chris@29 | 22 Q_OBJECT |
Chris@29 | 23 |
Chris@28 | 24 public: |
Chris@28 | 25 static PlayParameterRepository *instance(); |
Chris@28 | 26 |
Chris@28 | 27 virtual ~PlayParameterRepository(); |
Chris@28 | 28 |
Chris@30 | 29 void addModel(const Model *model); |
Chris@30 | 30 void removeModel(const Model *model); |
Chris@30 | 31 |
Chris@30 | 32 PlayParameters *getPlayParameters(const Model *model) const; |
Chris@28 | 33 |
Chris@28 | 34 void clear(); |
Chris@28 | 35 |
Chris@29 | 36 signals: |
Chris@29 | 37 void playParametersChanged(PlayParameters *); |
Chris@29 | 38 |
Chris@29 | 39 protected slots: |
Chris@29 | 40 void playParametersChanged(); |
Chris@29 | 41 |
Chris@28 | 42 protected: |
Chris@28 | 43 std::map<const Model *, PlayParameters *> m_playParameters; |
Chris@28 | 44 |
Chris@28 | 45 static PlayParameterRepository *m_instance; |
Chris@28 | 46 }; |
Chris@28 | 47 |
Chris@28 | 48 #endif |