|
Canorus
0.0
|
#include <scoreview.h>

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 *) |
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 () |
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 |
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).
Different behaviour of the scroll bars:
| Enumerator | |
|---|---|
| ScrollBarAlwaysVisible | |
| ScrollBarAlwaysHidden | |
| ScrollBarShowIfNeeded | |
| CAScoreView::CAScoreView | ( | QWidget * | parent = 0 | ) |
References initScoreView().
Referenced by clone().


| CAScoreView::CAScoreView | ( | CASheet * | sheet, |
| QWidget * | parent = 0 |
||
| ) |
|
virtual |
References _animationTimer, _drawableCList, _drawableMList, _drawableNCEList, _hScrollBar, _shadowDrawableNote, _shadowNote, _vScrollBar, and CAKDTree< T >::clear().

| 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().


| 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().


| 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().


|
inline |
References _selectionRegionList.
Referenced by CAMainWin::scoreViewMouseMove().

| void CAScoreView::addToSelection | ( | CADrawableMusElement * | elt, |
| bool | triggerSignal = true |
||
| ) |
Adds the given drawable music element elt to the current selection.
References _selection, CADrawable::isSelectable(), selectionChanged(), and CADrawable::xPos().
Referenced by addMElement(), addToSelection(), invertSelection(), CAKeybdInput::midiInEventToScore(), CAMainWin::onRepaintTimerTimeout(), CAMainWin::pasteAt(), rebuild(), CAMainWin::scoreViewMousePress(), CAMainWin::scoreViewMouseRelease(), selectAll(), selectAllCurBar(), selectAllCurContext(), selectMElement(), selectNextMusElement(), and selectPrevMusElement().


| 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().

| 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().

| void CAScoreView::addToSelection | ( | const QList< CAMusElement * > | elts | ) |
Adds the given list of abstract music elements to the selection.
References _mapDrawable, addToSelection(), and selectionChanged().

|
inline |
References _backgroundColor.
Referenced by initScoreView().

|
inline |
References _borderPen.
|
signal |
|
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.
| e | Wheel event which gets processed. |
| v | Pointer to this view (the view which emmitted the signal). |
Referenced by keyPressEvent().

| 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().

|
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.
| e | Mouse event which gets processed. |
| p | Coordinates of the mouse cursor in absolute world values. |
| v | Pointer to this view (the view which emmitted the signal). |
Referenced by mouseMoveEvent().

|
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.
| e | Mouse event which gets processed. |
| p | Coordinates of the mouse cursor in absolute world values. |
| v | Pointer to this view (the view which emmitted the signal). |
Referenced by mousePressEvent().

|
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.
| e | Mouse event which gets processed. |
| p | Coordinates of the mouse cursor in absolute world values. |
| v | Pointer to this view (the view which emmitted the signal). |
Referenced by mouseReleaseEvent().

|
signal |
|
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.
| e | Wheel event which gets processed. |
| p | Coordinates of the mouse cursor in absolute world values. |
| v | Pointer to this view (the view which emmitted the signal). |
Referenced by wheelEvent().

| 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().


|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
Clears the current selection. Its behaviour is the same as calling clearMSelection() and clearCSelection().
References _selection, and selectionChanged().
Referenced by CAMainWin::deleteSelection(), invertSelection(), CAKeybdInput::midiInEventToScore(), CAMainWin::on_uiPlayFromSelection_toggled(), CAMainWin::on_uiRemoveVoice_triggered(), CAMainWin::onRepaintTimerTimeout(), CAMainWin::pasteAt(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), CAMainWin::scoreViewMouseRelease(), selectAll(), selectAllCurBar(), and selectAllCurContext().

|
inline |
References _selectionRegionList.
Referenced by CAMainWin::scoreViewMouseMove(), CAMainWin::scoreViewMousePress(), and CAMainWin::scoreViewMouseRelease().

|
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().


|
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().

