Canorus 0.0
Public Types | Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CAScoreView Class Reference

#include <scoreview.h>

Inheritance diagram for CAScoreView:
Inheritance graph
[legend]

Public Types

enum  CAScrollBarVisibility { ScrollBarAlwaysVisible , ScrollBarAlwaysHidden , ScrollBarShowIfNeeded }
 
- Public Types inherited from CAView
enum  CAViewType { ScoreView , SourceView }
 

Signals

void CATripleClickEvent (QMouseEvent *e, QPoint p)
 
void CADoubleClickEvent (QMouseEvent *e, QPoint p)
 
void CAMousePressEvent (QMouseEvent *e, QPoint p)
 
void CAMouseReleaseEvent (QMouseEvent *e, QPoint p)
 
void CAMouseMoveEvent (QMouseEvent *e, QPoint p)
 
void CAWheelEvent (QWheelEvent *e, QPoint p)
 
void CAKeyPressEvent (QKeyEvent *e)
 
void selectionChanged ()
 
- Signals inherited from CAView
void clicked ()
 
void closed (CAView *)
 

Public Member Functions

 CAScoreView (QWidget *parent=0)
 
 CAScoreView (CASheet *sheet, QWidget *parent=0)
 
virtual ~CAScoreView ()
 
CAScoreViewclone ()
 
CAScoreViewclone (QWidget *parent)
 
CASheetsheet ()
 
void setSheet (CASheet *sheet)
 
void addMElement (CADrawableMusElement *elt, bool select=false)
 
void addCElement (CADrawableContext *elt, bool select=false)
 
void addDrawableNoteCheckerError (CADrawableNoteCheckerError *dnce)
 
void importElements (CAKDTree< CADrawableMusElement * > *drawableMList, CAKDTree< CADrawableContext * > *drawableCList)
 
const QList< CADrawableMusElement * > & selection ()
 
QList< CAMusElement * > musElementSelection ()
 
QList< CADrawableMusElement * > musElementsAt (double x, double y)
 
CADrawableContextselectCElement (double x, double y)
 
CADrawableMusElementselectMElement (CAMusElement *elt)
 
CADrawableContextselectContext (CAContext *context)
 
QPoint lastMousePressCoords ()
 
void setLastMousePressCoordsAfter (const QList< CAMusElement * > list)
 
CADrawableContextcurrentContext ()
 
void setCurrentContext (CADrawableContext *c)
 
void selectAll ()
 
void selectAllCurBar ()
 
void selectAllCurContext ()
 
void invertSelection ()
 
void clearSelection ()
 
bool removeFromSelection (CADrawableMusElement *elt)
 
void addToSelection (CADrawableMusElement *elt, bool triggerSignal=true)
 
void addToSelection (const QList< CADrawableMusElement * > list, bool selectableOnly=true)
 
CADrawableMusElementaddToSelection (CAMusElement *elt)
 
void addToSelection (const QList< CAMusElement * > elts)
 
CADrawableMusElementselectNextMusElement (bool append=false)
 
CADrawableMusElementselectPrevMusElement (bool append=false)
 
CADrawableMusElementselectUpMusElement ()
 
CADrawableMusElementselectDownMusElement ()
 
const QList< QRect > & selectionRegionList () const
 
void addSelectionRegion (QRect r)
 
void removeSelectionRegion (QRect r)
 
void clearSelectionRegionList ()
 
CADrawable::CADirection resizeDirection ()
 
bool mouseDragActivated ()
 
CADrawableMusElementfindMElement (CAMusElement *)
 
CADrawableContextfindCElement (CAContext *)
 
QList< CADrawableContext * > findContextsInRegion (QRect &reg)
 
CADrawableMusElementnearestLeftElement (double x, double y, CADrawableContext *context=0)
 
CADrawableMusElementnearestLeftElement (double x, double y, CAVoice *voice)
 
CADrawableMusElementnearestRightElement (double x, double y, CADrawableContext *context=0)
 
CADrawableMusElementnearestRightElement (double x, double y, CAVoice *voice)
 
int coordsToTime (double x)
 
double timeToCoords (int time)
 
double timeToCoordsSimpleVersion (int time)
 
CADrawableContextnearestUpContext (double x, double y)
 
CADrawableContextnearestDownContext (double x, double y)
 
int calculateTime (double x, double y)
 
QMap< int, CADrawableBarline * > computeBarlinePositions (bool dotted=false)
 
CAContextcontextCollision (double x, double y)
 
void setManualScroll (bool scroll)
 
bool manualScroll ()
 
void checkScrollBars ()
 
CAScrollBarVisibility isScrollBarVisible ()
 
void setScrollBarVisible (CAScrollBarVisibility status)
 
void rebuild ()
 
void setMouseTracking (bool)
 
const int drawableWidth ()
 
const int drawableHeight ()
 
void setWorldX (double x, bool animate=false, bool force=false)
 
void setWorldY (double y, bool animate=false, bool force=false)
 
void setWorldWidth (double w, bool force=false)
 
void setWorldHeight (double h, bool force=false)
 
const double worldX ()
 
const double worldY ()
 
const double worldWidth ()
 
const double worldHeight ()
 
const QRectF worldCoords ()
 
const float zoom ()
 
void setWorldCoords (const QRectF r, bool animate=false, bool force=false)
 
void setWorldCoords (double x, double y, double w, double h, bool animate=false, bool force=false)
 
void setCenterCoords (double x, double y, bool animate=false, bool force=false)
 
void setZoom (float z, double x=0, double y=0, bool animate=false, bool force=false)
 
void setZoom (float z, QPoint p, bool animate=false, bool force=false)
 
void zoomToSelection (bool animate=false, bool force=false)
 
void zoomToWidth (bool animate=false, bool force=false)
 
void zoomToHeight (bool animate=false, bool force=false)
 
void zoomToFit (bool animate=false, bool force=false)
 
bool grabTabKey ()
 
void setGrabTabKey (bool g)
 
void setBorder (const QPen pen)
 
void unsetBorder ()
 
QPen border ()
 
QColor backgroundColor ()
 
void setBackgroundColor (const QColor c)
 
QColor foregroundColor ()
 
void setForegroundColor (const QColor c)
 
QColor selectionColor ()
 
void setSelectionColor (const QColor c)
 
QColor selectionAreaColor ()
 
void setSelectionAreaColor (const QColor c)
 
QColor selectedContextColor ()
 
void setSelectedContextColor (const QColor c)
 
QColor hiddenElementsColor ()
 
void setHiddenElementsColor (const QColor c)
 
QColor disabledElementsColor ()
 
void setDisabledElementsColor (const QColor c)
 
bool playing ()
 
void setPlaying (bool playing)
 
void setRepaintArea (QRect *area)
 
void clearRepaintArea ()
 
CAVoiceselectedVoice ()
 
void setSelectedVoice (CAVoice *selectedVoice)
 
bool shadowNoteVisible ()
 
void setShadowNoteVisible (bool visible)
 
bool drawShadowNoteAccs ()
 
void setDrawShadowNoteAccs (bool draw)
 
int shadowNoteAccs ()
 
void setShadowNoteAccs (int accs)
 
void setShadowNoteLength (CAPlayableLength)
 
CATextEditcreateTextEdit (CADrawableMusElement *elt)
 
CATextEdittextEdit ()
 
void removeTextEdit ()
 
bool textEditVisible ()
 
bool noteNameVisible ()
 
void setNoteNameVisible (bool v)
 
QString noteName ()
 
void setNoteName (QString n)
 
void updateHelpers ()
 
- Public Member Functions inherited from CAView
 CAView (QWidget *parent=0)
 
virtual ~CAView ()
 
CAViewType viewType ()
 
virtual CAViewclone ()=0
 
virtual CAViewclone (QWidget *parent)=0
 
virtual void rebuild ()=0
 

Static Public Member Functions

static bool musElementTimeLessThan (const CAMusElement *a, const int b)
 
static bool timeMusElementLessThan (const int a, const CAMusElement *b)
 

Static Public Attributes

static const int SELECTION_REGION_THRESHOLD = 10
 
- Static Public Attributes inherited from CAView
static const int DEFAULT_VIEW_WIDTH = 600
 
static const int DEFAULT_VIEW_HEIGHT = 400
 

Protected Member Functions

bool event (QEvent *event)
 
- Protected Member Functions inherited from CAView
void setViewType (CAViewType t)
 

Private Slots

