Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
text.h
Go to the documentation of this file.
1 
8 #ifndef TEXT_H_
9 #define TEXT_H_
10 
11 #include <QString>
12 #include "core/mark.h"
13 
14 class CAText : public CAMark {
15 public:
16  CAText( const QString text, CAPlayable *m );
17  virtual ~CAText();
18 
19  inline const QString text() { return _text; }
20  inline void setText( const QString t ) { _text = t; }
21 
22  CAText* clone(CAMusElement* elt=0);
23  int compare(CAMusElement *elt);
24 
25 private:
26  QString _text;
27 };
28 
29 #endif /* TEXT_H_ */
Text sign.
Definition: text.h:14
QString _text
Definition: text.h:26
CAText * clone(CAMusElement *elt=0)
Definition: text.cpp:26
Marks that depend on other music elements.
Definition: mark.h:15
virtual ~CAText()
Definition: text.cpp:23
An abstract class which represents every music element in the score.
Definition: muselement.h:20
const QString text()
Definition: text.h:19
Playable instances of music elements.
Definition: playable.h:18
CAText(const QString text, CAPlayable *m)
Definition: text.cpp:18
void setText(const QString t)
Definition: text.h:20
int compare(CAMusElement *elt)
Definition: text.cpp:30