Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
sheet.h
Go to the documentation of this file.
1
8
#ifndef SHEET_H_
9
#define SHEET_H_
10
11
#include <QString>
12
#include <QList>
13
14
#include "
core/context.h
"
15
#include "
core/staff.h
"
16
17
class
CADocument
;
18
class
CAPlayable
;
19
20
class
CASheet
{
21
public
:
22
CASheet
(
const
QString
name
,
CADocument
*doc );
23
~CASheet
();
24
CASheet
*
clone
(
CADocument
*doc );
25
inline
CASheet
*
clone
() {
return
clone
(
document
() ); }
26
27
CAContext
*
contextAt
(
int
i) {
return
_contextList
[i]; }
28
CAContext
*
context
(
const
QString name);
29
inline
QList<CAContext*>&
contextList
() {
return
_contextList
; }
30
inline
int
contextIndex
(
CAContext
*
context
) {
return
_contextList
.indexOf(context); }
31
void
insertContextAfter
(
CAContext
*after,
CAContext
*c);
32
void
addContext
(
CAContext
*);
33
inline
void
removeContext
(
CAContext
* c) {
_contextList
.removeAll(c); }
34
inline
int
contextCount
() {
return
_contextList
.size(); }
35
36
CAStaff
*
addStaff
();
37
int
staffCount
();
38
CAStaff
*
staffAt
(
int
i);
39
QList<CAStaff*>
staffList
();
40
41
QList<CAVoice*>
voiceList
();
42
inline
CAVoice
*
voiceAt
(
int
i) {
return
voiceList
().at(i); }
43
inline
int
voiceCount
() {
return
voiceList
().size(); }
44
45
QList<CAPlayable*>
getChord
(
int
time);
46
47
inline
CADocument
*
document
() {
return
_document
; }
48
inline
void
setDocument
(
CADocument
*doc) {
_document
= doc; }
49
50
inline
const
QString
name
() {
return
_name
; }
51
inline
void
setName
(
const
QString name) {
_name
=
name
; }
52
53
void
clear
();
54
55
private
:
56
QList<CAContext *>
_contextList
;
57
CADocument
*
_document
;
58
59
QString
_name
;
60
};
61
#endif
/*SHEET_H_*/
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3