hydrogen 1.1.1
AudioFileBrowser Class Reference

This dialog is used to preview audiofiles. More...

#include <AudioFileBrowser.h>

Inheritance diagram for AudioFileBrowser:
Object

Public Member Functions

 AudioFileBrowser (QWidget *pParent, bool bAllowMultiSelect, bool bShowInstrumentManipulationControls)
 
 ~AudioFileBrowser ()
 
QStringList getSelectedFiles ()
 
QString setDir (QString dir)
 
- 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 on_cancelBTN_clicked ()
 
void on_openBTN_clicked ()
 
void clicked (const QModelIndex &index)
 
void doubleClicked (const QModelIndex &index)
 
void on_m_pPlayBtn_clicked ()
 
void on_m_pStopBtn_clicked ()
 
void updateModelIndex ()
 
void on_m_pPathHometoolButton_clicked ()
 
void on_m_pPathUptoolButton_clicked ()
 
void on_playSamplescheckBox_clicked ()
 
void on_hiddenCB_clicked ()
 
virtual void keyPressEvent (QKeyEvent *ev)
 
virtual void keyReleaseEvent (QKeyEvent *ev)
 

Private Member Functions

void browseTree (const QModelIndex &index)
 
void getEnvironment ()
 
bool isFileSupported (QString filename)
 

Private Attributes

InstrumentEditorm_pInstrumentEditor
 
SampleWaveDisplaym_pSampleWaveDisplay
 
QString m_pSampleFilename
 
QStringList m_pSelectedFile
 
bool m_SingleClick
 
QFileSystemModel * m_pDirModel
 
QTreeView * m_pTree
 
QModelIndex m_ModelIndex
 
QString m_sEmptySampleFilename
 
QStringList m_Filters
 
bool m_bAllowMultiSelect
 
bool m_bShowInstrumentManipulationControls
 

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...
 

Detailed Description

This dialog is used to preview audiofiles.

Constructor & Destructor Documentation

◆ AudioFileBrowser()

AudioFileBrowser ( QWidget *  pParent,
bool  bAllowMultiSelect,
bool  bShowInstrumentManipulationControls 
)

◆ ~AudioFileBrowser()

Member Function Documentation

◆ browseTree()

void browseTree ( const QModelIndex &  index)
private

◆ clicked

void clicked ( const QModelIndex &  index)
privateslot

◆ doubleClicked

void doubleClicked ( const QModelIndex &  index)
privateslot

◆ getEnvironment()

void getEnvironment ( )
private

◆ getSelectedFiles()

QStringList getSelectedFiles ( )

◆ isFileSupported()

bool isFileSupported ( QString  filename)
private

◆ keyPressEvent

void keyPressEvent ( QKeyEvent *  ev)
privatevirtualslot

◆ keyReleaseEvent

void keyReleaseEvent ( QKeyEvent *  ev)
privatevirtualslot

◆ on_cancelBTN_clicked

void on_cancelBTN_clicked ( )
privateslot

◆ on_hiddenCB_clicked

void on_hiddenCB_clicked ( )
privateslot

◆ on_m_pPathHometoolButton_clicked

void on_m_pPathHometoolButton_clicked ( )
privateslot

◆ on_m_pPathUptoolButton_clicked

void on_m_pPathUptoolButton_clicked ( )
privateslot

◆ on_m_pPlayBtn_clicked

void on_m_pPlayBtn_clicked ( )
privateslot

◆ on_m_pStopBtn_clicked

void on_m_pStopBtn_clicked ( )
privateslot

◆ on_openBTN_clicked

void on_openBTN_clicked ( )
privateslot

◆ on_playSamplescheckBox_clicked

void on_playSamplescheckBox_clicked ( )
privateslot

◆ setDir()

QString setDir ( QString  dir)

◆ updateModelIndex

void updateModelIndex ( )
privateslot

Field Documentation

◆ m_bAllowMultiSelect

bool m_bAllowMultiSelect
private

◆ m_bShowInstrumentManipulationControls

bool m_bShowInstrumentManipulationControls
private

◆ m_Filters

QStringList m_Filters
private

◆ m_ModelIndex

QModelIndex m_ModelIndex
private

◆ m_pDirModel

QFileSystemModel* m_pDirModel
private

◆ m_pInstrumentEditor

InstrumentEditor* m_pInstrumentEditor
private

◆ m_pSampleFilename

QString m_pSampleFilename
private

◆ m_pSampleWaveDisplay

SampleWaveDisplay* m_pSampleWaveDisplay
private

◆ m_pSelectedFile

QStringList m_pSelectedFile
private

◆ m_pTree

QTreeView* m_pTree
private

◆ m_sEmptySampleFilename

QString m_sEmptySampleFilename
private

◆ m_SingleClick

bool m_SingleClick
private