hydrogen 1.1.1
SoundLibraryImportDialog Class Reference

This dialog is used to import a SoundLibrary file from a local file or via HTTP. More...

#include <SoundLibraryImportDialog.h>

Inheritance diagram for SoundLibraryImportDialog:
Object

Public Member Functions

 SoundLibraryImportDialog (QWidget *pParent, bool bOnlineImport)
 
 ~SoundLibraryImportDialog ()
 
- 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_EditListBtn_clicked ()
 Edit the server list. More...
 
void on_UpdateListBtn_clicked ()
 Download and update the drumkit list. More...
 
void on_DownloadBtn_clicked ()
 
void on_BrowseBtn_clicked ()
 
void on_InstallBtn_clicked ()
 
void on_close_btn_clicked ()
 
void soundLibraryItemChanged (QTreeWidgetItem *, QTreeWidgetItem *)
 
void onRepositoryComboBoxIndexChanged (int)
 

Private Member Functions

bool isSoundLibraryItemAlreadyInstalled (SoundLibraryInfo sInfo)
 Is the SoundLibrary already installed? More...
 
void writeCachedData (const QString &fileName, const QString &data)
 
void writeCachedImage (const QString &imageFile, QPixmap &pixmap)
 
void clearImageCache ()
 
QString readCachedImage (const QString &imageFile)
 
QString readCachedData (const QString &fileName)
 
QString getCachedFilename ()
 
QString getCachedImageFilename ()
 
void reloadRepositoryData ()
 
void updateSoundLibraryList ()
 
void updateRepositoryCombo ()
 
void showImage (QPixmap pixmap)
 
void loadImage (QString img)
 

Private Attributes

std::vector< SoundLibraryInfom_soundLibraryList
 
QTreeWidgetItem * m_pDrumkitsItem
 
QTreeWidgetItem * m_pSongItem
 
QTreeWidgetItem * m_pPatternItem
 

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 import a SoundLibrary file from a local file or via HTTP.

Constructor & Destructor Documentation

◆ SoundLibraryImportDialog()

SoundLibraryImportDialog ( QWidget *  pParent,
bool  bOnlineImport 
)

◆ ~SoundLibraryImportDialog()

Member Function Documentation

◆ clearImageCache()

void clearImageCache ( )
private

◆ getCachedFilename()

QString getCachedFilename ( )
private

◆ getCachedImageFilename()

QString getCachedImageFilename ( )
private

◆ isSoundLibraryItemAlreadyInstalled()

bool isSoundLibraryItemAlreadyInstalled ( SoundLibraryInfo  sInfo)
private

Is the SoundLibrary already installed?

◆ loadImage()

void loadImage ( QString  img)
private

◆ on_BrowseBtn_clicked

void on_BrowseBtn_clicked ( )
privateslot

◆ on_close_btn_clicked

void on_close_btn_clicked ( )
privateslot

◆ on_DownloadBtn_clicked

void on_DownloadBtn_clicked ( )
privateslot

◆ on_EditListBtn_clicked

void on_EditListBtn_clicked ( )
privateslot

Edit the server list.

◆ on_InstallBtn_clicked

void on_InstallBtn_clicked ( )
privateslot

◆ on_UpdateListBtn_clicked

void on_UpdateListBtn_clicked ( )
privateslot

Download and update the drumkit list.

◆ onRepositoryComboBoxIndexChanged

void onRepositoryComboBoxIndexChanged ( int  i)
privateslot

◆ readCachedData()

QString readCachedData ( const QString &  fileName)
private

◆ readCachedImage()

QString readCachedImage ( const QString &  imageFile)
private

◆ reloadRepositoryData()

void reloadRepositoryData ( )
private

◆ showImage()

void showImage ( QPixmap  pixmap)
private

◆ soundLibraryItemChanged

void soundLibraryItemChanged ( QTreeWidgetItem *  current,
QTreeWidgetItem *  previous 
)
privateslot

◆ updateRepositoryCombo()

void updateRepositoryCombo ( )
private

◆ updateSoundLibraryList()

void updateSoundLibraryList ( )
private

◆ writeCachedData()

void writeCachedData ( const QString &  fileName,
const QString &  data 
)
private

◆ writeCachedImage()

void writeCachedImage ( const QString &  imageFile,
QPixmap &  pixmap 
)
private

Field Documentation

◆ m_pDrumkitsItem

QTreeWidgetItem* m_pDrumkitsItem
private

◆ m_pPatternItem

QTreeWidgetItem* m_pPatternItem
private

◆ m_pSongItem

QTreeWidgetItem* m_pSongItem
private

◆ m_soundLibraryList

std::vector<SoundLibraryInfo> m_soundLibraryList
private