| 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.
| dotted | Also include dotted barlines in the list (which are usually ignored in the bar count) |
References _drawableCList, CATimeSignature::barDuration(), CABarline::Dotted, CADrawableStaff::drawableBarlineList(), CADrawableContext::DrawableStaff, CADrawableStaff::drawableTimeSignatureList(), CAKDTree< T >::list(), and CADrawableTimeSignature::timeSignature().
Referenced by CAJumpToView::accept(), and paintEvent().


| 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().

| 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().


| CATextEdit * CAScoreView::createTextEdit | ( | CADrawableMusElement * | dMusElt | ) |
Creates a CATextEdit widget over the existing drawable syllable dMusElt. Returns the pointer to the created widget.
References CAMark::BookMark, CADrawableMusElement::drawableContext(), findMElement(), CASyllable::hyphenStart(), CADrawableLyricsContext::lyricsContext(), CAMusElement::Mark, CAMark::markType(), CASyllable::melismaStart(), CADrawableMusElement::musElement(), CAMusElement::musElementType(), CALyricsContext::next(), setTextEditGeometry(), setTextEditVisible(), CAMusElement::Syllable, CAMark::Text, CASyllable::text(), textEdit(), updateHelpers(), CADrawable::xPos(), and CADrawable::yPos().
Referenced by CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewMousePress(), and CAMainWin::scoreViewMouseRelease().


