hydrogen 1.1.1
PatternEditorInstrumentList Class Reference

#include <PatternEditorInstrumentList.h>

Inheritance diagram for PatternEditorInstrumentList:
Object

Public Slots

void updateInstrumentLines ()
 Update every InstrumentLine, create or destroy lines if necessary. More...
 

Public Member Functions

 PatternEditorInstrumentList (QWidget *parent, PatternEditorPanel *pPatternEditorPanel)
 
 ~PatternEditorInstrumentList ()
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
- 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...
 

Protected Member Functions

InstrumentLinecreateInstrumentLine ()
 Create a new InstrumentLine. More...
 

Protected Attributes

PatternEditorPanelm_pPatternEditorPanel
 
H2Core::Patternm_pPattern
 
uint m_nGridHeight
 
uint m_nEditorWidth
 
uint m_nEditorHeight
 
InstrumentLinem_pInstrumentLine [MAX_INSTRUMENTS]
 
QTimer * m_pUpdateTimer
 
DragScrollerm_pDragScroller
 
QPoint __drag_start_position
 

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

◆ PatternEditorInstrumentList()

PatternEditorInstrumentList ( QWidget *  parent,
PatternEditorPanel pPatternEditorPanel 
)

◆ ~PatternEditorInstrumentList()

Member Function Documentation

◆ createInstrumentLine()

InstrumentLine * createInstrumentLine ( )
protected

Create a new InstrumentLine.

◆ dragEnterEvent()

void dragEnterEvent ( QDragEnterEvent *  event)
virtual

◆ dropEvent()

void dropEvent ( QDropEvent *  event)
virtual

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent *  event)
virtual

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  event)
virtual

◆ updateInstrumentLines

void updateInstrumentLines ( )
slot

Update every InstrumentLine, create or destroy lines if necessary.

Field Documentation

◆ __drag_start_position

QPoint __drag_start_position
protected

◆ m_nEditorHeight

uint m_nEditorHeight
protected

◆ m_nEditorWidth

uint m_nEditorWidth
protected

◆ m_nGridHeight

uint m_nGridHeight
protected

◆ m_pDragScroller

DragScroller* m_pDragScroller
protected

◆ m_pInstrumentLine

InstrumentLine* m_pInstrumentLine[MAX_INSTRUMENTS]
protected

◆ m_pPattern

H2Core::Pattern* m_pPattern
protected

◆ m_pPatternEditorPanel

PatternEditorPanel* m_pPatternEditorPanel
protected

◆ m_pUpdateTimer

QTimer* m_pUpdateTimer
protected