[vlc-devel] commit: Forgotten method for Input Slave Selection. (Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Jul 27 02:55:38 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jul 26 16:13:34 2008 -0700| [464d09b0d51fc13e598eb2100dbcf384298be371]

Forgotten method for Input Slave Selection.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=464d09b0d51fc13e598eb2100dbcf384298be371
---

 modules/gui/qt4/dialogs/open.cpp |    9 +++++++++
 modules/gui/qt4/dialogs/open.hpp |    1 +
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index 02826db..f4ded0c 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -148,6 +148,7 @@ OpenDialog::OpenDialog( QWidget *parent,
     CONNECT( ui.cacheSpinBox, valueChanged( int ), this, updateMRL() );
     CONNECT( ui.startTimeSpinBox, valueChanged( int ), this, updateMRL() );
     BUTTONACT( ui.advancedCheckBox, toggleAdvancedPanel() );
+    BUTTONACT( ui.slaveBrowseButton, browseInputSlave() );
 
     /* Buttons action */
     BUTTONACT( playButton, selectSlots() );
@@ -419,3 +420,11 @@ QStringList OpenDialog::SeparateEntries( QString entries )
 
     return entries_array;
 }
+
+void OpenDialog::browseInputSlave()
+{
+    OpenDialog *od = new OpenDialog( this, p_intf, true, SELECT );
+    od->exec();
+    ui.slaveText->setText( od->getMRL() );
+    delete od;
+}
diff --git a/modules/gui/qt4/dialogs/open.hpp b/modules/gui/qt4/dialogs/open.hpp
index 73a07e4..ea287b8 100644
--- a/modules/gui/qt4/dialogs/open.hpp
+++ b/modules/gui/qt4/dialogs/open.hpp
@@ -113,6 +113,7 @@ private slots:
     void updateMRL();
     void newCachingMethod( QString );
     void signalCurrent();
+    void browseInputSlave();
 };
 
 #endif




More information about the vlc-devel mailing list