Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

Rosegarden::TextRuler Class Reference

#include <TextRuler.h>

List of all members.

Detailed Description

TextRuler is a widget that shows a strip of text strings at x-coordinates corresponding to specified times. The strings are obtained from a Segment, in which they are stored as text events. (The Segment does not have to be part of a Composition.)

By design, this is more suitable for the display of single-purpose read-only data such as calculated chord names or (at a pinch) lyrics; it's not really suitable for displaying text data associated with a staff.

Definition at line 51 of file TextRuler.h.

Public Slots

void slotScrollHoriz (int x)

Public Member Functions

virtual QSize minimumSizeHint () const
void setMinimumWidth (int width)
virtual QSize sizeHint () const
 TextRuler (RulerScale *rulerScale, Segment *segment, int height=0, QWidget *parent=0, const char *name=0)

Protected Member Functions

virtual void paintEvent (QPaintEvent *)

Private Attributes

int m_currentXOffset
QFont m_font
QFontMetrics m_fontMetrics
int m_height
bool m_mySegmentMaybe
Segment * m_segment
int m_width

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

Generated by  Doxygen 1.6.0   Back to index