MuseScore  3.4
Music composition and notation
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Ms::Ruler Class Reference

#include <ruler.h>

Inheritance diagram for Ms::Ruler:
Inheritance graph
[legend]
Collaboration diagram for Ms::Ruler:
Collaboration graph
[legend]

Public Slots

void setXpos (int)
 
void setMag (double xmag, double ymag)
 
void setPos (const Pos &)
 

Signals

void posChanged (const Pos &)
 
void locatorMoved (int idx, const Pos &)
 

Public Member Functions

 Ruler (QWidget *parent=0)
 
void setScore (Score *, Pos *locator)
 
double xmag () const
 
int xpos () const
 

Private Member Functions

virtual void paintEvent (QPaintEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void leaveEvent (QEvent *)
 
Pos pix2pos (int x) const
 
int pos2pix (const Pos &p) const
 
void moveLocator (QMouseEvent *)
 

Private Attributes

Score_score
 
Pos _cursor
 
Pos_locator
 
int magStep
 
double _xmag
 
int _xpos
 
TType _timeType
 
QFont _font1
 
QFont _font2
 

Static Private Attributes

static QPixmap * markIcon [3]
 

Constructor & Destructor Documentation

◆ Ruler()

Ms::Ruler::Ruler ( QWidget *  parent = 0)

Member Function Documentation

◆ leaveEvent()

void Ms::Ruler::leaveEvent ( QEvent *  )
privatevirtual

◆ locatorMoved

void Ms::Ruler::locatorMoved ( int  idx,
const Pos  
)
signal

◆ mouseMoveEvent()

void Ms::Ruler::mouseMoveEvent ( QMouseEvent *  event)
privatevirtual

◆ mousePressEvent()

void Ms::Ruler::mousePressEvent ( QMouseEvent *  e)
privatevirtual

◆ moveLocator()

void Ms::Ruler::moveLocator ( QMouseEvent *  e)
private

◆ paintEvent()

void Ms::Ruler::paintEvent ( QPaintEvent *  e)
privatevirtual

◆ pix2pos()

Pos Ms::Ruler::pix2pos ( int  x) const
private

◆ pos2pix()

int Ms::Ruler::pos2pix ( const Pos p) const
private

◆ posChanged

void Ms::Ruler::posChanged ( const Pos )
signal

◆ setMag

void Ms::Ruler::setMag ( double  xmag,
double  ymag 
)
slot

◆ setPos

void Ms::Ruler::setPos ( const Pos pos)
slot

◆ setScore()

void Ms::Ruler::setScore ( Score s,
Pos locator 
)

◆ setXpos

void Ms::Ruler::setXpos ( int  val)
slot

◆ xmag()

double Ms::Ruler::xmag ( ) const
inline

◆ xpos()

int Ms::Ruler::xpos ( ) const
inline

Member Data Documentation

◆ _cursor

Pos Ms::Ruler::_cursor
private

◆ _font1

QFont Ms::Ruler::_font1
private

◆ _font2

QFont Ms::Ruler::_font2
private

◆ _locator

Pos* Ms::Ruler::_locator
private

◆ _score

Score* Ms::Ruler::_score
private

◆ _timeType

TType Ms::Ruler::_timeType
private

◆ _xmag

double Ms::Ruler::_xmag
private

◆ _xpos

int Ms::Ruler::_xpos
private

◆ magStep

int Ms::Ruler::magStep
private

◆ markIcon

QPixmap * Ms::Ruler::markIcon
staticprivate

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