MainWindow: initial integration of new QuickLoadDialog
This is an initial integration of the new QuickLoadDialog into LMMS. One can either open up the dialog via Ctrl+L or the "Edit" menu. The dialog is for testing only and not useful at all yet.
This commit is contained in:
@@ -137,6 +137,8 @@ public slots:
|
||||
void undo( void );
|
||||
void redo( void );
|
||||
|
||||
void loadResource();
|
||||
|
||||
void toggleRecordAutomation( bool );
|
||||
|
||||
protected:
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
#include "cpuload_widget.h"
|
||||
#include "visualization_widget.h"
|
||||
#include "ResourceBrowser.h"
|
||||
#include "QuickLoadDialog.h"
|
||||
|
||||
#include "gui/tracks/track_container_scene.h"
|
||||
|
||||
@@ -246,6 +247,11 @@ void mainWindow::finalize( void )
|
||||
this, SLOT( redo() ),
|
||||
Qt::CTRL + Qt::Key_R );
|
||||
edit_menu->addSeparator();
|
||||
edit_menu->addAction( embed::getIconPixmap( "---TODO---" ),
|
||||
tr( "Load resource into current context" ),
|
||||
this, SLOT( loadResource() ),
|
||||
Qt::CTRL + Qt::Key_L );
|
||||
edit_menu->addSeparator();
|
||||
edit_menu->addAction( embed::getIconPixmap( "setup_general" ),
|
||||
tr( "Settings" ),
|
||||
this, SLOT( showSettingsDialog() ) );
|
||||
@@ -1156,6 +1162,14 @@ void mainWindow::redo( void )
|
||||
|
||||
|
||||
|
||||
void mainWindow::loadResource()
|
||||
{
|
||||
QuickLoadDialog( this ).exec();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void mainWindow::closeEvent( QCloseEvent * _ce )
|
||||
{
|
||||
if( mayChangeProject() )
|
||||
|
||||
Reference in New Issue
Block a user