Changeset 21dd718af658c6942efe5249e7adb719f9dab990
- Timestamp:
- 06/09/07 13:59:32
(1 year ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1189079972 +0000
- git-parent:
[321b69870b1a193ba209f76b4aab3be24accdd2a]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1189079972 +0000
- Message:
Qt4 - Sout: hide SAP options and ttl options when you don't stream. Adapt the label on the okButton according...
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r23a9ce0 |
r21dd718 |
|
| 36 | 36 | { |
|---|
| 37 | 37 | setWindowTitle( qtr( "Stream output" ) ); |
|---|
| | 38 | |
|---|
| | 39 | b_transcode_only = _transcode_only; |
|---|
| 38 | 40 | |
|---|
| 39 | 41 | /* UI stuff */ |
|---|
| … | … | |
| 115 | 117 | CONNECT( ui.rawInput, toggled( bool ), this, setRawOptions( bool ) ); |
|---|
| 116 | 118 | |
|---|
| 117 | | QPushButton *okButton = new QPushButton( qtr( "&Stream" ) ); |
|---|
| | 119 | okButton = new QPushButton( qtr( "&Stream" ) ); |
|---|
| 118 | 120 | QPushButton *cancelButton = new QPushButton( qtr( "&Cancel" ) ); |
|---|
| 119 | 121 | |
|---|
| … | … | |
| 125 | 127 | BUTTONACT( cancelButton, cancel() ); |
|---|
| 126 | 128 | |
|---|
| 127 | | if( _transcode_only ) toggleSout(); |
|---|
| | 129 | if( b_transcode_only ) toggleSout(); |
|---|
| 128 | 130 | } |
|---|
| 129 | 131 | |
|---|
| … | … | |
| 222 | 224 | void SoutDialog::toggleSout() |
|---|
| 223 | 225 | { |
|---|
| | 226 | //Toggle all the streaming options. |
|---|
| 224 | 227 | #define TGV( x ) { \ |
|---|
| 225 | 228 | if( ( x->isHidden() ) ) \ |
|---|
| … | … | |
| 232 | 235 | TGV( ui.HTTPPortLabel ) ; TGV( ui.UDPPortLabel ) ; TGV( ui.MMSHPortLabel ) ; |
|---|
| 233 | 236 | TGV( ui.HTTPPort ) ; TGV( ui.UDPPort ) ; TGV( ui.MMSHPort ) ; |
|---|
| | 237 | |
|---|
| | 238 | TGV( ui.sap ); TGV( ui.sapName ); |
|---|
| | 239 | TGV( ui.sapGroup ); TGV( ui.sapGroupLabel ); |
|---|
| | 240 | TGV( ui.ttlLabel ); TGV( ui.ttl ); |
|---|
| | 241 | |
|---|
| | 242 | if( b_transcode_only ) okButton->setText( "&Save" ); |
|---|
| | 243 | else okButton->setText( "&Stream" ); |
|---|
| | 244 | |
|---|
| 234 | 245 | updateGeometry(); |
|---|
| 235 | 246 | } |
|---|
| rfbb3c56 |
r21dd718 |
|
| 48 | 48 | private: |
|---|
| 49 | 49 | Ui::Sout ui; |
|---|
| 50 | | |
|---|
| | 50 | QPushButton *okButton; |
|---|
| | 51 | bool b_transcode_only; |
|---|
| 51 | 52 | public slots: |
|---|
| 52 | 53 | void ok(); |
|---|
| r23a9ce0 |
r21dd718 |
|
| 658 | 658 | </item> |
|---|
| 659 | 659 | <item row="1" column="3" > |
|---|
| 660 | | <widget class="QLabel" name="label_10" > |
|---|
| | 660 | <widget class="QLabel" name="ttlLabel" > |
|---|
| 661 | 661 | <property name="text" > |
|---|
| 662 | 662 | <string>_("Time-To-Live (TTL)")</string> |
|---|