CAScoreViewPort Class Reference

#include <scoreviewport.h>

Inheritance diagram for CAScoreViewPort:

Inheritance graph
[legend]

List of all members.

Public Types

enum  CAScrollBarVisibility { ScrollBarAlwaysVisible, ScrollBarAlwaysHidden, ScrollBarShowIfNeeded }

Signals

void CAMousePressEvent (QMouseEvent *e, QPoint p, CAScoreViewPort *v)
void CAMouseReleaseEvent (QMouseEvent *e, QPoint p, CAScoreViewPort *v)
void CAMouseMoveEvent (QMouseEvent *e, QPoint p, CAScoreViewPort *v)
void CAWheelEvent (QWheelEvent *e, QPoint p, CAScoreViewPort *v)
void CAKeyPressEvent (QKeyEvent *e, CAScoreViewPort *v)
void selectionChanged ()

Public Member Functions

 CAScoreViewPort (QWidget *parent=0)
 CAScoreViewPort (CASheet *sheet, QWidget *parent=0)
virtual ~CAScoreViewPort ()
CAScoreViewPortclone ()
CAScoreViewPortclone (QWidget *parent)
CASheetsheet ()
void setSheet (CASheet *sheet)
void addMElement (CADrawableMusElement *elt, bool select=false)
void addCElement (CADrawableContext *elt, bool select=false)
CAMusElementremoveMElement (int x, int y)
void importElements (CAKDTree< CADrawableMusElement * > *drawableMList, CAKDTree< CADrawableContext * > *drawableCList)
void importMElements (CAKDTree< CADrawableMusElement * > *elts)
void importCElements (CAKDTree< CADrawableContext * > *elts)
QList
< CADrawableMusElement * > & 
selection ()
QList
< CADrawableMusElement * > 
musElementsAt (int x, int y)
CADrawableContextselectCElement (int x, int y)
CADrawableMusElementselectMElement (CAMusElement *elt)
CADrawableContextselectContext (CAContext *context)
QPoint lastMousePressCoords ()
CADrawableContextcurrentContext ()
void setCurrentContext (CADrawableContext *c)
void clearSelection ()
bool removeFromSelection (CADrawableMusElement *elt)
void addToSelection (CADrawableMusElement *elt, bool triggerSignal=true)
void addToSelection (const QList< CADrawableMusElement * > list, bool selectableOnly=true)
CADrawableMusElementaddToSelection (CAMusElement *elt)
void addToSelection (const QList< CAMusElement * > elts)
CADrawableMusElementselectNextMusElement (bool append=false)
CADrawableMusElementselectPrevMusElement (bool append=false)
CADrawableMusElementselectUpMusElement ()
CADrawableMusElementselectDownMusElement ()
const QList< QRect > & selectionRegionList () const
void addSelectionRegion (QRect r)
void removeSelectionRegion (QRect r)
void clearSelectionRegionList ()
CADrawable::CADirection resizeDirection ()
CADrawableMusElementfindMElement (CAMusElement *)
CADrawableContextfindCElement (CAContext *)
QList
< CADrawableContext * > 
findContextsInRegion (QRect &reg)
CADrawableMusElementnearestLeftElement (int x, int y, bool currentContextOnly=true)
CADrawableMusElementnearestLeftElement (int x, int y, CAVoice *voice)
CADrawableMusElementnearestRightElement (int x, int y, bool currentContextOnly=true)
CADrawableMusElementnearestRightElement (int x, int y, CAVoice *voice)
int coordsToTime (int x)
int timeToCoords (int time)
CADrawableContextnearestUpContext (int x, int y)
CADrawableContextnearestDownContext (int x, int y)
int calculateTime (int x, int y)
CAContextcontextCollision (int x, int y)
void setManualScroll (bool scroll)
bool manualScroll ()
void checkScrollBars ()
CAScrollBarVisibility isScrollBarVisible ()
void setScrollBarVisible (CAScrollBarVisibility status)
void rebuild ()
const int drawableWidth ()
const int drawableHeight ()
void setWorldX (int x, bool animate=false, bool force=false)
void setWorldY (int y, bool animate=false, bool force=false)
void setWorldWidth (int w, bool force=false)
void setWorldHeight (int h, bool force=false)
const int worldX ()
const int worldY ()
const int worldWidth ()
const int worldHeight ()
const QRect worldCoords ()
const float zoom ()
void setWorldCoords (const QRect r, bool animate=false, bool force=false)
void setWorldCoords (int x, int y, int w, int h, bool animate=false, bool force=false)
void setCenterCoords (int x, int y, bool animate=false, bool force=false)
void setZoom (float z, int x=0, int y=0, bool animate=false, bool force=false)
void setZoom (float z, QPoint p, bool animate=false, bool force=false)
void zoomToSelection (bool animate=false, bool force=false)
void zoomToWidth (bool animate=false, bool force=false)
void zoomToHeight (bool animate=false, bool force=false)
void zoomToFit (bool animate=false, bool force=false)
void setBorder (const QPen pen)
void unsetBorder ()
QPen border ()
QColor backgroundColor ()
void setBackgroundColor (const QColor c)
QColor foregroundColor ()
void setForegroundColor (const QColor c)
QColor selectionColor ()
void setSelectionColor (const QColor c)
QColor selectionAreaColor ()
void setSelectionAreaColor (const QColor c)
QColor selectedContextColor ()
void setSelectedContextColor (const QColor c)
QColor hiddenElementsColor ()
void setHiddenElementsColor (const QColor c)
QColor disabledElementsColor ()
void setDisabledElementsColor (const QColor c)
bool playing ()
void setPlaying (bool playing)
void setRepaintArea (QRect *area)
void clearRepaintArea ()
CAVoiceselectedVoice ()
void setSelectedVoice (CAVoice *selectedVoice)
bool shadowNoteVisible ()
void setShadowNoteVisible (bool visible)
bool drawShadowNoteAccs ()
void setDrawShadowNoteAccs (bool draw)
int shadowNoteAccs ()
void setShadowNoteAccs (int accs)
void setShadowNoteDotted (int dotted)
CATextEditcreateTextEdit (CADrawableMusElement *elt)
CATextEdittextEdit ()
void removeTextEdit ()
bool textEditVisible ()
void updateHelpers ()

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

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

Private Attributes

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

Static Private Attributes

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


Detailed Description

Widget for rendering the score.

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

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

Definition at line 51 of file scoreviewport.h.


Member Enumeration Documentation

enum CAScoreViewPort::CAScrollBarVisibility

Different behaviour of the scroll bars:

Enumerator:
ScrollBarAlwaysVisible 
ScrollBarAlwaysHidden 
ScrollBarShowIfNeeded 

Definition at line 55 of file scoreviewport.h.


Constructor & Destructor Documentation

CAScoreViewPort::CAScoreViewPort ( QWidget parent = 0  ) 

