- controlLayout = new QGridLayout( );
-
- controlLayout->setSpacing( 0 );
- controlLayout->setLayoutMargins( 7, 5, 7, 3, 6 );
-
- if( !b_fsCreation )
- setLayout( controlLayout );
-
- setSizePolicy( QSizePolicy::Preferred , QSizePolicy::Maximum );
-
- /** The main Slider **/
- slider = new InputSlider( Qt::Horizontal, NULL );
- controlLayout->addWidget( slider, 0, 1, 1, 16 );
- /* Update the position when the IM has changed */
- CONNECT( THEMIM->getIM(), positionUpdated( float, int, int ),
- slider, setPosition( float, int, int ) );
- /* And update the IM, when the position has changed */
- CONNECT( slider, sliderDragged( float ),
- THEMIM->getIM(), sliderUpdate( float ) );
-
- /** Slower and faster Buttons **/
- slowerButton = new QToolButton;
- slowerButton->setAutoRaise( true );
- slowerButton->setMaximumSize( QSize( 26, 20 ) );
-
- BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() );
- controlLayout->addWidget( slowerButton, 0, 0 );
-
- fasterButton = new QToolButton;
- fasterButton->setAutoRaise( true );
- fasterButton->setMaximumSize( QSize( 26, 20 ) );
-
- BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() );
- controlLayout->addWidget( fasterButton, 0, 17 );
-
- /* advanced Controls handling */
- b_advancedVisible = b_advControls;
-
- advControls = new AdvControlsWidget( p_intf );
- controlLayout->addWidget( advControls, 1, 3, 2, 4, Qt::AlignBottom );
- if( !b_advancedVisible ) advControls->hide();
-
- /** Disc and Menus handling */
- discFrame = new QWidget( this );
-
- QHBoxLayout *discLayout = new QHBoxLayout( discFrame );
- discLayout->setSpacing( 0 );
- discLayout->setMargin( 0 );
-
- prevSectionButton = new QPushButton( discFrame );
- setupSmallButton( prevSectionButton );
- discLayout->addWidget( prevSectionButton );
-
- menuButton = new QPushButton( discFrame );
- setupSmallButton( menuButton );
- discLayout->addWidget( menuButton );
-
- nextSectionButton = new QPushButton( discFrame );
- setupSmallButton( nextSectionButton );
- discLayout->addWidget( nextSectionButton );
-
- controlLayout->addWidget( discFrame, 1, 10, 2, 3, Qt::AlignBottom );
-
- BUTTON_SET_IMG( prevSectionButton, "", previous.png, "" );
- BUTTON_SET_IMG( nextSectionButton, "", next.png, "" );
- BUTTON_SET_IMG( menuButton, "", previous.png, "" );
-
- discFrame->hide();
-
- /* Change the navigation button display when the IM navigation changes */
- CONNECT( THEMIM->getIM(), navigationChanged( int ),
- this, setNavigation( int ) );
- /* Changes the IM navigation when triggered on the nav buttons */
- CONNECT( prevSectionButton, clicked(), THEMIM->getIM(),
- sectionPrev() );
- CONNECT( nextSectionButton, clicked(), THEMIM->getIM(),
- sectionNext() );
- CONNECT( menuButton, clicked(), THEMIM->getIM(),
- sectionMenu() );
-
- /**
- * Telextext QFrame
- * TODO: Merge with upper menu in a StackLayout
- **/
- telexFrame = new QWidget( this );
- QHBoxLayout *telexLayout = new QHBoxLayout( telexFrame );
- telexLayout->setSpacing( 0 );
- telexLayout->setMargin( 0 );
-
- telexOn = new QPushButton;
- setupSmallButton( telexOn );
- telexLayout->addWidget( telexOn );
-
- telexTransparent = new QPushButton;
- setupSmallButton( telexTransparent );
- telexLayout->addWidget( telexTransparent );
- b_telexTransparent = false;
-
- telexPage = new QSpinBox;
- telexPage->setRange( 0, 999 );
- telexPage->setValue( 100 );
- telexPage->setAccelerated( true );
- telexPage->setWrapping( true );
- telexPage->setAlignment( Qt::AlignRight );
- telexPage->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
- telexLayout->addWidget( telexPage );
-
- if( !b_fsCreation )
- controlLayout->addWidget( telexFrame, 1, 10, 2, 4, Qt::AlignBottom );
- telexFrame->hide(); /* default hidden */
-
- CONNECT( telexPage, valueChanged( int ), THEMIM->getIM(),
- telexGotoPage( int ) );
- CONNECT( THEMIM->getIM(), setNewTelexPage( int ),
- telexPage, setValue( int ) );
-
- BUTTON_SET_IMG( telexOn, "", tv.png, qtr( "Teletext on" ) );
-
- CONNECT( telexOn, clicked(), THEMIM->getIM(),
- telexToggleButtons() );
- CONNECT( telexOn, clicked( bool ), THEMIM->getIM(),
- telexToggle( bool ) );
- CONNECT( THEMIM->getIM(), toggleTelexButtons(),
- this, toggleTeletext() );
- b_telexEnabled = false;
- telexTransparent->setEnabled( false );
- telexPage->setEnabled( false );
-
- BUTTON_SET_IMG( telexTransparent, "", tvtelx.png, qtr( "Teletext" ) );
- CONNECT( telexTransparent, clicked( bool ),
- THEMIM->getIM(), telexSetTransparency() );
- CONNECT( THEMIM->getIM(), toggleTelexTransparency(),
- this, toggleTeletextTransparency() );
- CONNECT( THEMIM->getIM(), teletextEnabled( bool ),
- telexFrame, setVisible( bool ) );
-
- /** Play Buttons **/
- QSizePolicy sizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );