MuseScore  3.4
Music composition and notation
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
Ms::Dynamic Class Referencefinal

dynamics marker; determines midi velocity More...

#include <dynamic.h>

Inheritance diagram for Ms::Dynamic:
Inheritance graph
[legend]
Collaboration diagram for Ms::Dynamic:
Collaboration graph
[legend]

Classes

struct  ChangeSpeedItem
 

Public Types

enum  Type : char {
  Type::OTHER, Type::PPPPPP, Type::PPPPP, Type::PPPP,
  Type::PPP, Type::PP, Type::P, Type::MP,
  Type::MF, Type::F, Type::FF, Type::FFF,
  Type::FFFF, Type::FFFFF, Type::FFFFFF, Type::FP,
  Type::SF, Type::SFZ, Type::SFF, Type::SFFZ,
  Type::SFP, Type::SFPP, Type::RFZ, Type::RF,
  Type::FZ, Type::M, Type::R, Type::S,
  Type::Z
}
 
enum  Range : char { Range::STAFF, Range::PART, Range::SYSTEM }
 
enum  Speed : char { Speed::SLOW, Speed::NORMAL, Speed::FAST }
 
- Public Types inherited from Ms::Element
enum  EditBehavior { EditBehavior::SelectOnly, EditBehavior::Edit }
 

Public Member Functions

 Dynamic (Score *)
 
 Dynamic (const Dynamic &)
 
virtual Dynamicclone () const override
 
virtual ElementType type () const override
 
Segmentsegment () const
 
Measuremeasure () const
 
void setDynamicType (Type val)
 
void setDynamicType (const QString &)
 
QString dynamicTypeName () const
 
Type dynamicType () const
 
virtual int subtype () const override
 
virtual QString subtypeName () const override
 
virtual void layout () override
 
virtual void write (XmlWriter &xml) const override
 
virtual void read (XmlReader &) override
 
virtual bool isEditable () const override
 
virtual void startEdit (EditData &) override
 
virtual void endEdit (EditData &) override
 
virtual void reset () override
 
void setVelocity (int v)
 
int velocity () const
 
Range dynRange () const
 
void setDynRange (Range t)
 
void undoSetDynRange (Range t)
 
int changeInVelocity () const
 
void setChangeInVelocity (int val)
 
Fraction velocityChangeLength () const
 
Speed velChangeSpeed () const
 
void setVelChangeSpeed (Speed val)
 
virtual QVariant getProperty (Pid propertyId) const override
 
virtual bool setProperty (Pid propertyId, const QVariant &) override
 
virtual QVariant propertyDefault (Pid id) const override
 
virtual Pid propertyId (const QStringRef &xmlName) const override
 
virtual QString propertyUserValue (Pid) const override
 
virtual QString accessibleInfo () const override
 
virtual QString screenReaderInfo () const override
 
void doAutoplace ()
 
- Public Member Functions inherited from Ms::TextBase
const FontStylefontStyle () const
 
void setFontStyle (const FontStyle &val)
 
const Alignalign () const
 
void setAlign (const Align &val)
 
const FrameTypeframeType () const
 
void setFrameType (const FrameType &val)
 
const QString & family () const
 
void setFamily (const QString &val)
 
const qreal & size () const
 
void setSize (const qreal &val)
 
const QColor & bgColor () const
 
void setBgColor (const QColor &val)
 
const QColor & frameColor () const
 
void setFrameColor (const QColor &val)
 
const SpatiumframeWidth () const
 
void setFrameWidth (const Spatium &val)
 
const SpatiumpaddingWidth () const
 
void setPaddingWidth (const Spatium &val)
 
const int & frameRound () const
 
void setFrameRound (const int &val)
 
 TextBase (Score *=0, Tid tid=Tid::DEFAULT, ElementFlags=ElementFlag::NOTHING)
 
 TextBase (Score *, ElementFlags)
 
 TextBase (const TextBase &)
 
virtual bool mousePress (EditData &) override
 delivers mouseEvent to element in edit mode returns true if mouse event is accepted by element More...
 
Textoperator= (const Text &)=delete
 
virtual void draw (QPainter *) const override
 
virtual void drawEditMode (QPainter *p, EditData &ed) override
 
void setPlainText (const QString &)
 
void setXmlText (const QString &)
 
QString xmlText () const
 
QString plainText () const
 
void insertText (EditData &, const QString &)
 
virtual void layout1 ()
 
qreal lineSpacing () const
 
qreal lineHeight () const
 
virtual qreal baseLine () const override
 
bool empty () const
 
void clear ()
 
bool layoutToParentWidth () const
 
void setLayoutToParentWidth (bool v)
 
virtual bool edit (EditData &) override
 
virtual void editCut (EditData &) override
 
virtual void editCopy (EditData &) override
 
void movePosition (EditData &, QTextCursor::MoveOperation)
 
bool deleteSelectedText (EditData &)
 
void selectAll (TextCursor *)
 
void multiClickSelect (EditData &, MultiClick)
 
bool isPrimed () const
 
void setPrimed (bool primed)
 
virtual void writeProperties (XmlWriter &xml) const
 
void writeProperties (XmlWriter &xml, bool writeText) const
 
void writeProperties (XmlWriter &, bool, bool) const
 
bool readProperties (XmlReader &)
 
virtual void paste (EditData &)
 
QRectF pageRectangle () const
 
void dragTo (EditData &)
 
virtual QLineF dragAnchor () const override
 
virtual bool acceptDrop (EditData &) const override
 Return true if this element accepts a drop at canvas relative pos of given element type and subtype. More...
 
virtual Elementdrop (EditData &) override
 Handle a dropped element at canvas relative pos of given element type and subtype. More...
 
QString convertFromHtml (const QString &ss) const
 
QList< TextFragmentfragmentList () const
 
bool inHexState () const
 
void endHexState (EditData &)
 
void inputTransition (EditData &, QInputMethodEvent *)
 
QFont font () const
 
QFontMetricsF fontMetrics () const
 
virtual void undoChangeProperty (Pid id, const QVariant &v, PropertyFlags ps) override
 
virtual void styleChanged ()
 
void editInsertText (TextCursor *, const QString &)
 
TextCursorcursor (const EditData &)
 
const TextBlocktextBlock (int line) const
 
TextBlocktextBlock (int line)
 
QList< TextBlock > & textBlockList ()
 
int rows () const
 
void setTextInvalid ()
 
bool isTextInvalid () const
 
void setLayoutInvalid ()
 
bool isLayoutInvalid () const
 
bool hasFrame () const
 
bool circle () const
 
bool square () const
 
Tid tid () const
 
void setTid (Tid id)
 
void initTid (Tid id)
 
void initTid (Tid id, bool preserveDifferent)
 
virtual void initElementStyle (const ElementStyle *) override
 
bool bold () const
 
bool italic () const
 
bool underline () const
 
void setBold (bool val)
 
void setItalic (bool val)
 
void setUnderline (bool val)
 
bool hasCustomFormatting () const
 
- Public Member Functions inherited from Ms::Element
 Element (Score *=0, ElementFlags=ElementFlag::NOTHING)
 
 Element (const Element &)
 
virtual ~Element ()
 
Elementoperator= (const Element &)=delete
 
virtual ElementlinkedClone ()
 
Elementparent () const
 
void setParent (Element *e)
 
MeasurefindMeasure ()
 
const MeasurefindMeasure () const
 
MeasureBasefindMeasureBase ()
 
const MeasureBasefindMeasureBase () const
 
virtual bool isElement () const override
 
qreal spatium () const
 
void setFlag (ElementFlag f, bool v)
 
void setFlag (ElementFlag f, bool v) const
 
bool flag (ElementFlag f) const
 
bool selected () const
 
virtual void setSelected (bool f)
 
bool visible () const
 
virtual void setVisible (bool f)
 
virtual bool sizeIsSpatiumDependent () const override
 
void setSizeIsSpatiumDependent (bool v)
 
Placement placement () const
 
void setPlacement (Placement val)
 
bool placeAbove () const
 
bool placeBelow () const
 
bool generated () const
 
void setGenerated (bool val)
 
Spatium minDistance () const
 
void setMinDistance (Spatium v)
 
OffsetChange offsetChanged () const
 
