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

#include <timeline.h>

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

Public Types

enum  MouseOverValue {
  MouseOverValue::NONE, MouseOverValue::MOVE_UP_ARROW, MouseOverValue::MOVE_DOWN_ARROW, MouseOverValue::MOVE_UP_DOWN_ARROW,
  MouseOverValue::COLLAPSE_UP_ARROW, MouseOverValue::COLLAPSE_DOWN_ARROW, MouseOverValue::OPEN_EYE, MouseOverValue::CLOSED_EYE
}
 

Public Slots

void mouseOver (QPointF scene_pt)
 

Signals

void moved (QPointF p)
 
void swapMeta (unsigned int r, bool up)
 
void requestContextMenu (QContextMenuEvent *)
 

Public Member Functions

 TRowLabels (TDockWidget *dock_widget, Timeline *time, QGraphicsView *w=0)
 
void updateLabels (std::vector< std::pair< QString, bool >> labels, int height)
 
QString cursorIsOn ()
 

Private Slots

void restrict_scroll (int value)
 

Private Member Functions

virtual void resizeEvent (QResizeEvent *)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void contextMenuEvent (QContextMenuEvent *) override
 
virtual void leaveEvent (QEvent *)
 

Private Attributes

TDockWidgetscrollArea
 
Timelineparent
 
QPoint old_loc
 
bool dragging = false
 
std::vector< std::pair< QGraphicsItem *, int > > meta_labels
 
std::map< MouseOverValue, QPixmap * > mouseover_map
 
std::tuple< QGraphicsPixmapItem *, MouseOverValue, unsigned int > old_item_info
 

Member Enumeration Documentation

◆ MouseOverValue

Enumerator
NONE 
MOVE_UP_ARROW 
MOVE_DOWN_ARROW 
MOVE_UP_DOWN_ARROW 
COLLAPSE_UP_ARROW 
COLLAPSE_DOWN_ARROW 
OPEN_EYE 
CLOSED_EYE 

Constructor & Destructor Documentation

◆ TRowLabels()

Ms::TRowLabels::TRowLabels ( TDockWidget dock_widget,
Timeline time,
QGraphicsView *  w = 0 
)

Member Function Documentation

◆ contextMenuEvent()

void Ms::TRowLabels::contextMenuEvent ( QContextMenuEvent *  event)
overrideprivatevirtual

◆ cursorIsOn()

QString Ms::TRowLabels::cursorIsOn ( )

◆ leaveEvent()

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

◆ mouseMoveEvent()

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

◆ mouseOver

void Ms::TRowLabels::mouseOver ( QPointF  scene_pt)
slot

◆ mousePressEvent()

void Ms::TRowLabels::mousePressEvent ( QMouseEvent *  event)
privatevirtual

◆ mouseReleaseEvent()

void Ms::TRowLabels::mouseReleaseEvent ( QMouseEvent *  event)
privatevirtual

◆ moved

void Ms::TRowLabels::moved ( QPointF  p)
signal

◆ requestContextMenu

void Ms::TRowLabels::requestContextMenu ( QContextMenuEvent *  )
signal

◆ resizeEvent()

void Ms::TRowLabels::resizeEvent ( QResizeEvent *  )
privatevirtual

◆ restrict_scroll

void Ms::TRowLabels::restrict_scroll ( int  value)
privateslot

◆ swapMeta

void Ms::TRowLabels::swapMeta ( unsigned int  r,
bool  up 
)
signal

◆ updateLabels()

void Ms::TRowLabels::updateLabels ( std::vector< std::pair< QString, bool >>  labels,
int  height 
)

Member Data Documentation

◆ dragging

bool Ms::TRowLabels::dragging = false
private

◆ meta_labels

std::vector<std::pair<QGraphicsItem*, int> > Ms::TRowLabels::meta_labels
private

◆ mouseover_map

std::map<MouseOverValue, QPixmap*> Ms::TRowLabels::mouseover_map
private

◆ old_item_info

std::tuple<QGraphicsPixmapItem*, MouseOverValue, unsigned int> Ms::TRowLabels::old_item_info
private

◆ old_loc

QPoint Ms::TRowLabels::old_loc
private

◆ parent

Timeline* Ms::TRowLabels::parent
private

◆ scrollArea

TDockWidget* Ms::TRowLabels::scrollArea
private

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