00001 #ifndef SORTEDNOTES_H
00002 #define SORTEDNOTES_H
00003 #include "NoteMC.h"
00004 #include <qptrlist.h>
00005 #include "VoiceMC.h"
00006
00014 class SortedNotes:public QPtrList<NoteMusic>{
00015 protected:
00016 int compareItems( QPtrCollection::Item d1, QPtrCollection::Item d2);
00017 int localNumerator;
00018 int UTFactor;
00019 public:
00020 SortedNotes();
00021 void append(NoteMusic *);
00022
00023 void setUTFactor(int);
00024 int getUTFactor();
00025 void sort();
00026 int getLocalNumerator();
00027 void setLocalNumerator(int);
00028 QPtrList<NoteMusic> duplicateNotes();
00029 QString toString();
00030
00031 };
00032 #endif