13 #ifndef __CONNECTOR_H__ 14 #define __CONNECTOR_H__ 71 ConnectorInfo*
start();
77 bool connect(ConnectorInfo* other);
101 void readEndpointLocation(
Location& l);
111 const Element* connector()
const;
117 void addToScore(
bool pasteMode);
119 static void readConnector(std::unique_ptr<ConnectorInfoReader> info,
XmlReader& e);
135 virtual const char* tagName()
const = 0;
Helper class for reading beams, tuplets and spanners.
Definition: connector.h:96
bool hasPrevious() const
Definition: connector.h:84
bool finishedLeft() const
Definition: connector.cpp:235
ConnectorInfo * next() const
Definition: connector.h:70
bool hasNext() const
Definition: connector.h:85
bool finishedRight() const
Definition: connector.cpp:245
bool isMiddle() const
Definition: connector.h:87
void forceConnect(ConnectorInfo *c2)
Definition: connector.cpp:108
Definition: scoreElement.h:173
ConnectorInfo * findLast()
Definition: connector.cpp:200
ConnectorInfoWriter * next() const
Definition: connector.h:141
static int measure(const Element *e)
Definition: location.cpp:210
bool isEnd() const
Definition: connector.h:88
Base class of score layout elements.
Definition: element.h:158
ElementType _type
Definition: connector.h:47
ConnectorInfo * findFirst()
Definition: connector.cpp:174
const Element * _current
Definition: connector.h:37
Location _prevLoc
Definition: connector.h:49
ConnectorInfo * _next
Definition: connector.h:53
XmlWriter * _xml
Definition: connector.h:130
Location _currentLoc
Definition: connector.h:48
ConnectorInfo * _prev
Definition: connector.h:52
Location _nextLoc
Definition: connector.h:50
static constexpr Location absolute()
Definition: location.h:50
ConnectorInfoWriter * prev() const
Definition: connector.h:140
void updateCurrentInfo(bool clipboardmode)
Definition: connector.cpp:62
ConnectorInfo * end()
Definition: connector.cpp:267
ConnectorInfo(const Element *current, int track=-1, Fraction={ -1, 1})
Definition: connector.cpp:26
int connectionDistance(const ConnectorInfo &c2) const
Definition: connector.cpp:153
Element * _connector
Definition: connector.h:98
Definition: aeolus.cpp:26
bool isStart() const
Definition: connector.h:86
Definition: xmlwriter.h:26
ConnectorInfo * prev() const
Definition: connector.h:69
bool currentUpdated() const
Definition: connector.h:57
Helper class for writing connecting elements.
Definition: connector.h:129
const Element * _connector
Definition: connector.h:133
Stores a general information on various connecting elements (currently only spanners) including their...
Definition: connector.h:36
ConnectorInfo * start()
Definition: connector.cpp:255
Definition: location.h:32
ElementType type() const
Definition: connector.h:74
void updateLocation(const Element *e, Location &i, bool clipboardmode)
Definition: connector.cpp:53
Definition: xmlreader.h:28
bool finished() const
Definition: connector.cpp:226
const Element * connector() const
Definition: connector.h:143
ConnectorInfoReader * prev() const
Definition: connector.h:107
Definition: fraction.h:46
ConnectorInfoReader * next() const
Definition: connector.h:108
ElementType
Definition: types.h:34
static int orderedConnectionDistance(const ConnectorInfo &c1, const ConnectorInfo &c2)
Definition: connector.cpp:133
bool connect(ConnectorInfo *other)
Definition: connector.cpp:73
bool _currentUpdated
Definition: connector.h:38
const Score * _score
Definition: connector.h:39
XmlReader * _reader
Definition: connector.h:97
ScoreElement * _connectorReceiver
Definition: connector.h:99
const Location & location() const
Definition: connector.h:75
void setCurrentUpdated(bool v)
Definition: connector.h:58