|
Canorus
0.7
|
#include <scoreviewport.h>

Public Types | |
| enum | CAScrollBarVisibility { ScrollBarAlwaysVisible, ScrollBarAlwaysHidden, ScrollBarShowIfNeeded } |
Public Types inherited from CAViewPort | |
| enum | CAViewPortType { ScoreViewPort, SourceViewPort } |
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 CAViewPort | |
| void | clicked () |
| void | closed (CAViewPort *) |
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 | initScoreViewPort (CASheet *s) |
| void | clearMElements () |
| void | clearCElements () |
| bool | isSelected (CADrawableMusElement *elt) |
| template<typename T > | |
| int | getMaxXExtended (CAKDTree< T > &v) |
| template<typename T > | |
| int | 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 | ANIMATION_STEPS = 7 |
Additional Inherited Members | |
Static Public Attributes inherited from CAViewPort | |
| static const int | DEFAULT_VIEWPORT_WIDTH = 600 |
| static const int | DEFAULT_VIEWPORT_HEIGHT = 400 |
Protected Slots inherited from CAViewPort | |
| void | mousePressEvent (QMouseEvent *e) |
| void | closeEvent (QCloseEvent *) |
Protected Member Functions inherited from CAViewPort | |
| void | setViewPortType (CAViewPortType t) |
Protected Attributes inherited from CAViewPort | |
| CAViewPortType | _viewPortType |
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 viewport 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 viewport 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 viewports X and Y coordinates, zoom level, pen color and other properties needed to correctly draw an element to the score viewport'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 viewport logic is implemented outside of this class (usually main window). Score viewport 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 | |
| CAScoreViewPort::CAScoreViewPort | ( | QWidget * | parent = 0 | ) |
References initScoreViewPort().
Referenced by clone().


|
virtual |
References _animationTimer, _drawableCList, _drawableMList, _hScrollBar, _shadowDrawableNote, _shadowNote, _vScrollBar, and CAKDTree< T >::clear().

| void CAScoreViewPort::addCElement | ( | CADrawableContext * | elt, |
| bool | select = false |
||
| ) |
Adds a drawable music element elt to the score viewport and selects it, if select is true.
References _drawableCList, _shadowDrawableNote, _shadowNote, CAKDTree< T >::addElement(), CADrawableContext::context(), CADrawableContext::drawableContextType(), CADrawableContext::DrawableStaff, and setCurrentContext().
Referenced by importCElements(), importElements(), and CAEngraver::reposit().


| void CAScoreViewPort::addMElement | ( | CADrawableMusElement * | elt, |
| bool | select = false |
||
| ) |
Adds a drawable music element elt to the score viewport and selects it, if select is true.
References _drawableMList, _selection, CAKDTree< T >::addElement(), CADrawableContext::addMElement(), addToSelection(), CADrawableMusElement::drawableContext(), and selectionChanged().
Referenced by importElements(), importMElements(), CAEngraver::placeMarks(), and CAEngraver::reposit().


|
inline |
References _selectionRegionList.
Referenced by CAMainWin::scoreViewPortMouseMove(), and CASettingsDialog::setupPages().

| void CAScoreViewPort::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::scoreViewPortMousePress(), CAMainWin::scoreViewPortMouseRelease(), selectAll(), selectAllCurBar(), selectAllCurContext(), selectMElement(), selectNextMusElement(), selectPrevMusElement(), and CASettingsDialog::setupPages().


| void CAScoreViewPort::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().

| CADrawableMusElement * CAScoreViewPort::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 viewport.
References _drawableMList, _selection, addToSelection(), CAKDTree< T >::at(), selectionChanged(), and CAKDTree< T >::size().

| void CAScoreViewPort::addToSelection | ( | const QList< CAMusElement * > | elts | ) |
Adds the given list of abstract music elements to the selection.
References _drawableMList, addToSelection(), CAKDTree< T >::at(), CADrawable::isSelectable(), selectionChanged(), and CAKDTree< T >::size().

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

|
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 viewport. 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 viewport (the viewport which emmitted the signal). |
Referenced by keyPressEvent().

