hydrogen 1.1.1
FileBrowser Class Reference

#include <FileBrowser.h>

Inheritance diagram for FileBrowser:
Object

Public Member Functions

 FileBrowser (QWidget *pParent)
 
 ~FileBrowser ()
 

Private Slots

void on_fileList_ItemChanged (QListWidgetItem *current, QListWidgetItem *previous)
 
void on_fileList_ItemActivated (QListWidgetItem *)
 
void on_dirList_ItemActivated (QListWidgetItem *)
 
void on_upBtnClicked ()
 
void on_playBtnClicked ()
 

Private Member Functions

void loadDirectoryTree (const QString &basedir)
 
void updateFileInfo (QString sFilename, unsigned nSampleRate, unsigned nBytes)
 
- Private 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 Attributes

QLabel * m_pDirectoryLabel
 
QPushButton * m_pUpBtn
 
QLabel * m_pFileInfo
 
QListWidget * m_pDirList
 
QListWidget * m_pFileList
 
QDir m_directory
 

Additional Inherited Members

- Static Private 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 Private Attributes inherited from Object
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes. More...
 
static Logger__logger = nullptr
 logger instance pointer More...
 

Constructor & Destructor Documentation

◆ FileBrowser()

FileBrowser ( QWidget *  pParent)
explicit

◆ ~FileBrowser()

Member Function Documentation

◆ loadDirectoryTree()

void loadDirectoryTree ( const QString &  basedir)
private

◆ on_dirList_ItemActivated

void on_dirList_ItemActivated ( QListWidgetItem *  pItem)
privateslot

◆ on_fileList_ItemActivated

void on_fileList_ItemActivated ( QListWidgetItem *  item)
privateslot

◆ on_fileList_ItemChanged

void on_fileList_ItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privateslot

◆ on_playBtnClicked

void on_playBtnClicked ( )
privateslot

◆ on_upBtnClicked

void on_upBtnClicked ( )
privateslot

◆ updateFileInfo()

void updateFileInfo ( QString  sFilename,
unsigned  nSampleRate,
unsigned  nBytes 
)
private

Field Documentation

◆ m_directory

QDir m_directory
private

◆ m_pDirectoryLabel

QLabel* m_pDirectoryLabel
private

◆ m_pDirList

QListWidget* m_pDirList
private

◆ m_pFileInfo

QLabel* m_pFileInfo
private

◆ m_pFileList

QListWidget* m_pFileList
private

◆ m_pUpBtn

QPushButton* m_pUpBtn
private