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

Rosegarden::ChordNameRuler Class Reference

#include <ChordNameRuler.h>

List of all members.

Detailed Description

ChordNameRuler is a widget that shows a strip of text strings describing the chords in a composition.

Definition at line 57 of file ChordNameRuler.h.

Public Slots

void slotScrollHoriz (int x)

Public Member Functions

 ChordNameRuler (RulerScale *rulerScale, RosegardenGUIDoc *doc, std::vector< Segment * > &segments, double xorigin=0.0, int height=0, QWidget *parent=0, const char *name=0)
 ChordNameRuler (RulerScale *rulerScale, RosegardenGUIDoc *doc, double xorigin=0.0, int height=0, QWidget *parent=0, const char *name=0)
virtual QSize minimumSizeHint () const
void setCurrentSegment (Segment *segment)
void setMinimumWidth (int width)
void setReady ()
 Indicate that the chord-name ruler should make itself ready and refresh.
void setStudio (Studio *studio)
virtual QSize sizeHint () const

Protected Member Functions

virtual void paintEvent (QPaintEvent *)

Private Types

typedef std::map< Segment *, int > SegmentRefreshMap

Private Member Functions

void recalculate (timeT from=0, timeT to=0)

Private Attributes

QFont m_boldFont
Segment * m_chordSegment
Composition * m_composition
unsigned int m_compositionRefreshStatusId
Segment * m_currentSegment
int m_currentXOffset
QFont m_font
QFontMetrics m_fontMetrics
int m_height
bool m_ready
bool m_regetSegmentsOnChange
SegmentRefreshMap m_segments
Studio * m_studio
int m_width
double m_xorigin
const PropertyName TEXT_ACTUAL_X
const PropertyName TEXT_FORMAL_X

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

Generated by  Doxygen 1.6.0   Back to index