45 class ContinuousPanel;
55 #define CONTROL_MODIFIER Qt::AltModifier 57 #define CONTROL_MODIFIER Qt::ControlModifier 60 enum class Grip : int;
61 enum class
POS : char;
127 bool tripleClickPending =
false;
128 bool popupActive =
false;
129 bool modifySelection =
false;
149 bool _moveWhenInactive =
false;
151 bool _blockShowEdit =
false;
153 virtual void paintEvent(QPaintEvent*);
154 void paint(
const QRect&, QPainter&);
156 void objectPopup(
const QPoint&,
Element*);
157 void measurePopup(QContextMenuEvent* ev,
Measure*);
161 virtual bool event(QEvent* event)
override;
162 virtual bool gestureEvent(QGestureEvent*);
163 virtual void resizeEvent(QResizeEvent*)
override;
164 virtual void dragEnterEvent(QDragEnterEvent*)
override;
165 virtual void dragLeaveEvent(QDragLeaveEvent*)
override;
166 virtual void dragMoveEvent(QDragMoveEvent*)
override;
167 virtual void dropEvent(QDropEvent*)
override;
168 virtual void focusInEvent(QFocusEvent*)
override;
169 virtual void focusOutEvent(QFocusEvent*)
override;
171 virtual void wheelEvent(QWheelEvent*)
override;
172 virtual void mouseMoveEvent(QMouseEvent*)
override;
173 virtual void mousePressEvent(QMouseEvent*)
override;
174 virtual void mouseReleaseEvent(QMouseEvent*)
override;
175 virtual void mouseDoubleClickEvent(QMouseEvent*);
177 virtual void keyPressEvent(QKeyEvent*)
override;
178 virtual void keyReleaseEvent(QKeyEvent*)
override;
179 virtual void inputMethodEvent(QInputMethodEvent*)
override;
181 bool handleArrowKeyPress(
const QKeyEvent*);
183 virtual void contextMenuEvent(QContextMenuEvent*)
override;
185 void mousePressEventNormal(QMouseEvent*);
187 bool startTextEditingOnMouseRelease(QMouseEvent*);
188 void adjustCursorForTextEditing(QMouseEvent*);
190 void constraintCanvas(
int *dxx,
int *dyy);
192 void setShadowNote(
const QPointF&);
193 void drawElements(QPainter& p,QList<Element*>& el,
Element* editElement);
194 bool dragTimeAnchorElement(
const QPointF& pos);
195 bool dragMeasureAnchorElement(
const QPointF& pos);
196 virtual void lyricsTab(
bool back,
bool end,
bool moveOnly)
override;
197 virtual void lyricsReturn()
override;
198 virtual void lyricsEndEdit()
override;
199 virtual void lyricsUpDown(
bool up,
bool end)
override;
200 virtual void lyricsMinus()
override;
201 virtual void lyricsUnderscore()
override;
202 virtual void textTab(
bool back =
false)
override;
203 void harmonyEndEdit();
204 void harmonyTab(
bool back);
205 void harmonyBeatsTab(
bool noterest,
bool back);
206 void harmonyTicksTab(
const Fraction& ticks);
207 void figuredBassTab(
bool meas,
bool back);
208 void figuredBassTicksTab(
const Fraction& ticks);
209 void figuredBassEndEdit();
210 void realtimeAdvance(
bool allowRests);
211 void cmdAddFret(
int fret);
219 void cmdRepeatSelection();
220 void cmdChangeEnharmonic(
bool);
223 MeasureBase* checkSelectionStateForInsertMeasure();
228 void createElementPropertyMenu(
Element* e, QMenu*);
229 void genPropertyMenu1(
Element* e, QMenu* popup);
230 void genPropertyMenuText(
Element* e, QMenu* popup);
231 void elementPropertyAction(
const QString&,
Element* e);
232 void paintPageBorder(QPainter& p,
Page* page);
234 void editCmd(
const QString&);
236 void cmdMoveCR(
bool left);
238 bool checkCopyOrCut();
239 QVariant inputMethodQuery(Qt::InputMethodQuery query)
const override;
240 void startFotomode();
242 void startFotoDrag();
244 void endFotoDragEdit();
245 QImage getRectImage(
const QRectF& rect,
double dpi,
bool transparent,
bool printMode);
247 void startEdit(
bool editMode =
true);
255 void startNoteEntry();
256 virtual void startNoteEntryMode()
override;
263 void posChanged(
POS pos,
unsigned tick);
264 void loopToggled(
bool);
265 void triggerCmdRealtimeAdvance();
266 void cmdRealtimeAdvance();
267 void extendCurrentNote();
269 void tripleClickTimeOut();
272 void setViewRect(
const QRectF&);
283 void fotoModeCopy(
bool includeLink =
false);
288 void doFotoDragEdit(QMouseEvent* ev);
290 void updateContinuousPanel();
291 void ticksTab(
const Fraction& ticks);
294 void viewRectChanged();
295 void scaleChanged(
double);
296 void offsetChanged(
double,
double);
308 void moveCursor(
const Fraction& tick);
310 void setCursorOn(
bool);
311 void setBackground(QPixmap*);
312 void setBackground(
const QColor&);
313 void setForeground(QPixmap*);
314 void setForeground(
const QColor&);
317 virtual void setScore(
Score* s);
320 void setMag(qreal m);
321 bool navigatorVisible()
const;
322 void cmd(
const QAction*);
323 void cmd(
const char*);
325 void startUndoRedo(
bool);
326 void zoomStep(qreal step,
const QPoint& pos);
327 void zoom(qreal _mag,
const QPointF& pos);
328 void contextPopup(QContextMenuEvent* ev);
329 bool editKeyLyrics();
330 bool editKeySticking();
331 void dragScoreView(QMouseEvent* ev);
332 void doDragElement(QMouseEvent* ev);
333 void doDragLasso(QMouseEvent* ev);
334 void doDragFoto(QMouseEvent* ev);
335 void doDragEdit(QMouseEvent* ev);
336 bool testElementDragTransition(QMouseEvent* ev);
337 bool fotoEditElementDragTransition(QMouseEvent* ev);
338 void addSlur(
const Slur* slurTemplate =
nullptr);
341 void cmdAddNoteLine();
344 void updateEditElement();
350 bool fotoMode()
const;
352 virtual void setDropRectangle(
const QRectF&);
353 virtual void setDropTarget(
const Element*)
override;
354 void setDropAnchor(
const QLineF&);
355 const QTransform&
matrix()
const {
return _matrix; }
359 void setMag(
MagIdx idx,
double mag);
360 qreal xoffset()
const;
361 qreal yoffset()
const;
362 void setOffset(qreal x, qreal y);
363 QSizeF fsize()
const;
370 QPointF
toLogical(
const QPoint& p)
const {
return imatrix.map(QPointF(p)); }
371 QPointF
toPhysical(
const QPointF& p)
const {
return _matrix.map(p); }
372 QRectF
toLogical(
const QRectF& r)
const {
return imatrix.mapRect(r); }
373 QRect
toPhysical(
const QRectF& r)
const {
return _matrix.mapRect(r).toRect(); }
377 bool searchMeasure(
int i);
378 bool searchPage(
int i);
379 bool searchRehearsalMark(
const QString& s);
382 void changeVoice(
int voice);
383 virtual void drawBackground(QPainter* p,
const QRectF& r)
const;
384 bool fotoScoreViewDragTest(QMouseEvent*);
385 bool fotoScoreViewDragRectTest(QMouseEvent*);
386 void doDragFotoRect(QMouseEvent*);
387 void fotoContextPopup(QContextMenuEvent*);
388 bool fotoRectHit(
const QPoint& p);
389 void paintRect(
bool printMode, QPainter& p,
const QRectF& r,
double mag);
390 bool saveFotoAs(
bool printMode,
const QRectF&);
391 void fotoDragDrop(QMouseEvent*);
392 void changeEditElement(
Element*);
397 void cmdAddRemoveBreaks();
398 void cmdCopyLyricsToClipboard();
401 void setCursorVisible(
bool v);
402 void showOmr(
bool flag);
403 void midiNoteReceived(
int pitch,
bool chord,
int velocity);
405 virtual void moveCursor()
override;
407 virtual void layoutChanged();
408 virtual void dataChanged(
const QRectF&);
410 virtual void adjustCanvasPosition(
const Element* el,
bool playBack,
int staff = -1)
override;
411 virtual void setCursor(
const QCursor& c) { QWidget::setCursor(c); }
412 virtual QCursor
cursor()
const {
return QWidget::cursor(); }
415 void moveViewportToLastEdit();
417 void updateShadowNotes();
423 void onElementDestruction(
Element*)
override;
425 virtual Element* elementNear(QPointF);
426 QList<Element*> elementsNear(QPointF);
428 void editTimeSigProperties(
TimeSig*);
433 virtual const QRect
geometry()
const override {
return QWidget::geometry(); }
437 bool moveWhenInactive(
bool move) {
bool m = _moveWhenInactive; _moveWhenInactive = move;
return m; }
int grips
Definition: element.h:118
QPixmap * _bgPixmap
Definition: scoreview.h:144
QPixmap * _fgPixmap
Definition: scoreview.h:145
Definition: durationtype.h:28
virtual void setCursor(const QCursor &c)
Definition: scoreview.h:411
ContinuousPanel * _continuousPanel
Definition: scoreview.h:137
HairpinType
Definition: hairpin.h:27
QRectF dropRectangle
current drop rectangle during dragMove
Definition: scoreview.h:108
bool editMode() const
Definition: scoreview.h:347
Virtual base class for Measure, HBox and VBox.
Definition: measurebase.h:61
This class represents a time signature.
Definition: timesig.h:41
EditData & getEditData()
Definition: scoreview.h:430
ShadowNote * shadowNote
Definition: scoreview.h:120
QRectF canvasViewport() const
Definition: scoreview.h:375
FotoLasso * fotoLasso() const
Definition: scoreview.h:421
Graphic representation of a shadow note, which shows the note insert position in note entry mode...
Definition: shadownote.h:30
MagIdx magIdx() const
Definition: scoreview.h:358
ViewState state
Definition: scoreview.h:93
QRect toPhysical(const QRectF &r) const
Definition: scoreview.h:373
PositionCursor * _curLoopOut
Definition: scoreview.h:134
one measure in a system
Definition: measure.h:65
Definition: textcursor.h:36
Definition: scoreview.h:90
const Element * dropTarget
current drop target during dragMove
Definition: scoreview.h:107
virtual QCursor cursor() const
Definition: scoreview.h:412
ViewState
Definition: scoreview.h:68
QRectF toLogical(const QRectF &r) const
Definition: scoreview.h:372
Base class of score layout elements.
Definition: element.h:158
Lasso * lasso
temporarily drawn lasso selection
Definition: scoreview.h:139
QColor _bgColor
Definition: scoreview.h:142
bool allowRealtimeRests
Definition: scoreview.h:125
Definition: fotomode.h:24
ScoreState
Definition: globals.h:53
Definition: stafftextbase.h:35
HarmonyType
Definition: harmony.h:66
QTimer * realtimeTimer
Definition: scoreview.h:123
const QTransform & matrix() const
Definition: scoreview.h:355
Example of 1/8 triplet: _baseLen = 1/8 _actualNotes = 3 _normalNotes = 2 (3 notes played in the time ...
Definition: tuplet.h:37
MagIdx _magIdx
Definition: scoreview.h:112
bool isTextBase() const
Definition: scoreElement.cpp:840
QPointF toLogical(const QPoint &p) const
Definition: scoreview.h:370
QTransform imatrix
Definition: scoreview.h:111
Grip
Definition: element.h:43
Tid
Enumerates the list of built-in text substyles.
Definition: types.h:371
Element * element
Definition: element.h:137
FotoLasso * _foto
Definition: scoreview.h:140
articulation marks
Definition: articulation.h:57
MagIdx
Definition: magbox.h:32
PositionCursor * _curLoopIn
Definition: scoreview.h:133
Definition: aeolus.cpp:26
QPointF toPhysical(const QPointF &p) const
Definition: scoreview.h:371
Definition: continuouspanel.h:24
Definition: xmlwriter.h:26
OmrView * omrView() const
Definition: scoreview.h:419
EditData editData
Definition: scoreview.h:116
virtual void updateAll()
Definition: scoreview.h:409
Definition: chordrest.h:48
PositionCursor * _cursor
Definition: scoreview.h:119
virtual const QRect geometry() const override
Definition: scoreview.h:433
QPixmap * fgPixmap()
Definition: scoreview.h:303
Definition: element.h:111
void loopUpdate(bool val)
Definition: scoreview.h:413
bool moveWhenInactive(bool move)
Definition: scoreview.h:437
Definition: fraction.h:46
ElementType
Definition: types.h:34
bool hasEditGrips() const
Definition: scoreview.h:349
bool moveWhenInactive() const
Definition: scoreview.h:436
POS
Definition: score.h:100
QColor _fgColor
Definition: scoreview.h:143
OmrView * _omrView
Definition: scoreview.h:94
bool textEditMode() const
Definition: scoreview.h:348
void setOmrView(OmrView *v)
Definition: scoreview.h:420
virtual void removeScore()
Definition: scoreview.h:318
QFocusFrame * focusFrame
Definition: scoreview.h:114
QLineF dropAnchor
line to current anchor point during dragMove
Definition: scoreview.h:109
bool noteEntryMode() const
Definition: scoreview.h:346
Definition: mscoreview.h:32
QTimer * extendNoteTimer
Definition: scoreview.h:124