Qt4 - Sout Dialog: add FLV muxer... Some cosmetic changes too.
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Apr 2007 18:24:46 +0000 (18:24 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 17 Apr 2007 18:24:46 +0000 (18:24 +0000)
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/ui/sout.ui

index 5ca2ecd..f31a1f8 100644 (file)
@@ -86,14 +86,21 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf ) :
     CS( vBitrate ); CS( aBitrate ); CS( aChannels ); CC( vScale );
     /* Mux */
     CB( PSMux ); CB( TSMux ); CB( MPEG1Mux ); CB( OggMux ); CB( ASFMux );
     CS( vBitrate ); CS( aBitrate ); CS( aChannels ); CC( vScale );
     /* Mux */
     CB( PSMux ); CB( TSMux ); CB( MPEG1Mux ); CB( OggMux ); CB( ASFMux );
-    CB( MP4Mux ); CB( MOVMux ); CB( WAVMux ); CB( RAWMux );
+    CB( MP4Mux ); CB( MOVMux ); CB( WAVMux ); CB( RAWMux ); CB( FLVMux );
     /* Misc */
     CB( soutAll ); CS( ttl ); CT( sapName ); CT( sapGroup );
 
     CONNECT( ui.fileSelectButton, clicked(), this, fileBrowse() );
 
     /* Misc */
     CB( soutAll ); CS( ttl ); CT( sapName ); CT( sapGroup );
 
     CONNECT( ui.fileSelectButton, clicked(), this, fileBrowse() );
 
-    BUTTONACT( ui.okButton, ok());
-    BUTTONACT( ui.cancelButton, cancel());
+    QPushButton *okButton = new QPushButton( qtr( "&Stream" ) );
+    QPushButton *cancelButton = new QPushButton( qtr( "&Cancel" ) );
+
+    okButton->setDefault( true );
+    ui.acceptButtonBox->addButton( okButton, QDialogButtonBox::AcceptRole );
+    ui.acceptButtonBox->addButton( cancelButton, QDialogButtonBox::RejectRole );
+
+    BUTTONACT( okButton, ok());
+    BUTTONACT( cancelButton, cancel());
 }
 
 void SoutDialog::fileBrowse()
 }
 
 void SoutDialog::fileBrowse()
@@ -153,6 +160,7 @@ void SoutDialog::updateMRL()
     SMUX( MOV, "mov" );
     SMUX( WAV, "wav" );
     SMUX( RAW, "raw" );
     SMUX( MOV, "mov" );
     SMUX( WAV, "wav" );
     SMUX( RAW, "raw" );
+    SMUX( FLV, "flv" );
 
     /* Transcode */
     pd.b_soverlay = ui.sOverlay->isChecked();
 
     /* Transcode */
     pd.b_soverlay = ui.sOverlay->isChecked();
index 3c9f394..aee2a69 100644 (file)
@@ -5,8 +5,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>601</width>
-    <height>611</height>
+    <width>660</width>
+    <height>676</height>
    </rect>
   </property>
   <property name="windowTitle" >
    </rect>
   </property>
   <property name="windowTitle" >
            <bool>false</bool>
           </property>
           <property name="text" >
            <bool>false</bool>
           </property>
           <property name="text" >
-           <string>Port</string>
+           <string>Port:</string>
+          </property>
+          <property name="alignment" >
+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
           </property>
          </widget>
         </item>
           </property>
          </widget>
         </item>
            <bool>false</bool>
           </property>
           <property name="text" >
            <bool>false</bool>
           </property>
           <property name="text" >
-           <string>Port</string>
+           <string>Port:</string>
+          </property>
+          <property name="alignment" >
+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
           </property>
          </widget>
         </item>
           </property>
          </widget>
         </item>
            <bool>false</bool>
           </property>
           <property name="text" >
            <bool>false</bool>
           </property>
           <property name="text" >
-           <string>Port</string>
+           <string>Port:</string>
+          </property>
+          <property name="alignment" >
+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
           </property>
          </widget>
         </item>
           </property>
          </widget>
         </item>
         </property>
        </widget>
       </item>
         </property>
        </widget>
       </item>
+      <item>
+       <widget class="QRadioButton" name="FLVMux" >
+        <property name="text" >
+         <string>FLV</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>
      </layout>
     </widget>
    </item>
         </item>
         <item row="1" column="4" >
          <widget class="QSpinBox" name="ttl" >
         </item>
         <item row="1" column="4" >
          <widget class="QSpinBox" name="ttl" >
+          <property name="alignment" >
+           <set>Qt::AlignRight</set>
+          </property>
           <property name="maximum" >
            <number>255</number>
           </property>
           <property name="maximum" >
            <number>255</number>
           </property>
        <number>6</number>
       </property>
       <item>
        <number>6</number>
       </property>
       <item>
-       <widget class="QLineEdit" name="mrlEdit" >
-       </widget>
+       <widget class="QLineEdit" name="mrlEdit" />
       </item>
      </layout>
     </widget>
       </item>
      </layout>
     </widget>
       </spacer>
      </item>
      <item>
       </spacer>
      </item>
      <item>
-      <widget class="QPushButton" name="cancelButton" >
-       <property name="text" >
-        <string>Cancel</string>
+      <widget class="QDialogButtonBox" name="acceptButtonBox" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
        </property>
        </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QPushButton" name="okButton" >
-       <property name="text" >
-        <string>OK</string>
+       <property name="standardButtons" >
+        <set>QDialogButtonBox::NoButton</set>
        </property>
       </widget>
      </item>
        </property>
       </widget>
      </item>