|
inline |
References _currentContext.
Referenced by CAMainWin::insertMusElementAt(), CAKeybdInput::midiInEventToScore(), CATransposeView::on_uiApply_clicked(), paintEvent(), CAMainWin::pasteAt(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMouseMove(), CAMainWin::scoreViewMousePress(), selectAllCurBar(), selectAllCurContext(), selectCElement(), updateHelpers(), and CAMainWin::updateSheetToolBar().

|
inline |
References _disabledElementsColor.
Referenced by initScoreView(), and paintEvent().

|
inline |
References _canvas.
Referenced by checkScrollBars(), on_animationTimer_timeout(), paintEvent(), resizeEvent(), setWorldCoords(), setWorldHeight(), and setZoom().

|
inline |
References _canvas.
Referenced by checkScrollBars(), on_animationTimer_timeout(), paintEvent(), resizeEvent(), setWorldCoords(), setWorldWidth(), and setZoom().

|
private |
References CADrawSettings::color, CADrawSettings::h, CADrawSettings::w, CADrawSettings::x, and CADrawSettings::y.
Referenced by paintEvent().

|
inline |
References _drawShadowNoteAccs.
|
privateslot |
References _shadowNoteVisible, and _shadowNoteVisibleOnLeave.
|
protected |
This functions forward the Tab and Shift+Tab keys to keyPressEvent(), if grabTabKey is True.
References _grabTabKey, and keyPressEvent().

| CADrawableContext * CAScoreView::findCElement | ( | CAContext * | context | ) |
Finds the drawable instance of the given abstract context.
References _mapDrawable.
| 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().


| CADrawableMusElement * CAScoreView::findMElement | ( | CAMusElement * | elt | ) |
Finds the first drawable instance of the given abstract music element.
References _mapDrawable.
Referenced by createTextEdit(), and CALayoutEngine::reposit().

|
inline |
References _foregroundColor.
Referenced by initScoreView(), and paintEvent().

|
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().


|
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().


|
inline |
References _grabTabKey.
|
inline |
References _hiddenElementsColor.
Referenced by initScoreView(), and paintEvent().

|
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().


| 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().

|
private |
References _allowManualScroll, _animationTimer, _canvas, _checkScrollBarsDeadLock, _clickTimer, _currentContext, _drawBorder, _grabTabKey, _holdRepaint, _hScrollBar, _hScrollBarDeadLock, _layout, _oldWorldH, _oldWorldW, _playing, _repaintArea, _scrollBarVisible, _vScrollBar, _vScrollBarDeadLock, _worldH, _worldW, _worldX, _worldY, _xCursor, _yCursor, _zoom, backgroundColor(), disabledElementsColor(), foregroundColor(), hiddenElementsColor(), HScrollBarEvent(), on_animationTimer_timeout(), on_clickTimer_timeout(), CAView::ScoreView, ScrollBarShowIfNeeded, selectedContextColor(), selectionAreaColor(), selectionColor(), setBackgroundColor(), setDisabledElementsColor(), setDrawShadowNoteAccs(), setForegroundColor(), setHiddenElementsColor(), setMouseTracking(), setNoteNameVisible(), setResizeDirection(), setSelectedContextColor(), setSelectedVoice(), setSelectionAreaColor(), setSelectionColor(), setShadowNoteAccs(), setShadowNoteVisible(), setShadowNoteVisibleOnLeave(), setSheet(), setTextEdit(), setTextEditVisible(), CACanorus::settings(), CAView::setViewType(), sheet(), CADrawable::Undefined, and VScrollBarEvent().
Referenced by CAScoreView().


| void CAScoreView::invertSelection | ( | ) |
Inverts the current selection.
References _drawableMList, addToSelection(), clearSelection(), CAKDTree< T >::list(), selection(), and selectionChanged().

|
inline |
References _scrollBarVisible.
Referenced by checkScrollBars().

|
inlineprivate |
References _selection.
|
privateslot |
Processes the keyPressEvent(). A new signal is emitted: CAKeyPressEvent(), which usually gets processed by the parent class then.
References CAKeyPressEvent().
Referenced by event().

|
inline |
References _lastMousePressCoords.
Referenced by mousePressEvent(), CAMainWin::scoreViewMouseMove(), CAMainWin::scoreViewMouseRelease(), and setLastMousePressCoordsAfter().

|
privateslot |
References _shadowNoteVisible, and _shadowNoteVisibleOnLeave.
|
inline |
References _allowManualScroll.
| 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.
References _lastMousePressCoords, _xCursor, _yCursor, _zoom, and SELECTION_REGION_THRESHOLD.
Referenced by CAMainWin::scoreViewMouseMove(), and CAMainWin::scoreViewMouseRelease().

|
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().

|
privateslot |
Processes the mousePressEvent(). A new signal is emitted: CAMousePressEvent(), which usually gets processed by the parent class then.
References _clickTimer, _numberOfClicks, _worldX, _worldY, _zoom, CADrawable::Bottom, CADoubleClickEvent(), CAMousePressEvent(), CATripleClickEvent(), lastMousePressCoords(), CADrawable::Left, CAView::mousePressEvent(), CADrawable::Right, selection(), setLastMousePressCoords(), setResizeDirection(), and CADrawable::Top.

|
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.

| 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().


| 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().

|
static |
Helper function for timeToCoords() when doing the binary search over elements.
References CAMusElement::timeStart().
Referenced by timeToCoords(), and timeToCoordsSimpleVersion().


| CADrawableContext * CAScoreView::nearestDownContext | ( | double | x, |
| double | y | ||
| ) |
Returns a pointer to the nearest upper drawable context from the given coordinates.
References _drawableCList, and CAKDTree< T >::findNearestDown().

| 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().


| 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().

| 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().


| 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().

| CADrawableContext * CAScoreView::nearestUpContext | ( | double | x, |
| double | y | ||
| ) |
Returns a pointer to the nearest upper drawable context from the given coordinates.
References _drawableCList, and CAKDTree< T >::findNearestUp().
Referenced by CAMainWin::scoreViewMousePress().


|
inline |
|
inline |
References _noteNameVisible.
|
privateslot |
References _animationStep, _animationTimer, _targetWorldX, _targetWorldY, _targetZoom, _worldX, _worldY, _zoom, ANIMATION_STEPS, drawableHeight(), drawableWidth(), and setWorldCoords().
Referenced by initScoreView(), and startAnimationTimer().


|
privateslot |
Clears number of clicks done so far inside one interval. This function is usually click timer's slot.
References _numberOfClicks.
Referenced by initScoreView().

|
privateslot |
General Qt's paint event. All the music elements get actually rendered in this method.
References _backgroundColor, _borderPen, _canvas, _currentContext, _drawableCList, _drawableMList, _drawableNCEList, _drawBorder, _drawShadowNoteAccs, _holdRepaint, _oldWorldH, _oldWorldW, _oldWorldX, _oldWorldY, _repaintArea, _selection, _shadowDrawableNote, _shadowNote, _shadowNoteAccs, _shadowNoteVisible, _worldH, _worldW, _worldX, _worldY, _xCursor, _yCursor, _zoom, CADrawSettings::color, CAMusElement::color(), computeBarlinePositions(), CAMusElement::context(), currentContext(), disabledElementsColor(), CADrawableAccidental::draw(), drawableHeight(), drawableWidth(), drawSelectionRegion(), CAKDTree< T >::findInRange(), foregroundColor(), CANote::generateNoteName(), CARest::Hidden, hiddenElementsColor(), CAMusElement::isPlayable(), CAMusElement::isVisible(), CAMusElement::musElementType(), noteName(), NULL, CAMusElement::Rest, CARest::restType(), RULER_HEIGHT, selectedContextColor(), selectedVoice(), selectionAreaColor(), selectionColor(), selectionRegionList(), CACanorus::settings(), CAPlayable::voice(), CADrawable::width(), CADrawSettings::x, CADrawable::xPos(), CADrawSettings::y, and CADrawable::yPos().

|
inline |
References _playing.
Referenced by CAMainWin::setMode(), and setPlaying().

|
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().


|
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().

|
inline |
References _selectionRegionList.
| 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().


|
inline |
References _resizeDirection.
Referenced by CAMainWin::scoreViewMouseMove(), CAMainWin::scoreViewMousePress(), and CAMainWin::scoreViewMouseRelease().

|
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().

| 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().

| 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().

| 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().

| 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().


| 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.
References _drawableCList, CAKDTree< T >::list(), and setCurrentContext().
Referenced by CAMainWin::newDocument(), CAMainWin::onImportDone(), CAMainWin::openDocument(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), and CAMainWin::setCurrentVoice().


| 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.
References _selection.
|
inline |
References _selectedContextColor.
Referenced by initScoreView(), and paintEvent().

|
inline |
References _selectedVoice.
Referenced by CAMainWin::currentVoice(), musElementsAt(), paintEvent(), CAMainWin::scoreViewMouseRelease(), selectAllCurBar(), selectNextMusElement(), selectPrevMusElement(), setSelectedVoice(), and updateHelpers().

|
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().
|
inline |
References _selectionAreaColor.
Referenced by initScoreView(), and paintEvent().

|
signal |
Referenced by addMElement(), addToSelection(), clearSelection(), invertSelection(), removeFromSelection(), selectAll(), selectAllCurBar(), selectAllCurContext(), and selectMElement().

|
inline |
References _selectionColor.
Referenced by initScoreView(), and paintEvent().

|
inline |
References _selectionRegionList.
Referenced by paintEvent().

| 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.
References _mapDrawable, _selection, addToSelection(), CADrawable::DrawableMusElement, selection(), and selectionChanged().
Referenced by CAMainWin::insertMusElementAt(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewKeyPress(), selectNextMusElement(), and selectPrevMusElement().


| 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().


| 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().


| 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.
References _selection.
|
inline |
References _backgroundColor.
Referenced by initScoreView().

| 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().

| 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.
References _worldH, _worldW, checkScrollBars(), setWorldX(), and setWorldY().
Referenced by setZoom().


|
inline |
References _currentContext.
Referenced by addCElement(), rebuild(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), selectCElement(), and selectContext().

|
inline |
References _disabledElementsColor.
Referenced by initScoreView().

|
inline |
References _drawShadowNoteAccs.
Referenced by initScoreView(), CAMainWin::insertMusElementAt(), and CAMainWin::scoreViewKeyPress().

|
inline |
References _foregroundColor.
Referenced by initScoreView().

|
inline |
References _grabTabKey.
|
inline |
References _hiddenElementsColor.
Referenced by initScoreView().

|
inlineprivate |
References _lastMousePressCoords.
Referenced by mousePressEvent(), and 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().


|
inline |
References _allowManualScroll.
| 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().

|
inline |
References _noteName.
|
inline |
References _noteNameVisible.
Referenced by initScoreView().

|
inline |
References _playing, and playing().
Referenced by CAMainWin::on_uiPlayFromSelection_toggled().


|
inline |
Sets the area to be repainted, not the whole widget.
References _repaintArea.
|
inlineprivate |
References _resizeDirection.
Referenced by initScoreView(), mousePressEvent(), and mouseReleaseEvent().

| void CAScoreView::setScrollBarVisible | ( | CAScrollBarVisibility | status | ) |
References _hScrollBar, _scrollBarVisible, _vScrollBar, checkScrollBars(), ScrollBarAlwaysHidden, and ScrollBarAlwaysVisible.

|
inline |
References _selectedContextColor.
Referenced by initScoreView().

|
inline |
References _selectedVoice, and selectedVoice().
Referenced by initScoreView(), CAMainWin::setCurrentVoice(), and CAMainWin::sourceViewCommit().


|
inline |
References _selectionAreaColor.
Referenced by initScoreView().

|
inline |
References _selectionColor.
Referenced by initScoreView().

|
inline |
References _shadowNoteAccs.
Referenced by initScoreView(), CAMainWin::scoreViewKeyPress(), and CAMainWin::scoreViewMouseMove().

| void CAScoreView::setShadowNoteLength | ( | CAPlayableLength | l | ) |
References _shadowNote, and updateHelpers().
Referenced by CAMainWin::insertMusElementAt(), CAMainWin::on_uiPlayableLength_toggled(), CAMainWin::scoreViewKeyPress(), and CAMainWin::scoreViewMousePress().


|
inline |
References _shadowNoteVisible, and setShadowNoteVisibleOnLeave().
Referenced by initScoreView(), CAMainWin::scoreViewMouseMove(), and CAMainWin::setMode().


|
inlineprivate |
References _shadowNoteVisibleOnLeave.
Referenced by initScoreView(), and setShadowNoteVisible().

|
inline |
References _sheet, and sheet().
Referenced by initScoreView(), and CAUndoCommand::undoDocument().


|
inlineprivate |
|
inlineprivate |
References _textEditGeometry.
Referenced by createTextEdit().

|
inlineprivate |
References _textEditVisible.
Referenced by createTextEdit(), initScoreView(), and removeTextEdit().

| 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.
References _checkScrollBarsDeadLock, checkScrollBars(), drawableHeight(), drawableWidth(), setWorldHeight(), setWorldWidth(), setWorldX(), and setWorldY().
Referenced by CAKeybdInput::midiInEventToScore(), on_animationTimer_timeout(), rebuild(), resizeEvent(), zoomToFit(), zoomToHeight(), zoomToSelection(), and zoomToWidth().


|
inline |
References setWorldCoords().
Referenced by setWorldCoords().


| 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).
References _drawableCList, _drawableMList, _oldWorldH, _vScrollBar, _vScrollBarDeadLock, _worldH, _worldY, _zoom, checkScrollBars(), drawableHeight(), getMaxYExtended(), and setWorldY().
Referenced by checkScrollBars(), setWorldCoords(), and setZoom().


| 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).
References _drawableCList, _drawableMList, _hScrollBar, _hScrollBarDeadLock, _oldWorldW, _worldW, _worldX, _zoom, checkScrollBars(), drawableWidth(), getMaxXExtended(), and setWorldX().
Referenced by checkScrollBars(), setWorldCoords(), and setZoom().