Definition at line 107 of file scoreviewport.cpp.

References initScoreViewPort().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CAScoreViewPort::CAScoreViewPort ( CASheet sheet,
QWidget parent = 0 
)

Definition at line 102 of file scoreviewport.cpp.

References initScoreViewPort().

Here is the call graph for this function:

CAScoreViewPort::~CAScoreViewPort (  )  [virtual]

Definition at line 185 of file scoreviewport.cpp.

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

Here is the call graph for this function:


Member Function Documentation

CAScoreViewPort * CAScoreViewPort::clone (  )  [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.

Definition at line 220 of file scoreviewport.cpp.

References _drawableCList, _drawableMList, _sheet, CAScoreViewPort(), and importElements().

Referenced by importElements().

Here is the call graph for this function:

Here is the caller graph for this function:

CAScoreViewPort * CAScoreViewPort::clone ( QWidget parent  )  [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.

Definition at line 228 of file scoreviewport.cpp.

References _drawableCList, _drawableMList, _sheet, CAScoreViewPort(), and importElements().

Here is the call graph for this function:

CASheet * CAScoreViewPort::sheet (  )  [inline]

Returns the pointer to the viewport's sheet it represents.

Definition at line 69 of file scoreviewport.h.

References _sheet.

Referenced by CAMainWin::currentSheet(), CAMainWin::deleteSelection(), CAMainWin::insertMusElementAt(), CAEngraver::reposit(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), CAMainWin::scoreViewPortMouseRelease(), CAUndoCommand::undoDocument(), and CAMainWin::updateSheetToolBar().

Here is the caller graph for this function:

void CAScoreViewPort::setSheet ( CASheet sheet  )  [inline]

Definition at line 70 of file scoreviewport.h.

References _sheet.

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

Here is the caller graph for this function:

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.

Definition at line 240 of file scoreviewport.cpp.

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

Referenced by importElements(), importMElements(), CAEngraver::placeMarks(), and CAEngraver::reposit().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Definition at line 254 of file scoreviewport.cpp.

References _drawableCList, _shadowDrawableNote, _shadowNote, CAKDTree< T >::addElement(), CADrawableContext::drawableContextType(), CADrawableContext::DrawableStaff, setCurrentContext(), and CAPlayable::Whole.

Referenced by importCElements(), importElements(), and CAEngraver::reposit().

Here is the call graph for this function:

Here is the caller graph for this function:

CAMusElement * CAScoreViewPort::removeMElement ( int  x,
int  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.

Warning:
This function only deletes the CADrawable part of the object. You still need to delete the abstract part (the pointer returned)!

Definition at line 356 of file scoreviewport.cpp.

References _drawableMList, CADrawableMusElement::DrawableClef, CADrawableMusElement::drawableContext(), CADrawableMusElement::DrawableKeySignature, CADrawableMusElement::drawableMusElementType(), CADrawableMusElement::DrawableTimeSignature, CADrawableMusElement::musElement(), CAKDTree< T >::removeElement(), and CADrawableContext::removeMElement().

Here is the call graph for this function:

void CAScoreViewPort::importElements ( CAKDTree< CADrawableMusElement * > *  drawableMList,
CAKDTree< CADrawableContext * > *  drawableCList 
)

Definition at line 376 of file scoreviewport.cpp.

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

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAScoreViewPort::importMElements ( CAKDTree< CADrawableMusElement * > *  elts  ) 

Definition at line 394 of file scoreviewport.cpp.

References addMElement(), CAKDTree< T >::at(), CADrawableMusElement::clone(), and CAKDTree< T >::size().

Here is the call graph for this function:

void CAScoreViewPort::importCElements ( CAKDTree< CADrawableContext * > *  elts  ) 

Definition at line 399 of file scoreviewport.cpp.

References addCElement(), CAKDTree< T >::at(), CADrawableContext::clone(), and CAKDTree< T >::size().

Here is the call graph for this function:

QList< CAMusElement * > CAScoreViewPort::selection (  )  [inline]

Returns a list of the currently selected drawable music elements.

Definition at line 86 of file scoreviewport.h.

References _selection.

Referenced by CAPlugin::callAction(), coordsToTime(), CAMainWin::copySelection(), CAMainWin::deleteSelection(), CAMainWin::insertMusElementAt(), mouseMoveEvent(), mousePressEvent(), 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::onTextEditKeyPressEvent(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), selectMElement(), CAMainWin::setMode(), 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().

Here is the caller graph for this function:

QList< CADrawableMusElement * > CAScoreViewPort::musElementsAt ( int  x,
int  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.

Definition at line 317 of file scoreviewport.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableContext * CAScoreViewPort::selectCElement ( int  x,
int  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.

Definition at line 299 of file scoreviewport.cpp.

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

Referenced by CAMainWin::scoreViewPortMousePress().

Here is the call graph for this function:

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.

See also:
selectCElement(CAContext*)

Definition at line 334 of file scoreviewport.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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.

See also:
selectMElement(CAMusElement*)

Definition at line 276 of file scoreviewport.cpp.

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

Referenced by CAMainWin::newDocument(), CAMainWin::on_uiImportDocument_triggered(), CAMainWin::openDocument(), and CAMainWin::scoreViewPortMousePress().

Here is the call graph for this function:

Here is the caller graph for this function:

QPoint CAScoreViewPort::lastMousePressCoords (  )  [inline]

Definition at line 91 of file scoreviewport.h.

References _lastMousePressCoords.

Referenced by CAMainWin::scoreViewPortMouseMove(), and CAMainWin::scoreViewPortMouseRelease().

CADrawableContext* CAScoreViewPort::currentContext (  )  [inline]

Definition at line 93 of file scoreviewport.h.

References _currentContext.

Referenced by CAMainWin::insertMusElementAt(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::pasteAt(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), selectCElement(), updateHelpers(), and CAMainWin::updateSheetToolBar().

Here is the caller graph for this function:

void CAScoreViewPort::setCurrentContext ( CADrawableContext c  )  [inline]

Definition at line 94 of file scoreviewport.h.

References _currentContext.

Referenced by addCElement(), rebuild(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), selectCElement(), and selectContext().

Here is the caller graph for this function:

void CAScoreViewPort::clearSelection (  )  [inline]

Clears the current selection. Its behaviour is the same as calling clearMSelection() and clearCSelection().

Definition at line 96 of file scoreviewport.h.

References _selection, and selectionChanged().

Referenced by CAMainWin::deleteSelection(), CAMainWin::on_uiPlayFromSelection_toggled(), CAMainWin::on_uiRemoveVoice_triggered(), CAMainWin::onRepaintTimerTimeout(), CAMainWin::pasteAt(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), and CAMainWin::scoreViewPortMouseRelease().

Here is the caller graph for this function:

bool CAScoreViewPort::removeFromSelection ( CADrawableMusElement elt  )  [inline]

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

Definition at line 97 of file scoreviewport.h.

References _selection, and selectionChanged().

Referenced by CAMainWin::scoreViewPortMousePress().

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

Adds the given drawable music element elt to the current selection.

Definition at line 1308 of file scoreviewport.cpp.

References _selection, CADrawable::isSelectable(), selectionChanged(), and CADrawable::xPos().

Referenced by addMElement(), addToSelection(), CAMainWin::onRepaintTimerTimeout(), CAMainWin::pasteAt(), rebuild(), CAMainWin::scoreViewPortMousePress(), CAMainWin::scoreViewPortMouseRelease(), selectMElement(), selectNextMusElement(), and selectPrevMusElement().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 1322 of file scoreviewport.cpp.

References addToSelection(), and selectionChanged().

Here is the call graph for this function:

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.

Definition at line 1335 of file scoreviewport.cpp.

References _drawableMList, _selection, addToSelection(), CAKDTree< T >::at(), selectionChanged(), and CAKDTree< T >::size().

Here is the call graph for this function:

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

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

Definition at line 1348 of file scoreviewport.cpp.

References _drawableMList, addToSelection(), CAKDTree< T >::at(), CADrawable::isSelectable(), selectionChanged(), and CAKDTree< T >::size().

Here is the call graph for this function:

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.

Definition at line 1232 of file scoreviewport.cpp.

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

Referenced by CAMainWin::scoreViewPortKeyPress().

Here is the call graph for this function:

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.

Definition at line 1258 of file scoreviewport.cpp.

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

Referenced by CAMainWin::scoreViewPortKeyPress().

Here is the call graph for this function:

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.

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

Definition at line 1284 of file scoreviewport.cpp.

References _selection.

Referenced by CAMainWin::scoreViewPortKeyPress().

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.

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

Definition at line 1298 of file scoreviewport.cpp.

References _selection.

const QList<QRect>& CAScoreViewPort::selectionRegionList (  )  const [inline]

Definition at line 109 of file scoreviewport.h.

References _selectionRegionList.

Referenced by paintEvent().

void CAScoreViewPort::addSelectionRegion ( QRect  r  )  [inline]

Definition at line 110 of file scoreviewport.h.

References _selectionRegionList.

Referenced by CAMainWin::scoreViewPortMouseMove().

void CAScoreViewPort::removeSelectionRegion ( QRect  r  )  [inline]

Definition at line 111 of file scoreviewport.h.

References _selectionRegionList.

void CAScoreViewPort::clearSelectionRegionList (  )  [inline]

Definition at line 112 of file scoreviewport.h.

References _selectionRegionList.

Referenced by CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), and CAMainWin::scoreViewPortMouseRelease().

CADrawable::CADirection CAScoreViewPort::resizeDirection (  )  [inline]

Definition at line 113 of file scoreviewport.h.

References _resizeDirection.

Referenced by CAMainWin::scoreViewPortMouseMove(), CAMainWin::scoreViewPortMousePress(), and CAMainWin::scoreViewPortMouseRelease().

CADrawableMusElement * CAScoreViewPort::findMElement ( CAMusElement elt  ) 

Finds the drawable instance of the given abstract music element.

See also:
findCElement()

Definition at line 1366 of file scoreviewport.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableContext * CAScoreViewPort::findCElement ( CAContext context  ) 

Finds the drawable instance of the given abstract context.

See also:
findMElement()

Definition at line 1377 of file scoreviewport.cpp.

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

Here is the call graph for this function:

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.

Definition at line 1459 of file scoreviewport.cpp.

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

Referenced by CAMainWin::scoreViewPortMouseMove(), and CAMainWin::scoreViewPortMouseRelease().

Here is the call graph for this function:

CADrawableMusElement * CAScoreViewPort::nearestLeftElement ( int  x,
int  y,
bool  currentContext = true 
)

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. Returns the nearest element in the current context only, if currentContext is true (default).

Definition at line 409 of file scoreviewport.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableMusElement * CAScoreViewPort::nearestLeftElement ( int  x,
int  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.

Definition at line 418 of file scoreviewport.cpp.

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

Here is the call graph for this function:

CADrawableMusElement * CAScoreViewPort::nearestRightElement ( int  x,
int  y,
bool  currentContext = true 
)

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. Returns the nearest element in the current context only, if currentContext is true (default).

Definition at line 427 of file scoreviewport.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableMusElement * CAScoreViewPort::nearestRightElement ( int  x,
int  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.

Definition at line 436 of file scoreviewport.cpp.

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

Here is the call graph for this function:

int CAScoreViewPort::coordsToTime ( int  x  ) 

Returns Canorus time for the given X coordinate x.

Returns 0, if no contexts are present.

Definition at line 1468 of file scoreviewport.cpp.

References _drawableMList, CAKDTree< T >::addElement(), CAKDTree< T >::list(), CADrawableMusElement::musElement(), nearestLeftElement(), nearestRightElement(), selection(), CAMusElement::timeEnd(), CAMusElement::timeStart(), and CADrawable::xPos().

Referenced by CAMainWin::scoreViewPortMouseMove().

Here is the call graph for this function:

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

Definition at line 1499 of file scoreviewport.cpp.

References _drawableMList, CAKDTree< T >::at(), CADrawableMusElement::musElement(), selection(), CAKDTree< T >::size(), CAMusElement::timeStart(), and CADrawable::xPos().

Referenced by CAEngraver::reposit(), and CAMainWin::scoreViewPortMouseMove().

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableContext * CAScoreViewPort::nearestUpContext ( int  x,
int  y 
)

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

Todo:
Also look at X coordinate

Definition at line 444 of file scoreviewport.cpp.

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

Referenced by CAMainWin::scoreViewPortMousePress().

Here is the call graph for this function:

CADrawableContext * CAScoreViewPort::nearestDownContext ( int  x,
int  y 
)

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

Todo:
Also look at X coordinate

Definition at line 452 of file scoreviewport.cpp.

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

Here is the call graph for this function:

int CAScoreViewPort::calculateTime ( int  x,
int  y 
)

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

Definition at line 459 of file scoreviewport.cpp.

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

Here is the call graph for this function:

CAContext * CAScoreViewPort::contextCollision ( int  x,
int  y 
)

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

Definition at line 474 of file scoreviewport.cpp.

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

Here is the call graph for this function:

void CAScoreViewPort::setManualScroll ( bool  scroll  )  [inline]

Definition at line 138 of file scoreviewport.h.

References _allowManualScroll.

bool CAScoreViewPort::manualScroll (  )  [inline]

Definition at line 139 of file scoreviewport.h.

References _allowManualScroll.

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.

Definition at line 1035 of file scoreviewport.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

CAScrollBarVisibility CAScoreViewPort::isScrollBarVisible (  )  [inline]

Definition at line 143 of file scoreviewport.h.

References _scrollBarVisible.

Referenced by checkScrollBars().

Here is the caller graph for this function:

void CAScoreViewPort::setScrollBarVisible ( CAScrollBarVisibility  status  ) 

Definition at line 1167 of file scoreviewport.cpp.

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

Here is the call graph for this function:

void CAScoreViewPort::rebuild (  )  [virtual]

Synchronizes/Rebuilds the UI part from the abstract one. This function is usually called when a user creates changes to the score or a new viewport is introduced.

Implements CAViewPort.

Definition at line 484 of file scoreviewport.cpp.

References _currentContext, _drawableCList, _drawableMList, _selection, _shadowDrawableNote, _shadowNote, addToSelection(), checkScrollBars(), CAKDTree< T >::clear(), CAKDTree< T >::list(), CAEngraver::reposit(), setCurrentContext(), CAKDTree< T >::size(), and updateHelpers().

Referenced by CAMainWin::on_uiScoreView_triggered().

Here is the call graph for this function:

const int CAScoreViewPort::drawableWidth (  )  [inline]

Definition at line 150 of file scoreviewport.h.

References _canvas.

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

Here is the caller graph for this function:

const int CAScoreViewPort::drawableHeight (  )  [inline]

Definition at line 151 of file scoreviewport.h.

References _canvas.

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

Here is the caller graph for this function:

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

Warning:
Repaint is not done automatically!

Definition at line 524 of file scoreviewport.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Warning:
Repaint is not done automatically!

Definition at line 557 of file scoreviewport.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Warning:
Repaint is not done automatically!

Definition at line 590 of file scoreviewport.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Warning:
Repaint is not done automatically!

Definition at line 620 of file scoreviewport.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

const int CAScoreViewPort::worldX (  )  [inline]

Definition at line 158 of file scoreviewport.h.

References _worldX.

Referenced by CAMainWin::scoreViewPortWheel(), updateHelpers(), and worldCoords().

Here is the caller graph for this function:

const int CAScoreViewPort::worldY (  )  [inline]

Definition at line 159 of file scoreviewport.h.

References _worldY.

Referenced by CAMainWin::scoreViewPortWheel(), updateHelpers(), and worldCoords().

Here is the caller graph for this function:

const int CAScoreViewPort::worldWidth (  )  [inline]

Definition at line 160 of file scoreviewport.h.

References _worldW.

Referenced by checkScrollBars(), and worldCoords().

Here is the caller graph for this function:

const int CAScoreViewPort::worldHeight (  )  [inline]

Definition at line 161 of file scoreviewport.h.

References _worldH.

Referenced by checkScrollBars(), and worldCoords().

Here is the caller graph for this function:

const QRect CAScoreViewPort::worldCoords (  )  [inline]

Definition at line 162 of file scoreviewport.h.

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

Here is the call graph for this function:

float CAScoreViewPort::zoom (  )  [inline]

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

Definition at line 164 of file scoreviewport.h.

References _zoom.

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

Here is the caller graph for this function:

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.

Warning:
Repaint is not done automatically!

Definition at line 650 of file scoreviewport.cpp.

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

Referenced by on__animationTimer_timeout(), resizeEvent(), setWorldCoords(), zoomToFit(), zoomToHeight(), zoomToSelection(), and zoomToWidth().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAScoreViewPort::setWorldCoords ( int  x,
int  y,
int  w,
int  h,
bool  animate = false,
bool  force = false 
) [inline]

Sets the world coordinates of the viewport. This is an overloaded member function, provided for convenience.

Warning:
Repaint is not done automatically!
Parameters:
x Top-left X coordinate of the new viewport area in absolute world units.
y Top-left Y coordinate of the new viewport area in absolute world units.
w Width of the new viewport area in absolute world units.
h Height of the new viewport area in absolute world units.
animate Use animated scroll.
force Use the given world units despite their illegal values (like negative coordinates etc.).

Definition at line 167 of file scoreviewport.h.

References setWorldCoords().

Here is the call graph for this function:

void CAScoreViewPort::setCenterCoords ( int  x,
int  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.

Warning:
Repaint is not done automatically!

Definition at line 735 of file scoreviewport.cpp.

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

Referenced by setZoom().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Zooms to the given level to given direction.

Warning:
Repaint is not done automatically, if animate is False!
Parameters:
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.).

Definition at line 754 of file scoreviewport.cpp.

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

Referenced by CAMainWin::scoreViewPortWheel(), and setZoom().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Warning:
Repaint is not done automatically, if animate is False!
Parameters:
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.).

Definition at line 172 of file scoreviewport.h.

References setZoom().

Here is the call graph for this function:

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

Definition at line 690 of file scoreviewport.cpp.

References _selection, and setWorldCoords().

Here is the call graph for this function:

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

Definition at line 712 of file scoreviewport.cpp.

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

Here is the call graph for this function:

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

Definition at line 717 of file scoreviewport.cpp.

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

Here is the call graph for this function:

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

Definition at line 722 of file scoreviewport.cpp.

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

Here is the call graph for this function:

void CAScoreViewPort::setBorder ( const QPen  pen  ) 

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

Definition at line 1009 of file scoreviewport.cpp.

References _borderPen, and _drawBorder.

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

Here is the caller graph for this function:

void CAScoreViewPort::unsetBorder (  ) 

Disables the border.

Definition at line 1017 of file scoreviewport.cpp.

References _drawBorder.

Referenced by CAMainWin::setMode().

Here is the caller graph for this function:

QPen CAScoreViewPort::border (  )  [inline]

Definition at line 181 of file scoreviewport.h.

References _borderPen.

QColor CAScoreViewPort::backgroundColor (  )  [inline]

Definition at line 182 of file scoreviewport.h.

References _backgroundColor.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

void CAScoreViewPort::setBackgroundColor ( const QColor  c  )  [inline]

Definition at line 183 of file scoreviewport.h.

References _backgroundColor.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

QColor CAScoreViewPort::foregroundColor (  )  [inline]

Definition at line 184 of file scoreviewport.h.

References _foregroundColor.

Referenced by initScoreViewPort(), and paintEvent().

Here is the caller graph for this function:

void CAScoreViewPort::setForegroundColor ( const QColor  c  )  [inline]

Definition at line 185 of file scoreviewport.h.

References _foregroundColor.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

QColor CAScoreViewPort::selectionColor (  )  [inline]

Definition at line 186 of file scoreviewport.h.

References _selectionColor.

Referenced by initScoreViewPort(), and paintEvent().

Here is the caller graph for this function:

void CAScoreViewPort::setSelectionColor ( const QColor  c  )  [inline]

Definition at line 187 of file scoreviewport.h.

References _selectionColor.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

QColor CAScoreViewPort::selectionAreaColor (  )  [inline]

Definition at line 188 of file scoreviewport.h.

References _selectionAreaColor.

Referenced by initScoreViewPort(), and paintEvent().

Here is the caller graph for this function:

void CAScoreViewPort::setSelectionAreaColor ( const QColor  c  )  [inline]

Definition at line 189 of file scoreviewport.h.

References _selectionAreaColor.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

QColor CAScoreViewPort::selectedContextColor (  )  [inline]

Definition at line 190 of file scoreviewport.h.

References _selectedContextColor.

Referenced by initScoreViewPort(), and paintEvent().

Here is the caller graph for this function:

void CAScoreViewPort::setSelectedContextColor ( const QColor  c  )  [inline]

Definition at line 191 of file scoreviewport.h.

References _selectedContextColor.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

QColor CAScoreViewPort::hiddenElementsColor (  )  [inline]

Definition at line 192 of file scoreviewport.h.

References _hiddenElementsColor.

Referenced by initScoreViewPort(), and paintEvent().

Here is the caller graph for this function:

void CAScoreViewPort::setHiddenElementsColor ( const QColor  c  )  [inline]

Definition at line 193 of file scoreviewport.h.

References _hiddenElementsColor.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

QColor CAScoreViewPort::disabledElementsColor (  )  [inline]

Definition at line 194 of file scoreviewport.h.

References _disabledElementsColor.

Referenced by initScoreViewPort(), and paintEvent().

Here is the caller graph for this function:

void CAScoreViewPort::setDisabledElementsColor ( const QColor  c  )  [inline]

Definition at line 195 of file scoreviewport.h.

References _disabledElementsColor.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

bool CAScoreViewPort::playing (  )  [inline]

Definition at line 197 of file scoreviewport.h.

References _playing.

Referenced by CAMainWin::setMode().

Here is the caller graph for this function:

void CAScoreViewPort::setPlaying ( bool  playing  )  [inline]

Definition at line 198 of file scoreviewport.h.

References _playing.

Referenced by CAMainWin::on_uiPlayFromSelection_toggled().

void CAScoreViewPort::setRepaintArea ( QRect *  area  )  [inline]

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

See also:
clearRepaintArea()

Definition at line 200 of file scoreviewport.h.

References _repaintArea.

void CAScoreViewPort::clearRepaintArea (  )  [inline]

Disables and deletes the area to be repainted.

See also:
setRepaintArea()

Definition at line 201 of file scoreviewport.h.

References _repaintArea.

CAVoice* CAScoreViewPort::selectedVoice (  )  [inline]

Definition at line 203 of file scoreviewport.h.

References _selectedVoice.

Referenced by musElementsAt(), paintEvent(), CAMainWin::scoreViewPortMouseRelease(), selectNextMusElement(), and selectPrevMusElement().

Here is the caller graph for this function:

void CAScoreViewPort::setSelectedVoice ( CAVoice selectedVoice  )  [inline]

Definition at line 204 of file scoreviewport.h.

References _selectedVoice.

Referenced by initScoreViewPort(), and CAMainWin::on_uiVoiceNum_valChanged().

Here is the caller graph for this function:

bool CAScoreViewPort::shadowNoteVisible (  )  [inline]

Definition at line 206 of file scoreviewport.h.

References _shadowNoteVisible.

void CAScoreViewPort::setShadowNoteVisible ( bool  visible  )  [inline]

Definition at line 207 of file scoreviewport.h.

References _shadowNoteVisible, and setShadowNoteVisibleOnLeave().

Referenced by initScoreViewPort(), CAMainWin::scoreViewPortMouseMove(), and CAMainWin::setMode().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAScoreViewPort::drawShadowNoteAccs (  )  [inline]

Definition at line 209 of file scoreviewport.h.

References _drawShadowNoteAccs.

void CAScoreViewPort::setDrawShadowNoteAccs ( bool  draw  )  [inline]

Definition at line 210 of file scoreviewport.h.

References _drawShadowNoteAccs.

Referenced by initScoreViewPort(), CAMainWin::insertMusElementAt(), and CAMainWin::scoreViewPortKeyPress().

Here is the caller graph for this function:

int CAScoreViewPort::shadowNoteAccs (  )  [inline]

Definition at line 212 of file scoreviewport.h.

References _shadowNoteAccs.

void CAScoreViewPort::setShadowNoteAccs ( int  accs  )  [inline]

Definition at line 213 of file scoreviewport.h.

References _shadowNoteAccs.

Referenced by initScoreViewPort(), CAMainWin::scoreViewPortKeyPress(), and CAMainWin::scoreViewPortMouseMove().

Here is the caller graph for this function:

void CAScoreViewPort::setShadowNoteDotted ( int  dotted  )  [inline]

Definition at line 215 of file scoreviewport.h.

References _shadowNote.

Referenced by CAMainWin::insertMusElementAt(), CAMainWin::scoreViewPortKeyPress(), and CAMainWin::scoreViewPortMousePress().

Here is the caller graph for this function:

CATextEdit * CAScoreViewPort::createTextEdit ( CADrawableMusElement dMusElt  ) 

Creates a CATextEdit widget over the existing drawable syllable dMusElt. Returns the pointer to the created widget.

See also:
createTextEdit( QRect geometry )

Definition at line 1389 of file scoreviewport.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

CATextEdit* CAScoreViewPort::textEdit (  )  [inline]

Definition at line 218 of file scoreviewport.h.

References _textEdit.

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

Here is the caller graph for this function:

void CAScoreViewPort::removeTextEdit (  ) 

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

Definition at line 1429 of file scoreviewport.cpp.

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

Referenced by CAMainWin::onTextEditKeyPressEvent(), CAMainWin::scoreViewPortMousePress(), and CAMainWin::setMode().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAScoreViewPort::textEditVisible (  )  [inline]

Definition at line 220 of file scoreviewport.h.

References _textEditVisible.

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

Here is the caller graph for this function:

void CAScoreViewPort::updateHelpers (  ) 

Definition at line 971 of file scoreviewport.cpp.

References _shadowDrawableNote, _shadowNote, _xCursor, _yCursor, CAClef::c1(), currentContext(), CADrawableContext::DrawableStaff, textEdit(), textEditGeometry(), textEditVisible(), worldX(), worldY(), and zoom().

Referenced by createTextEdit(), mouseMoveEvent(), rebuild(), removeTextEdit(), setWorldX(), setWorldY(), and setZoom().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAScoreViewPort::mousePressEvent ( QMouseEvent *  e  )  [private, virtual, slot]

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

Reimplemented from CAViewPort.

Definition at line 1077 of file scoreviewport.cpp.

References _worldX, _worldY, _zoom, CADrawable::Bottom, CAMousePressEvent(), CADrawable::Left, CADrawable::Right, selection(), setLastMousePressCoords(), setResizeDirection(), and CADrawable::Top.

void CAScoreViewPort::mouseMoveEvent ( QMouseEvent *  e  )  [private, virtual, slot]

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

Reimplemented from CAViewPort.

Definition at line 1110 of file scoreviewport.cpp.

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

void CAScoreViewPort::mouseReleaseEvent ( QMouseEvent *  e  )  [private, virtual, slot]

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

Reimplemented from CAViewPort.

Definition at line 1101 of file scoreviewport.cpp.

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

void CAScoreViewPort::wheelEvent ( QWheelEvent *  e  )  [private, virtual, slot]

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

Reimplemented from CAViewPort.

Definition at line 1150 of file scoreviewport.cpp.

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

void CAScoreViewPort::keyPressEvent ( QKeyEvent *  e  )  [private, virtual, slot]

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

Reimplemented from CAViewPort.

Definition at line 1163 of file scoreviewport.cpp.

References CAKeyPressEvent().

void CAScoreViewPort::HScrollBarEvent ( int  val  )  [private, slot]

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.

Definition at line 1189 of file scoreviewport.cpp.

References _allowManualScroll, _hScrollBarDeadLock, and setWorldX().

Referenced by initScoreViewPort().

void CAScoreViewPort::VScrollBarEvent ( int  val  )  [private, slot]

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.

Definition at line 1200 of file scoreviewport.cpp.

References _allowManualScroll, _vScrollBarDeadLock, and setWorldY().

Referenced by initScoreViewPort().

void CAScoreViewPort::resizeEvent ( QResizeEvent *  e  )  [private, slot]

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.

Definition at line 1025 of file scoreviewport.cpp.

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

void CAScoreViewPort::paintEvent ( QPaintEvent *  e  )  [private, slot]

General Qt's paint event. All the music elements get actually rendered in this method.

Definition at line 812 of file scoreviewport.cpp.

References _backgroundColor, _borderPen, _canvas, _currentContext, _drawableCList, _drawableMList, _drawBorder, _drawShadowNoteAccs, _holdRepaint, _oldWorldH, _oldWorldW, _oldWorldX, _oldWorldY, _repaintArea, _selection, _shadowDrawableNote, _shadowNoteAccs, _shadowNoteVisible, _worldH, _worldW, _worldX, _worldY, _zoom, CADrawSettings::color, CAMusElement::context(), disabledElementsColor(), CADrawableAccidental::draw(), drawableHeight(), drawableWidth(), drawSelectionRegion(), CAKDTree< T >::findInRange(), foregroundColor(), CARest::Hidden, hiddenElementsColor(), CAMusElement::isPlayable(), CAMusElement::musElementType(), CAMusElement::Rest, selectedContextColor(), selectedVoice(), selectionAreaColor(), selectionColor(), selectionRegionList(), CAKDTree< T >::size(), CAVoice::staff(), CADrawable::width(), CADrawSettings::x, CADrawSettings::y, and CADrawable::yPos().

void CAScoreViewPort::leaveEvent ( QEvent *  e  )  [private, slot]

Definition at line 1207 of file scoreviewport.cpp.

References _shadowNoteVisible, and _shadowNoteVisibleOnLeave.

void CAScoreViewPort::enterEvent ( QEvent *  e  )  [private, slot]

Definition at line 1213 of file scoreviewport.cpp.

References _shadowNoteVisible, and _shadowNoteVisibleOnLeave.

void CAScoreViewPort::on__animationTimer_timeout (  )  [private, slot]

Definition at line 203 of file scoreviewport.cpp.

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

Referenced by initScoreViewPort(), and startAnimationTimer().

void CAScoreViewPort::CAMousePressEvent ( QMouseEvent *  e,
QPoint  p,
CAScoreViewPort v 
) [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.

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

void CAScoreViewPort::CAMouseReleaseEvent ( QMouseEvent *  e,
QPoint  p,
CAScoreViewPort v 
) [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.

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

void CAScoreViewPort::CAMouseMoveEvent ( QMouseEvent *  e,
QPoint  p,
CAScoreViewPort v 
) [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.

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

void CAScoreViewPort::CAWheelEvent ( QWheelEvent *  e,
QPoint  p,
CAScoreViewPort v 
) [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.

Parameters:
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::CAKeyPressEvent ( QKeyEvent *  e,
CAScoreViewPort v 
) [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.

Parameters:
e Wheel event which gets processed.
v Pointer to this viewport (the viewport which emmitted the signal).

Referenced by keyPressEvent().

void CAScoreViewPort::selectionChanged (  )  [signal]

Referenced by addMElement(), addToSelection(), clearSelection(), removeFromSelection(), and selectMElement().

void CAScoreViewPort::initScoreViewPort ( CASheet s  )  [private]

Definition at line 112 of file scoreviewport.cpp.

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

Referenced by CAScoreViewPort().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAScoreViewPort::clearMElements (  )  [inline, private]

Definition at line 250 of file scoreviewport.h.

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

Here is the call graph for this function:

void CAScoreViewPort::clearCElements (  )  [inline, private]

Definition at line 251 of file scoreviewport.h.

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

Here is the call graph for this function:

bool CAScoreViewPort::isSelected ( CADrawableMusElement elt  )  [inline, private]

Definition at line 252 of file scoreviewport.h.

References _selection.

template<typename T>
int CAScoreViewPort::getMaxXExtended ( CAKDTree< T > &  v  )  [inline, private]

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

Definition at line 1440 of file scoreviewport.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T>
int CAScoreViewPort::getMaxYExtended ( CAKDTree< T > &  v  )  [inline, private]

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

Definition at line 1448 of file scoreviewport.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

void CAScoreViewPort::setLastMousePressCoords ( QPoint  p  )  [inline, private]

Definition at line 278 of file scoreviewport.h.

References _lastMousePressCoords.

Referenced by mousePressEvent().

bool CAScoreViewPort::shadowNoteVisibleOnLeave (  )  [inline, private]

Definition at line 290 of file scoreviewport.h.

References _shadowNoteVisibleOnLeave.

void CAScoreViewPort::setShadowNoteVisibleOnLeave ( bool  v  )  [inline, private]

Definition at line 291 of file scoreviewport.h.

References _shadowNoteVisibleOnLeave.

Referenced by initScoreViewPort(), and setShadowNoteVisible().

Here is the caller graph for this function:

void CAScoreViewPort::setTextEdit ( CATextEdit e  )  [inline, private]

Definition at line 300 of file scoreviewport.h.

References _textEdit.

Referenced by initScoreViewPort().

Here is the caller graph for this function:

QRect CAScoreViewPort::textEditGeometry (  )  [inline, private]

Definition at line 302 of file scoreviewport.h.

References _textEditGeometry.

Referenced by updateHelpers().

Here is the caller graph for this function:

void CAScoreViewPort::setTextEditGeometry ( const QRect  r  )  [inline, private]

Definition at line 303 of file scoreviewport.h.

References _textEditGeometry.

Referenced by createTextEdit().

Here is the caller graph for this function:

void CAScoreViewPort::setTextEditVisible ( bool  v  )  [inline, private]

Definition at line 305 of file scoreviewport.h.

References _textEditVisible.

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

Here is the caller graph for this function:

void CAScoreViewPort::setResizeDirection ( CADrawable::CADirection  r  )  [inline, private]

Definition at line 306 of file scoreviewport.h.

References _resizeDirection.

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

Here is the caller graph for this function:

void CAScoreViewPort::drawSelectionRegion ( QPainter *  p,
CADrawSettings  s 
) [private]

Definition at line 1001 of file scoreviewport.cpp.

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

Referenced by paintEvent().

void CAScoreViewPort::startAnimationTimer (  )  [private]

Definition at line 1218 of file scoreviewport.cpp.

References _animationStep, _animationTimer, and on__animationTimer_timeout().

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

Here is the caller graph for this function:


Member Data Documentation

QGridLayout* CAScoreViewPort::_layout [private]

Definition at line 257 of file scoreviewport.h.

Referenced by initScoreViewPort().

QWidget* CAScoreViewPort::_canvas [private]

Definition at line 258 of file scoreviewport.h.

Referenced by drawableHeight(), drawableWidth(), initScoreViewPort(), and paintEvent().

QScrollBar* CAScoreViewPort::_hScrollBar [private]

Definition at line 259 of file scoreviewport.h.

Referenced by checkScrollBars(), initScoreViewPort(), setScrollBarVisible(), setWorldWidth(), setWorldX(), and ~CAScoreViewPort().

QScrollBar * CAScoreViewPort::_vScrollBar [private]

Definition at line 259 of file scoreviewport.h.

Referenced by checkScrollBars(), initScoreViewPort(), setScrollBarVisible(), setWorldHeight(), setWorldY(), and ~CAScoreViewPort().

CAKDTree<CADrawableMusElement*> CAScoreViewPort::_drawableMList [private]

Definition at line 264 of file scoreviewport.h.

Referenced by addMElement(), addToSelection(), calculateTime(), checkScrollBars(), clearMElements(), clone(), coordsToTime(), findMElement(), musElementsAt(), nearestLeftElement(), nearestRightElement(), paintEvent(), rebuild(), removeMElement(), selectMElement(), setWorldHeight(), setWorldWidth(), setWorldX(), setWorldY(), timeToCoords(), zoomToFit(), zoomToHeight(), zoomToWidth(), and ~CAScoreViewPort().

CAKDTree<CADrawableContext*> CAScoreViewPort::_drawableCList [private]

Definition at line 265 of file scoreviewport.h.

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

CASheet* CAScoreViewPort::_sheet [private]

Definition at line 266 of file scoreviewport.h.

Referenced by clone(), setSheet(), and sheet().

QList<CADrawableMusElement *> CAScoreViewPort::_selection [private]

Definition at line 268 of file scoreviewport.h.

Referenced by addMElement(), addToSelection(), clearSelection(), isSelected(), paintEvent(), rebuild(), removeFromSelection(), selectDownMusElement(), selection(), selectMElement(), selectNextMusElement(), selectPrevMusElement(), selectUpMusElement(), and zoomToSelection().

CADrawableContext* CAScoreViewPort::_currentContext [private]

Definition at line 269 of file scoreviewport.h.

Referenced by currentContext(), initScoreViewPort(), nearestLeftElement(), nearestRightElement(), paintEvent(), rebuild(), and setCurrentContext().

const int CAScoreViewPort::RIGHT_EXTRA_SPACE = 100 [static, private]

Copyright (c) 2006-2008, 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.

Definition at line 271 of file scoreviewport.h.

Referenced by getMaxXExtended().

const int CAScoreViewPort::BOTTOM_EXTRA_SPACE = 30 [static, private]

Definition at line 272 of file scoreviewport.h.

Referenced by getMaxYExtended().

int CAScoreViewPort::_worldX [private]

Definition at line 276 of file scoreviewport.h.

Referenced by initScoreViewPort(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), on__animationTimer_timeout(), paintEvent(), resizeEvent(), setWorldWidth(), setWorldX(), setWorldY(), setZoom(), wheelEvent(), and worldX().

int CAScoreViewPort::_worldY [private]

Definition at line 276 of file scoreviewport.h.

Referenced by initScoreViewPort(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), on__animationTimer_timeout(), paintEvent(), resizeEvent(), setWorldHeight(), setWorldX(), setWorldY(), setZoom(), wheelEvent(), and worldY().

int CAScoreViewPort::_worldW [private]

Definition at line 276 of file scoreviewport.h.

Referenced by initScoreViewPort(), paintEvent(), setCenterCoords(), setWorldWidth(), setWorldX(), setZoom(), and worldWidth().

int CAScoreViewPort::_worldH [private]

Definition at line 276 of file scoreviewport.h.

Referenced by initScoreViewPort(), paintEvent(), setCenterCoords(), setWorldHeight(), setWorldY(), setZoom(), and worldHeight().

QPoint CAScoreViewPort::_lastMousePressCoords [private]

Definition at line 277 of file scoreviewport.h.

Referenced by lastMousePressCoords(), and setLastMousePressCoords().

float CAScoreViewPort::_zoom [private]

Definition at line 279 of file scoreviewport.h.

Referenced by checkScrollBars(), initScoreViewPort(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), on__animationTimer_timeout(), paintEvent(), resizeEvent(), setWorldHeight(), setWorldWidth(), setWorldX(), setWorldY(), setZoom(), wheelEvent(), and zoom().

CAVoice* CAScoreViewPort::_selectedVoice [private]

Definition at line 281 of file scoreviewport.h.

Referenced by selectedVoice(), and setSelectedVoice().

bool CAScoreViewPort::_shadowNoteVisible [private]

Definition at line 287 of file scoreviewport.h.

Referenced by enterEvent(), leaveEvent(), mouseMoveEvent(), paintEvent(), setShadowNoteVisible(), and shadowNoteVisible().

bool CAScoreViewPort::_shadowNoteVisibleOnLeave [private]

Definition at line 289 of file scoreviewport.h.

Referenced by enterEvent(), leaveEvent(), setShadowNoteVisibleOnLeave(), and shadowNoteVisibleOnLeave().

int CAScoreViewPort::_shadowNoteAccs [private]

Definition at line 293 of file scoreviewport.h.

Referenced by paintEvent(), setShadowNoteAccs(), and shadowNoteAccs().

bool CAScoreViewPort::_drawShadowNoteAccs [private]

Definition at line 294 of file scoreviewport.h.

Referenced by drawShadowNoteAccs(), paintEvent(), and setDrawShadowNoteAccs().

QList<CANote*> CAScoreViewPort::_shadowNote [private]

Definition at line 295 of file scoreviewport.h.

Referenced by addCElement(), rebuild(), setShadowNoteDotted(), updateHelpers(), and ~CAScoreViewPort().

QList<CADrawableNote*> CAScoreViewPort::_shadowDrawableNote [private]

Definition at line 296 of file scoreviewport.h.

Referenced by addCElement(), paintEvent(), rebuild(), updateHelpers(), and ~CAScoreViewPort().

CATextEdit* CAScoreViewPort::_textEdit [private]

Definition at line 299 of file scoreviewport.h.

Referenced by setTextEdit(), and textEdit().

QRect CAScoreViewPort::_textEditGeometry [private]

Definition at line 301 of file scoreviewport.h.

Referenced by setTextEditGeometry(), and textEditGeometry().

bool CAScoreViewPort::_textEditVisible [private]

Definition at line 304 of file scoreviewport.h.

Referenced by setTextEditVisible(), and textEditVisible().

CADrawable::CADirection CAScoreViewPort::_resizeDirection [private]

Definition at line 307 of file scoreviewport.h.

Referenced by resizeDirection(), and setResizeDirection().

QList<QRect> CAScoreViewPort::_selectionRegionList [private]

Definition at line 310 of file scoreviewport.h.

Referenced by addSelectionRegion(), clearSelectionRegionList(), removeSelectionRegion(), and selectionRegionList().

bool CAScoreViewPort::_drawBorder [private]

Definition at line 316 of file scoreviewport.h.

Referenced by initScoreViewPort(), paintEvent(), setBorder(), and unsetBorder().

QRect* CAScoreViewPort::_repaintArea [private]

Definition at line 317 of file scoreviewport.h.

Referenced by clearRepaintArea(), initScoreViewPort(), paintEvent(), and setRepaintArea().

QPen CAScoreViewPort::_borderPen [private]

Definition at line 318 of file scoreviewport.h.

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

QColor CAScoreViewPort::_backgroundColor [private]

Definition at line 319 of file scoreviewport.h.

Referenced by backgroundColor(), paintEvent(), and setBackgroundColor().

QColor CAScoreViewPort::_foregroundColor [private]

Definition at line 320 of file scoreviewport.h.

Referenced by foregroundColor(), and setForegroundColor().

QColor CAScoreViewPort::_selectionColor [private]

Definition at line 321 of file scoreviewport.h.

Referenced by selectionColor(), and setSelectionColor().

QColor CAScoreViewPort::_selectionAreaColor [private]

Definition at line 322 of file scoreviewport.h.

Referenced by selectionAreaColor(), and setSelectionAreaColor().

QColor CAScoreViewPort::_selectedContextColor [private]

Definition at line 323 of file scoreviewport.h.

Referenced by selectedContextColor(), and setSelectedContextColor().

QColor CAScoreViewPort::_disabledElementsColor [private]

Definition at line 324 of file scoreviewport.h.

Referenced by disabledElementsColor(), and setDisabledElementsColor().

QColor CAScoreViewPort::_hiddenElementsColor [private]

Definition at line 325 of file scoreviewport.h.

Referenced by hiddenElementsColor(), and setHiddenElementsColor().

QTimer* CAScoreViewPort::_animationTimer [private]

Definition at line 330 of file scoreviewport.h.

Referenced by initScoreViewPort(), on__animationTimer_timeout(), startAnimationTimer(), and ~CAScoreViewPort().

const int CAScoreViewPort::ANIMATION_STEPS = 7 [static, private]

Definition at line 331 of file scoreviewport.h.

Referenced by on__animationTimer_timeout().

int CAScoreViewPort::_animationStep [private]

Definition at line 332 of file scoreviewport.h.

Referenced by on__animationTimer_timeout(), and startAnimationTimer().

int CAScoreViewPort::_targetWorldX [private]

Definition at line 333 of file scoreviewport.h.

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

int CAScoreViewPort::_targetWorldY [private]

Definition at line 333 of file scoreviewport.h.

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

int CAScoreViewPort::_targetWorldW [private]

Definition at line 333 of file scoreviewport.h.

int CAScoreViewPort::_targetWorldH [private]

Definition at line 333 of file scoreviewport.h.

float CAScoreViewPort::_targetZoom [private]

Definition at line 334 of file scoreviewport.h.

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

CAScrollBarVisibility CAScoreViewPort::_scrollBarVisible [private]

Definition at line 341 of file scoreviewport.h.

Referenced by initScoreViewPort(), isScrollBarVisible(), and setScrollBarVisible().

bool CAScoreViewPort::_allowManualScroll [private]

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

Definition at line 342 of file scoreviewport.h.

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

int CAScoreViewPort::_oldWorldX [private]

Definition at line 347 of file scoreviewport.h.

Referenced by paintEvent(), and setWorldX().

int CAScoreViewPort::_oldWorldY [private]

Definition at line 347 of file scoreviewport.h.

Referenced by paintEvent(), and setWorldY().

int CAScoreViewPort::_oldWorldW [private]

Definition at line 347 of file scoreviewport.h.

Referenced by initScoreViewPort(), paintEvent(), and setWorldWidth().

int CAScoreViewPort::_oldWorldH [private]

Definition at line 347 of file scoreviewport.h.

Referenced by initScoreViewPort(), paintEvent(), and setWorldHeight().

bool CAScoreViewPort::_playing [private]

Definition at line 348 of file scoreviewport.h.

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

int CAScoreViewPort::_xCursor [private]

Definition at line 350 of file scoreviewport.h.

Referenced by initScoreViewPort(), mouseMoveEvent(), updateHelpers(), and wheelEvent().

int CAScoreViewPort::_yCursor [private]

Definition at line 350 of file scoreviewport.h.

Referenced by initScoreViewPort(), mouseMoveEvent(), updateHelpers(), and wheelEvent().

bool CAScoreViewPort::_holdRepaint [private]

Definition at line 351 of file scoreviewport.h.

Referenced by checkScrollBars(), initScoreViewPort(), and paintEvent().

bool CAScoreViewPort::_checkScrollBarsDeadLock [private]

Definition at line 352 of file scoreviewport.h.

Referenced by checkScrollBars(), initScoreViewPort(), setCenterCoords(), and setWorldCoords().

bool CAScoreViewPort::_hScrollBarDeadLock [private]

Definition at line 353 of file scoreviewport.h.

Referenced by HScrollBarEvent(), initScoreViewPort(), setWorldWidth(), and setWorldX().

bool CAScoreViewPort::_vScrollBarDeadLock [private]

Definition at line 354 of file scoreviewport.h.

Referenced by initScoreViewPort(), setWorldHeight(), setWorldY(), and VScrollBarEvent().


The documentation for this class was generated from the following files:
Generated on Sat Feb 9 13:22:09 2008 for Canorus by  doxygen 1.5.3