]> git.sesse.net Git - vlc/commitdiff
QT4: implement the open dialog from the playlist
authorChristophe Mutricy <xtophe@videolan.org>
Sun, 13 May 2007 21:23:10 +0000 (21:23 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 13 May 2007 21:23:10 +0000 (21:23 +0000)
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.hpp

index 5dbd8bde03fceb06969e384c1bd42067b87410e3..0f5eeb835956df593453e32374b892e7d9b25ef5 100644 (file)
@@ -148,6 +148,10 @@ void OpenDialog::setMenuAction()
             playButton->setText( qtr("&Convert / Save") );
             BUTTONACT( playButton, stream( true ) );
             break;
+        case ENQUEUE:
+            playButton->setText( qtr("&Enqueue") );
+            BUTTONACT( playButton, enqueue() );
+            break;
         case OPEN_AND_PLAY:
         default:
             playButton->setText( qtr("&Play") );
index ef44530703801be896b36cdebcc315c5f6838a12..706d491f30b663d3560a79e31dd4b47b6fa0c1e3 100644 (file)
@@ -216,6 +216,9 @@ void DialogsProvider::openDialog( int i_tab )
 
 void DialogsProvider::PLAppendDialog()
 {
+    
+    OpenDialog::getInstance( p_intf->p_sys->p_mi , p_intf, ENQUEUE )
+        ->showTab(0);
 }
 void DialogsProvider::MLAppendDialog()
 {
index 765be192b8204117a95b792361585f11bd589769..f0a8a6734de47cb017cccf46a84ea058cb4efafb 100644 (file)
@@ -78,6 +78,7 @@
 #define OPEN_AND_PLAY           0x0
 #define OPEN_AND_STREAM         0x1
 #define OPEN_AND_SAVE           0x2
+#define ENQUEUE                 0x4
 
 class QEvent;
 class QSignalMapper;