| 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).
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().


| 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).
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().


| 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.
| z | Zoom level. (1.0 = 100%, 1.5 = 150% etc.) |
| x | X coordinate of the point of the zoom direction. |
| y | Y coordinate of the point of the zoom direction. |
| animate | Use smooth animated zoom. |
| force | Use 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().


|
inline |
Zooms to the given level to given direction. This is an overloaded member function, provided for convenience.
| z | Zoom level. (1.0 = 100%, 1.5 = 150% etc.) |
| p | QPoint of the zoom direction. |
| animate | Use smooth animated zoom. |
| force | Use the given world units despite their illegal values (like negative coordinates etc.). |
References setZoom().
Referenced by setZoom().


|
inline |
References _shadowNoteAccs.
|
inline |
References _shadowNoteVisible.
|
inlineprivate |
References _shadowNoteVisibleOnLeave.
|
inline |
Returns the pointer to the view's sheet it represents.
References _sheet.
Referenced by CAScoreView(), CAMainWin::copySelection(), CAMainWin::deleteSelection(), initScoreView(), CAMainWin::insertMusElementAt(), CATransposeView::on_uiApply_clicked(), CAMainWin::on_uiPlayableLength_toggled(), CAMainWin::on_uiTimeSigBeats_valueChanged(), CAMainWin::pasteAt(), CALayoutEngine::reposit(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), CAMainWin::scoreViewMouseRelease(), setSheet(), CATransposeView::show(), CAUndoCommand::undoDocument(), and CAMainWin::updateSheetToolBar().