| int CAScoreViewPort::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 viewport 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 viewport (the viewport 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 viewport 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 viewport (the viewport 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 viewport 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 viewport (the viewport 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 viewport 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 viewport (the viewport which emmitted the signal). |
Referenced by wheelEvent().

| void CAScoreViewPort::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(), 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::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), CAMainWin::scoreViewPortMouseRelease(), selectAll(), selectAllCurBar(), and selectAllCurContext().


|
inline |
References _selectionRegionList.
Referenced by CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), and CAMainWin::scoreViewPortMouseRelease().

|
virtual |
Returns a pointer to the new cloned viewport with the same parent. This function is usually called when a user creates a new docked view.
Implements CAViewPort.
References _drawableCList, _drawableMList, _sheet, CAScoreViewPort(), and importElements().
Referenced by importElements().


|
virtual |
Returns a pointer to the new cloned viewport with the parent parent. This function is usually called when a user creates a new undocked view.
Implements CAViewPort.
References _drawableCList, _drawableMList, _sheet, CAScoreViewPort(), and importElements().

| CAContext * CAScoreViewPort::contextCollision | ( | double | x, |
| double | y | ||
| ) |
If the given coordinates hit any of the contexts, returns that context.
References _drawableCList, and CAKDTree< T >::findInRange().

| int CAScoreViewPort::coordsToTime | ( | double | x | ) |
Returns Canorus time for the given X coordinate x.
Returns 0, if no contexts are present.
References _drawableMList, CAKDTree< T >::addElement(), CAKDTree< T >::list(), CADrawableMusElement::musElement(), nearestLeftElement(), nearestRightElement(), selection(), CAMusElement::timeEnd(), CAMusElement::timeStart(), and CADrawable::xPos().
Referenced by CAMainWin::scoreViewPortMouseMove(), and selectAllCurBar().


| CATextEdit * CAScoreViewPort::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, 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::scoreViewPortMousePress(), and CAMainWin::setMode().


|
inline |
References _currentContext.
Referenced by CAMainWin::insertMusElementAt(), CAKeybdInput::midiInEventToScore(), CATransposeView::on_uiApply_clicked(), CAMainWin::onTextEditKeyPressEvent(), paintEvent(), CAMainWin::pasteAt(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), selectAllCurBar(), selectAllCurContext(), selectCElement(), updateHelpers(), and CAMainWin::updateSheetToolBar().

|
inline |
References _disabledElementsColor.
Referenced by initScoreViewPort(), 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.
| CADrawableContext * CAScoreViewPort::findCElement | ( | CAContext * | context | ) |
Finds the drawable instance of the given abstract context.
References _drawableCList, CAKDTree< T >::at(), and CAKDTree< T >::size().
Referenced by CASettingsDialog::setupPages().


| QList< CADrawableContext * > CAScoreViewPort::findContextsInRegion | ( | QRect & | region | ) |
Returns a list of drawable contexts the current score viewport 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::scoreViewPortMouseMove(), and CAMainWin::scoreViewPortMouseRelease().


| CADrawableMusElement * CAScoreViewPort::findMElement | ( | CAMusElement * | elt | ) |
Finds the drawable instance of the given abstract music element.
References _drawableMList, CAKDTree< T >::at(), and CAKDTree< T >::size().
Referenced by createTextEdit(), and CAEngraver::reposit().


|
inline |
References _foregroundColor.
Referenced by initScoreViewPort(), 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 _hiddenElementsColor.
Referenced by initScoreViewPort(), 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 initScoreViewPort().


| void CAScoreViewPort::importCElements | ( | CAKDTree< CADrawableContext * > * | elts | ) |
References addCElement(), CAKDTree< T >::at(), CADrawableContext::clone(), and CAKDTree< T >::size().

| void CAScoreViewPort::importElements | ( | CAKDTree< CADrawableMusElement * > * | drawableMList, |
| CAKDTree< CADrawableContext * > * | drawableCList | ||
| ) |
References _drawableCList, addCElement(), addMElement(), CAKDTree< T >::at(), clone(), CAKDTree< T >::list(), and CAKDTree< T >::size().
Referenced by clone().


| void CAScoreViewPort::importMElements | ( | CAKDTree< CADrawableMusElement * > * | elts | ) |
References addMElement(), CAKDTree< T >::at(), CADrawableMusElement::clone(), and CAKDTree< T >::size().

|
private |
References _allowManualScroll, _animationTimer, _canvas, _checkScrollBarsDeadLock, _clickTimer, _currentContext, _drawBorder, _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(), CAViewPort::ScoreViewPort, ScrollBarShowIfNeeded, selectedContextColor(), selectionAreaColor(), selectionColor(), setBackgroundColor(), setDisabledElementsColor(), setDrawShadowNoteAccs(), setForegroundColor(), setHiddenElementsColor(), setNoteNameVisible(), setResizeDirection(), setSelectedContextColor(), setSelectedVoice(), setSelectionAreaColor(), setSelectionColor(), setShadowNoteAccs(), setShadowNoteVisible(), setShadowNoteVisibleOnLeave(), setSheet(), setTextEdit(), setTextEditVisible(), CACanorus::settings(), CAViewPort::setViewPortType(), CADrawable::Undefined, and VScrollBarEvent().
Referenced by CAScoreViewPort().


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

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

|
inline |
References _lastMousePressCoords.
Referenced by mousePressEvent(), CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMouseRelease(), and setLastMousePressCoordsAfter().

|
privateslot |
References _shadowNoteVisible, and _shadowNoteVisibleOnLeave.
|
inline |
References _allowManualScroll.
|
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, CAViewPort::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 * > CAScoreViewPort::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::scoreViewPortMousePress().


| QList< CAMusElement * > CAScoreViewPort::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().

| CADrawableContext * CAScoreViewPort::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 * CAScoreViewPort::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 * CAScoreViewPort::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 * CAScoreViewPort::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 * CAScoreViewPort::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 * CAScoreViewPort::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::scoreViewPortMousePress().


|
inline |
|
inline |
References _noteNameVisible.
|
privateslot |
References _animationStep, _animationTimer, _targetWorldX, _targetWorldY, _targetZoom, _worldX, _worldY, _zoom, ANIMATION_STEPS, drawableHeight(), drawableWidth(), and setWorldCoords().
Referenced by initScoreViewPort(), 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 initScoreViewPort().

|
privateslot |
General Qt's paint event. All the music elements get actually rendered in this method.
References _backgroundColor, _borderPen, _canvas, _currentContext, _drawableCList, _drawableMList, _drawBorder, _drawShadowNoteAccs, _holdRepaint, _oldWorldH, _oldWorldW, _oldWorldX, _oldWorldY, _repaintArea, _selection, _shadowDrawableNote, _shadowNote, _shadowNoteAccs, _shadowNoteVisible, _worldH, _worldW, _worldX, _worldY, _xCursor, _yCursor, _zoom, CADrawSettings::color, CAMusElement::color(), 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(), CAMusElement::Rest, selectedContextColor(), selectedVoice(), selectionAreaColor(), selectionColor(), selectionRegionList(), CACanorus::settings(), CASettings::shadowNotesInOtherStaffs(), CAKDTree< T >::size(), CAVoice::staff(), CADrawable::width(), CADrawSettings::x, 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 CAViewPort.
References _currentContext, _drawableCList, _drawableMList, _selection, _shadowDrawableNote, _shadowNote, addToSelection(), checkScrollBars(), CAKDTree< T >::clear(), CAKDTree< T >::list(), musElementSelection(), CAPlayableLength::Quarter, CAEngraver::reposit(), setCurrentContext(), setWorldCoords(), CAKDTree< T >::size(), updateHelpers(), and worldCoords().
Referenced by CAMainWin::on_uiScoreView_triggered(), and CASettingsDialog::setupPages().


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


| CAMusElement * CAScoreViewPort::removeMElement | ( | double | x, |
| double | y | ||
| ) |
Removes a drawable music element at the given coordinates x and y, if it exists. Returns the pointer of the abstract music element, if the element was found and deleted.
References _drawableMList, CADrawableMusElement::DrawableClef, CADrawableMusElement::drawableContext(), CADrawableMusElement::DrawableKeySignature, CADrawableMusElement::drawableMusElementType(), CADrawableMusElement::DrawableTimeSignature, CADrawableMusElement::musElement(), CAKDTree< T >::removeElement(), and CADrawableContext::removeMElement().

|
inline |
References _selectionRegionList.
| void CAScoreViewPort::removeTextEdit | ( | ) |
Removes and deletes the text edit when quitting text editing mode.
References setTextEditVisible(), textEdit(), and updateHelpers().
Referenced by CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewPortMousePress(), and CAMainWin::setMode().


|
inline |
References _resizeDirection.
Referenced by CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), and CAMainWin::scoreViewPortMouseRelease().