void setOffsetChanged (bool v, bool absolute=true, const QPointF &diff=QPointF())
 
const QPointF & ipos () const
 
virtual const QPointF pos () const
 
virtual qreal x () const
 
virtual qreal y () const
 
void setPos (qreal x, qreal y)
 
void setPos (const QPointF &p)
 
QPointF & rpos ()
 
qreal & rxpos ()
 
qreal & rypos ()
 
virtual void move (const QPointF &s)
 
virtual QPointF pagePos () const
 position in page coordinates More...
 
virtual QPointF canvasPos () const
 position in canvas coordinates More...
 
qreal pageX () const
 
qreal canvasX () const
 
const QPointF & offset () const
 
virtual void setOffset (const QPointF &o)
 
void setOffset (qreal x, qreal y)
 
QPointF & roffset ()
 
qreal & rxoffset ()
 
qreal & ryoffset ()
 
virtual Fraction tick () const
 
virtual Fraction rtick () const
 
bool isNudged () const
 
virtual const QRectF & bbox () const
 
virtual QRectF & bbox ()
 
virtual qreal height () const
 
virtual void setHeight (qreal v)
 
virtual qreal width () const
 
virtual void setWidth (qreal v)
 
QRectF abbox () const
 
QRectF pageBoundingRect () const
 
QRectF canvasBoundingRect () const
 
virtual void setbbox (const QRectF &r) const
 
virtual void addbbox (const QRectF &r) const
 
bool contains (const QPointF &p) const
 
bool intersects (const QRectF &r) const
 
virtual Shape shape () const
 
void drawAt (QPainter *p, const QPointF &pt) const
 
virtual void startDrag (EditData &)
 
virtual void endDrag (EditData &)
 
virtual void startEditDrag (EditData &)
 
virtual void editDrag (EditData &)
 
virtual void endEditDrag (EditData &)
 
void updateGrips (EditData &) const
 
virtual bool nextGrip (EditData &) const
 
virtual bool prevGrip (EditData &) const
 
virtual QPointF gripAnchor (Grip) const
 
virtual EditBehavior normalModeEditBehavior () const
 
virtual int gripsCount () const
 
virtual Grip initialEditModeGrip () const
 
virtual Grip defaultGrip () const
 
virtual std::vector< QPointF > gripsPositions (const EditData &) const
 
int track () const
 
virtual void setTrack (int val)
 
int z () const
 
void setZ (int val)
 
int staffIdx () const
 
virtual int vStaffIdx () const
 
int voice () const
 
void setVoice (int v)
 
Staffstaff () const
 
StaffTypestaffType () const
 
Partpart () const
 
virtual void add (Element *)
 
virtual void remove (Element *)
 
virtual void change (Element *o, Element *n)
 
virtual void spatiumChanged (qreal, qreal)
 
virtual void localSpatiumChanged (qreal, qreal)
 
virtual void dump () const
 
virtual Q_INVOKABLE QString _name () const
 
virtual QColor color () const
 
QColor curColor () const
 
QColor curColor (bool isVisible) const
 
QColor curColor (bool isVisible, QColor normalColor) const
 
virtual void setColor (const QColor &c)
 
void undoSetColor (const QColor &c)
 
void undoSetVisible (bool v)
 
virtual QByteArray mimeData (const QPointF &) const
 
virtual void scanElements (void *data, void(*func)(void *, Element *), bool all=true)
 
virtual qreal mag () const
 
void setMag (qreal val)
 
qreal magS () const
 
bool isPrintable () const
 
qreal point (const Spatium sp) const
 
bool systemFlag () const
 
void setSystemFlag (bool v) const
 
bool header () const
 
void setHeader (bool v)
 
bool trailer () const
 
void setTrailer (bool val)
 
bool selectable () const
 
void setSelectable (bool val)
 
bool dropTarget () const
 
void setDropTarget (bool v) const
 
bool composition () const
 
void setComposition (bool v) const
 
virtual bool isMovable () const
 
bool enabled () const
 
void setEnabled (bool val)
 
uint tag () const
 
void setTag (uint val)
 
bool autoplace () const
 
virtual void setAutoplace (bool v)
 
