MuseScore  3.4
Music composition and notation
Public Slots | Public Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Ms::PluginAPI::ScoreView Class Reference

This is an GUI element to show a score. More...

#include <util.h>

Inheritance diagram for Ms::PluginAPI::ScoreView:
Inheritance graph
[legend]
Collaboration diagram for Ms::PluginAPI::ScoreView:
Collaboration graph
[legend]

Public Slots

Q_INVOKABLE void setScore (Ms::PluginAPI::Score *)
 
Q_INVOKABLE void setCurrentPage (int n)
 
Q_INVOKABLE void nextPage ()
 
Q_INVOKABLE void prevPage ()
 

Public Member Functions

 ScoreView (QQuickItem *parent=0)
 
virtual ~ScoreView ()
 
QColor color () const
 
void setColor (const QColor &c)
 
qreal scale () const
 
void setScale (qreal v)
 
virtual const QRect geometry () const override
 
- Public Member Functions inherited from Ms::MuseScoreView
 MuseScoreView ()
 
Pagepoint2page (const QPointF &)
 
ElementelementAt (const QPointF &p)
 
const QList< Element * > elementsAt (const QPointF &)
 
virtual ElementelementNear (QPointF)
 
virtual void layoutChanged ()
 
virtual void moveCursor ()
 
virtual void showLoopCursors (bool)
 
virtual void adjustCanvasPosition (const Element *, bool, int=-1)
 
Scorescore () const
 
virtual void removeScore ()
 
virtual void changeEditElement (Element *)
 
virtual QCursor cursor () const
 
virtual void setCursor (const QCursor &)
 
virtual void setDropRectangle (const QRectF &)
 
virtual void cmdAddSlur (ChordRest *, ChordRest *, const Slur *)
 
virtual void startEdit (Element *, Grip)
 
virtual void startNoteEntryMode ()
 
virtual void setDropTarget (const Element *)
 
virtual void textTab (bool)
 
virtual void lyricsTab (bool, bool, bool)
 
virtual void lyricsReturn ()
 
virtual void lyricsEndEdit ()
 
virtual void lyricsUpDown (bool, bool)
 
virtual void lyricsMinus ()
 
virtual void lyricsUnderscore ()
 
virtual void onElementDestruction (Element *)
 

Properties

QColor color
 Background color. More...
 
qreal scale
 Scaling factor. More...
 

Private Member Functions

virtual void setScore (Ms::Score *) override
 
virtual void dataChanged (const QRectF &) override
 
virtual void updateAll () override
 
virtual void paint (QPainter *) override
 
virtual QRectF boundingRect () const override
 
virtual void drawBackground (QPainter *, const QRectF &) const override
 

Private Attributes

Ms::Scorescore
 
int _currentPage
 
QColor _color
 
qreal mag
 
int playPos
 
QRectF _boundingRect
 
QNetworkAccessManager * networkManager
 

Additional Inherited Members

- Protected Attributes inherited from Ms::MuseScoreView
Score_score
 

Detailed Description

This is an GUI element to show a score.

Since
MuseScore 3.2

Constructor & Destructor Documentation

◆ ScoreView()

Ms::PluginAPI::ScoreView::ScoreView ( QQuickItem *  parent = 0)

◆ ~ScoreView()

virtual Ms::PluginAPI::ScoreView::~ScoreView ( )
inlinevirtual

Member Function Documentation

◆ boundingRect()

virtual QRectF Ms::PluginAPI::ScoreView::boundingRect ( ) const
inlineoverrideprivatevirtual

◆ color()

QColor Ms::PluginAPI::ScoreView::color ( ) const
inline

◆ dataChanged()

virtual void Ms::PluginAPI::ScoreView::dataChanged ( const QRectF &  )
inlineoverrideprivatevirtual

Implements Ms::MuseScoreView.

◆ drawBackground()

virtual void Ms::PluginAPI::ScoreView::drawBackground ( QPainter *  ,
const QRectF &   
) const
inlineoverrideprivatevirtual

Implements Ms::MuseScoreView.

◆ geometry()

virtual const QRect Ms::PluginAPI::ScoreView::geometry ( ) const
inlineoverridevirtual

Implements Ms::MuseScoreView.

◆ nextPage

void Ms::PluginAPI::ScoreView::nextPage ( )
slot

◆ paint()

void Ms::PluginAPI::ScoreView::paint ( QPainter *  p)
overrideprivatevirtual

◆ prevPage

void Ms::PluginAPI::ScoreView::prevPage ( )
slot

◆ scale()

qreal Ms::PluginAPI::ScoreView::scale ( ) const
inline

◆ setColor()

void Ms::PluginAPI::ScoreView::setColor ( const QColor &  c)
inline

◆ setCurrentPage

void Ms::PluginAPI::ScoreView::setCurrentPage ( int  n)
slot

◆ setScale()

void Ms::PluginAPI::ScoreView::setScale ( qreal  v)
inline

◆ setScore() [1/2]

void Ms::PluginAPI::ScoreView::setScore ( Ms::Score s)
overrideprivatevirtual

Reimplemented from Ms::MuseScoreView.

◆ setScore [2/2]

void Ms::PluginAPI::ScoreView::setScore ( Ms::PluginAPI::Score s)
slot

◆ updateAll()

virtual void Ms::PluginAPI::ScoreView::updateAll ( )
inlineoverrideprivatevirtual

Implements Ms::MuseScoreView.

Member Data Documentation

◆ _boundingRect

QRectF Ms::PluginAPI::ScoreView::_boundingRect
private

◆ _color

QColor Ms::PluginAPI::ScoreView::_color
private

◆ _currentPage

int Ms::PluginAPI::ScoreView::_currentPage
private

◆ mag

qreal Ms::PluginAPI::ScoreView::mag
private

◆ networkManager

QNetworkAccessManager* Ms::PluginAPI::ScoreView::networkManager
private

◆ playPos

int Ms::PluginAPI::ScoreView::playPos
private

◆ score

Ms::Score* Ms::PluginAPI::ScoreView::score
private

Property Documentation

◆ color

QColor Ms::PluginAPI::ScoreView::color
readwrite

Background color.

◆ scale

qreal Ms::PluginAPI::ScoreView::scale
readwrite

Scaling factor.


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