|
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 viewport does not change.
References _worldX, _worldY, _zoom, drawableHeight(), drawableWidth(), and setWorldCoords().

| void CAScoreViewPort::selectAll | ( | ) |
Select all elements in the viewport. This function is usually associated with CTRL+A key.
References _drawableMList, addToSelection(), CAKDTree< T >::at(), clearSelection(), selectionChanged(), and CAKDTree< T >::size().

| void CAScoreViewPort::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 CAScoreViewPort::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 * CAScoreViewPort::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::scoreViewPortMousePress().


| CADrawableContext * CAScoreViewPort::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 >::at(), setCurrentContext(), and CAKDTree< T >::size().
Referenced by CAMainWin::newDocument(), CAMainWin::on_uiImportDocument_triggered(), CAMainWin::openDocument(), and CAMainWin::scoreViewPortMousePress().


| CADrawableMusElement * CAScoreViewPort::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 initScoreViewPort(), and paintEvent().

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

|
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_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(), CAMainWin::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::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), selectMElement(), CAMainWin::setMode(), CATransposeView::show(), timeToCoords(), CAMainWin::updateClefToolBar(), CAMainWin::updateDynamicToolBar(), CAMainWin::updateFermataToolBar(), CAMainWin::updateFingeringToolBar(), CAMainWin::updateFMToolBar(), CAMainWin::updateInstrumentToolBar(), CAMainWin::updateKeySigToolBar(), CAMainWin::updatePlayableToolBar(), CAMainWin::updateRepeatMarkToolBar(), CAMainWin::updateSheetToolBar(), CAMainWin::updateTempoToolBar(), and CAMainWin::updateTimeSigToolBar().
|
inline |
References _selectionAreaColor.
Referenced by initScoreViewPort(), and paintEvent().

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

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

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