bool addToSkyline () const
 
virtual ElementpropertyDelegate (Pid)
 
bool custom (Pid) const
 
virtual bool isUserModified () const
 
void drawSymbol (SymId id, QPainter *p, const QPointF &o=QPointF(), qreal scale=1.0) const
 
void drawSymbol (SymId id, QPainter *p, const QPointF &o, int n) const
 
void drawSymbols (const std::vector< SymId > &, QPainter *p, const QPointF &o=QPointF(), qreal scale=1.0) const
 
void drawSymbols (const std::vector< SymId > &, QPainter *p, const QPointF &o, const QSizeF &scale) const
 
qreal symHeight (SymId id) const
 
qreal symWidth (SymId id) const
 
qreal symWidth (const std::vector< SymId > &) const
 
QRectF symBbox (SymId id) const
 
QRectF symBbox (const std::vector< SymId > &) const
 
QPointF symStemDownNW (SymId id) const
 
QPointF symStemUpSE (SymId id) const
 
QPointF symCutOutNE (SymId id) const
 
QPointF symCutOutNW (SymId id) const
 
QPointF symCutOutSE (SymId id) const
 
QPointF symCutOutSW (SymId id) const
 
qreal symAdvance (SymId id) const
 
bool symIsValid (SymId id) const
 
bool concertPitch () const
 
virtual ElementnextElement ()
 
virtual ElementprevElement ()
 
virtual ElementnextSegmentElement ()
 
virtual ElementprevSegmentElement ()
 
virtual QString accessibleExtraInfo () const
 
virtual void triggerLayout () const
 
virtual void triggerLayoutAll () const
 
void autoplaceSegmentElement (bool above, bool add)
 
void autoplaceMeasureElement (bool above, bool add)
 
void autoplaceSegmentElement (bool add=true)
 
void autoplaceMeasureElement (bool add=true)
 
void autoplaceCalculateOffset (QRectF &r, qreal minDistance)
 
qreal rebaseOffset (bool nox=true)
 
bool rebaseMinDistance (qreal &md, qreal &yd, qreal sp, qreal rebase, bool above, bool fix)
 
qreal styleP (Sid idx) const
 
- Public Member Functions inherited from Ms::ScoreElement
 ScoreElement (Score *s)
 
 ScoreElement (const ScoreElement &se)
 
virtual ~ScoreElement ()
 
Scorescore () const
 
MasterScoremasterScore () const
 
virtual void setScore (Score *s)
 
const char * name () const
 
virtual QString userName () const
 
virtual void resetProperty (Pid id)
 
QVariant propertyDefault (Pid pid, Tid tid) const
 
virtual const ElementStylestyledProperties () const
 
virtual PropertyFlagspropertyFlagsList () const
 
virtual PropertyFlags propertyFlags (Pid) const
 
bool isStyled (Pid pid) const
 
QVariant styleValue (Pid, Sid) const
 
void setPropertyFlags (Pid, PropertyFlags)
 
bool readProperty (const QStringRef &, XmlReader &, Pid)
 
void readProperty (XmlReader &, Pid)
 
bool readStyledProperty (XmlReader &e, const QStringRef &tag)
 
virtual void readAddConnector (ConnectorInfoReader *info, bool pasteMode)
 
void undoChangeProperty (Pid id, const QVariant &)
 
void undoResetProperty (Pid id)
 
void undoPushProperty (Pid)
 
void writeProperty (XmlWriter &xml, Pid id) const
 
void writeStyledProperties (XmlWriter &) const
 
QList< ScoreElement * > linkList () const
 
void linkTo (ScoreElement *)
 
void unlink ()
 
bool isLinked (ScoreElement *)
 return true if se is different and linked to this element More...
 
virtual void undoUnlink ()
 
int lid () const
 
LinkedElementslinks () const
 
void setLinks (LinkedElements *le)
 
bool isNote () const
 
bool isRest () const
 
bool isChord () const
 
bool isBarLine () const
 
bool isArticulation () const
 
bool isFermata () const
 
bool isMarker () const
 
bool isClef () const
 
bool isKeySig () const
 
bool isTimeSig () const
 
bool isMeasure () const
 
