LMMS
Loading...
Searching...
No Matches
lmms::gui::StepRecorderWidget Class Reference

#include <StepRecorderWidget.h>

Inheritance diagram for lmms::gui::StepRecorderWidget:

Signals

void positionChanged (const lmms::TimePos &t)

Public Member Functions

 StepRecorderWidget (QWidget *parent, const int ppb, const int marginTop, const int marginBottom, const int marginLeft, const int marginRight)
void setPixelsPerBar (int ppb)
void setCurrentPosition (TimePos currentPosition)
void setMargins (const QMargins &qm)
void setBottomMargin (const int marginBottom)
QMargins margins ()
void setStepsLength (TimePos stepsLength)
void setStartPosition (TimePos pos)
void setEndPosition (TimePos pos)
void showHint ()

Private Member Functions

void paintEvent (QPaintEvent *pe) override
int xCoordOfTick (int tick)
void drawVerLine (QPainter *painter, int x, const QColor &color, int top, int bottom)
void drawVerLine (QPainter *painter, const TimePos &pos, const QColor &color, int top, int bottom)
void updateBoundaries ()

Private Attributes

TimePos m_stepsLength
TimePos m_curStepStartPos
TimePos m_curStepEndPos
int m_ppb
TimePos m_currentPosition
QColor m_colorLineStart
QColor m_colorLineEnd
int m_top
int m_bottom
int m_left
int m_right
const int m_marginTop
int m_marginBottom
const int m_marginLeft
const int m_marginRight

Constructor & Destructor Documentation

◆ StepRecorderWidget()

lmms::gui::StepRecorderWidget::StepRecorderWidget ( QWidget * parent,
const int ppb,
const int marginTop,
const int marginBottom,
const int marginLeft,
const int marginRight )

Member Function Documentation

◆ drawVerLine() [1/2]

void lmms::gui::StepRecorderWidget::drawVerLine ( QPainter * painter,
const TimePos & pos,
const QColor & color,
int top,
int bottom )
private

◆ drawVerLine() [2/2]

void lmms::gui::StepRecorderWidget::drawVerLine ( QPainter * painter,
int x,
const QColor & color,
int top,
int bottom )
private

◆ margins()

QMargins lmms::gui::StepRecorderWidget::margins ( )

◆ paintEvent()

void lmms::gui::StepRecorderWidget::paintEvent ( QPaintEvent * pe)
overrideprivate

◆ positionChanged

void lmms::gui::StepRecorderWidget::positionChanged ( const lmms::TimePos & t)
signal

◆ setBottomMargin()

void lmms::gui::StepRecorderWidget::setBottomMargin ( const int marginBottom)

◆ setCurrentPosition()

void lmms::gui::StepRecorderWidget::setCurrentPosition ( TimePos currentPosition)

◆ setEndPosition()

void lmms::gui::StepRecorderWidget::setEndPosition ( TimePos pos)

◆ setMargins()

void lmms::gui::StepRecorderWidget::setMargins ( const QMargins & qm)

◆ setPixelsPerBar()

void lmms::gui::StepRecorderWidget::setPixelsPerBar ( int ppb)

◆ setStartPosition()

void lmms::gui::StepRecorderWidget::setStartPosition ( TimePos pos)

◆ setStepsLength()

void lmms::gui::StepRecorderWidget::setStepsLength ( TimePos stepsLength)

◆ showHint()

void lmms::gui::StepRecorderWidget::showHint ( )

◆ updateBoundaries()

void lmms::gui::StepRecorderWidget::updateBoundaries ( )
private

◆ xCoordOfTick()

int lmms::gui::StepRecorderWidget::xCoordOfTick ( int tick)
private

Member Data Documentation

◆ m_bottom

int lmms::gui::StepRecorderWidget::m_bottom
private

◆ m_colorLineEnd

QColor lmms::gui::StepRecorderWidget::m_colorLineEnd
private

◆ m_colorLineStart

QColor lmms::gui::StepRecorderWidget::m_colorLineStart
private

◆ m_currentPosition

TimePos lmms::gui::StepRecorderWidget::m_currentPosition
private

◆ m_curStepEndPos

TimePos lmms::gui::StepRecorderWidget::m_curStepEndPos
private

◆ m_curStepStartPos

TimePos lmms::gui::StepRecorderWidget::m_curStepStartPos
private

◆ m_left

int lmms::gui::StepRecorderWidget::m_left
private

◆ m_marginBottom

int lmms::gui::StepRecorderWidget::m_marginBottom
private

◆ m_marginLeft

const int lmms::gui::StepRecorderWidget::m_marginLeft
private

◆ m_marginRight

const int lmms::gui::StepRecorderWidget::m_marginRight
private

◆ m_marginTop

const int lmms::gui::StepRecorderWidget::m_marginTop
private

◆ m_ppb

int lmms::gui::StepRecorderWidget::m_ppb
private

◆ m_right

int lmms::gui::StepRecorderWidget::m_right
private

◆ m_stepsLength

TimePos lmms::gui::StepRecorderWidget::m_stepsLength
private

◆ m_top

int lmms::gui::StepRecorderWidget::m_top
private

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