#include /**************************************************************************** ** Form implementation generated from reading ui file './prefpreview.ui' ** ** Created: dim. oct. 26 08:57:36 2008 ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "prefpreview.h" #include #include #include #include #include #include #include #include #include #include #include /* * Constructs a prefPreview as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ prefPreview::prefPreview( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "prefPreview" ); prefPreviewLayout = new QGridLayout( this, 1, 1, 11, 6, "prefPreviewLayout"); buttonGroup1 = new QButtonGroup( this, "buttonGroup1" ); buttonGroup1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, buttonGroup1->sizePolicy().hasHeightForWidth() ) ); buttonGroup1->setFrameShape( QButtonGroup::NoFrame ); buttonGroup1->setColumnLayout(0, Qt::Vertical ); buttonGroup1->layout()->setSpacing( 6 ); buttonGroup1->layout()->setMargin( 11 ); buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() ); buttonGroup1Layout->setAlignment( Qt::AlignTop ); rbInternal = new QRadioButton( buttonGroup1, "rbInternal" ); buttonGroup1Layout->addWidget( rbInternal, 0, 0 ); rbMplayer = new QRadioButton( buttonGroup1, "rbMplayer" ); buttonGroup1Layout->addWidget( rbMplayer, 1, 0 ); prefPreviewLayout->addWidget( buttonGroup1, 0, 0 ); spacer5 = new QSpacerItem( 21, 210, QSizePolicy::Minimum, QSizePolicy::Expanding ); prefPreviewLayout->addItem( spacer5, 2, 0 ); wsOptions = new QWidgetStack( this, "wsOptions" ); wsOptions->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, wsOptions->sizePolicy().hasHeightForWidth() ) ); wsOptions->setFrameShape( QWidgetStack::NoFrame ); wsOptions->setFrameShadow( QWidgetStack::Sunken ); wsOptions->setLineWidth( 1 ); wsOptions->setMidLineWidth( 0 ); wspInternal = new QWidget( wsOptions, "wspInternal" ); wspInternalLayout = new QGridLayout( wspInternal, 1, 1, 11, 6, "wspInternalLayout"); textLabel1 = new QLabel( wspInternal, "textLabel1" ); QFont textLabel1_font( textLabel1->font() ); textLabel1_font.setBold( TRUE ); textLabel1->setFont( textLabel1_font ); wspInternalLayout->addWidget( textLabel1, 0, 0 ); ckUseGL = new QCheckBox( wspInternal, "ckUseGL" ); wspInternalLayout->addWidget( ckUseGL, 1, 0 ); spacer1 = new QSpacerItem( 21, 30, QSizePolicy::Minimum, QSizePolicy::Expanding ); wspInternalLayout->addItem( spacer1, 2, 0 ); wsOptions->addWidget( wspInternal, 0 ); wspMplayer = new QWidget( wsOptions, "wspMplayer" ); wspMplayerLayout = new QGridLayout( wspMplayer, 1, 1, 11, 6, "wspMplayerLayout"); textLabel3 = new QLabel( wspMplayer, "textLabel3" ); wspMplayerLayout->addWidget( textLabel3, 1, 0 ); textLabel4 = new QLabel( wspMplayer, "textLabel4" ); textLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) ); wspMplayerLayout->addWidget( textLabel4, 2, 0 ); cbVout = new QComboBox( FALSE, wspMplayer, "cbVout" ); wspMplayerLayout->addWidget( cbVout, 1, 1 ); cbAout = new QComboBox( FALSE, wspMplayer, "cbAout" ); cbAout->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, cbAout->sizePolicy().hasHeightForWidth() ) ); wspMplayerLayout->addWidget( cbAout, 2, 1 ); spacer3 = new QSpacerItem( 81, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); wspMplayerLayout->addItem( spacer3, 1, 2 ); spacer6 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding ); wspMplayerLayout->addItem( spacer6, 3, 1 ); textLabel2 = new QLabel( wspMplayer, "textLabel2" ); QFont textLabel2_font( textLabel2->font() ); textLabel2_font.setBold( TRUE ); textLabel2->setFont( textLabel2_font ); wspMplayerLayout->addMultiCellWidget( textLabel2, 0, 0, 0, 2 ); wsOptions->addWidget( wspMplayer, 1 ); prefPreviewLayout->addWidget( wsOptions, 1, 0 ); spacer4 = new QSpacerItem( 230, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); prefPreviewLayout->addItem( spacer4, 0, 1 ); languageChange(); resize( QSize(536, 470).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( rbInternal, SIGNAL( clicked() ), this, SLOT( rbInternalClick() ) ); connect( rbMplayer, SIGNAL( clicked() ), this, SLOT( rbMplayerClick() ) ); } /* * Destroys the object and frees any allocated resources */ prefPreview::~prefPreview() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void prefPreview::languageChange() { setCaption( tr2i18n( "Form1" ) ); buttonGroup1->setTitle( QString::null ); rbInternal->setText( tr2i18n( "&Internal Player" ) ); rbInternal->setAccel( QKeySequence( tr2i18n( "Alt+I" ) ) ); rbMplayer->setText( tr2i18n( "MPlayer" ) ); rbMplayer->setAccel( QKeySequence( tr2i18n( "Alt+M" ) ) ); textLabel1->setText( tr2i18n( "Internal viewer options" ) ); ckUseGL->setText( tr2i18n( "use OpenGL" ) ); textLabel3->setText( tr2i18n( "Video output" ) ); textLabel4->setText( tr2i18n( "Audio output" ) ); cbVout->clear(); cbVout->insertItem( tr2i18n( "X11" ) ); cbVout->insertItem( tr2i18n( "Xv" ) ); cbVout->insertItem( tr2i18n( "OpenGL" ) ); cbVout->insertItem( tr2i18n( "SDL" ) ); cbAout->clear(); cbAout->insertItem( tr2i18n( "ALSA" ) ); cbAout->insertItem( tr2i18n( "OSS" ) ); cbAout->insertItem( tr2i18n( "SDL" ) ); textLabel2->setText( tr2i18n( "MPlayer options" ) ); } void prefPreview::rbInternalClick() { qWarning( "prefPreview::rbInternalClick(): Not implemented yet" ); } void prefPreview::rbMplayerClick() { qWarning( "prefPreview::rbMplayerClick(): Not implemented yet" ); } #include "prefpreview.moc"