| CADrawableMusElement * CAScoreViewPort::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 _drawableMList, _selection, addToSelection(), CAKDTree< T >::at(), CADrawable::isSelectable(), CADrawableMusElement::musElement(), selection(), selectionChanged(), and CAKDTree< T >::size().
Referenced by CAMainWin::insertMusElementAt(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewPortKeyPress(), selectNextMusElement(), and selectPrevMusElement().


| CADrawableMusElement * CAScoreViewPort::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(), CAContext::next(), CAVoice::next(), selectedVoice(), and selectMElement().
Referenced by CAMainWin::scoreViewPortKeyPress().


| CADrawableMusElement * CAScoreViewPort::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(), CAContext::previous(), CAVoice::previous(), selectedVoice(), and selectMElement().
Referenced by CAMainWin::scoreViewPortKeyPress().


| CADrawableMusElement * CAScoreViewPort::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.
Referenced by CAMainWin::scoreViewPortKeyPress().

|
inline |
References _backgroundColor.
Referenced by initScoreViewPort(), CASettingsDialog::on_uiBackgroundColor_clicked(), and CASettingsDialog::on_uiBackgroundRevert_clicked().

| void CAScoreViewPort::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 CAScoreViewPort::setCenterCoords | ( | double | x, |
| double | y, | ||
| bool | animate = false, |
||
| bool | force = false |
||
| ) |
Sets the world coordinates of the viewport, so the given coordinates are the center of the new viewport area. If the area has for eg. negative top-left coordinates, the area is moved to the (0,0) coordinates if force is False. ViewPort's width and height stay intact.
References _checkScrollBarsDeadLock, _worldH, _worldW, checkScrollBars(), setWorldX(), and setWorldY().
Referenced by setZoom().


|
inline |
References _currentContext.
Referenced by addCElement(), rebuild(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), selectCElement(), selectContext(), and CASettingsDialog::setupPages().

|
inline |
References _disabledElementsColor.
Referenced by initScoreViewPort(), CASettingsDialog::on_uiDisabledElementsColor_clicked(), and CASettingsDialog::on_uiDisabledElementsRevert_clicked().

|
inline |
References _drawShadowNoteAccs.
Referenced by initScoreViewPort(), CAMainWin::insertMusElementAt(), and CAMainWin::scoreViewPortKeyPress().

|
inline |
References _foregroundColor.
Referenced by initScoreViewPort(), CASettingsDialog::on_uiForegroundColor_clicked(), and CASettingsDialog::on_uiForegroundRevert_clicked().

|
inline |
References _hiddenElementsColor.
Referenced by initScoreViewPort(), CASettingsDialog::on_uiHiddenElementsColor_clicked(), and CASettingsDialog::on_uiHiddenElementsRevert_clicked().

|
inlineprivate |
References _lastMousePressCoords.
Referenced by mousePressEvent(), and setLastMousePressCoordsAfter().

| void CAScoreViewPort::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 _drawableMList, CAKDTree< T >::at(), lastMousePressCoords(), CADrawableMusElement::musElement(), setLastMousePressCoords(), CAKDTree< T >::size(), CADrawable::width(), and CADrawable::xPos().
Referenced by CAMainWin::pasteAt().


|
inline |
References _allowManualScroll.
|
inline |
References _noteName.
|
inline |
References _noteNameVisible.
Referenced by initScoreViewPort().

|
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 initScoreViewPort(), mousePressEvent(), and mouseReleaseEvent().

| void CAScoreViewPort::setScrollBarVisible | ( | CAScrollBarVisibility | status | ) |
References _hScrollBar, _scrollBarVisible, _vScrollBar, checkScrollBars(), ScrollBarAlwaysHidden, and ScrollBarAlwaysVisible.
Referenced by CASettingsDialog::setupPages().


|
inline |
References _selectedContextColor.
Referenced by initScoreViewPort(), CASettingsDialog::on_uiSelectedContextColor_clicked(), and CASettingsDialog::on_uiSelectedContextRevert_clicked().

|
inline |
References _selectedVoice, and selectedVoice().
Referenced by initScoreViewPort(), CAMainWin::on_uiVoiceNum_valChanged(), and CAMainWin::sourceViewPortCommit().


|
inline |
References _selectionAreaColor.
Referenced by initScoreViewPort(), CASettingsDialog::on_uiSelectionAreaColor_clicked(), and CASettingsDialog::on_uiSelectionAreaRevert_clicked().

|
inline |
References _selectionColor.
Referenced by initScoreViewPort(), CASettingsDialog::on_uiSelectionColor_clicked(), and CASettingsDialog::on_uiSelectionRevert_clicked().

|
inline |
References _shadowNoteAccs.
Referenced by initScoreViewPort(), CAMainWin::scoreViewPortKeyPress(), and CAMainWin::scoreViewPortMouseMove().

| void CAScoreViewPort::setShadowNoteLength | ( | CAPlayableLength | l | ) |
References _shadowNote, and updateHelpers().
Referenced by CAMainWin::insertMusElementAt(), CAMainWin::on_uiPlayableLength_toggled(), CAMainWin::scoreViewPortKeyPress(), and CAMainWin::scoreViewPortMousePress().


|
inline |
References _shadowNoteVisible, and setShadowNoteVisibleOnLeave().
Referenced by initScoreViewPort(), CAMainWin::scoreViewPortMouseMove(), and CAMainWin::setMode().


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

|
inline |
References _sheet, and sheet().
Referenced by initScoreViewPort(), CASettingsDialog::setupPages(), and CAUndoCommand::undoDocument().


|
inlineprivate |
References _textEdit.
Referenced by initScoreViewPort().

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

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

| void CAScoreViewPort::setWorldCoords | ( | const QRect | r, |
| bool | animate = false, |
||
| bool | force = false |
||
| ) |
Sets the world coordinates of the viewport 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 CAScoreViewPort::setWorldHeight | ( | int | h, |
| bool | force = false |
||
| ) |
Sets the world height of the viewport. 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 CAScoreViewPort::setWorldWidth | ( | int | w, |
| bool | force = false |
||
| ) |
Sets the world width of the viewport. 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 CAScoreViewPort::setWorldX | ( | int | x, |
| bool | animate = false, |
||
| bool | force = false |
||
| ) |
Sets the world Top-Left X coordinate of the viewport. 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 HScrollBarEvent(), CAMainWin::scoreViewPortWheel(), setCenterCoords(), setWorldCoords(), and setWorldWidth().


| void CAScoreViewPort::setWorldY | ( | int | y, |
| bool | animate = false, |
||
| bool | force = false |
||
| ) |
Sets the world Top-Left Y coordinate of the viewport. 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 CAMainWin::scoreViewPortWheel(), setCenterCoords(), setWorldCoords(), setWorldHeight(), and VScrollBarEvent().


| void CAScoreViewPort::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::scoreViewPortWheel(), and CASettingsDialog::setupPages().


|
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 viewport's sheet it represents.
References _sheet.
Referenced by CAMainWin::copySelection(), CAMainWin::currentSheet(), CAMainWin::deleteSelection(), CAMainWin::insertMusElementAt(), CATransposeView::on_uiApply_clicked(), CAMainWin::pasteAt(), CAEngraver::reposit(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), CAMainWin::scoreViewPortMouseRelease(), 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(), and updateHelpers().

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

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

| double CAScoreViewPort::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 _drawableMList, CAKDTree< T >::at(), CADrawableMusElement::musElement(), selection(), CAKDTree< T >::size(), CAMusElement::timeStart(), and CADrawable::xPos().
Referenced by CAEngraver::reposit(), and CAMainWin::scoreViewPortMouseMove().


| double CAScoreViewPort::timeToCoordsSimpleVersion | ( | int | time | ) |
Simple Version of
References _drawableMList, CAKDTree< T >::at(), CADrawableMusElement::musElement(), CAKDTree< T >::size(), CAMusElement::timeStart(), and CADrawable::xPos().
Referenced by CAKeybdInput::midiInEventToScore().


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

| void CAScoreViewPort::updateHelpers | ( | ) |
References _shadowDrawableNote, _shadowNote, _xCursor, _yCursor, currentContext(), CADrawableContext::DrawableStaff, textEdit(), textEditGeometry(), textEditVisible(), worldX(), worldY(), and zoom().
Referenced by createTextEdit(), CAMainWin::insertMusElementAt(), CAKeybdInput::midiInEventToScore(), CAMainWin::on_uiPlayableLength_toggled(), rebuild(), removeTextEdit(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), 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 initScoreViewPort().


|
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 checkScrollBars(), and worldCoords().

|
inline |
References _worldX.
Referenced by CAMainWin::scoreViewPortWheel(), updateHelpers(), and worldCoords().

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

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

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

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

| void CAScoreViewPort::zoomToSelection | ( | bool | animate = false, |
| bool | force = false |
||
| ) |
| void CAScoreViewPort::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 viewport.
Referenced by HScrollBarEvent(), initScoreViewPort(), manualScroll(), setManualScroll(), and VScrollBarEvent().
|
private |
Referenced by on_animationTimer_timeout(), and startAnimationTimer().
|
private |
Referenced by initScoreViewPort(), on_animationTimer_timeout(), startAnimationTimer(), and ~CAScoreViewPort().
|
private |
Referenced by backgroundColor(), paintEvent(), and setBackgroundColor().
|
private |
Referenced by border(), paintEvent(), and setBorder().
|
private |
Referenced by drawableHeight(), drawableWidth(), initScoreViewPort(), and paintEvent().
|
private |
Referenced by checkScrollBars(), initScoreViewPort(), setCenterCoords(), and setWorldCoords().
|
private |
Referenced by initScoreViewPort(), and mousePressEvent().
|
private |
Referenced by currentContext(), initScoreViewPort(), paintEvent(), rebuild(), and setCurrentContext().
|
private |
Referenced by disabledElementsColor(), and setDisabledElementsColor().
|
private |
Referenced by addCElement(), checkScrollBars(), clearCElements(), clone(), contextCollision(), findCElement(), findContextsInRegion(), importElements(), nearestDownContext(), nearestUpContext(), paintEvent(), rebuild(), selectCElement(), selectContext(), setWorldHeight(), setWorldWidth(), setWorldX(), setWorldY(), zoomToFit(), zoomToHeight(), zoomToWidth(), and ~CAScoreViewPort().
|
private |
Referenced by addMElement(), addToSelection(), calculateTime(), checkScrollBars(), clearMElements(), clone(), coordsToTime(), findMElement(), invertSelection(), musElementsAt(), nearestLeftElement(), nearestRightElement(), paintEvent(), rebuild(), removeMElement(), selectAll(), selectMElement(), setLastMousePressCoordsAfter(), setWorldHeight(), setWorldWidth(), setWorldX(), setWorldY(), timeToCoords(), timeToCoordsSimpleVersion(), zoomToFit(), zoomToHeight(), zoomToWidth(), and ~CAScoreViewPort().
|
private |
Referenced by initScoreViewPort(), paintEvent(), setBorder(), and unsetBorder().
|
private |
Referenced by drawShadowNoteAccs(), paintEvent(), and setDrawShadowNoteAccs().
|
private |
Referenced by foregroundColor(), and setForegroundColor().
|
private |
Referenced by hiddenElementsColor(), and setHiddenElementsColor().
|
private |
Referenced by checkScrollBars(), initScoreViewPort(), and paintEvent().
|
private |
Referenced by checkScrollBars(), initScoreViewPort(), setScrollBarVisible(), setWorldWidth(), setWorldX(), and ~CAScoreViewPort().
|
private |
Referenced by HScrollBarEvent(), initScoreViewPort(), setWorldWidth(), and setWorldX().
|
private |
Referenced by lastMousePressCoords(), selectAllCurBar(), and setLastMousePressCoords().
|
private |
Referenced by initScoreViewPort().
|
private |
Referenced by noteName(), and setNoteName().
|
private |
Referenced by noteNameVisible(), and setNoteNameVisible().
|
private |
Referenced by mousePressEvent(), and on_clickTimer_timeout().
|
private |
Referenced by initScoreViewPort(), paintEvent(), and setWorldHeight().
|
private |
Referenced by initScoreViewPort(), paintEvent(), and setWorldWidth().
|
private |
Referenced by paintEvent(), and setWorldX().
|
private |
Referenced by paintEvent(), and setWorldY().
|
private |
Referenced by initScoreViewPort(), playing(), and setPlaying().
|
private |
Referenced by clearRepaintArea(), initScoreViewPort(), paintEvent(), and setRepaintArea().
|
private |
Referenced by resizeDirection(), and setResizeDirection().
|
private |
Referenced by initScoreViewPort(), 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 ~CAScoreViewPort().
|
private |
Referenced by addCElement(), paintEvent(), rebuild(), setShadowNoteLength(), updateHelpers(), and ~CAScoreViewPort().
|
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(), and sheet().
|
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(), initScoreViewPort(), setScrollBarVisible(), setWorldHeight(), setWorldY(), and ~CAScoreViewPort().
|
private |
Referenced by initScoreViewPort(), setWorldHeight(), setWorldY(), and VScrollBarEvent().
|
private |
Referenced by initScoreViewPort(), paintEvent(), setCenterCoords(), setWorldHeight(), setWorldY(), setZoom(), and worldHeight().
|
private |
Referenced by initScoreViewPort(), paintEvent(), setCenterCoords(), setWorldWidth(), setWorldX(), setZoom(), and worldWidth().
|
private |
|
private |
|
private |
Referenced by initScoreViewPort(), mouseMoveEvent(), paintEvent(), updateHelpers(), and wheelEvent().
|
private |
Referenced by initScoreViewPort(), 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().
1.8.3