Changeset ec725cdc50c7b23539c4d455b1d5edb03c7e764b
- Timestamp:
- 06/23/08 17:58:37
(2 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1214236717 +0200
- git-parent:
[51b21bc3a21f925a30fd5401bafe50ffedcba382]
- git-author:
- Lukas Durfina <lukas.durfina@gmail.com> 1214222929 +0200
- Message:
Fix teletex buttons
uninitialized variable and synchro with fs controller
Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re2499dc |
rec725cd |
|
| 486 | 486 | telexLayout->setMargin( 0 ); |
|---|
| 487 | 487 | |
|---|
| 488 | | QPushButton *telexOn = new QPushButton; |
|---|
| | 488 | telexOn = new QPushButton; |
|---|
| 489 | 489 | setupSmallButton( telexOn ); |
|---|
| 490 | 490 | telexLayout->addWidget( telexOn ); |
|---|
| … | … | |
| 504 | 504 | telexLayout->addWidget( telexPage ); |
|---|
| 505 | 505 | |
|---|
| 506 | | controlLayout->addWidget( telexFrame, 1, 10, 2, 4, Qt::AlignBottom ); |
|---|
| | 506 | if( !b_fsCreation ) |
|---|
| | 507 | controlLayout->addWidget( telexFrame, 1, 10, 2, 4, Qt::AlignBottom ); |
|---|
| 507 | 508 | telexFrame->hide(); /* default hidden */ |
|---|
| 508 | 509 | |
|---|
| 509 | 510 | CONNECT( telexPage, valueChanged( int ), THEMIM->getIM(), |
|---|
| 510 | 511 | telexGotoPage( int ) ); |
|---|
| 511 | | |
|---|
| 512 | | BUTTON_SET_ACT_I( telexOn, "", tv.png, qtr( "Teletext on" ), |
|---|
| 513 | | toggleTeletext() ); |
|---|
| | 512 | CONNECT( THEMIM->getIM(), setNewTelexPage( int ), |
|---|
| | 513 | telexPage, setValue( int ) ); |
|---|
| | 514 | |
|---|
| | 515 | BUTTON_SET_IMG( telexOn, "", tv.png, qtr( "Teletext on" ) ); |
|---|
| | 516 | |
|---|
| | 517 | CONNECT( telexOn, clicked(), THEMIM->getIM(), |
|---|
| | 518 | telexToggleButtons() ); |
|---|
| 514 | 519 | CONNECT( telexOn, clicked( bool ), THEMIM->getIM(), |
|---|
| 515 | 520 | telexToggle( bool ) ); |
|---|
| | 521 | CONNECT( THEMIM->getIM(), toggleTelexButtons(), |
|---|
| | 522 | this, toggleTeletext() ); |
|---|
| | 523 | b_telexEnabled = false; |
|---|
| 516 | 524 | telexTransparent->setEnabled( false ); |
|---|
| 517 | 525 | telexPage->setEnabled( false ); |
|---|
| 518 | 526 | |
|---|
| 519 | | BUTTON_SET_ACT_I( telexTransparent, "", tvtelx.png, qtr( "Teletext" ), |
|---|
| 520 | | toggleTeletextTransparency() ); |
|---|
| | 527 | BUTTON_SET_IMG( telexTransparent, "", tvtelx.png, qtr( "Teletext" ) ); |
|---|
| 521 | 528 | CONNECT( telexTransparent, clicked( bool ), |
|---|
| 522 | 529 | THEMIM->getIM(), telexSetTransparency() ); |
|---|
| | 530 | CONNECT( THEMIM->getIM(), toggleTelexTransparency(), |
|---|
| | 531 | this, toggleTeletextTransparency() ); |
|---|
| 523 | 532 | CONNECT( THEMIM->getIM(), teletextEnabled( bool ), |
|---|
| 524 | 533 | telexFrame, setVisible( bool ) ); |
|---|
| … | … | |
| 1147 | 1156 | showFullscreenControllCallback, (void *) p_fs ); |
|---|
| 1148 | 1157 | b_registered = false; |
|---|
| | 1158 | } |
|---|
| | 1159 | |
|---|
| | 1160 | if ( !var_GetBool( p_vout, "fullscreen" ) ) |
|---|
| 1149 | 1161 | p_fs->hide(); |
|---|
| 1150 | | } |
|---|
| 1151 | 1162 | |
|---|
| 1152 | 1163 | return VLC_SUCCESS; |
|---|
| r6059d32 |
rec725cd |
|
| 204 | 204 | QPushButton *prevSectionButton, *nextSectionButton, *menuButton; |
|---|
| 205 | 205 | QPushButton *playButton, *fullscreenButton, *extSettingsButton; |
|---|
| 206 | | QPushButton *telexTransparent; |
|---|
| | 206 | QPushButton *telexTransparent, *telexOn; |
|---|
| 207 | 207 | QSpinBox *telexPage; |
|---|
| 208 | 208 | QToolButton *slowerButton, *fasterButton; |
|---|
| r6ba2d51 |
rec725cd |
|
| 417 | 417 | } |
|---|
| 418 | 418 | } |
|---|
| | 419 | emit setNewTelexPage( page ); |
|---|
| 419 | 420 | } |
|---|
| 420 | 421 | |
|---|
| … | … | |
| 427 | 428 | vlc_value_t val; |
|---|
| 428 | 429 | vlc_object_t *p_vbi; |
|---|
| | 430 | var_Change( p_input, "spu-es", VLC_VAR_CHOICESCOUNT, &val, NULL ); |
|---|
| | 431 | b_enabled = (val.i_int > 0); |
|---|
| 429 | 432 | p_vbi = (vlc_object_t *) vlc_object_find_name( p_input, |
|---|
| 430 | 433 | "zvbi", FIND_ANYWHERE ); |
|---|
| … | … | |
| 433 | 436 | i_page = var_GetInteger( p_vbi, "vbi-page" ); |
|---|
| 434 | 437 | vlc_object_release( p_vbi ); |
|---|
| | 438 | i_page = b_enabled ? i_page : 0; |
|---|
| | 439 | telexGotoPage( i_page ); |
|---|
| 435 | 440 | } |
|---|
| 436 | | var_Change( p_input, "spu-es", VLC_VAR_CHOICESCOUNT, &val, NULL ); |
|---|
| 437 | | b_enabled = (val.i_int > 0); |
|---|
| 438 | 441 | } |
|---|
| 439 | 442 | emit teletextEnabled( b_enabled ); |
|---|
| 440 | | i_page = b_enabled ? i_page : 0; |
|---|
| 441 | | telexGotoPage( i_page ); |
|---|
| | 443 | } |
|---|
| | 444 | |
|---|
| | 445 | void InputManager::telexToggleButtons() |
|---|
| | 446 | { |
|---|
| | 447 | emit toggleTelexButtons(); |
|---|
| 442 | 448 | } |
|---|
| 443 | 449 | |
|---|
| … | … | |
| 456 | 462 | } |
|---|
| 457 | 463 | } |
|---|
| | 464 | emit toggleTelexTransparency(); |
|---|
| 458 | 465 | } |
|---|
| 459 | 466 | |
|---|
| r6ba2d51 |
rec725cd |
|
| 104 | 104 | void telexGotoPage( int ); ///< Goto teletext page |
|---|
| 105 | 105 | void telexToggle( bool ); ///< Enable disable teletext buttons |
|---|
| | 106 | void telexToggleButtons(); ///< Toggle buttons after click |
|---|
| 106 | 107 | void telexSetTransparency(); ///< Set transparency on teletext background |
|---|
| 107 | 108 | |
|---|
| … | … | |
| 120 | 121 | /// Teletext |
|---|
| 121 | 122 | void teletextEnabled( bool ); |
|---|
| | 123 | void toggleTelexButtons(); |
|---|
| | 124 | void toggleTelexTransparency(); |
|---|
| | 125 | void setNewTelexPage( int ); |
|---|
| 122 | 126 | }; |
|---|
| 123 | 127 | |
|---|