hydrogen 1.2.3
InstrumentEditorPanel Class Reference

Container for the Instrument Editor (Singleton). More...

#include <InstrumentEditorPanel.h>

Inheritance diagram for InstrumentEditorPanel:
Object< InstrumentEditorPanel > EventListener

Public Member Functions

 InstrumentEditorPanel (const InstrumentEditorPanel &)=delete
 
 ~InstrumentEditorPanel ()
 
virtual void drumkitLoadedEvent () override
 
InstrumentEditorgetInstrumentEditor () const
 
int getSelectedLayer ()
 
InstrumentEditorPaneloperator= (const InstrumentEditorPanel &rhs)=delete
 
void selectLayer (int nLayer)
 
virtual void updateSongEvent (int) override
 
void updateWaveDisplay ()
 
- Public Member Functions inherited from EventListener
virtual ~EventListener ()
 
virtual void actionModeChangeEvent (int nValue)
 
virtual void bbtChangedEvent ()
 
virtual void driverChangedEvent ()
 
virtual void errorEvent (int nErrorCode)
 
virtual void gridCellToggledEvent ()
 
virtual void instrumentParametersChangedEvent (int nInstrumentNumber)
 
virtual void jacksessionEvent (int nValue)
 
virtual void jackTimebaseStateChangedEvent ()
 
virtual void jackTransportActivationEvent ()
 
virtual void loopModeActivationEvent ()
 
virtual void metronomeEvent (int nValue)
 
virtual void midiActivityEvent ()
 
virtual void midiMapChangedEvent ()
 
virtual void nextPatternsChangedEvent ()
 
virtual void nextShotEvent ()
 
virtual void noteOnEvent (int nInstrument)
 
virtual void patternEditorLockedEvent ()
 
virtual void patternModifiedEvent ()
 
virtual void playbackTrackChangedEvent ()
 
virtual void playingPatternsChangedEvent ()
 
virtual void playlistLoadSongEvent (int nIndex)
 
virtual void progressEvent (int nValue)
 
virtual void quitEvent (int nValue)
 
virtual void relocationEvent ()
 
virtual void selectedInstrumentChangedEvent ()
 
virtual void selectedPatternChangedEvent ()
 
virtual void songModeActivationEvent ()
 
virtual void songModifiedEvent ()
 
virtual void songSizeChangedEvent ()
 
virtual void soundLibraryChangedEvent ()
 
virtual void stackedModeActivationEvent (int nValue)
 
virtual void stateChangedEvent (H2Core::AudioEngine::State state)
 
virtual void tempoChangedEvent (int nValue)
 
virtual void timelineActivationEvent ()
 
virtual void timelineUpdateEvent (int nValue)
 
virtual void undoRedoActionEvent (int nValue)
 
virtual void updatePreferencesEvent (int nValue)
 
virtual void XRunEvent ()
 

Static Public Member Functions

static InstrumentEditorPanelget_instance ()
 

Private Member Functions

 InstrumentEditorPanel (QWidget *pParent)
 
- Private Member Functions inherited from Object< InstrumentEditorPanel >
 Object ()
 
 Object (const Object< InstrumentEditorPanel > &other)
 
 ~Object ()
 
- Private 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.
 
 ~Base ()
 

Private Attributes

int m_nLayer
 
InstrumentEditorm_pInstrumentEditor
 

Static Private Attributes

static InstrumentEditorPanelm_pInstance = nullptr
 
- Static Private Attributes inherited from Base
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes.
 
static bool __count = false
 should we count class instances
 
static timeval __last_clock = { 0, 0 }
 
static Logger__logger = nullptr
 

Additional Inherited Members

- Static Private 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 void registerClass (const char *name, const atomic_obj_cpt_t *counters)
 

Detailed Description

Container for the Instrument Editor (Singleton).

Definition at line 37 of file InstrumentEditorPanel.h.

Constructor & Destructor Documentation

◆ ~InstrumentEditorPanel()

Definition at line 70 of file InstrumentEditorPanel.cpp.

◆ InstrumentEditorPanel() [1/2]

InstrumentEditorPanel ( const InstrumentEditorPanel & )
explicitdelete

◆ InstrumentEditorPanel() [2/2]

InstrumentEditorPanel ( QWidget * pParent)
explicitprivate

Definition at line 46 of file InstrumentEditorPanel.cpp.

Member Function Documentation

◆ drumkitLoadedEvent()

void drumkitLoadedEvent ( )
overridevirtual

Reimplemented from EventListener.

Definition at line 75 of file InstrumentEditorPanel.cpp.

◆ get_instance()

InstrumentEditorPanel * get_instance ( )
static

Definition at line 36 of file InstrumentEditorPanel.cpp.

◆ getInstrumentEditor()

InstrumentEditor * getInstrumentEditor ( ) const
inline

Definition at line 70 of file InstrumentEditorPanel.h.

◆ getSelectedLayer()

int getSelectedLayer ( )
inline

Definition at line 55 of file InstrumentEditorPanel.h.

◆ operator=()

InstrumentEditorPanel & operator= ( const InstrumentEditorPanel & rhs)
delete

◆ selectLayer()

void selectLayer ( int nLayer)

Definition at line 97 of file InstrumentEditorPanel.cpp.

◆ updateSongEvent()

void updateSongEvent ( int nValue)
overridevirtual

Reimplemented from EventListener.

Definition at line 90 of file InstrumentEditorPanel.cpp.

◆ updateWaveDisplay()

void updateWaveDisplay ( )

Definition at line 103 of file InstrumentEditorPanel.cpp.

Field Documentation

◆ m_nLayer

int m_nLayer
private

Definition at line 64 of file InstrumentEditorPanel.h.

◆ m_pInstance

InstrumentEditorPanel * m_pInstance = nullptr
staticprivate

Definition at line 62 of file InstrumentEditorPanel.h.

◆ m_pInstrumentEditor

InstrumentEditor* m_pInstrumentEditor
private

Definition at line 63 of file InstrumentEditorPanel.h.