bool isTempoText () const
 
bool isBreath () const
 
bool isHBox () const
 
bool isVBox () const
 
bool isTBox () const
 
bool isFBox () const
 
bool isTie () const
 
bool isSlur () const
 
bool isGlissando () const
 
bool isGlissandoSegment () const
 
bool isSystemDivider () const
 
bool isRehearsalMark () const
 
bool isHarmony () const
 
bool isVolta () const
 
bool isJump () const
 
bool isOttava () const
 
bool isLayoutBreak () const
 
bool isSegment () const
 
bool isTremolo () const
 
bool isSystem () const
 
bool isLyrics () const
 
bool isStem () const
 
bool isBeam () const
 
bool isHook () const
 
bool isStemSlash () const
 
bool isSlurSegment () const
 
bool isTieSegment () const
 
bool isSpacer () const
 
bool isStaffLines () const
 
bool isAmbitus () const
 
bool isBracket () const
 
bool isInstrumentChange () const
 
bool isStaffTypeChange () const
 
bool isHairpin () const
 
bool isHairpinSegment () const
 
bool isBend () const
 
bool isTremoloBar () const
 
bool isRepeatMeasure () const
 
bool isTuplet () const
 
bool isNoteDot () const
 
bool isDynamic () const
 
bool isInstrumentName () const
 
bool isAccidental () const
 
bool isTextLine () const
 
bool isTextLineSegment () const
 
bool isPedal () const
 
bool isPedalSegment () const
 
bool isOttavaSegment () const
 
bool isLedgerLine () const
 
bool isIcon () const
 
bool isVoltaSegment () const
 
bool isNoteLine () const
 
bool isTrill () const
 
bool isTrillSegment () const
 
bool isLetRing () const
 
bool isLetRingSegment () const
 
bool isVibrato () const
 
bool isPalmMute () const
 
bool isPalmMuteSegment () const
 
bool isVibratoSegment () const
 
bool isSymbol () const
 
bool isFSymbol () const
 
bool isFingering () const
 
bool isNoteHead () const
 
bool isLyricsLine () const
 
bool isLyricsLineSegment () const
 
bool isFiguredBass () const
 
bool isStaffState () const
 
bool isArpeggio () const
 
bool isImage () const
 
bool isChordLine () const
 
bool isFretDiagram () const
 
bool isPage () const
 
bool isText () const
 
bool isMeasureNumber () const
 
bool isStaffText () const
 
bool isSystemText () const
 
bool isBracketItem () const
 
bool isScore () const
 
bool isStaff () const
 
bool isPart () const
 
bool isBagpipeEmbellishment () const
 
bool isLasso () const
 
bool isSticking () const
 
bool isChordRest () const
 
bool isDurationElement () const
 
bool isSlurTieSegment () const
 
bool isSLineSegment () const
 
bool isBox () const
 
bool isVBoxBase () const
 
bool isMeasureBase () const
 
bool isTextBase () const
 
bool isTextLineBaseSegment () const
 
bool isLineSegment () const
 
bool isSpannerSegment () const
 
bool isBSymbol () const
 
bool isTextLineBase () const
 
bool isSLine () const
 
bool isSpanner () const
 
bool isStaffTextBase () const
 

Static Public Member Functions

static QString dynamicTypeName (Dynamic::Type type)
 
static QString speedToName (Speed speed)
 
static Speed nameToSpeed (QString name)
 
- Static Public Member Functions inherited from Ms::TextBase
static QString convertToHtml (const QString &, const TextStyle &)
 
static QString tagEscape (QString s)
 
static QString unEscape (QString s)
 
static QString escape (QString s)
 
static bool validateText (QString &s)
 
- Static Public Member Functions inherited from Ms::Element
static ElementType readType (XmlReader &node, QPointF *, Fraction *)
 
static ElementreadMimeData (Score *score, const QByteArray &data, QPointF *, Fraction *)
 
static Ms::Elementcreate (Ms::ElementType type, Score *)
 
static Elementname2Element (const QStringRef &, Score *)
 
- Static Public Member Functions inherited from Ms::ScoreElement
static ElementType name2type (const QStringRef &, bool silent=false)
 
