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
context.h
Go to the documentation of this file.
1
8
#ifndef CONTEXT_H_
9
#define CONTEXT_H_
10
11
#include <QString>
12
13
class
CASheet
;
14
class
CAMusElement
;
15
16
class
CAContext
{
17
public
:
18
CAContext
(
const
QString
name
,
CASheet
*s );
19
virtual
~CAContext
();
20
virtual
CAContext
*
clone
(
CASheet
* ) = 0;
21
22
enum
CAContextType
{
23
Staff
,
24
FunctionMarkContext
,
25
LyricsContext
26
};
27
28
const
QString
name
() {
return
_name
; }
29
void
setName
(
const
QString name) {
_name
=
name
; }
30
31
CAContextType
contextType
() {
return
_contextType
; }
32
33
CASheet
*
sheet
() {
return
_sheet
; }
34
void
setSheet
(
CASheet
*
sheet
) {
_sheet
=
sheet
; }
35
36
virtual
void
clear
() = 0;
37
virtual
CAMusElement
*
next
(
CAMusElement
*elt) = 0;
38
virtual
CAMusElement
*
previous
(
CAMusElement
*elt) = 0;
39
virtual
bool
remove
(
CAMusElement
*elt ) = 0;
40
41
protected
:
42
void
setContextType
(
CAContextType
t ) {
_contextType
= t; }
43
44
CASheet
*
_sheet
;
45
QString
_name
;
46
CAContextType
_contextType
;
47
};
48
#endif
/* CONTEXT_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3