hydrogen 1.1.1
InstrumentLine Class Reference

#include <PatternEditorInstrumentList.h>

Inheritance diagram for InstrumentLine:
PixmapWidget Object

Public Member Functions

 InstrumentLine (QWidget *pParent)
 
void setName (const QString &sName)
 
void setSelected (bool isSelected)
 
void setNumber (int nIndex)
 
void setMuted (bool isMuted)
 
void setSoloed (bool soloed)
 
void setSamplesMissing (bool bSamplesMissing)
 
- Public Member Functions inherited from PixmapWidget
 PixmapWidget (QWidget *pParent, const char *="PixmapWidget")
 
 ~PixmapWidget ()
 
void setPixmap (QString sPixmapPath, bool expand_horiz=false)
 
void setColor (const QColor &color)
 
- 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 functionClearNotes ()
 
void functionFillAllNotes ()
 
void functionFillEveryTwoNotes ()
 
void functionFillEveryThreeNotes ()
 
void functionFillEveryFourNotes ()
 
void functionFillEverySixNotes ()
 
void functionFillEveryEightNotes ()
 
void functionFillEveryTwelveNotes ()
 
void functionFillEverySixteenNotes ()
 
void functionFillNotes (int every)
 
void functionCopyAllInstrumentPatterns ()
 
void functionPasteAllInstrumentPatterns ()
 
void functionPasteInstrumentPatternExec (int patternID)
 
void functionDeleteNotesAllPatterns ()
 
void functionCutNotesAllPatterns ()
 
void functionRandomizeVelocity ()
 
void functionDeleteInstrument ()
 
void functionRenameInstrument ()
 
void muteClicked ()
 
void soloClicked ()
 
void sampleWarningClicked ()
 
void selectInstrumentNotes ()
 

Private Member Functions

virtual void mousePressEvent (QMouseEvent *ev)
 
H2Core::PatterngetCurrentPattern ()
 

Private Attributes

QMenu * m_pFunctionPopup
 
QMenu * m_pFunctionPopupSub
 
QLabel * m_pNameLbl
 
bool m_bIsSelected
 
int m_nInstrumentNumber
 The related instrument number. More...
 
ToggleButtonm_pMuteBtn
 
ToggleButtonm_pSoloBtn
 
Buttonm_pSampleWarning
 

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...
 
- Protected Member Functions inherited from PixmapWidget
virtual void paintEvent (QPaintEvent *ev)
 
- Protected Attributes inherited from PixmapWidget
QString m_sPixmapPath
 
QColor __color
 
QPixmap m_pixmap
 
bool __expand_horiz
 
- Static Protected Attributes inherited from Object
static Logger__logger = nullptr
 logger instance pointer More...
 

Constructor & Destructor Documentation

◆ InstrumentLine()

InstrumentLine ( QWidget *  pParent)
explicit

Member Function Documentation

◆ functionClearNotes

void functionClearNotes ( )
privateslot

◆ functionCopyAllInstrumentPatterns

void functionCopyAllInstrumentPatterns ( )
privateslot

◆ functionCutNotesAllPatterns

void functionCutNotesAllPatterns ( )
privateslot

◆ functionDeleteInstrument

void functionDeleteInstrument ( )
privateslot

◆ functionDeleteNotesAllPatterns

void functionDeleteNotesAllPatterns ( )
privateslot

◆ functionFillAllNotes

void functionFillAllNotes ( )
privateslot

◆ functionFillEveryEightNotes

void functionFillEveryEightNotes ( )
privateslot

◆ functionFillEveryFourNotes

void functionFillEveryFourNotes ( )
privateslot

◆ functionFillEverySixNotes

void functionFillEverySixNotes ( )
privateslot

◆ functionFillEverySixteenNotes

void functionFillEverySixteenNotes ( )
privateslot

◆ functionFillEveryThreeNotes

void functionFillEveryThreeNotes ( )
privateslot

◆ functionFillEveryTwelveNotes

void functionFillEveryTwelveNotes ( )
privateslot

◆ functionFillEveryTwoNotes

void functionFillEveryTwoNotes ( )
privateslot

◆ functionFillNotes

void functionFillNotes ( int  every)
privateslot

◆ functionPasteAllInstrumentPatterns

void functionPasteAllInstrumentPatterns ( )
privateslot

◆ functionPasteInstrumentPatternExec

void functionPasteInstrumentPatternExec ( int  patternID)
privateslot

◆ functionRandomizeVelocity

void functionRandomizeVelocity ( )
privateslot

◆ functionRenameInstrument

void functionRenameInstrument ( )
privateslot

◆ getCurrentPattern()

H2Core::Pattern * getCurrentPattern ( )
private

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  ev)
privatevirtual

◆ muteClicked

void muteClicked ( )
privateslot

◆ sampleWarningClicked

void sampleWarningClicked ( )
privateslot

◆ selectInstrumentNotes

void selectInstrumentNotes ( )
privateslot

◆ setMuted()

void setMuted ( bool  isMuted)

◆ setName()

void setName ( const QString &  sName)

◆ setNumber()

void setNumber ( int  nIndex)

◆ setSamplesMissing()

void setSamplesMissing ( bool  bSamplesMissing)

◆ setSelected()

void setSelected ( bool  isSelected)

◆ setSoloed()

void setSoloed ( bool  soloed)

◆ soloClicked

void soloClicked ( )
privateslot

Field Documentation

◆ m_bIsSelected

bool m_bIsSelected
private

◆ m_nInstrumentNumber

int m_nInstrumentNumber
private

The related instrument number.

◆ m_pFunctionPopup

QMenu* m_pFunctionPopup
private

◆ m_pFunctionPopupSub

QMenu* m_pFunctionPopupSub
private

◆ m_pMuteBtn

ToggleButton* m_pMuteBtn
private

◆ m_pNameLbl

QLabel* m_pNameLbl
private

◆ m_pSampleWarning

Button* m_pSampleWarning
private

◆ m_pSoloBtn

ToggleButton* m_pSoloBtn
private