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:
@@ -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:
|
||||
|
||||
@@ -310,8 +310,6 @@ public slots:
|
||||
void stop();
|
||||
|
||||
void importProject();
|
||||
void exportProject( bool multiExport = false );
|
||||
void exportProjectTracks();
|
||||
|
||||
void startExport();
|
||||
void stopExport();
|
||||
|
||||
Reference in New Issue
Block a user