hydrogen 1.1.1
LCDCombo Class Reference

#include <LCDCombo.h>

Inheritance diagram for LCDCombo:
Object

Public Slots

bool select (int idx)
 
bool select (int idx, bool emitValueChanged)
 

Signals

void valueChanged (int idx)
 

Public Member Functions

 LCDCombo (QWidget *pParent, int digits=5, bool bAllowMenuOverflow=false)
 
 ~LCDCombo ()
 
bool addItem (const QString &text)
 
void addSeparator ()
 
int selected ()
 
- Public Member Functions inherited from Object
 ~Object ()
 destructor More...
 
 Object (const Object &obj)
 copy constructor More...
 
 Object (const char *class_name)
 constructor More...
 
const char * class_name () const
 return the class name More...
 
virtual QString toQString (const QString &sPrefix, bool bShort=true) const
 Formatted string version for debugging purposes. More...
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG. More...
 

Private Slots

void changeText (QAction *)
 
void onClick (Button *)
 

Private Member Functions

virtual void mousePressEvent (QMouseEvent *ev)
 
virtual void wheelEvent (QWheelEvent *ev)
 

Private Attributes

QList< QAction * > actions
 
LCDDisplaydisplay
 
Buttonbutton
 
QMenu * pop
 
int size
 
int active
 
bool m_bAllowMenuOverflow
 Allows for the entries in pop to be larger than the display itself. More...
 

Static Private Attributes

static const QString SEPARATOR
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void set_count (bool flag)
 enable/disable class instances counting More...
 
static bool count_active ()
 return true if class instances counting is enabled More...
 
static unsigned objects_count ()
 return the number of objects More...
 
static void write_objects_map_to (std::ostream &out)
 output the full objects map to a given ostream More...
 
static void write_objects_map_to_cerr ()
 output objects map to stderr More...
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation ! More...
 
static Loggerlogger ()
 return the logger instance More...
 
- Static Public Attributes inherited from Object
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes. More...
 
- Static Protected Attributes inherited from Object
static Logger__logger = nullptr
 logger instance pointer More...
 

Constructor & Destructor Documentation

◆ LCDCombo()

LCDCombo ( QWidget *  pParent,
int  digits = 5,
bool  bAllowMenuOverflow = false 
)
explicit

◆ ~LCDCombo()

~LCDCombo ( )

Member Function Documentation

◆ addItem()

bool addItem ( const QString &  text)

◆ addSeparator()

void addSeparator ( )

◆ changeText

void changeText ( QAction *  pAction)
privateslot

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  ev)
privatevirtual

◆ onClick

void onClick ( Button )
privateslot

◆ select [1/2]

bool select ( int  idx)
slot

◆ select [2/2]

bool select ( int  idx,
bool  emitValueChanged 
)
slot

◆ selected()

int selected ( )

◆ valueChanged

void valueChanged ( int  idx)
signal

◆ wheelEvent()

void wheelEvent ( QWheelEvent *  ev)
privatevirtual

Field Documentation

◆ actions

QList<QAction*> actions
private

◆ active

int active
private

◆ button

Button* button
private

◆ display

LCDDisplay* display
private

◆ m_bAllowMenuOverflow

bool m_bAllowMenuOverflow
private

Allows for the entries in pop to be larger than the display itself.

Only the first size characters will be displayed.

◆ pop

QMenu* pop
private

◆ SEPARATOR

const QString SEPARATOR
staticprivate

◆ size

int size
private