]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/sout.hpp
Try to fix Sout Dialog ( Part 1 )
[vlc] / modules / gui / qt4 / dialogs / sout.hpp
index 371f5f4420b227c1c976fd1eb79a70b19654bb10..8f477960610dcbdcea56dcc264854073e493873c 100644 (file)
 #ifndef _SOUT_DIALOG_H_
 #define _SOUT_DIALOG_H_
 
-#include <vlc/vlc.h>
-#include <vlc_streaming.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
 
 #include "ui/sout.h"
 #include "util/qvlcframe.hpp"
@@ -39,15 +42,15 @@ class SoutDialog : public QVLCDialog
 {
     Q_OBJECT;
 public:
-    static SoutDialog * getInstance( QWidget *parent,
-                                     intf_thread_t *p_intf,
-                                     bool transcode_only )
+    static SoutDialog* getInstance( QWidget *parent, intf_thread_t *p_intf,
+                                    bool transcode_only )
     {
         if( !instance )
             instance = new SoutDialog( parent, p_intf, transcode_only );
         else
         {
-            instance->setParent( parent );
+            /* Recenter the dialog on the parent */
+            instance->setParent( parent, Qt::Dialog );
             if( transcode_only != instance->b_transcode_only )
             {
                 instance->toggleSout();
@@ -55,18 +58,17 @@ public:
             }
         }
         return instance;
-    };
+    }
 
-    virtual ~SoutDialog();
+    virtual ~SoutDialog(){}
 
     QString getMrl(){ return mrl; }
 
 private:
+    Ui::Sout ui;
+    static SoutDialog *instance;
     SoutDialog( QWidget* parent, intf_thread_t *,
                 bool _transcode_only = false );
-    static SoutDialog *instance;
-
-    Ui::Sout ui;
     QPushButton *okButton;
     QString mrl;
     bool b_transcode_only;
@@ -84,6 +86,7 @@ private slots:
     void setATranscodeOptions( bool );
     void setSTranscodeOptions( bool );
     void setRawOptions( bool );
+    void changeUDPandRTPmess( bool );
 };
 
 #endif