diff --git a/include/main_window.h b/include/main_window.h index 36dd4487b..fa4394c8c 100644 --- a/include/main_window.h +++ b/include/main_window.h @@ -137,6 +137,8 @@ public slots: void undo( void ); void redo( void ); + void loadResource(); + void toggleRecordAutomation( bool ); protected: diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp index c5b013b2f..079a0dbed 100644 --- a/src/gui/main_window.cpp +++ b/src/gui/main_window.cpp @@ -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() )