hydrogen 1.2.3
ComponentMixerLine Class Reference

#include <MixerLine.h>

Inheritance diagram for ComponentMixerLine:
PixmapWidget Object< ComponentMixerLine > Object< PixmapWidget > Base Base

Public Slots

void faderChanged (WidgetWithInput *ref)
 
void muteBtnClicked ()
 
void soloBtnClicked ()
 

Signals

void muteBtnClicked (ComponentMixerLine *ref)
 
void soloBtnClicked (ComponentMixerLine *ref)
 
void volumeChanged (ComponentMixerLine *ref)
 

Public Member Functions

 ComponentMixerLine (QWidget *parent, int CompoID)
 
 ~ComponentMixerLine ()
 
int getComponentID ()
 
QString getName ()
 
float getPeak_L ()
 
float getPeak_R ()
 
float getVolume ()
 
bool isMuteClicked ()
 
bool isSoloClicked ()
 
void setMuteClicked (bool isClicked)
 
void setName (QString name)
 
void setPeak_L (float peak)
 
void setPeak_R (float peak)
 
void setSoloClicked (bool isClicked)
 
void setVolume (float value)
 
void updateMixerLine ()
 
- Public Member Functions inherited from PixmapWidget
 PixmapWidget (QWidget *pParent)
 
 ~PixmapWidget ()
 
void setColor (const QColor &color)
 
void setPixmap (QString sPixmapPath, bool expand_horiz=false)
 
- Public Member Functions inherited from Object< PixmapWidget >
 Object ()
 
 Object (const Object< PixmapWidget > &other)
 
- Public Member Functions inherited from Base
 Base ()
 
 Base (const Base &other)
 
virtual const char * class_name () const
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG.
 
virtual QString toQString (const QString &sPrefix="", bool bShort=true) const
 Formatted string version for debugging purposes.
 
- Public Member Functions inherited from Object< ComponentMixerLine >
 Object ()
 
 Object (const Object< ComponentMixerLine > &other)
 

Private Attributes

bool m_bIsSelected
 
float m_fMaxPeak
 
uint m_nActivity
 
int m_nComponentID
 
float m_nFalloff
 
uint m_nHeight
 
uint m_nPeakTimer
 
uint m_nWidth
 
Faderm_pFader
 
Buttonm_pMuteBtn
 
InstrumentNameWidgetm_pNameWidget
 
LCDDisplaym_pPeakLCD
 
Buttonm_pSoloBtn
 

Additional Inherited Members

- Static Public Member Functions inherited from Base
static const char * _class_name ()
 return the class name
 
static QString base_clock (const QString &sMsg)
 Measures the current time and stores it in __last_clock.
 
static QString base_clock_in (const QString &sMsg)
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation !
 
static bool count_active ()
 
static int getAliveObjectCount ()
 
static object_map_t getObjectMap ()
 
static Loggerlogger ()
 return the logger instance
 
static int objects_count ()
 
static void printObjectMapDiff (object_map_t map)
 Creates the difference between a snapshot of the object map and its current state and prints it to std::cout.
 
static void set_count (bool flag)
 enable/disable class instances counting
 
static void write_objects_map_to (std::ostream &out, object_map_t *map=nullptr)
 output the full objects map to a given ostream
 
static void write_objects_map_to_cerr ()
 output objects map to stderr
 
- Static Public Attributes inherited from Base
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes.
 
- Protected Member Functions inherited from PixmapWidget
virtual void paintEvent (QPaintEvent *ev) override
 
- Protected Member Functions inherited from Object< PixmapWidget >
 ~Object ()
 
- Protected Member Functions inherited from Base
 ~Base ()
 
- Protected Member Functions inherited from Object< ComponentMixerLine >
 ~Object ()
 
- Static Protected Member Functions inherited from Base
static void registerClass (const char *name, const atomic_obj_cpt_t *counters)
 
- Protected Attributes inherited from PixmapWidget
QColor __color
 
bool __expand_horiz
 
QPixmap m_pixmap
 
QString m_sPixmapPath
 
- Static Protected Attributes inherited from Base
static bool __count = false
 should we count class instances
 
static timeval __last_clock = { 0, 0 }
 
