Logo Search packages:      
Sourcecode: rosegarden version File versions

LoopRuler Class Reference

#include <loopruler.h>

Inheritance diagram for LoopRuler:

List of all members.

Detailed Description

LoopRuler is a widget that shows bar and beat durations on a ruler-like scale, and reacts to mouse clicks by sending relevant signals to modify position pointer and playback/looping states.

Definition at line 39 of file loopruler.h.

Public Slots

void slotSetLoopMarker (Rosegarden::timeT startLoop, Rosegarden::timeT endLoop)


void dragLoopToPosition (Rosegarden::timeT)
 Set the loop end position on mouse drag.
void dragPointerToPosition (Rosegarden::timeT)
 Set the pointer position on mouse drag.
void mouseMove ()
void setLoop (Rosegarden::timeT, Rosegarden::timeT)
 Set a playing loop.
void setPlayPosition (Rosegarden::timeT)
 Set pointer position and start playing on double click.
void setPointerPosition (Rosegarden::timeT)
 Set the pointer position on mouse single click.
void startMouseMove (int directionConstraint)
void stopMouseMove ()

Public Member Functions

double getHScaleFactor ()
bool getLoopingMode ()
bool hasActiveMousePress ()
 LoopRuler (Rosegarden::RulerScale *rulerScale, int height=0, double xorigin=0.0, bool invert=false, QWidget *parent=0, const char *name=0)
virtual QSize minimumSizeHint () const
void scrollHoriz (int x)
void setHorizScaleFactor (double dy)
void setHScaleFactor (double dy)
void setMinimumWidth (int width)
virtual QSize sizeHint () const

Protected Member Functions

void drawBarSections (QPainter *)
void drawLoopMarker (QPainter *)
virtual void mouseDoubleClickEvent (QMouseEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void paintEvent (QPaintEvent *)
void setLoopingMode (bool value)

Protected Attributes

bool m_activeMousePress
int m_currentXOffset
Rosegarden::timeT m_endLoop
Rosegarden::SnapGrid m_grid
int m_height
double m_hScaleFactor
bool m_invert
bool m_loopingMode
Rosegarden::timeT m_startLoop
int m_width
double m_xorigin

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

Generated by  Doxygen 1.6.0   Back to index