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:
Tobias Doerffel
2009-08-18 00:27:10 +02:00
parent 562688e845
commit 0a6c187b86
2 changed files with 16 additions and 0 deletions

View File

@@ -137,6 +137,8 @@ public slots:
void undo( void );
void redo( void );
void loadResource();
void toggleRecordAutomation( bool );
protected:

View File

@@ -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() )