void mousePressEvent (QMouseEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 
void wheelEvent (QWheelEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 
void HScrollBarEvent (int val)
 
void VScrollBarEvent (int val)
 
void resizeEvent (QResizeEvent *e)
 
void paintEvent (QPaintEvent *p)
 
void leaveEvent (QEvent *e)
 
void enterEvent (QEvent *e)
 
void on_animationTimer_timeout ()
 
void on_clickTimer_timeout ()
 

Private Member Functions

void initScoreView (CASheet *s)
 
void clearMElements ()
 
void clearCElements ()
 
bool isSelected (CADrawableMusElement *elt)
 
template<typename T >
double getMaxXExtended (CAKDTree< T > &v)
 
template<typename T >
double getMaxYExtended (CAKDTree< T > &v)
 
void setLastMousePressCoords (QPoint p)
 
bool shadowNoteVisibleOnLeave ()
 
void setShadowNoteVisibleOnLeave (bool v)
 
void setTextEdit (CATextEdit *e)
 
QRect textEditGeometry ()
 
void setTextEditGeometry (const QRect r)
 
void setTextEditVisible (bool v)
 
void setResizeDirection (CADrawable::CADirection r)
 
void drawSelectionRegion (QPainter *p, CADrawSettings s)
 
void startAnimationTimer ()
 

Private Attributes

QGridLayout * _layout
 
QWidget * _canvas
 
QScrollBar * _hScrollBar
 
QScrollBar * _vScrollBar
 
CAKDTree< CADrawableMusElement * > _drawableMList
 
CAKDTree< CADrawableContext * > _drawableCList
 
CAKDTree< CADrawableNoteCheckerError * > _drawableNCEList
 
QMultiMap< void *, CADrawable * > _mapDrawable
 
CASheet_sheet
 
QList< CADrawableMusElement * > _selection
 
CADrawableContext_currentContext
 
double _worldX
 
double _worldY
 
double _worldW
 
double _worldH
 
QPoint _lastMousePressCoords
 
float _zoom
 
CAVoice_selectedVoice
 
bool _shadowNoteVisible
 
bool _shadowNoteVisibleOnLeave
 
int _shadowNoteAccs
 
bool _drawShadowNoteAccs
 
QList< CANote * > _shadowNote
 
QList< CADrawableNote * > _shadowDrawableNote
 
CATextEdit_textEdit
 
QRect _textEditGeometry
 
bool _textEditVisible
 
CADrawable::CADirection _resizeDirection
 
QList< QRect > _selectionRegionList
 
bool _grabTabKey
 
bool _drawBorder
 
QRect * _repaintArea
 
QPen _borderPen
 
QColor _backgroundColor
 
QColor _foregroundColor
 
QColor _selectionColor
 
QColor _selectionAreaColor
 
QColor _selectedContextColor
 
QColor _disabledElementsColor
 
QColor _hiddenElementsColor
 
bool _noteNameVisible
 
QString _noteName
 
QTimer * _animationTimer
 
int _animationStep
 
double _targetWorldX
 
double _targetWorldY
 
double _targetWorldW
 
double _targetWorldH
 
float _targetZoom
 
CAScrollBarVisibility _scrollBarVisible
 
bool _allowManualScroll
 
double _oldWorldX
 
double _oldWorldY
 
double _oldWorldW
 
double _oldWorldH
 
bool _playing
 
QTimer * _clickTimer
 
int _numberOfClicks
 
double _xCursor
 
double _yCursor
 
bool _holdRepaint
 
bool _checkScrollBarsDeadLock
 
bool _hScrollBarDeadLock
 
bool _vScrollBarDeadLock
 

Static Private Attributes

static const int RIGHT_EXTRA_SPACE = 100
 
static const int BOTTOM_EXTRA_SPACE = 30
 
static const int RULER_HEIGHT = 15
 
static const int ANIMATION_STEPS = 7
 

Additional Inherited Members

- Protected Slots inherited from CAView
void mousePressEvent (QMouseEvent *e)
 
void closeEvent (QCloseEvent *)
 
- Protected Attributes inherited from CAView
CAViewType _viewType
 

Detailed Description

Widget for rendering the score.

This class represents the widget capable of rendering the score. It is usually used as a central widget in the main window, but might be used for example, in a list of possible harmonization or improvization solutions, score layout window and more as an independent widget or only as a drawable content on a button.

Score view consists of a virtual workspace full of drawable elements which represent the abstract music elements or contexts. Every drawable element has its absolute X, Y, Width and Height geometry properties. Score view also shows usually a small part of the whole workspace (depending on scroll bars values and a zoom level). When drawable elements are drawn, their CADrawable::draw() methods are called with the views X and Y coordinates, zoom level, pen color and other properties needed to correctly draw an element to the score view's canvas.

Note that this widget is only capable of correctly rendering the drawable elements. No Control part of the MVC model is implemented here. The view logic is implemented outside of this class (usually main window). Score view only provides various signals to communicate with outer world. However, this class provides various modes (eg. drawing the shadow notes when inserting music elements, coloring only one voice, hiding certain staffs, animating the scroll etc.) the controller might use.

This widget also provides horizontal and vertical scrollbars (see _hScrollBar and _vScrollBar).

Member Enumeration Documentation

◆ CAScrollBarVisibility

Different behaviour of the scroll bars:

  • ScrollBarAlwaysVisible - scrollbars are always visible, no matter if the whole scene can be rendered on canvas or not
  • ScrollBarAlwaysHidden - scrollbars are always hidden, no matter if the whole scene can be rendered on canvas or not
  • ScrollBarShowIfNeeded - scrollbars are visible, if they are needed (the current view area is too small to render the whole scene), otherwise hidden. This is default behaviour.
Enumerator
ScrollBarAlwaysVisible 
ScrollBarAlwaysHidden 
ScrollBarShowIfNeeded 

Constructor & Destructor Documentation

◆ CAScoreView() [1/2]

CAScoreView::CAScoreView ( QWidget *  parent = 0)

References initScoreView().

Referenced by clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CAScoreView() [2/2]

CAScoreView::CAScoreView ( CASheet sheet,
QWidget *  parent = 0 
)

References initScoreView(), and sheet().

Here is the call graph for this function:

◆ ~CAScoreView()

CAScoreView::~CAScoreView ( )
virtual

Member Function Documentation

◆ addCElement()

void CAScoreView::addCElement ( CADrawableContext elt,
bool  select = false 
)

Adds a drawable music element elt to the score view and selects it, if select is true.

References _drawableCList, _mapDrawable, _shadowDrawableNote, _shadowNote, CAKDTree< T >::addElement(), CADrawableContext::context(), CADrawableContext::drawableContextType(), CADrawableContext::DrawableStaff, setCurrentContext(), and CAStaff::voiceList().

Referenced by importElements(), and CALayoutEngine::reposit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addDrawableNoteCheckerError()

void CAScoreView::addDrawableNoteCheckerError ( CADrawableNoteCheckerError dnce)

Adds a drawable music element elt to the score view and selects it, if select is true.

References _drawableNCEList, _mapDrawable, and CAKDTree< T >::addElement().

Referenced by CALayoutEngine::placeNoteCheckerErrors().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addMElement()

void CAScoreView::addMElement ( CADrawableMusElement elt,
bool  select = false 
)

Adds a drawable music element elt to the score view and selects it, if select is true.

References _drawableMList, _mapDrawable, _selection, CAKDTree< T >::addElement(), CADrawableContext::addMElement(), addToSelection(), CADrawableMusElement::drawableContext(), CADrawableMusElement::musElement(), and selectionChanged().

Referenced by importElements(), CALayoutEngine::placeMarks(), and CALayoutEngine::reposit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addSelectionRegion()

void CAScoreView::addSelectionRegion ( QRect  r)
inline

References _selectionRegionList.

Referenced by CAMainWin::scoreViewMouseMove().

Here is the caller graph for this function:

◆ addToSelection() [1/4]

void CAScoreView::addToSelection ( CADrawableMusElement elt,
bool  triggerSignal = true 
)

◆ addToSelection() [2/4]

CADrawableMusElement * CAScoreView::addToSelection ( CAMusElement elt)

Adds the drawable music element of the given abstract music element elt to the selection. Returns a pointer to its drawable element or 0, if the music element is not part of this score view.

References _mapDrawable, _selection, addToSelection(), and selectionChanged().

Here is the call graph for this function:

◆ addToSelection() [3/4]

void CAScoreView::addToSelection ( const QList< CADrawableMusElement * >  list,
bool  selectableOnly = true 
)

Adds the given list of drawable music elements list to the current selection.

References addToSelection(), and selectionChanged().

Here is the call graph for this function:

◆ addToSelection() [4/4]

void CAScoreView::addToSelection ( const QList< CAMusElement * >  elts)

Adds the given list of abstract music elements to the selection.

References _mapDrawable, addToSelection(), and selectionChanged().

Here is the call graph for this function:

◆ backgroundColor()

QColor CAScoreView::backgroundColor ( )
inline

References _backgroundColor.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ border()

QPen CAScoreView::border ( )
inline

References _borderPen.

◆ CADoubleClickEvent

void CAScoreView::CADoubleClickEvent ( QMouseEvent *  e,
QPoint  p 
)
signal

Referenced by mousePressEvent().

Here is the caller graph for this function:

◆ CAKeyPressEvent

void CAScoreView::CAKeyPressEvent ( QKeyEvent *  e)
signal

This signal is emitted when keyPressEvent() is called. Parent class is usually connected to this event. It adds another two arguments to the wheelEvent() function - pointer to this score view. This is useful when a parent class wants to know which class the signal was emmitted by.

Parameters
eWheel event which gets processed.
vPointer to this view (the view which emmitted the signal).

Referenced by keyPressEvent().

Here is the caller graph for this function:

◆ calculateTime()

int CAScoreView::calculateTime ( double  x,
double  y 
)

Calculates the logical time at the given coordinates x and y.

References _drawableMList, CAKDTree< T >::findNearestLeft(), CAKDTree< T >::findNearestRight(), CADrawableMusElement::musElement(), CAMusElement::timeLength(), and CAMusElement::timeStart().

Here is the call graph for this function:

◆ CAMouseMoveEvent

void CAScoreView::CAMouseMoveEvent ( QMouseEvent *  e,
QPoint  p 
)
signal

This signal is emitted when mouseMoveEvent() is called. Parent class is usually connected to this event. It adds another two arguments to the mouseMoveEvent() function - pointer to this view and coordinates in world coordinates where user used the mouse. This is useful when a parent class wants to know which class the signal was emmitted by.

Parameters
eMouse event which gets processed.
pCoordinates of the mouse cursor in absolute world values.
vPointer to this view (the view which emmitted the signal).

Referenced by mouseMoveEvent().

Here is the caller graph for this function:

◆ CAMousePressEvent

void CAScoreView::CAMousePressEvent ( QMouseEvent *  e,
QPoint  p 
)
signal

This signal is emitted when mousePressEvent() is called. Parent class is usually connected to this event. It adds another two arguments to the mousePressEvent() function - pointer to this view and coordinates in world coordinates where user used the mouse. This is useful when a parent class wants to know which class the signal was emmitted by.

Parameters
eMouse event which gets processed.
pCoordinates of the mouse cursor in absolute world values.
vPointer to this view (the view which emmitted the signal).

Referenced by mousePressEvent().

Here is the caller graph for this function:

◆ CAMouseReleaseEvent

void CAScoreView::CAMouseReleaseEvent ( QMouseEvent *  e,
QPoint  p 
)
signal

This signal is emitted when mouseReleaseEvent() is called. Parent class is usually connected to this event. It adds another two arguments to the mouseReleaseEvent() function - pointer to this score view and coordinates in world coordinates where user used the mouse. This is useful when a parent class wants to know which class the signal was emmitted by.

Parameters
eMouse event which gets processed.
pCoordinates of the mouse cursor in absolute world values.
vPointer to this view (the view which emmitted the signal).

Referenced by mouseReleaseEvent().

Here is the caller graph for this function:

◆ CATripleClickEvent

void CAScoreView::CATripleClickEvent ( QMouseEvent *  e,
QPoint  p 
)
signal

Referenced by mousePressEvent().

Here is the caller graph for this function:

◆ CAWheelEvent

void CAScoreView::CAWheelEvent ( QWheelEvent *  e,
QPoint  p 
)
signal

This signal is emitted when wheelEvent() is called. Parent class is usually connected to this event. It adds another two arguments to the wheelEvent() function - pointer to this score view and coordinates in world coordinates where user used the mouse. This is useful when a parent class wants to know which class the signal was emmitted by.

Parameters
eWheel event which gets processed.
pCoordinates of the mouse cursor in absolute world values.
vPointer to this view (the view which emmitted the signal).

Referenced by wheelEvent().

Here is the caller graph for this function:

◆ checkScrollBars()

void CAScoreView::checkScrollBars ( )

Checks whether the scrollbars are needed (the whole scene is not rendered) or not. Scrollbars get shown or hidden here. Repaint is done automatically, if needed.

References _checkScrollBarsDeadLock, _drawableCList, _drawableMList, _holdRepaint, _hScrollBar, _vScrollBar, _zoom, drawableHeight(), drawableWidth(), getMaxXExtended(), getMaxYExtended(), isScrollBarVisible(), ScrollBarShowIfNeeded, setWorldHeight(), setWorldWidth(), worldHeight(), and worldWidth().

Referenced by rebuild(), CAMainWin::rebuildUI(), setCenterCoords(), setScrollBarVisible(), setWorldCoords(), setWorldHeight(), setWorldWidth(), setWorldX(), setWorldY(), and setZoom().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearCElements()

void CAScoreView::clearCElements ( )
inlineprivate

References _drawableCList, and CAKDTree< T >::clear().

Here is the call graph for this function:

◆ clearMElements()

void CAScoreView::clearMElements ( )
inlineprivate

References _drawableMList, and CAKDTree< T >::clear().

Here is the call graph for this function:

◆ clearRepaintArea()

void CAScoreView::clearRepaintArea ( )
inline

Disables and deletes the area to be repainted.

See also
setRepaintArea()

References _repaintArea.

◆ clearSelection()

void CAScoreView::clearSelection ( )
inline

◆ clearSelectionRegionList()

void CAScoreView::clearSelectionRegionList ( )
inline

References _selectionRegionList.

Referenced by CAMainWin::scoreViewMouseMove(), CAMainWin::scoreViewMousePress(), and CAMainWin::scoreViewMouseRelease().

Here is the caller graph for this function:

◆ clone() [1/2]

CAScoreView * CAScoreView::clone ( )
virtual

Returns a pointer to the new cloned view with the same parent. This function is usually called when a user creates a new docked view.

Implements CAView.

References _sheet, CAScoreView(), rebuild(), setWorldX(), setWorldY(), worldX(), and worldY().

Referenced by importElements().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clone() [2/2]

CAScoreView * CAScoreView::clone ( QWidget *  parent)
virtual

Returns a pointer to the new cloned view with the parent parent. This function is usually called when a user creates a new undocked view.

Implements CAView.

References _sheet, CAScoreView(), rebuild(), setWorldX(), setWorldY(), worldX(), and worldY().

Here is the call graph for this function:

◆ computeBarlinePositions()

QMap< int, CADrawableBarline * > CAScoreView::computeBarlinePositions ( bool  dotted = false)

Creates a map of a bar number -> drawable barline in the score of a staff with most barlines and enumerates them.

This function is usually called when drawing a ruler or jumping to specific bar.

Parameters
dottedAlso include dotted barlines in the list (which are usually ignored in the bar count)
Returns
Map of bar number -> drawable barline of the staff with most barlines

References _drawableCList, CATimeSignature::barDuration(), CABarline::Dotted, CADrawableStaff::drawableBarlineList(), CADrawableContext::DrawableStaff, CADrawableStaff::drawableTimeSignatureList(), CAKDTree< T >::list(), and CADrawableTimeSignature::timeSignature().

Referenced by CAJumpToView::accept(), and paintEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ contextCollision()

CAContext * CAScoreView::contextCollision ( double  x,
double  y 
)

If the given coordinates hit any of the contexts, returns that context.

References _drawableCList, and CAKDTree< T >::findInRange().

Here is the call graph for this function:

◆ coordsToTime()

int CAScoreView::coordsToTime ( double  x)

Returns Canorus time for the given X coordinate x.

Returns 0, if no contexts are present.

References CADrawableMusElement::musElement(), nearestLeftElement(), nearestRightElement(), selection(), CAMusElement::timeEnd(), CAMusElement::timeStart(), CADrawable::width(), and CADrawable::xPos().

Referenced by CAMainWin::scoreViewMouseMove(), and selectAllCurBar().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTextEdit()

CATextEdit * CAScoreView::createTextEdit ( CADrawableMusElement dMusElt)

◆ currentContext()

CADrawableContext * CAScoreView::currentContext ( )
inline

◆ disabledElementsColor()

QColor CAScoreView::disabledElementsColor ( )
inline

References _disabledElementsColor.

Referenced by initScoreView(), and paintEvent().

Here is the caller graph for this function:

◆ drawableHeight()

const int CAScoreView::drawableHeight ( )
inline

References _canvas.

Referenced by checkScrollBars(), on_animationTimer_timeout(), paintEvent(), resizeEvent(), setWorldCoords(), setWorldHeight(), and setZoom().

Here is the caller graph for this function:

◆ drawableWidth()

const int CAScoreView::drawableWidth ( )
inline

References _canvas.

Referenced by checkScrollBars(), on_animationTimer_timeout(), paintEvent(), resizeEvent(), setWorldCoords(), setWorldWidth(), and setZoom().

Here is the caller graph for this function:

◆ drawSelectionRegion()

void CAScoreView::drawSelectionRegion ( QPainter *  p,
CADrawSettings  s 
)
private

References CADrawSettings::color, CADrawSettings::h, CADrawSettings::w, CADrawSettings::x, and CADrawSettings::y.

Referenced by paintEvent().

Here is the caller graph for this function:

◆ drawShadowNoteAccs()

bool CAScoreView::drawShadowNoteAccs ( )
inline

References _drawShadowNoteAccs.

◆ enterEvent

void CAScoreView::enterEvent ( QEvent *  e)
privateslot

◆ event()

bool CAScoreView::event ( QEvent *  event)
protected

This functions forward the Tab and Shift+Tab keys to keyPressEvent(), if grabTabKey is True.

References _grabTabKey, event(), and keyPressEvent().

Referenced by event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findCElement()

CADrawableContext * CAScoreView::findCElement ( CAContext context)

Finds the drawable instance of the given abstract context.

See also
findMElement()

References _mapDrawable.

◆ findContextsInRegion()

QList< CADrawableContext * > CAScoreView::findContextsInRegion ( QRect &  region)

Returns a list of drawable contexts the current score view includes between the vertical coordinates y1 and y2. The context is in a list already if only part of the context is touched by the region. That is the first returned context's top border is smaller than y1 and the last returned context's bottom border is larger than x2.

References _drawableCList, and CAKDTree< T >::findInRange().

Referenced by CAMainWin::scoreViewMouseMove(), and CAMainWin::scoreViewMouseRelease().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findMElement()

CADrawableMusElement * CAScoreView::findMElement ( CAMusElement elt)

Finds the first drawable instance of the given abstract music element.

See also
findCElement()

References _mapDrawable.

Referenced by createTextEdit(), and CALayoutEngine::reposit().

Here is the caller graph for this function:

◆ foregroundColor()

QColor CAScoreView::foregroundColor ( )
inline

References _foregroundColor.

Referenced by initScoreView(), and paintEvent().

Here is the caller graph for this function:

◆ getMaxXExtended()

template<typename T >
double CAScoreView::getMaxXExtended ( CAKDTree< T > &  v)
private

Returns the maximum X of the viewable World a little bigger to make insertion at the end easy.

References CAKDTree< T >::getMaxX(), and RIGHT_EXTRA_SPACE.

Referenced by checkScrollBars(), setWorldWidth(), setWorldX(), and zoomToWidth().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMaxYExtended()

template<typename T >
double CAScoreView::getMaxYExtended ( CAKDTree< T > &  v)
private

Returns the maximum Y of the viewable World a little bigger to make insertion at the end easy.

References BOTTOM_EXTRA_SPACE, and CAKDTree< T >::getMaxY().

Referenced by checkScrollBars(), setWorldHeight(), setWorldY(), and zoomToHeight().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ grabTabKey()

bool CAScoreView::grabTabKey ( )
inline

References _grabTabKey.

◆ hiddenElementsColor()

QColor CAScoreView::hiddenElementsColor ( )
inline

References _hiddenElementsColor.

Referenced by initScoreView(), and paintEvent().

Here is the caller graph for this function:

◆ HScrollBarEvent

void CAScoreView::HScrollBarEvent ( int  val)
privateslot

Processes the Horizontal scroll bar event. This method is called when the horizontal scrollbar changes its value, let it be internally or due to user interaction.

References _allowManualScroll, _hScrollBarDeadLock, and setWorldX().

Referenced by initScoreView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importElements()

void CAScoreView::importElements ( CAKDTree< CADrawableMusElement * > *  origDMusElts,
CAKDTree< CADrawableContext * > *  origDContexts 
)

! This function clones the given drawable instances of musElements and contexts.

\obsolete This Function was used in the past when cloning the views to also clone the elements. This behaviour was replaced for creating a new drawable instances from the scene from scratch.

References _drawableCList, addCElement(), addMElement(), clone(), and CAKDTree< T >::list().

Here is the call graph for this function:

◆ initScoreView()

void CAScoreView::initScoreView ( CASheet s)
private

◆ invertSelection()

void CAScoreView::invertSelection ( )

Inverts the current selection.

References _drawableMList, addToSelection(), clearSelection(), CAKDTree< T >::list(), selection(), and selectionChanged().

Here is the call graph for this function:

◆ isScrollBarVisible()

CAScrollBarVisibility CAScoreView::isScrollBarVisible ( )
inline

References _scrollBarVisible.

Referenced by checkScrollBars().

Here is the caller graph for this function:

◆ isSelected()

bool CAScoreView::isSelected ( CADrawableMusElement elt)
inlineprivate

References _selection.

◆ keyPressEvent

void CAScoreView::keyPressEvent ( QKeyEvent *  e)
privateslot

Processes the keyPressEvent(). A new signal is emitted: CAKeyPressEvent(), which usually gets processed by the parent class then.

References CAKeyPressEvent().

Referenced by event().

Here is the caller graph for this function:

◆ lastMousePressCoords()

QPoint CAScoreView::lastMousePressCoords ( )
inline

◆ leaveEvent

void CAScoreView::leaveEvent ( QEvent *  e)
privateslot

◆ manualScroll()

bool CAScoreView::manualScroll ( )
inline

References _allowManualScroll.

◆ mouseDragActivated()

bool CAScoreView::mouseDragActivated ( )

Calculates the distance between the start of the mouse drag and the current position in world coordinates and returns true, if it is larger than SELECTION_REGION_THRESHOLD.

Returns
True, if the selection region should be activated; False otherwise.

References _lastMousePressCoords, _xCursor, _yCursor, _zoom, and SELECTION_REGION_THRESHOLD.

Referenced by CAMainWin::scoreViewMouseMove(), and CAMainWin::scoreViewMouseRelease().

Here is the caller graph for this function:

◆ mouseMoveEvent

void CAScoreView::mouseMoveEvent ( QMouseEvent *  e)
privateslot

Processes the mouseMoveEvent(). A new signal is emitted: CAMouseMoveEvent(), which usually gets processed by the parent class then.

References _worldX, _worldY, _xCursor, _yCursor, _zoom, CAMouseMoveEvent(), and selection().

Here is the call graph for this function:

◆ mousePressEvent

void CAScoreView::mousePressEvent ( QMouseEvent *  e)
privateslot

◆ mouseReleaseEvent

void CAScoreView::mouseReleaseEvent ( QMouseEvent *  e)
privateslot

Processes the mouseReleaseEvent(). A new signal is emitted: CAMouseReleaseEvent(), which usually gets processed by the parent class then.

References _worldX, _worldY, _zoom, CAMouseReleaseEvent(), setResizeDirection(), and CADrawable::Undefined.

Here is the call graph for this function:

◆ musElementsAt()

QList< CADrawableMusElement * > CAScoreView::musElementsAt ( double  x,
double  y 
)

Returns a list of pointers to the drawable music elements at the given coordinates.

Multiple elements can exist at the same coordinates.

If there is a currently selected voice, only elements belonging to this voice are selected.

References _drawableMList, CAKDTree< T >::findInRange(), and selectedVoice().

Referenced by CAMainWin::insertMusElementAt(), and CAMainWin::scoreViewMousePress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ musElementSelection()

QList< CAMusElement * > CAScoreView::musElementSelection ( )

Returns a list of currently selected music elements. Does the same as selection(), but doesn't return their Drawable instances.

References _selection.

Referenced by CAPlugin::callAction(), and rebuild().

Here is the caller graph for this function:

◆ musElementTimeLessThan()

bool CAScoreView::musElementTimeLessThan ( const CAMusElement a,
const int  b 
)
static

Helper function for timeToCoords() when doing the binary search over elements.

See also
timeMusElementLessThan

References CAMusElement::timeStart().

Referenced by timeToCoords(), and timeToCoordsSimpleVersion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nearestDownContext()

CADrawableContext * CAScoreView::nearestDownContext ( double  x,
double  y 
)

Returns a pointer to the nearest upper drawable context from the given coordinates.

Todo:
Also look at X coordinate

References _drawableCList, and CAKDTree< T >::findNearestDown().

Here is the call graph for this function:

◆ nearestLeftElement() [1/2]

CADrawableMusElement * CAScoreView::nearestLeftElement ( double  x,
double  y,
CADrawableContext context = 0 
)

Returns a pointer to the nearest drawable music element left of the current coordinates with the largest startTime. Drawable elements left borders are taken into account. If context is non-zero, returns the nearest element in the given context only.

References _drawableMList, and CAKDTree< T >::findNearestLeft().

Referenced by coordsToTime(), and CAMainWin::insertMusElementAt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nearestLeftElement() [2/2]

CADrawableMusElement * CAScoreView::nearestLeftElement ( double  x,
double  y,
CAVoice voice 
)

Returns a pointer to the nearest drawable music element left of the current coordinates with the largest startTime in the given voice. Drawable elements left borders are taken into account.

References _drawableMList, and CAKDTree< T >::findNearestLeft().

Here is the call graph for this function:

◆ nearestRightElement() [1/2]

CADrawableMusElement * CAScoreView::nearestRightElement ( double  x,
double  y,
CADrawableContext context = 0 
)

Returns a pointer to the nearest drawable music element right of the current coordinates with the largest startTime. Drawable elements left borders are taken into account. If context is non-zero, returns the nearest element in the given context only.

References _drawableMList, and CAKDTree< T >::findNearestRight().

Referenced by coordsToTime(), CAMainWin::insertMusElementAt(), and CAMainWin::pasteAt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nearestRightElement() [2/2]

CADrawableMusElement * CAScoreView::nearestRightElement ( double  x,
double  y,
CAVoice voice 
)

Returns a pointer to the nearest drawable music element right of the current coordinates with the largest startTime in the given voice. Drawable elements left borders are taken into account.

References _drawableMList, and CAKDTree< T >::findNearestRight().

Here is the call graph for this function:

◆ nearestUpContext()

CADrawableContext * CAScoreView::nearestUpContext ( double  x,
double  y 
)

Returns a pointer to the nearest upper drawable context from the given coordinates.

Todo:
Also look at X coordinate

References _drawableCList, and CAKDTree< T >::findNearestUp().

Referenced by CAMainWin::scoreViewMousePress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ noteName()

QString CAScoreView::noteName ( )
inline

References _noteName.

Referenced by paintEvent().

Here is the caller graph for this function:

◆ noteNameVisible()

bool CAScoreView::noteNameVisible ( )
inline

References _noteNameVisible.

◆ on_animationTimer_timeout

void CAScoreView::on_animationTimer_timeout ( )
privateslot

References _animationStep, _animationTimer, _targetWorldX, _targetWorldY, _targetZoom, _worldX, _worldY, _zoom, ANIMATION_STEPS, drawableHeight(), drawableWidth(), and setWorldCoords().

Referenced by initScoreView(), and startAnimationTimer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_clickTimer_timeout

void CAScoreView::on_clickTimer_timeout ( )
privateslot

Clears number of clicks done so far inside one interval. This function is usually click timer's slot.

References _numberOfClicks.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ paintEvent

void CAScoreView::paintEvent ( QPaintEvent *  e)
privateslot

◆ playing()

bool CAScoreView::playing ( )
inline

References _playing.

Referenced by CAMainWin::setMode(), and setPlaying().

Here is the caller graph for this function:

◆ rebuild()

void CAScoreView::rebuild ( )
virtual

Calls the engraver to reposition the music elements on the canvas. Also updates scrollbars.

Implements CAView.

References _currentContext, _drawableCList, _drawableMList, _drawableNCEList, _mapDrawable, _selection, _shadowDrawableNote, _shadowNote, addToSelection(), checkScrollBars(), CAKDTree< T >::clear(), CAKDTree< T >::list(), musElementSelection(), CAPlayableLength::Quarter, CALayoutEngine::reposit(), setCurrentContext(), setWorldCoords(), CAKDTree< T >::size(), updateHelpers(), and worldCoords().

Referenced by clone(), and CAMainWin::on_uiScoreView_triggered().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFromSelection()

bool CAScoreView::removeFromSelection ( CADrawableMusElement elt)
inline

Removes the given drawable music element elt from the selection, if it exists. Returns True, if element existed in the selection and was removed, false otherwise.

References _selection, and selectionChanged().

Referenced by CAMainWin::scoreViewMousePress().

Here is the caller graph for this function:

◆ removeSelectionRegion()

void CAScoreView::removeSelectionRegion ( QRect  r)
inline

References _selectionRegionList.

◆ removeTextEdit()

void CAScoreView::removeTextEdit ( )

Removes and deletes the text edit when quitting text editing mode.

References setTextEditVisible(), textEdit(), and updateHelpers().

Referenced by CAMainWin::confirmTextEdit(), CAMainWin::onTextEditKeyPressEvent(), and CAMainWin::scoreViewMousePress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resizeDirection()

CADrawable::CADirection CAScoreView::resizeDirection ( )
inline

References _resizeDirection.

Referenced by CAMainWin::scoreViewMouseMove(), CAMainWin::scoreViewMousePress(), and CAMainWin::scoreViewMouseRelease().

Here is the caller graph for this function:

◆ resizeEvent

void CAScoreView::resizeEvent ( QResizeEvent *  e)
privateslot

Called when the user resizes the widget. Note that repaint() event is also triggered when the internal drawable canvas changes its size (for eg. when scrollbars are shown/hidden) and the size of the view does not change.

References _worldX, _worldY, _zoom, drawableHeight(), drawableWidth(), and setWorldCoords().

Here is the call graph for this function:

◆ selectAll()

void CAScoreView::selectAll ( )

Select all elements in the view. This function is usually associated with CTRL+A key.

References _drawableMList, addToSelection(), clearSelection(), CAKDTree< T >::list(), and selectionChanged().

Here is the call graph for this function:

◆ selectAllCurBar()

void CAScoreView::selectAllCurBar ( )

Selects all elements in the current bar. This function is usually called when double clicking on the bar.

References _lastMousePressCoords, addToSelection(), clearSelection(), CADrawableContext::context(), coordsToTime(), currentContext(), CADrawableContext::DrawableStaff, selectedVoice(), and selectionChanged().

Here is the call graph for this function:

◆ selectAllCurContext()

void CAScoreView::selectAllCurContext ( )

Selects all elements in the current context (line). This function is usually called when triple clicking on the context.

References addToSelection(), clearSelection(), currentContext(), and selectionChanged().

Here is the call graph for this function:

◆ selectCElement()

CADrawableContext * CAScoreView::selectCElement ( double  x,
double  y 
)

Selects a drawable context element at the given coordinates, if it exists. Returns a pointer to its abstract context element. If multiple elements exist at the same coordinates, they are selected one by another if you click at the same coordinates multiple times. If no elements are present at the coordinates, clear the selection.

References _drawableCList, currentContext(), CAKDTree< T >::findInRange(), and setCurrentContext().

Referenced by CAMainWin::scoreViewMousePress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectContext()

CADrawableContext * CAScoreView::selectContext ( CAContext context)

Selects the drawable context of the given abstract context. If there are multiple drawable elements representing a single abstract element, selects the first one.

Returns a pointer to the drawable instance of the given context or 0 if the context was not found.

See also
selectMElement(CAMusElement*)

References _drawableCList, CAKDTree< T >::list(), and setCurrentContext().

Referenced by CAMainWin::newDocument(), CAMainWin::onImportDone(), CAMainWin::openDocument(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), and CAMainWin::setCurrentVoice().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectDownMusElement()

CADrawableMusElement * CAScoreView::selectDownMusElement ( )

Selects the lower music element in the current context. Returns a pointer to the newly selected drawable music element or 0, if such an element doesn't exist or the selection is empty.

This method is usually called when using the up arrow key.

Todo:
Still needs to be written. Currently, it only returns the currently selected element.

References _selection.

◆ selectedContextColor()

QColor CAScoreView::selectedContextColor ( )
inline

References _selectedContextColor.

Referenced by initScoreView(), and paintEvent().

Here is the caller graph for this function:

◆ selectedVoice()

CAVoice * CAScoreView::selectedVoice ( )
inline

◆ selection()

QList< CAMusElement * > CAScoreView::selection ( )
inline

Returns a list of the currently selected drawable music elements.

References _selection.

Referenced by CAPlugin::callAction(), coordsToTime(), CAMainWin::copySelection(), CAMainWin::deleteSelection(), CAMainWin::insertMusElementAt(), invertSelection(), mouseMoveEvent(), mousePressEvent(), CATransposeView::on_uiApply_clicked(), CAMainWin::on_uiClefOffset_valueChanged(), CAMainWin::on_uiDynamicCustomText_returnPressed(), CAMainWin::on_uiDynamicText_toggled(), CAMainWin::on_uiDynamicVolume_valueChanged(), CAMainWin::on_uiFBMAccs_toggled(), CAMainWin::on_uiFBMNumber_toggled(), CAMainWin::on_uiFermataType_toggled(), CAMainWin::on_uiFinger_toggled(), CAMainWin::on_uiFingeringOriginal_toggled(), CAMainWin::on_uiFMChordArea_toggled(), CAMainWin::on_uiFMEllipse_toggled(), CAMainWin::on_uiFMFunction_toggled(), CAMainWin::on_uiFMTonicDegree_toggled(), CAMainWin::on_uiHiddenRest_toggled(), CAMainWin::on_uiInstrumentChange_activated(), CAKeySignatureCtl::on_uiKeySig_activated(), CAMainWin::on_uiNoteStemDirection_toggled(), CAMainWin::on_uiPlayableLength_toggled(), CAMainWin::on_uiPlayFromSelection_toggled(), CAMainWin::on_uiRepeatMarkType_toggled(), CAMainWin::on_uiTempoBeat_toggled(), CAMainWin::on_uiTempoBpm_returnPressed(), CAMainWin::on_uiTimeSigBeat_valueChanged(), CAMainWin::on_uiTimeSigBeats_valueChanged(), CAMainWin::on_uiTupletType_toggled(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMouseMove(), CAMainWin::scoreViewMousePress(), CAMainWin::scoreViewMouseRelease(), selectMElement(), CAMainWin::setMode(), CATransposeView::show(), CAMainWin::updateClefToolBar(), CAMainWin::updateDynamicToolBar(), CAMainWin::updateFBMToolBar(), CAMainWin::updateFermataToolBar(), CAMainWin::updateFingeringToolBar(), CAMainWin::updateFMToolBar(), CAMainWin::updateInstrumentToolBar(), CAKeySignatureUI::updateKeySigToolBar(), CAMainWin::updatePlayableToolBar(), CAMainWin::updateRepeatMarkToolBar(), CAMainWin::updateSheetToolBar(), CAMainWin::updateTempoToolBar(), and CAMainWin::updateTimeSigToolBar().

◆ selectionAreaColor()

QColor CAScoreView::selectionAreaColor ( )
inline

References _selectionAreaColor.

Referenced by initScoreView(), and paintEvent().

Here is the caller graph for this function:

◆ selectionChanged

void CAScoreView::selectionChanged ( )
signal

◆ selectionColor()

QColor CAScoreView::selectionColor ( )
inline

References _selectionColor.

Referenced by initScoreView(), and paintEvent().

Here is the caller graph for this function:

◆ selectionRegionList()

const QList< QRect > & CAScoreView::selectionRegionList ( ) const
inline

References _selectionRegionList.

Referenced by paintEvent().

Here is the caller graph for this function:

◆ selectMElement()

CADrawableMusElement * CAScoreView::selectMElement ( CAMusElement elt)

Selects the drawable music element of the given abstract music element. If there are multiple drawable elements representing a single abstract element, selects the first one.

Returns a pointer to the drawable instance of the given music element or 0 if the music element was not found.

See also
selectCElement(CAContext*)

References _mapDrawable, _selection, addToSelection(), CADrawable::DrawableMusElement, selection(), and selectionChanged().

Referenced by CAMainWin::insertMusElementAt(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewKeyPress(), selectNextMusElement(), and selectPrevMusElement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectNextMusElement()

CADrawableMusElement * CAScoreView::selectNextMusElement ( bool  append = false)

Selects the next music element in the current context (voice, if selectedVoice is set) or appends the next music element to the selection, if append is True. Returns a pointer to the newly selected drawable music element or 0, if such an element doesn't exist or the selection is empty.

This method is usually called when using the right arrow key.

References _selection, addToSelection(), CAMusElement::context(), CAVoice::next(), CAContext::next(), selectedVoice(), and selectMElement().

Referenced by CAMainWin::scoreViewKeyPress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectPrevMusElement()

CADrawableMusElement * CAScoreView::selectPrevMusElement ( bool  append = false)

Selects the next music element in the current context (voice, if selectedVoice is set) or appends the next music element to the selection, if append is True. Returns a pointer to the newly selected drawable music element or 0, if such an element doesn't exist or the selection is empty.

This method is usually called when using the left arrow key.

References _selection, addToSelection(), CAMusElement::context(), CAVoice::previous(), CAContext::previous(), selectedVoice(), and selectMElement().

Referenced by CAMainWin::scoreViewKeyPress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectUpMusElement()

CADrawableMusElement * CAScoreView::selectUpMusElement ( )

Selects the upper music element in the current context. Returns a pointer to the newly selected drawable music element or 0, if such an element doesn't exist or the selection is empty.

This method is usually called when using the up arrow key.

Todo:
Still needs to be written. Currently, it only returns the currently selected element.

References _selection.

◆ setBackgroundColor()

void CAScoreView::setBackgroundColor ( const QColor  c)
inline

References _backgroundColor.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setBorder()

void CAScoreView::setBorder ( const QPen  pen)

Draws the border with the given pen style, color, width and other pen settings. Enables border.

References _borderPen, and _drawBorder.

Referenced by CAMainWin::on_uiPlayFromSelection_toggled(), and CAMainWin::setMode().

Here is the caller graph for this function:

◆ setCenterCoords()

void CAScoreView::setCenterCoords ( double  x,
double  y,
bool  animate = false,
bool  force = false 
)

Sets the world coordinates of the view, so the given coordinates are the center of the new view area. If the area has for eg. negative top-left coordinates, the area is moved to the (0,0) coordinates if force is False. View's width and height stay intact.

Warning
Repaint is not done automatically!

References _worldH, _worldW, checkScrollBars(), setWorldX(), and setWorldY().

Referenced by setZoom().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentContext()

void CAScoreView::setCurrentContext ( CADrawableContext c)
inline

References _currentContext.

Referenced by addCElement(), rebuild(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), selectCElement(), and selectContext().

Here is the caller graph for this function:

◆ setDisabledElementsColor()

void CAScoreView::setDisabledElementsColor ( const QColor  c)
inline

References _disabledElementsColor.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setDrawShadowNoteAccs()

void CAScoreView::setDrawShadowNoteAccs ( bool  draw)
inline

References _drawShadowNoteAccs.

Referenced by initScoreView(), CAMainWin::insertMusElementAt(), and CAMainWin::scoreViewKeyPress().

Here is the caller graph for this function:

◆ setForegroundColor()

void CAScoreView::setForegroundColor ( const QColor  c)
inline

References _foregroundColor.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setGrabTabKey()

void CAScoreView::setGrabTabKey ( bool  g)
inline

References _grabTabKey.

◆ setHiddenElementsColor()

void CAScoreView::setHiddenElementsColor ( const QColor  c)
inline

References _hiddenElementsColor.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setLastMousePressCoords()

void CAScoreView::setLastMousePressCoords ( QPoint  p)
inlineprivate

References _lastMousePressCoords.

Referenced by mousePressEvent(), and setLastMousePressCoordsAfter().

Here is the caller graph for this function:

◆ setLastMousePressCoordsAfter()

void CAScoreView::setLastMousePressCoordsAfter ( const QList< CAMusElement * >  list)

Change the x-coord of the last mouse press coords to after the right most element on the given list.

References _mapDrawable, lastMousePressCoords(), and setLastMousePressCoords().

Referenced by CAMainWin::pasteAt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setManualScroll()

void CAScoreView::setManualScroll ( bool  scroll)
inline

References _allowManualScroll.

◆ setMouseTracking()

void CAScoreView::setMouseTracking ( bool  mt)

Reimplementation of the original QWidget's setMouseTracking to set both the widget and the _canvas mouse tracking property.

References _canvas.

Referenced by initScoreView(), and CAMainWin::scoreViewMouseMove().

Here is the caller graph for this function:

◆ setNoteName()

void CAScoreView::setNoteName ( QString  n)
inline

References _noteName.

◆ setNoteNameVisible()

void CAScoreView::setNoteNameVisible ( bool  v)
inline

References _noteNameVisible.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setPlaying()

void CAScoreView::setPlaying ( bool  playing)
inline

References _playing, and playing().

Referenced by CAMainWin::on_uiPlayFromSelection_toggled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRepaintArea()

void CAScoreView::setRepaintArea ( QRect *  area)
inline

Sets the area to be repainted, not the whole widget.

See also
clearRepaintArea()

References _repaintArea.

◆ setResizeDirection()

void CAScoreView::setResizeDirection ( CADrawable::CADirection  r)
inlineprivate

References _resizeDirection.

Referenced by initScoreView(), mousePressEvent(), and mouseReleaseEvent().

Here is the caller graph for this function:

◆ setScrollBarVisible()

void CAScoreView::setScrollBarVisible ( CAScrollBarVisibility  status)

References _hScrollBar, _scrollBarVisible, _vScrollBar, checkScrollBars(), ScrollBarAlwaysHidden, and ScrollBarAlwaysVisible.

Here is the call graph for this function:

◆ setSelectedContextColor()

void CAScoreView::setSelectedContextColor ( const QColor  c)
inline

References _selectedContextColor.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setSelectedVoice()

void CAScoreView::setSelectedVoice ( CAVoice selectedVoice)
inline

References _selectedVoice, and selectedVoice().

Referenced by initScoreView(), CAMainWin::setCurrentVoice(), and CAMainWin::sourceViewCommit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectionAreaColor()

void CAScoreView::setSelectionAreaColor ( const QColor  c)
inline

References _selectionAreaColor.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setSelectionColor()

void CAScoreView::setSelectionColor ( const QColor  c)
inline

References _selectionColor.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setShadowNoteAccs()

void CAScoreView::setShadowNoteAccs ( int  accs)
inline

References _shadowNoteAccs.

Referenced by initScoreView(), CAMainWin::scoreViewKeyPress(), and CAMainWin::scoreViewMouseMove().

Here is the caller graph for this function:

◆ setShadowNoteLength()

void CAScoreView::setShadowNoteLength ( CAPlayableLength  l)

References _shadowNote, and updateHelpers().

Referenced by CAMainWin::insertMusElementAt(), CAMainWin::on_uiPlayableLength_toggled(), CAMainWin::scoreViewKeyPress(), and CAMainWin::scoreViewMousePress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setShadowNoteVisible()

void CAScoreView::setShadowNoteVisible ( bool  visible)
inline

References _shadowNoteVisible, and setShadowNoteVisibleOnLeave().

Referenced by initScoreView(), CAMainWin::scoreViewMouseMove(), and CAMainWin::setMode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setShadowNoteVisibleOnLeave()

void CAScoreView::setShadowNoteVisibleOnLeave ( bool  v)
inlineprivate

References _shadowNoteVisibleOnLeave.

Referenced by initScoreView(), and setShadowNoteVisible().

Here is the caller graph for this function:

◆ setSheet()

void CAScoreView::setSheet ( CASheet sheet)
inline

References _sheet, and sheet().

Referenced by initScoreView(), and CAUndoCommand::undoDocument().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTextEdit()

void CAScoreView::setTextEdit ( CATextEdit e)
inlineprivate

References _textEdit.

Referenced by initScoreView().

Here is the caller graph for this function:

◆ setTextEditGeometry()

void CAScoreView::setTextEditGeometry ( const QRect  r)
inlineprivate

References _textEditGeometry.

Referenced by createTextEdit().

Here is the caller graph for this function:

◆ setTextEditVisible()

void CAScoreView::setTextEditVisible ( bool  v)
inlineprivate

References _textEditVisible.

Referenced by createTextEdit(), initScoreView(), and removeTextEdit().

Here is the caller graph for this function:

◆ setWorldCoords() [1/2]

void CAScoreView::setWorldCoords ( const QRectF  r,
bool  animate = false,
bool  force = false 
)

Sets the world coordinates of the view to the given rectangle coords. This is an overloaded member function, provided for convenience.

Warning
Repaint is not done automatically!

References _checkScrollBarsDeadLock, checkScrollBars(), drawableHeight(), drawableWidth(), setWorldHeight(), setWorldWidth(), setWorldX(), and setWorldY().

Referenced by CAKeybdInput::midiInEventToScore(), on_animationTimer_timeout(), rebuild(), resizeEvent(), zoomToFit(), zoomToHeight(), zoomToSelection(), and zoomToWidth().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWorldCoords() [2/2]

void CAScoreView::setWorldCoords ( double  x,
double  y,
double  w,
double  h,
bool  animate = false,
bool  force = false 
)
inline

References setWorldCoords().

Referenced by setWorldCoords().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWorldHeight()

void CAScoreView::setWorldHeight ( double  h,
bool  force = false 
)

Sets the world height of the view. If force is True, sets the value despite the potential illegal value (like negative coordinates).

Warning
Repaint is not done automatically!

References _drawableCList, _drawableMList, _oldWorldH, _vScrollBar, _vScrollBarDeadLock, _worldH, _worldY, _zoom, checkScrollBars(), drawableHeight(), getMaxYExtended(), and setWorldY().

Referenced by checkScrollBars(), setWorldCoords(), and setZoom().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWorldWidth()

void CAScoreView::setWorldWidth ( double  w,
bool  force = false 
)

Sets the world width of the view. If force is True, sets the value despite the potential illegal value (like negative coordinates).

Warning
Repaint is not done automatically!

References _drawableCList, _drawableMList, _hScrollBar, _hScrollBarDeadLock, _oldWorldW, _worldW, _worldX, _zoom, checkScrollBars(), drawableWidth(), getMaxXExtended(), and setWorldX().

Referenced by checkScrollBars(), setWorldCoords(), and setZoom().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWorldX()

void CAScoreView::setWorldX ( double  x,
bool  animate = false,
bool  force = false 
)

Sets the world Top-Left X coordinate of the view. Animates the scroll, if animate is True. If force is True, sets the value despite the potential illegal value (like negative coordinates).

Warning
Repaint is not done automatically!

References _drawableCList, _drawableMList, _hScrollBar, _hScrollBarDeadLock, _oldWorldX, _targetWorldX, _targetWorldY, _targetZoom, _worldW, _worldX, _worldY, _zoom, checkScrollBars(), getMaxXExtended(), startAnimationTimer(), and updateHelpers().

Referenced by CAJumpToView::accept(), clone(), HScrollBarEvent(), CAMainWin::insertMusElementAt(), CAMainWin::onRepaintTimerTimeout(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewWheel(), setCenterCoords(), setWorldCoords(), and setWorldWidth().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWorldY()

void CAScoreView::setWorldY ( double  y,
bool  animate = false,
bool  force = false 
)

Sets the world Top-Left Y coordinate of the view. Animates the scroll, if animate is True. If force is True, sets the value despite the potential illegal value (like negative coordinates).

Warning
Repaint is not done automatically!

References _drawableCList, _drawableMList, _oldWorldY, _targetWorldX, _targetWorldY, _targetZoom, _vScrollBar, _vScrollBarDeadLock, _worldH, _worldX, _worldY, _zoom, checkScrollBars(), getMaxYExtended(), startAnimationTimer(), and updateHelpers().

Referenced by clone(), CAMainWin::scoreViewWheel(), setCenterCoords(), setWorldCoords(), setWorldHeight(), and VScrollBarEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setZoom() [1/2]

void CAScoreView::setZoom ( float  z,
double  x = 0,
double  y = 0,
bool  animate = false,
bool  force = false 
)

Zooms to the given level to given direction.

Warning
Repaint is not done automatically, if animate is False!
Parameters
zZoom level. (1.0 = 100%, 1.5 = 150% etc.)
xX coordinate of the point of the zoom direction.
yY coordinate of the point of the zoom direction.
animateUse smooth animated zoom.
forceUse the given world units despite their illegal values (like negative coordinates etc.).

References _targetWorldX, _targetWorldY, _targetZoom, _worldH, _worldW, _worldX, _worldY, _zoom, checkScrollBars(), drawableHeight(), drawableWidth(), setCenterCoords(), setWorldHeight(), setWorldWidth(), startAnimationTimer(), and updateHelpers().

Referenced by CAMainWin::scoreViewWheel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setZoom() [2/2]

void CAScoreView::setZoom ( float  z,
QPoint  p,
bool  animate = false,
bool  force = false 
)
inline

Zooms to the given level to given direction. This is an overloaded member function, provided for convenience.

Warning
Repaint is not done automatically, if animate is False!
Parameters
zZoom level. (1.0 = 100%, 1.5 = 150% etc.)
pQPoint of the zoom direction.
animateUse smooth animated zoom.
forceUse the given world units despite their illegal values (like negative coordinates etc.).

References setZoom().

Referenced by setZoom().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shadowNoteAccs()

int CAScoreView::shadowNoteAccs ( )
inline

References _shadowNoteAccs.

◆ shadowNoteVisible()

bool CAScoreView::shadowNoteVisible ( )
inline

References _shadowNoteVisible.

◆ shadowNoteVisibleOnLeave()

bool CAScoreView::shadowNoteVisibleOnLeave ( )
inlineprivate

◆ sheet()

CASheet * CAScoreView::sheet ( )
inline

◆ startAnimationTimer()

void CAScoreView::startAnimationTimer ( )
private

References _animationStep, _animationTimer, and on_animationTimer_timeout().

Referenced by setWorldX(), setWorldY(), and setZoom().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ textEdit()

CATextEdit * CAScoreView::textEdit ( )
inline

References _textEdit.

Referenced by createTextEdit(), CAMainWin::onTextEditKeyPressEvent(), removeTextEdit(), CAMainWin::scoreViewMousePress(), and updateHelpers().

Here is the caller graph for this function:

◆ textEditGeometry()

QRect CAScoreView::textEditGeometry ( )
inlineprivate

References _textEditGeometry.

Referenced by updateHelpers().

Here is the caller graph for this function:

◆ textEditVisible()

bool CAScoreView::textEditVisible ( )
inline

References _textEditVisible.

Referenced by CAMainWin::scoreViewMousePress(), and updateHelpers().

Here is the caller graph for this function:

◆ timeMusElementLessThan()

bool CAScoreView::timeMusElementLessThan ( const int  a,
const CAMusElement b 
)
static

Helper function for timeToCoords() when doing the binary search over elements.

See also
musElementTimeLessThan

Referenced by timeToCoords().

Here is the caller graph for this function:

◆ timeToCoords()

double CAScoreView::timeToCoords ( int  time)

Returns the X coordinate for the given Canorus time. Returns -1, if such a time doesn't exist in the score.

References _mapDrawable, _sheet, CADrawableMusElement::musElement(), musElementTimeLessThan(), timeMusElementLessThan(), CAMusElement::timeStart(), CASheet::voiceList(), and CADrawable::xPos().

Referenced by CALayoutEngine::reposit(), and CAMainWin::scoreViewMouseMove().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ timeToCoordsSimpleVersion()

double CAScoreView::timeToCoordsSimpleVersion ( int  time)

Simple Version of

See also
timeToCoords( time ): Returns the X coordinate for the given Canorus time. Returns -1, if such a time doesn't exist in the score.

References _mapDrawable, _sheet, musElementTimeLessThan(), CASheet::voiceList(), and CADrawable::xPos().

Referenced by CAKeybdInput::midiInEventToScore().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unsetBorder()

void CAScoreView::unsetBorder ( )

Disables the border.

References _drawBorder.

Referenced by CAMainWin::setMode().

Here is the caller graph for this function:

◆ updateHelpers()

void CAScoreView::updateHelpers ( )

◆ VScrollBarEvent

void CAScoreView::VScrollBarEvent ( int  val)
privateslot

Processes the Vertical scroll bar event. This method is called when the horizontal scrollbar changes its value, let it be internally or due to user interaction.

References _allowManualScroll, _vScrollBarDeadLock, and setWorldY().

Referenced by initScoreView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wheelEvent

void CAScoreView::wheelEvent ( QWheelEvent *  e)
privateslot

Processes the wheelEvent(). A new signal is emitted: CAWheelEvent(), which usually gets processed by the parent class then.

References _worldX, _worldY, _xCursor, _yCursor, _zoom, and CAWheelEvent().

◆ worldCoords()

const QRectF CAScoreView::worldCoords ( )
inline

References worldHeight(), worldWidth(), worldX(), and worldY().

Referenced by CAKeybdInput::midiInEventToScore(), and rebuild().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ worldHeight()

const double CAScoreView::worldHeight ( )
inline

References _worldH.

Referenced by checkScrollBars(), and worldCoords().

Here is the caller graph for this function:

◆ worldWidth()

const double CAScoreView::worldWidth ( )
inline

◆ worldX()

const double CAScoreView::worldX ( )
inline

◆ worldY()

const double CAScoreView::worldY ( )
inline

References _worldY.

Referenced by clone(), CAMainWin::scoreViewWheel(), updateHelpers(), and worldCoords().

Here is the caller graph for this function:

◆ zoom()

float CAScoreView::zoom ( )
inline

Returns the zoom level of the view (1.0 = 100%, 1.5 = 150% etc.).

References _zoom.

Referenced by CAMainWin::scoreViewWheel(), and updateHelpers().

Here is the caller graph for this function:

◆ zoomToFit()

void CAScoreView::zoomToFit ( bool  animate = false,
bool  force = false 
)

References _drawableCList, _drawableMList, CAKDTree< T >::getMaxX(), CAKDTree< T >::getMaxY(), and setWorldCoords().

Here is the call graph for this function:

◆ zoomToHeight()

void CAScoreView::zoomToHeight ( bool  animate = false,
bool  force = false 
)

References _drawableCList, _drawableMList, getMaxYExtended(), and setWorldCoords().

Here is the call graph for this function:

◆ zoomToSelection()

void CAScoreView::zoomToSelection ( bool  animate = false,
bool  force = false 
)

References _selection, and setWorldCoords().

Here is the call graph for this function:

◆ zoomToWidth()

void CAScoreView::zoomToWidth ( bool  animate = false,
bool  force = false 
)

References _drawableCList, _drawableMList, getMaxXExtended(), and setWorldCoords().

Here is the call graph for this function:

Member Data Documentation

◆ _allowManualScroll

bool CAScoreView::_allowManualScroll
private

This property holds whether a user interaction with the scrollbars actually triggers the scroll of the view.

Referenced by HScrollBarEvent(), initScoreView(), manualScroll(), setManualScroll(), and VScrollBarEvent().

◆ _animationStep

int CAScoreView::_animationStep
private

◆ _animationTimer

QTimer* CAScoreView::_animationTimer
private

◆ _backgroundColor

QColor CAScoreView::_backgroundColor
private

◆ _borderPen

QPen CAScoreView::_borderPen
private

Referenced by border(), paintEvent(), and setBorder().

◆ _canvas

QWidget* CAScoreView::_canvas
private

◆ _checkScrollBarsDeadLock

bool CAScoreView::_checkScrollBarsDeadLock
private

◆ _clickTimer

QTimer* CAScoreView::_clickTimer
private

Referenced by initScoreView(), and mousePressEvent().

◆ _currentContext

CADrawableContext* CAScoreView::_currentContext
private

◆ _disabledElementsColor

QColor CAScoreView::_disabledElementsColor
private

◆ _drawableCList

CAKDTree<CADrawableContext*> CAScoreView::_drawableCList
private

◆ _drawableMList

CAKDTree<CADrawableMusElement*> CAScoreView::_drawableMList
private

◆ _drawableNCEList

CAKDTree<CADrawableNoteCheckerError*> CAScoreView::_drawableNCEList
private

◆ _drawBorder

bool CAScoreView::_drawBorder
private

◆ _drawShadowNoteAccs

bool CAScoreView::_drawShadowNoteAccs
private

◆ _foregroundColor

QColor CAScoreView::_foregroundColor
private

◆ _grabTabKey

bool CAScoreView::_grabTabKey
private

◆ _hiddenElementsColor

QColor CAScoreView::_hiddenElementsColor
private

◆ _holdRepaint

bool CAScoreView::_holdRepaint
private

◆ _hScrollBar

QScrollBar* CAScoreView::_hScrollBar
private

◆ _hScrollBarDeadLock

bool CAScoreView::_hScrollBarDeadLock
private

◆ _lastMousePressCoords

QPoint CAScoreView::_lastMousePressCoords
private

◆ _layout

QGridLayout* CAScoreView::_layout
private

Referenced by initScoreView().

◆ _mapDrawable

QMultiMap<void*, CADrawable*> CAScoreView::_mapDrawable
private

◆ _noteName

QString CAScoreView::_noteName
private

Referenced by noteName(), and setNoteName().

◆ _noteNameVisible

bool CAScoreView::_noteNameVisible
private

◆ _numberOfClicks

int CAScoreView::_numberOfClicks
private

◆ _oldWorldH

double CAScoreView::_oldWorldH
private

◆ _oldWorldW

double CAScoreView::_oldWorldW
private

◆ _oldWorldX

double CAScoreView::_oldWorldX
private

Referenced by paintEvent(), and setWorldX().

◆ _oldWorldY

double CAScoreView::_oldWorldY
private

Referenced by paintEvent(), and setWorldY().

◆ _playing

bool CAScoreView::_playing
private

Referenced by initScoreView(), playing(), and setPlaying().

◆ _repaintArea

QRect* CAScoreView::_repaintArea
private

◆ _resizeDirection

CADrawable::CADirection CAScoreView::_resizeDirection
private

◆ _scrollBarVisible

CAScrollBarVisibility CAScoreView::_scrollBarVisible
private

◆ _selectedContextColor

QColor CAScoreView::_selectedContextColor
private

◆ _selectedVoice

CAVoice* CAScoreView::_selectedVoice
private

Referenced by selectedVoice(), and setSelectedVoice().

◆ _selection

QList<CADrawableMusElement *> CAScoreView::_selection
private

◆ _selectionAreaColor

QColor CAScoreView::_selectionAreaColor
private

◆ _selectionColor

QColor CAScoreView::_selectionColor
private

◆ _selectionRegionList

QList<QRect> CAScoreView::_selectionRegionList
private

◆ _shadowDrawableNote

QList<CADrawableNote*> CAScoreView::_shadowDrawableNote
private

◆ _shadowNote

QList<CANote*> CAScoreView::_shadowNote
private

◆ _shadowNoteAccs

int CAScoreView::_shadowNoteAccs
private

◆ _shadowNoteVisible

bool CAScoreView::_shadowNoteVisible
private

◆ _shadowNoteVisibleOnLeave

bool CAScoreView::_shadowNoteVisibleOnLeave
private

◆ _sheet

CASheet* CAScoreView::_sheet
private

◆ _targetWorldH

double CAScoreView::_targetWorldH
private

◆ _targetWorldW

double CAScoreView::_targetWorldW
private

◆ _targetWorldX

double CAScoreView::_targetWorldX
private

◆ _targetWorldY

double CAScoreView::_targetWorldY
private

◆ _targetZoom

float CAScoreView::_targetZoom
private

◆ _textEdit

CATextEdit* CAScoreView::_textEdit
private

Referenced by setTextEdit(), and textEdit().

◆ _textEditGeometry

QRect CAScoreView::_textEditGeometry
private

◆ _textEditVisible

bool CAScoreView::_textEditVisible
private

◆ _vScrollBar

QScrollBar * CAScoreView::_vScrollBar
private

◆ _vScrollBarDeadLock

bool CAScoreView::_vScrollBarDeadLock
private

◆ _worldH

double CAScoreView::_worldH
private

◆ _worldW

double CAScoreView::_worldW
private

◆ _worldX

double CAScoreView::_worldX
private

◆ _worldY

double CAScoreView::_worldY
private

◆ _xCursor

double CAScoreView::_xCursor
private

◆ _yCursor

double CAScoreView::_yCursor
private

◆ _zoom

float CAScoreView::_zoom
private

◆ ANIMATION_STEPS

const int CAScoreView::ANIMATION_STEPS = 7
staticprivate

◆ BOTTOM_EXTRA_SPACE

const int CAScoreView::BOTTOM_EXTRA_SPACE = 30
staticprivate

Referenced by getMaxYExtended().

◆ RIGHT_EXTRA_SPACE

const int CAScoreView::RIGHT_EXTRA_SPACE = 100
staticprivate

Copyright (c) 2006-2009, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.

Referenced by getMaxXExtended().

◆ RULER_HEIGHT

const int CAScoreView::RULER_HEIGHT = 15
staticprivate

Referenced by paintEvent().

◆ SELECTION_REGION_THRESHOLD

const int CAScoreView::SELECTION_REGION_THRESHOLD = 10
static

Referenced by mouseDragActivated().


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