|
private |
References _animationStep, _animationTimer, and on_animationTimer_timeout().
Referenced by setWorldX(), setWorldY(), and setZoom().


|
inline |
References _textEdit.
Referenced by createTextEdit(), CAMainWin::onTextEditKeyPressEvent(), removeTextEdit(), CAMainWin::scoreViewMousePress(), and updateHelpers().

|
inlineprivate |
References _textEditGeometry.
Referenced by updateHelpers().

|
inline |
References _textEditVisible.
Referenced by CAMainWin::scoreViewMousePress(), and updateHelpers().

|
static |
Helper function for timeToCoords() when doing the binary search over elements.
Referenced by 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().


| double CAScoreView::timeToCoordsSimpleVersion | ( | int | time | ) |
Simple Version of
References _mapDrawable, _sheet, musElementTimeLessThan(), CASheet::voiceList(), and CADrawable::xPos().
Referenced by CAKeybdInput::midiInEventToScore().


| void CAScoreView::unsetBorder | ( | ) |
Disables the border.
References _drawBorder.
Referenced by CAMainWin::setMode().

| void CAScoreView::updateHelpers | ( | ) |
References _shadowDrawableNote, _shadowNote, _xCursor, _yCursor, currentContext(), CADrawableContext::DrawableStaff, selectedVoice(), textEdit(), textEditGeometry(), textEditVisible(), worldX(), worldY(), and zoom().
Referenced by createTextEdit(), CAMainWin::insertMusElementAt(), CAKeybdInput::midiInEventToScore(), CAMainWin::on_uiPlayableLength_toggled(), rebuild(), removeTextEdit(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMouseMove(), CAMainWin::scoreViewMousePress(), CAMainWin::setCurrentVoice(), setShadowNoteLength(), setWorldX(), setWorldY(), and setZoom().


|
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().


|
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().
|
inline |
References worldHeight(), worldWidth(), worldX(), and worldY().
Referenced by CAKeybdInput::midiInEventToScore(), and rebuild().


|
inline |
References _worldH.
Referenced by checkScrollBars(), and worldCoords().

|
inline |
References _worldW.
Referenced by CAJumpToView::accept(), checkScrollBars(), CAMainWin::insertMusElementAt(), CAMainWin::onRepaintTimerTimeout(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewKeyPress(), and worldCoords().

|
inline |
References _worldX.
Referenced by clone(), CAMainWin::insertMusElementAt(), CAMainWin::onRepaintTimerTimeout(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewWheel(), updateHelpers(), and worldCoords().

|
inline |
References _worldY.
Referenced by clone(), CAMainWin::scoreViewWheel(), updateHelpers(), and worldCoords().

|
inline |
Returns the zoom level of the view (1.0 = 100%, 1.5 = 150% etc.).
References _zoom.
Referenced by CAMainWin::scoreViewWheel(), and updateHelpers().

| void CAScoreView::zoomToFit | ( | bool | animate = false, |
| bool | force = false |
||
| ) |
References _drawableCList, _drawableMList, CAKDTree< T >::getMaxX(), CAKDTree< T >::getMaxY(), and setWorldCoords().

| void CAScoreView::zoomToHeight | ( | bool | animate = false, |
| bool | force = false |
||
| ) |
References _drawableCList, _drawableMList, getMaxYExtended(), and setWorldCoords().

| void CAScoreView::zoomToSelection | ( | bool | animate = false, |
| bool | force = false |
||
| ) |
| void CAScoreView::zoomToWidth | ( | bool | animate = false, |
| bool | force = false |
||
| ) |
References _drawableCList, _drawableMList, getMaxXExtended(), and setWorldCoords().

|
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().
|
private |
Referenced by on_animationTimer_timeout(), and startAnimationTimer().
|
private |
Referenced by initScoreView(), on_animationTimer_timeout(), startAnimationTimer(), and ~CAScoreView().
|
private |
Referenced by backgroundColor(), paintEvent(), and setBackgroundColor().
|
private |
Referenced by border(), paintEvent(), and setBorder().
|
private |
Referenced by drawableHeight(), drawableWidth(), initScoreView(), paintEvent(), and setMouseTracking().
|
private |
Referenced by checkScrollBars(), initScoreView(), and setWorldCoords().
|
private |
Referenced by initScoreView(), and mousePressEvent().
|
private |
Referenced by currentContext(), initScoreView(), paintEvent(), rebuild(), and setCurrentContext().
|
private |
Referenced by disabledElementsColor(), and setDisabledElementsColor().
|
private |
Referenced by addCElement(), checkScrollBars(), clearCElements(), computeBarlinePositions(), contextCollision(), findContextsInRegion(), importElements(), nearestDownContext(), nearestUpContext(), paintEvent(), rebuild(), selectCElement(), selectContext(), setWorldHeight(), setWorldWidth(), setWorldX(), setWorldY(), zoomToFit(), zoomToHeight(), zoomToWidth(), and ~CAScoreView().
|
private |
Referenced by addMElement(), calculateTime(), checkScrollBars(), clearMElements(), invertSelection(), musElementsAt(), nearestLeftElement(), nearestRightElement(), paintEvent(), rebuild(), selectAll(), setWorldHeight(), setWorldWidth(), setWorldX(), setWorldY(), zoomToFit(), zoomToHeight(), zoomToWidth(), and ~CAScoreView().
|
private |
Referenced by addDrawableNoteCheckerError(), paintEvent(), rebuild(), and ~CAScoreView().
|
private |
Referenced by initScoreView(), paintEvent(), setBorder(), and unsetBorder().
|
private |
Referenced by drawShadowNoteAccs(), paintEvent(), and setDrawShadowNoteAccs().
|
private |
Referenced by foregroundColor(), and setForegroundColor().
|
private |
Referenced by event(), grabTabKey(), initScoreView(), and setGrabTabKey().
|
private |
Referenced by hiddenElementsColor(), and setHiddenElementsColor().
|
private |
Referenced by checkScrollBars(), initScoreView(), and paintEvent().
|
private |
Referenced by checkScrollBars(), initScoreView(), setScrollBarVisible(), setWorldWidth(), setWorldX(), and ~CAScoreView().
|
private |
Referenced by HScrollBarEvent(), initScoreView(), setWorldWidth(), and setWorldX().
|
private |
Referenced by lastMousePressCoords(), mouseDragActivated(), selectAllCurBar(), and setLastMousePressCoords().
|
private |
Referenced by initScoreView().
|
private |
|
private |
Referenced by noteName(), and setNoteName().
|
private |
Referenced by noteNameVisible(), and setNoteNameVisible().
|
private |
Referenced by mousePressEvent(), and on_clickTimer_timeout().
|
private |
Referenced by initScoreView(), paintEvent(), and setWorldHeight().
|
private |
Referenced by initScoreView(), paintEvent(), and setWorldWidth().
|
private |
Referenced by paintEvent(), and setWorldX().
|
private |
Referenced by paintEvent(), and setWorldY().
|
private |
Referenced by initScoreView(), playing(), and setPlaying().
|
private |
Referenced by clearRepaintArea(), initScoreView(), paintEvent(), and setRepaintArea().
|
private |
Referenced by resizeDirection(), and setResizeDirection().
|
private |
Referenced by initScoreView(), isScrollBarVisible(), and setScrollBarVisible().
|
private |
Referenced by selectedContextColor(), and setSelectedContextColor().
|
private |
Referenced by selectedVoice(), and setSelectedVoice().
|
private |
|
private |
Referenced by selectionAreaColor(), and setSelectionAreaColor().
|
private |
Referenced by selectionColor(), and setSelectionColor().
|
private |
Referenced by addSelectionRegion(), clearSelectionRegionList(), removeSelectionRegion(), and selectionRegionList().
|
private |
Referenced by addCElement(), paintEvent(), rebuild(), updateHelpers(), and ~CAScoreView().
|
private |
Referenced by addCElement(), paintEvent(), rebuild(), setShadowNoteLength(), updateHelpers(), and ~CAScoreView().
|
private |
Referenced by paintEvent(), setShadowNoteAccs(), and shadowNoteAccs().
|
private |
Referenced by enterEvent(), leaveEvent(), paintEvent(), setShadowNoteVisible(), and shadowNoteVisible().
|
private |
Referenced by enterEvent(), leaveEvent(), setShadowNoteVisibleOnLeave(), and shadowNoteVisibleOnLeave().
|
private |
Referenced by clone(), setSheet(), sheet(), timeToCoords(), and timeToCoordsSimpleVersion().
|
private |
|
private |
|
private |
Referenced by on_animationTimer_timeout(), setWorldX(), setWorldY(), and setZoom().
|
private |
Referenced by on_animationTimer_timeout(), setWorldX(), setWorldY(), and setZoom().
|
private |
Referenced by on_animationTimer_timeout(), setWorldX(), setWorldY(), and setZoom().
|
private |
Referenced by setTextEdit(), and textEdit().
|
private |
Referenced by setTextEditGeometry(), and textEditGeometry().
|
private |
Referenced by setTextEditVisible(), and textEditVisible().
|
private |
Referenced by checkScrollBars(), initScoreView(), setScrollBarVisible(), setWorldHeight(), setWorldY(), and ~CAScoreView().
|
private |
Referenced by initScoreView(), setWorldHeight(), setWorldY(), and VScrollBarEvent().
|
private |
Referenced by initScoreView(), paintEvent(), setCenterCoords(), setWorldHeight(), setWorldY(), setZoom(), and worldHeight().
|
private |
Referenced by initScoreView(), paintEvent(), setCenterCoords(), setWorldWidth(), setWorldX(), setZoom(), and worldWidth().
|
private |
|
private |
|
private |
Referenced by initScoreView(), mouseDragActivated(), mouseMoveEvent(), paintEvent(), updateHelpers(), and wheelEvent().
|
private |
Referenced by initScoreView(), mouseDragActivated(), mouseMoveEvent(), paintEvent(), updateHelpers(), and wheelEvent().
|
private |
|
staticprivate |
Referenced by on_animationTimer_timeout().
|
staticprivate |
Referenced by getMaxYExtended().
|
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().
|
staticprivate |
Referenced by paintEvent().
|
static |
Referenced by mouseDragActivated().