13 #ifndef __STAFFTEXTBASE_H__ 14 #define __STAFFTEXTBASE_H__ 36 QString _channelNames[4];
39 bool _setAeolusStops {
false };
40 int aeolusStops[4] { 0, 0, 0, 0 };
41 bool _swing {
false };
47 virtual void write(
XmlWriter& xml)
const override;
49 virtual bool readProperties(
XmlReader&)
override;
52 QString
channelName(
int voice)
const {
return _channelNames[voice]; }
55 const QList<ChannelActions>*
channelActions()
const {
return &_channelActions; }
58 void clearAeolusStops();
59 void setAeolusStop(
int group,
int idx,
bool val);
60 bool getAeolusStop(
int group,
int idx)
const;
62 void setSwing(
bool checked) { _swing = checked; }
63 void setCapo(
int fretId) { _capo = fretId; }
65 bool swing()
const {
return _swing; }
66 int capo()
const {
return _capo; }
int swingUnit
Definition: staff.h:53
int swingRatio
Definition: staff.h:54
QList< ChannelActions > _channelActions
Definition: stafftextbase.h:37
QFlags< ElementFlag > ElementFlags
Definition: element.h:101
bool swing() const
Definition: stafftextbase.h:65
bool setAeolusStops() const
Definition: stafftextbase.h:64
void setChannelName(int v, const QString &s)
Definition: stafftextbase.h:53
const QList< ChannelActions > * channelActions() const
Definition: stafftextbase.h:55
int channel
Definition: stafftextbase.h:27
Definition: stafftextbase.h:35
SwingParameters _swingParameters
Definition: stafftextbase.h:38
Tid
Enumerates the list of built-in text substyles.
Definition: types.h:371
QList< ChannelActions > * channelActions()
Definition: stafftextbase.h:56
Definition: stafftextbase.h:26
Definition: textbase.h:217
const SwingParameters * swingParameters() const
Definition: stafftextbase.h:57
Definition: aeolus.cpp:26
int capo() const
Definition: stafftextbase.h:66
void setCapo(int fretId)
Definition: stafftextbase.h:63
void setSwingParameters(int unit, int ratio)
Definition: stafftextbase.h:54
void setSetAeolusStops(bool val)
Definition: stafftextbase.h:61
QStringList midiActionNames
Definition: stafftextbase.h:28
void setSwing(bool checked)
Definition: stafftextbase.h:62
QString channelName(int voice) const
Definition: stafftextbase.h:52
Definition of class Staff.