]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs_provider.cpp
Qt4 - Add new icons for the playlist/shuffle/repeat.
[vlc] / modules / gui / qt4 / dialogs_provider.cpp
index 2490408933a0bd1984e5728d616f174d4d3a2725..f244eb74c53c4e70ecf90d27989351ce00c0f5bc 100644 (file)
@@ -43,6 +43,7 @@
 #include "dialogs/open.hpp"
 #include "dialogs/help.hpp"
 #include "dialogs/gototime.hpp"
+#include "dialogs/podcast_configuration.hpp"
 
 DialogsProvider* DialogsProvider::instance = NULL;
 
@@ -312,11 +313,6 @@ static void openDirectory( intf_thread_t* p_intf, bool pl, bool go )
     }
 }
 
-void DialogsProvider::openDirDialog()
-{
-    openDirectory( p_intf, true, true );
-}
-
 void DialogsProvider::PLAppendDir()
 {
     openDirectory( p_intf, true, false );
@@ -355,8 +351,9 @@ void DialogsProvider::savePlaylist()
     {
         if( qfd->selectedFiles().count() > 0 )
         {
-            char *psz_module, *psz_m3u = "export-m3u",
-                 *psz_xspf = "export-xspf";
+            static const char psz_xspf[] = "export-xspf",
+                              psz_m3u[] = "esport-m3u";
+            const char *psz_module;
 
             QString file = qfd->selectedFiles().first();
             QString filter = qfd->selectedFilter();
@@ -394,11 +391,11 @@ void DialogsProvider::streamingDialog( QString mrl, bool b_transcode_only )
                                                     b_transcode_only );
     if( s->exec() == QDialog::Accepted )
     {
-        msg_Err(p_intf, "mrl %s\n", qta(s->mrl));
+        msg_Err( p_intf, "mrl %s\n", qta( s->getMrl() ) );
         /* Just do it */
-        int i_len = strlen( qtu(s->mrl) ) + 10;
+        int i_len = strlen( qtu( s->getMrl() ) ) + 10;
         char *psz_option = (char*)malloc(i_len);
-        snprintf( psz_option, i_len - 1, ":sout=%s", qtu(s->mrl));
+        snprintf( psz_option, i_len - 1, "%s", qtu( s->getMrl() ) );
 
         playlist_AddExt( THEPL, qtu( mrl ), "Streaming",
                          PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END,
@@ -501,6 +498,12 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg )
     }
 }
 
+void DialogsProvider::podcastConfigureDialog()
+{
+    PodcastConfigurationDialog c( p_intf );
+    c.exec();
+}
+
 void DialogsProvider::switchToSkins()
 {
     var_SetString( p_intf, "intf-switch", "skins2" );