Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
functionmarkcontext.h
Go to the documentation of this file.
1 
8 #ifndef FUNCTIONMARKCONTEXT_H_
9 #define FUNCTIONMARKCONTEXT_H_
10 
11 #include <QString>
12 #include <QList>
13 
14 #include "core/context.h"
15 
16 class CASheet;
17 class CAFunctionMark;
18 
20 public:
21  CAFunctionMarkContext( const QString name, CASheet *sheet );
24 
25  int functionMarkCount(int timeStart=0);
26  inline CAFunctionMark *functionMarkAt(int idx) { return _functionMarkList[idx]; }
27  void addFunctionMark(CAFunctionMark *mark, bool replace=true);
28  void addEmptyFunction( int timeStart, int timeLength );
29  inline QList<CAFunctionMark*> functionMarkList() { return _functionMarkList; }
30  void repositFunctions();
31 
32  void clear();
35  bool remove( CAMusElement *elt );
36 
37 private:
38  QList<CAFunctionMark*> _functionMarkList;
39 };
40 #endif /* FUNCTIONMARKCONTEXT_H_*/