hydrogen 1.1.1
ExportSongDialog Class Reference

Dialog for exporting song. More...

#include <ExportSongDialog.h>

Inheritance diagram for ExportSongDialog:
EventListener Object

Public Member Functions

 ExportSongDialog (QWidget *parent)
 
 ~ExportSongDialog ()
 
virtual void progressEvent (int nValue) override
 
void closeEvent (QCloseEvent *event) override
 
- Public Member Functions inherited from EventListener
virtual void stateChangedEvent (int nState)
 
virtual void patternChangedEvent ()
 
virtual void patternModifiedEvent ()
 
virtual void songModifiedEvent ()
 
virtual void selectedPatternChangedEvent ()
 
virtual void selectedInstrumentChangedEvent ()
 
virtual void parametersInstrumentChangedEvent ()
 
virtual void midiActivityEvent ()
 
virtual void noteOnEvent (int nInstrument)
 
virtual void XRunEvent ()
 
virtual void errorEvent (int nErrorCode)
 
virtual void metronomeEvent (int nValue)
 
virtual void rubberbandbpmchangeEvent ()
 
virtual void progressEvent (int nValue)
 
virtual void jacksessionEvent (int nValue)
 
virtual void playlistLoadSongEvent (int nIndex)
 
virtual void undoRedoActionEvent (int nValue)
 
virtual void tempoChangedEvent (int nValue)
 
virtual void updateSongEvent (int nValue)
 
virtual void quitEvent (int nValue)
 
virtual void timelineActivationEvent (int nValue)
 
virtual void timelineUpdateEvent (int nValue)
 
virtual void jackTransportActivationEvent (int nValue)
 
virtual void jackTimebaseActivationEvent (int nValue)
 
virtual void songModeActivationEvent (int nValue)
 
virtual void loopModeActivationEvent (int nValue)
 
virtual void updatePreferencesEvent (int nValue)
 
virtual void actionModeChangeEvent (int nValue)
 
virtual ~EventListener ()
 
- 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_browseBtn_clicked ()
 
void on_closeBtn_clicked ()
 
void on_okBtn_clicked ()
 
void on_exportNameTxt_textChanged (const QString &text)
 
void on_templateCombo_currentIndexChanged (int index)
 
void toggleRubberbandBatchMode (bool toggled)
 
void toggleTimeLineBPMMode (bool toggled)
 
void resampleComboBoIndexChanged (int index)
 

Private Member Functions

void setResamplerMode (int index)
 
void calculateRubberbandTime ()
 
bool checkUseOfRubberband ()
 
void saveSettingsToPreferences ()
 
void restoreSettingsFromPreferences ()
 
bool currentInstrumentHasNotes ()
 
QString findUniqueExportFilenameForInstrument (H2Core::Instrument *pInstrument)
 
void exportTracks ()
 
bool validateUserInput ()
 
QString createDefaultFilename ()
 
void closeExport ()
 

Private Attributes

bool m_bExporting
 
bool m_bExportTrackouts
 
bool m_bOverwriteFiles
 
uint m_nInstrument
 
QString m_sExtension
 
bool m_bOldRubberbandBatchMode
 
bool m_bOldTimeLineBPMMode
 
InterpolateMode m_OldInterpolationMode
 
bool m_bQfileDialog
 
H2Core::Hydrogenm_pEngine
 
H2Core::Preferencesm_pPreferences
 

Static Private Attributes

static QString sLastFilename = ""
 

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

Dialog for exporting song.

Constructor & Destructor Documentation

◆ ExportSongDialog()

ExportSongDialog ( QWidget *  parent)
explicit

◆ ~ExportSongDialog()

Member Function Documentation

◆ calculateRubberbandTime()

void calculateRubberbandTime ( )
private

◆ checkUseOfRubberband()

bool checkUseOfRubberband ( )
private

◆ closeEvent()

void closeEvent ( QCloseEvent *  event)
override

◆ closeExport()

void closeExport ( )
private

◆ createDefaultFilename()

QString createDefaultFilename ( )
private

◆ currentInstrumentHasNotes()

bool currentInstrumentHasNotes ( )
private

◆ exportTracks()

void exportTracks ( )
private

◆ findUniqueExportFilenameForInstrument()

QString findUniqueExportFilenameForInstrument ( H2Core::Instrument pInstrument)
private

◆ on_browseBtn_clicked

void on_browseBtn_clicked ( )
privateslot

◆ on_closeBtn_clicked

void on_closeBtn_clicked ( )
privateslot

◆ on_exportNameTxt_textChanged

void on_exportNameTxt_textChanged ( const QString &  text)
privateslot

◆ on_okBtn_clicked

void on_okBtn_clicked ( )
privateslot

◆ on_templateCombo_currentIndexChanged

void on_templateCombo_currentIndexChanged ( int  index)
privateslot

◆ progressEvent()

void progressEvent ( int  nValue)
overridevirtual

Reimplemented from EventListener.

◆ resampleComboBoIndexChanged

void resampleComboBoIndexChanged ( int  index)
privateslot

◆ restoreSettingsFromPreferences()

void restoreSettingsFromPreferences ( )
private

◆ saveSettingsToPreferences()

void saveSettingsToPreferences ( )
private

◆ setResamplerMode()

void setResamplerMode ( int  index)
private

◆ toggleRubberbandBatchMode

void toggleRubberbandBatchMode ( bool  toggled)
privateslot

◆ toggleTimeLineBPMMode

void toggleTimeLineBPMMode ( bool  toggled)
privateslot

◆ validateUserInput()

bool validateUserInput ( )
private

Field Documentation

◆ m_bExporting

bool m_bExporting
private

◆ m_bExportTrackouts

bool m_bExportTrackouts
private

◆ m_bOldRubberbandBatchMode

bool m_bOldRubberbandBatchMode
private

◆ m_bOldTimeLineBPMMode

bool m_bOldTimeLineBPMMode
private

◆ m_bOverwriteFiles

bool m_bOverwriteFiles
private

◆ m_bQfileDialog

bool m_bQfileDialog
private

◆ m_nInstrument

uint m_nInstrument
private

◆ m_OldInterpolationMode

InterpolateMode m_OldInterpolationMode
private

◆ m_pEngine

H2Core::Hydrogen* m_pEngine
private

◆ m_pPreferences

H2Core::Preferences* m_pPreferences
private

◆ m_sExtension

QString m_sExtension
private

◆ sLastFilename

QString sLastFilename = ""
staticprivate