static ElementType name2type (const QString &s)
 
static const char * name (ElementType)
 

Static Public Attributes

static const std::vector< ChangeSpeedItemchangeSpeedTable
 

Private Member Functions

virtual QRectF drag (EditData &) override
 Return update Rect relative to canvas. More...
 
virtual Sid getPropertyStyle (Pid) const override
 

Private Attributes

Type _dynamicType
 
QPointF dragOffset
 
int _velocity
 
Range _dynRange
 
int _changeInVelocity { 128 }
 
Speed _velChangeSpeed { Speed::NORMAL }
 

Additional Inherited Members

- Public Attributes inherited from Ms::Element
bool itemDiscovered { false }
 helper flag for bsp More...
 
- Protected Member Functions inherited from Ms::TextBase
QColor textColor () const
 
void layoutFrame ()
 
void layoutEdit ()
 
void createLayout ()
 
void insertSym (EditData &ed, SymId id)
 
- Protected Attributes inherited from Ms::TextBase
QRectF frame
 
- Protected Attributes inherited from Ms::Element
int _z
 
QColor _color
 element color attribute More...
 
- Protected Attributes inherited from Ms::ScoreElement
const ElementStyle_elementStyle { &emptyStyle }
 
PropertyFlags_propertyFlagsList { 0 }
 
LinkedElements_links { 0 }
 

Detailed Description

dynamics marker; determines midi velocity

Member Enumeration Documentation

◆ Range

enum Ms::Dynamic::Range : char
strong
Enumerator
STAFF 
PART 
SYSTEM 

◆ Speed

enum Ms::Dynamic::Speed : char
strong
Enumerator
SLOW 
NORMAL 
FAST 

◆ Type

enum Ms::Dynamic::Type : char
strong
Enumerator
OTHER 
PPPPPP 
PPPPP 
PPPP 
PPP 
PP 
MP 
MF 
FF 
FFF 
FFFF 
FFFFF 
FFFFFF 
FP 
SF 
SFZ 
SFF 
SFFZ 
SFP 
SFPP 
RFZ 
RF 
FZ 

Constructor & Destructor Documentation

◆ Dynamic() [1/2]

Ms::Dynamic::Dynamic ( Score s)

◆ Dynamic() [2/2]

Ms::Dynamic::Dynamic ( const Dynamic d)

Member Function Documentation

◆ accessibleInfo()

QString Ms::Dynamic::accessibleInfo ( ) const
overridevirtual

Reimplemented from Ms::TextBase.

◆ changeInVelocity()

int Ms::Dynamic::changeInVelocity ( ) const

◆ clone()

virtual Dynamic* Ms::Dynamic::clone ( ) const
inlineoverridevirtual

Implements Ms::Element.

◆ doAutoplace()

void Ms::Dynamic::doAutoplace ( )

◆ drag()

QRectF Ms::Dynamic::drag ( EditData ed)
overrideprivatevirtual

Return update Rect relative to canvas.

Reimplemented from Ms::Element.

◆ dynamicType()

Type Ms::Dynamic::dynamicType ( ) const
inline

◆ dynamicTypeName() [1/2]

QString Ms::Dynamic::dynamicTypeName ( Dynamic::Type  type)
static

◆ dynamicTypeName() [2/2]

QString Ms::Dynamic::dynamicTypeName ( ) const
inline

◆ dynRange()

Range Ms::Dynamic::dynRange ( ) const
inline

◆ endEdit()

void Ms::Dynamic::endEdit ( EditData ed)
overridevirtual

Reimplemented from Ms::TextBase.

◆ getProperty()

QVariant Ms::Dynamic::getProperty ( Pid  propertyId) const
overridevirtual

Reimplemented from Ms::TextBase.

◆ getPropertyStyle()

Sid Ms::Dynamic::getPropertyStyle ( Pid  pid) const
overrideprivatevirtual

Reimplemented from Ms::TextBase.

◆ isEditable()

virtual bool Ms::Dynamic::isEditable ( ) const
inlineoverridevirtual

Reimplemented from Ms::Element.

◆ layout()

void Ms::Dynamic::layout ( )
overridevirtual

