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

#include <LcdWidget.h>

Inheritance diagram for lmms::gui::LcdWidget:
lmms::gui::LcdSpinBox lmms::gui::MixerChannelLcdSpinBox

Public Slots

virtual void setMarginWidth (int width)

Public Member Functions

 LcdWidget (QWidget *parent, const QString &name=QString(), bool leadingZero=false)
 LcdWidget (int numDigits, QWidget *parent, const QString &name=QString(), bool leadingZero=false)
 LcdWidget (int numDigits, const QString &style, QWidget *parent, const QString &name=QString(), bool leadingZero=false)
void setValue (int value)
void setValue (float value)
void setLabel (const QString &label)
void addTextForValue (int value, const QString &text)
int numDigits () const
void setNumDigits (int n)
QColor textColor () const
void setTextColor (const QColor &c)
QColor textShadowColor () const
void setTextShadowColor (const QColor &c)
int cellHeight () const
void setSeamless (bool left, bool right)

Protected Member Functions

void paintEvent (QPaintEvent *pe) override
virtual void updateSize ()

Properties

QColor textColor
QColor textShadowColor
int numDigits

Private Member Functions

void initUi (const QString &name, const QString &style)
 to be called by ctors

Private Attributes

QMap< int, QString > m_textForValue
QString m_display
QString m_label
QPixmap m_lcdPixmap
QColor m_textColor
QColor m_textShadowColor
int m_cellWidth
int m_cellHeight
int m_numDigits
int m_marginWidth
bool m_seamlessLeft
bool m_seamlessRight
bool m_leadingZero

Static Private Attributes

static const int charsPerPixmap = 12

Constructor & Destructor Documentation

◆ LcdWidget() [1/3]

lmms::gui::LcdWidget::LcdWidget ( QWidget * parent,
const QString & name = QString(),
bool leadingZero = false )
explicit

◆ LcdWidget() [2/3]

lmms::gui::LcdWidget::LcdWidget ( int numDigits,
QWidget * parent,
const QString & name = QString(),
bool leadingZero = false )

◆ LcdWidget() [3/3]

lmms::gui::LcdWidget::LcdWidget ( int numDigits,
const QString & style,
QWidget * parent,
const QString & name = QString(),
bool leadingZero = false )

Member Function Documentation

◆ addTextForValue()

void lmms::gui::LcdWidget::addTextForValue ( int value,
const QString & text )
inline

◆ cellHeight()

int lmms::gui::LcdWidget::cellHeight ( ) const
inline

◆ initUi()

void lmms::gui::LcdWidget::initUi ( const QString & name,
const QString & style )
private

to be called by ctors

◆ numDigits()

int lmms::gui::LcdWidget::numDigits ( ) const
inline

◆ paintEvent()

void lmms::gui::LcdWidget::paintEvent ( QPaintEvent * pe)
overrideprotected

◆ setLabel()

void lmms::gui::LcdWidget::setLabel ( const QString & label)

◆ setMarginWidth

void lmms::gui::LcdWidget::setMarginWidth ( int width)
virtualslot

◆ setNumDigits()

void lmms::gui::LcdWidget::setNumDigits ( int n)
inline

◆ setSeamless()

void lmms::gui::LcdWidget::setSeamless ( bool left,
bool right )
inline

◆ setTextColor()

void lmms::gui::LcdWidget::setTextColor ( const QColor & c)

◆ setTextShadowColor()

void lmms::gui::LcdWidget::setTextShadowColor ( const QColor & c)

◆ setValue() [1/2]

void lmms::gui::LcdWidget::setValue ( float value)

◆ setValue() [2/2]

void lmms::gui::LcdWidget::setValue ( int value)

◆ textColor()

QColor lmms::gui::LcdWidget::textColor ( ) const

◆ textShadowColor()

QColor lmms::gui::LcdWidget::textShadowColor ( ) const

◆ updateSize()

void lmms::gui::LcdWidget::updateSize ( )
protectedvirtual

Member Data Documentation

◆ charsPerPixmap

const int lmms::gui::LcdWidget::charsPerPixmap = 12
staticprivate

◆ m_cellHeight

int lmms::gui::LcdWidget::m_cellHeight
private

◆ m_cellWidth

int lmms::gui::LcdWidget::m_cellWidth
private

◆ m_display

QString lmms::gui::LcdWidget::m_display
private

◆ m_label

QString lmms::gui::LcdWidget::m_label
private

◆ m_lcdPixmap

QPixmap lmms::gui::LcdWidget::m_lcdPixmap
private

◆ m_leadingZero

bool lmms::gui::LcdWidget::m_leadingZero
private

◆ m_marginWidth

int lmms::gui::LcdWidget::m_marginWidth
private

◆ m_numDigits

int lmms::gui::LcdWidget::m_numDigits
private

◆ m_seamlessLeft

bool lmms::gui::LcdWidget::m_seamlessLeft
private

◆ m_seamlessRight

bool lmms::gui::LcdWidget::m_seamlessRight
private

◆ m_textColor

QColor lmms::gui::LcdWidget::m_textColor
private

◆ m_textForValue

QMap<int, QString> lmms::gui::LcdWidget::m_textForValue
private

◆ m_textShadowColor

QColor lmms::gui::LcdWidget::m_textShadowColor
private

Property Documentation

◆ numDigits

int lmms::gui::LcdWidget::numDigits
readwrite

◆ textColor

QColor lmms::gui::LcdWidget::textColor
readwrite

◆ textShadowColor

QColor lmms::gui::LcdWidget::textShadowColor
readwrite

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