static Logger__logger = nullptr
 

Detailed Description

Definition at line 169 of file MixerLine.h.

Constructor & Destructor Documentation

◆ ComponentMixerLine()

ComponentMixerLine ( QWidget * parent,
int CompoID )

Definition at line 395 of file MixerLine.cpp.

◆ ~ComponentMixerLine()

Definition at line 463 of file MixerLine.cpp.

Member Function Documentation

◆ faderChanged

void faderChanged ( WidgetWithInput * ref)
slot

Definition at line 495 of file MixerLine.cpp.

◆ getComponentID()

int getComponentID ( )
inline

Definition at line 198 of file MixerLine.h.

◆ getName()

QString getName ( )
inline

Definition at line 196 of file MixerLine.h.

◆ getPeak_L()

float getPeak_L ( )

Definition at line 566 of file MixerLine.cpp.

◆ getPeak_R()

float getPeak_R ( )

Definition at line 590 of file MixerLine.cpp.

◆ getVolume()

float getVolume ( )

Definition at line 537 of file MixerLine.cpp.

◆ isMuteClicked()

bool isMuteClicked ( )

Definition at line 516 of file MixerLine.cpp.

◆ isSoloClicked()

bool isSoloClicked ( )

Definition at line 527 of file MixerLine.cpp.

◆ muteBtnClicked [1/2]

void muteBtnClicked ( )
slot

Definition at line 487 of file MixerLine.cpp.

◆ muteBtnClicked [2/2]

void muteBtnClicked ( ComponentMixerLine * ref)
signal

◆ setMuteClicked()

void setMuteClicked ( bool isClicked)

Definition at line 521 of file MixerLine.cpp.

◆ setName()

void setName ( QString name)
inline

Definition at line 195 of file MixerLine.h.

◆ setPeak_L()

void setPeak_L ( float peak)

Definition at line 546 of file MixerLine.cpp.

◆ setPeak_R()

void setPeak_R ( float peak)

Definition at line 570 of file MixerLine.cpp.

◆ setSoloClicked()

void setSoloClicked ( bool isClicked)

Definition at line 531 of file MixerLine.cpp.

◆ setVolume()

void setVolume ( float value)

Definition at line 542 of file MixerLine.cpp.

◆ soloBtnClicked [1/2]

void soloBtnClicked ( )
slot

Definition at line 491 of file MixerLine.cpp.

◆ soloBtnClicked [2/2]

void soloBtnClicked ( ComponentMixerLine * ref)
signal

◆ updateMixerLine()

void updateMixerLine ( )

Definition at line 466 of file MixerLine.cpp.

◆ volumeChanged

void volumeChanged ( ComponentMixerLine * ref)
signal

Field Documentation

◆ m_bIsSelected

bool m_bIsSelected
private

Definition at line 216 of file MixerLine.h.

◆ m_fMaxPeak

float m_fMaxPeak
private

Definition at line 220 of file MixerLine.h.

◆ m_nActivity

uint m_nActivity
private

Definition at line 218 of file MixerLine.h.

◆ m_nComponentID

int m_nComponentID
private

Definition at line 213 of file MixerLine.h.

◆ m_nFalloff

float m_nFalloff
private

Definition at line 221 of file MixerLine.h.

◆ m_nHeight

uint m_nHeight
private

Definition at line 215 of file MixerLine.h.

◆ m_nPeakTimer

uint m_nPeakTimer
private

Definition at line 219 of file MixerLine.h.

◆ m_nWidth

uint m_nWidth
private

Definition at line 214 of file MixerLine.h.

◆ m_pFader

Fader* m_pFader
private

Definition at line 223 of file MixerLine.h.

◆ m_pMuteBtn

Button* m_pMuteBtn
private

Definition at line 225 of file MixerLine.h.

◆ m_pNameWidget

InstrumentNameWidget* m_pNameWidget
private

Definition at line 224 of file MixerLine.h.

◆ m_pPeakLCD

LCDDisplay* m_pPeakLCD
private

Definition at line 227 of file MixerLine.h.

◆ m_pSoloBtn

Button* m_pSoloBtn
private

Definition at line 226 of file MixerLine.h.