Reimplemented from Ms::TextBase.

◆ measure()

Measure* Ms::Dynamic::measure ( ) const
inline

◆ nameToSpeed()

Dynamic::Speed Ms::Dynamic::nameToSpeed ( QString  name)
static

◆ propertyDefault()

QVariant Ms::Dynamic::propertyDefault ( Pid  id) const
overridevirtual

Reimplemented from Ms::TextBase.

◆ propertyId()

Pid Ms::Dynamic::propertyId ( const QStringRef &  xmlName) const
overridevirtual

Reimplemented from Ms::TextBase.

◆ propertyUserValue()

QString Ms::Dynamic::propertyUserValue ( Pid  pid) const
overridevirtual

Reimplemented from Ms::Element.

◆ read()

void Ms::Dynamic::read ( XmlReader e)
overridevirtual

Reimplemented from Ms::TextBase.

◆ reset()

void Ms::Dynamic::reset ( )
overridevirtual

Reimplemented from Ms::Element.

◆ screenReaderInfo()

QString Ms::Dynamic::screenReaderInfo ( ) const
overridevirtual

Reimplemented from Ms::TextBase.

◆ segment()

Segment* Ms::Dynamic::segment ( ) const
inline

◆ setChangeInVelocity()

void Ms::Dynamic::setChangeInVelocity ( int  val)

◆ setDynamicType() [1/2]

void Ms::Dynamic::setDynamicType ( Type  val)
inline

◆ setDynamicType() [2/2]

void Ms::Dynamic::setDynamicType ( const QString &  tag)

◆ setDynRange()

void Ms::Dynamic::setDynRange ( Range  t)
inline

◆ setProperty()

bool Ms::Dynamic::setProperty ( Pid  propertyId,
const QVariant &  v 
)
overridevirtual

Reimplemented from Ms::TextBase.

◆ setVelChangeSpeed()

void Ms::Dynamic::setVelChangeSpeed ( Speed  val)
inline

◆ setVelocity()

void Ms::Dynamic::setVelocity ( int  v)
inline

◆ speedToName()

QString Ms::Dynamic::speedToName ( Speed  speed)
static

◆ startEdit()

void Ms::Dynamic::startEdit ( EditData ed)
overridevirtual

Reimplemented from Ms::TextBase.

◆ subtype()

virtual int Ms::Dynamic::subtype ( ) const
inlineoverridevirtual

Reimplemented from Ms::TextBase.

◆ subtypeName()

virtual QString Ms::Dynamic::subtypeName ( ) const
inlineoverridevirtual

Reimplemented from Ms::TextBase.

◆ type()

virtual ElementType Ms::Dynamic::type ( ) const
inlineoverridevirtual

Implements Ms::ScoreElement.

◆ undoSetDynRange()

void Ms::Dynamic::undoSetDynRange ( Range  t)

◆ velChangeSpeed()

Speed Ms::Dynamic::velChangeSpeed ( ) const
inline

◆ velocity()

int Ms::Dynamic::velocity ( ) const

◆ velocityChangeLength()

Fraction Ms::Dynamic::velocityChangeLength ( ) const

◆ write()

void Ms::Dynamic::write ( XmlWriter xml) const
overridevirtual

Reimplemented from Ms::TextBase.

Member Data Documentation

◆ _changeInVelocity

int Ms::Dynamic::_changeInVelocity { 128 }
private

◆ _dynamicType

Type Ms::Dynamic::_dynamicType
private

◆ _dynRange

Range Ms::Dynamic::_dynRange
private

◆ _velChangeSpeed

Speed Ms::Dynamic::_velChangeSpeed { Speed::NORMAL }
private

◆ _velocity

int Ms::Dynamic::_velocity
private

◆ changeSpeedTable

const std::vector< Dynamic::ChangeSpeedItem > Ms::Dynamic::changeSpeedTable
static
Initial value:
{
{ Dynamic::Speed::NORMAL, "normal" },
{ Dynamic::Speed::SLOW, "slow" },
{ Dynamic::Speed::FAST, "fast" },
}

◆ dragOffset

QPointF Ms::Dynamic::dragOffset
mutableprivate

The documentation for this class was generated from the following files: