Move song export and track export from Song into MainWindow

The code to export a song and the tracks of a song mainly consisted of
GUI code. Therefore it was moved completely into MainWindow.

Add two new slots and a method that does the actual work to MainWindow.
Make both slots delegate to the worker method.
This commit is contained in:
Michael Gregorius
2017-12-08 19:52:09 +01:00
parent 989db1dc9b
commit 78d65ccc3a
4 changed files with 101 additions and 93 deletions

View File

@@ -196,6 +196,8 @@ private:
void toggleWindow( QWidget *window, bool forceShow = false );
void refocus();
void exportProject(bool multiExport = false);
QMdiArea * m_workspace;
QWidget * m_toolBar;
@@ -244,6 +246,8 @@ private slots:
void updateViewMenu( void );
void updateConfig( QAction * _who );
void onToggleMetronome();
void onExportProject();
void onExportProjectTracks();
signals:

View File

@@ -310,8 +310,6 @@ public slots:
void stop();
void importProject();
void exportProject( bool multiExport = false );
void exportProjectTracks();
void startExport();
void stopExport();