+ 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 ) );