diff options
author | Florian Jung <flo@windfisch.org> | 2012-07-01 16:42:16 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2012-07-01 16:42:16 +0000 |
commit | 9c4664d162c537ba4dd4fd8220971c0fb727103a (patch) | |
tree | 37a28b7cd4e4d8984ad4934a4884cd7b4da0505c /muse2/muse/part.h | |
parent | e87fedf1be804f7ec774071d844b1f163be30b96 (diff) |
final merge
Diffstat (limited to 'muse2/muse/part.h')
-rw-r--r-- | muse2/muse/part.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/muse2/muse/part.h b/muse2/muse/part.h index f2bc342b..357ec1db 100644 --- a/muse2/muse/part.h +++ b/muse2/muse/part.h @@ -76,14 +76,13 @@ class Part : public PosLen { bool _mute; int _colorIndex; - int _hiddenEvents; // Combination of HiddenEventsType. - protected: Track* _track; EventList* _events; Part* _prevClone; Part* _nextClone; - + int _hiddenEvents; // Combination of HiddenEventsType. + public: Part(Track*); Part(Track*, EventList*); @@ -114,7 +113,7 @@ class Part : public PosLen { void setNextClone(Part* p) { _nextClone = p; } // Returns combination of HiddenEventsType enum. - int hasHiddenEvents(); + virtual int hasHiddenEvents() = 0; // If repeated calls to hasHiddenEvents() are desired, then to avoid re-iteration of the event list, // call this after hasHiddenEvents(). int cachedHasHiddenEvents() const { return _hiddenEvents; } @@ -140,7 +139,9 @@ class MidiPart : public Part { virtual ~MidiPart() {} virtual MidiPart* clone() const; MidiTrack* track() const { return (MidiTrack*)Part::track(); } - + // Returns combination of HiddenEventsType enum. + int hasHiddenEvents(); + virtual void dump(int n = 0) const; }; @@ -161,6 +162,8 @@ class WavePart : public Part { virtual ~WavePart() {} virtual WavePart* clone() const; WaveTrack* track() const { return (WaveTrack*)Part::track(); } + // Returns combination of HiddenEventsType enum. + int hasHiddenEvents(); virtual void dump(int n = 0) const; }; |