Changeset 0559d37d75ea9841cbd773e037605eaac5869b76

Show
Ignore:
Timestamp:
17/04/07 20:24:46 (1 year ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1176834286 +0000
git-parent:

[765497c49fcaf9f015a1ecf0edc8b09c189546a5]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1176834286 +0000
Message:

Qt4 - Sout Dialog: add FLV muxer... Some cosmetic changes too.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/dialogs/sout.cpp

    ra210fb1 r0559d37  
    8787    /* Mux */ 
    8888    CB( PSMux ); CB( TSMux ); CB( MPEG1Mux ); CB( OggMux ); CB( ASFMux ); 
    89     CB( MP4Mux ); CB( MOVMux ); CB( WAVMux ); CB( RAWMux ); 
     89    CB( MP4Mux ); CB( MOVMux ); CB( WAVMux ); CB( RAWMux ); CB( FLVMux ); 
    9090    /* Misc */ 
    9191    CB( soutAll ); CS( ttl ); CT( sapName ); CT( sapGroup ); 
     
    9393    CONNECT( ui.fileSelectButton, clicked(), this, fileBrowse() ); 
    9494 
    95     BUTTONACT( ui.okButton, ok()); 
    96     BUTTONACT( ui.cancelButton, cancel()); 
     95    QPushButton *okButton = new QPushButton( qtr( "&Stream" ) ); 
     96    QPushButton *cancelButton = new QPushButton( qtr( "&Cancel" ) ); 
     97 
     98    okButton->setDefault( true ); 
     99    ui.acceptButtonBox->addButton( okButton, QDialogButtonBox::AcceptRole ); 
     100    ui.acceptButtonBox->addButton( cancelButton, QDialogButtonBox::RejectRole ); 
     101 
     102    BUTTONACT( okButton, ok()); 
     103    BUTTONACT( cancelButton, cancel()); 
    97104} 
    98105 
     
    154161    SMUX( WAV, "wav" ); 
    155162    SMUX( RAW, "raw" ); 
     163    SMUX( FLV, "flv" ); 
    156164 
    157165    /* Transcode */ 
  • modules/gui/qt4/ui/sout.ui

    ra1f0006 r0559d37  
    66    <x>0</x> 
    77    <y>0</y> 
    8     <width>601</width> 
    9     <height>611</height> 
     8    <width>660</width> 
     9    <height>676</height> 
    1010   </rect> 
    1111  </property> 
     
    108108          </property> 
    109109          <property name="text" > 
    110            <string>Port</string> 
     110           <string>Port:</string> 
     111          </property> 
     112          <property name="alignment" > 
     113           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 
    111114          </property> 
    112115         </widget> 
     
    169172          </property> 
    170173          <property name="text" > 
    171            <string>Port</string> 
     174           <string>Port:</string> 
     175          </property> 
     176          <property name="alignment" > 
     177           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 
    172178          </property> 
    173179         </widget> 
     
    210216          </property> 
    211217          <property name="text" > 
    212            <string>Port</string> 
     218           <string>Port:</string> 
     219          </property> 
     220          <property name="alignment" > 
     221           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 
    213222          </property> 
    214223         </widget> 
     
    356365       </widget> 
    357366      </item> 
     367      <item> 
     368       <widget class="QRadioButton" name="FLVMux" > 
     369        <property name="text" > 
     370         <string>FLV</string> 
     371        </property> 
     372       </widget> 
     373      </item> 
    358374     </layout> 
    359375    </widget> 
     
    586602        <item row="1" column="4" > 
    587603         <widget class="QSpinBox" name="ttl" > 
     604          <property name="alignment" > 
     605           <set>Qt::AlignRight</set> 
     606          </property> 
    588607          <property name="maximum" > 
    589608           <number>255</number> 
     
    641660      </property> 
    642661      <item> 
    643        <widget class="QLineEdit" name="mrlEdit" > 
    644        </widget> 
     662       <widget class="QLineEdit" name="mrlEdit" /> 
    645663      </item> 
    646664     </layout> 
     
    669687     </item> 
    670688     <item> 
    671       <widget class="QPushButton" name="cancelButton" > 
    672        <property name="text" > 
    673         <string>Cancel</string
     689      <widget class="QDialogButtonBox" name="acceptButtonBox" > 
     690       <property name="orientation" > 
     691        <enum>Qt::Horizontal</enum
    674692       </property> 
    675       </widget> 
    676      </item> 
    677      <item> 
    678       <widget class="QPushButton" name="okButton" > 
    679        <property name="text" > 
    680         <string>OK</string> 
     693       <property name="standardButtons" > 
     694        <set>QDialogButtonBox::NoButton</set> 
    681695       </property> 
    682696      </widget>