#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './osdifacebase.ui' ** ** Created: Вск Мар 4 15:40:58 2007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "osdifacebase.h" #include #include #include #include #include #include #include #include #include #include "fontedit.h" #include "qcolorbutton.h" /* * Constructs a OSDIfaceBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ OSDIfaceBase::OSDIfaceBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "OSDIface" ); OSDIfaceLayout = new QGridLayout( this, 1, 1, 11, 6, "OSDIfaceLayout"); TextLabel2 = new QLabel( this, "TextLabel2" ); TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); OSDIfaceLayout->addWidget( TextLabel2, 2, 0 ); spnOffs = new QSpinBox( this, "spnOffs" ); OSDIfaceLayout->addWidget( spnOffs, 2, 1 ); TextLabel3 = new QLabel( this, "TextLabel3" ); TextLabel3->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); OSDIfaceLayout->addWidget( TextLabel3, 3, 0 ); spnTimeout = new QSpinBox( this, "spnTimeout" ); OSDIfaceLayout->addWidget( spnTimeout, 3, 1 ); TextLabel4 = new QLabel( this, "TextLabel4" ); TextLabel4->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); OSDIfaceLayout->addWidget( TextLabel4, 4, 0 ); TextLabel5 = new QLabel( this, "TextLabel5" ); TextLabel5->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); OSDIfaceLayout->addWidget( TextLabel5, 5, 0 ); edtFont = new FontEdit( this, "edtFont" ); OSDIfaceLayout->addMultiCellWidget( edtFont, 5, 5, 1, 2 ); btnColor = new QColorButton( this, "btnColor" ); OSDIfaceLayout->addWidget( btnColor, 4, 1 ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); OSDIfaceLayout->addItem( Spacer5, 2, 2 ); chkShadow = new QCheckBox( this, "chkShadow" ); OSDIfaceLayout->addMultiCellWidget( chkShadow, 6, 6, 0, 2 ); chkBackground = new QCheckBox( this, "chkBackground" ); OSDIfaceLayout->addMultiCellWidget( chkBackground, 7, 7, 0, 2 ); TextLabel6 = new QLabel( this, "TextLabel6" ); TextLabel6->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); OSDIfaceLayout->addWidget( TextLabel6, 8, 0 ); btnBgColor = new QColorButton( this, "btnBgColor" ); OSDIfaceLayout->addWidget( btnBgColor, 8, 1 ); Spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); OSDIfaceLayout->addItem( Spacer6, 9, 0 ); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); OSDIfaceLayout->addWidget( TextLabel1, 0, 0 ); cmbPos = new QComboBox( FALSE, this, "cmbPos" ); OSDIfaceLayout->addMultiCellWidget( cmbPos, 0, 0, 1, 2 ); lblScreen = new QLabel( this, "lblScreen" ); OSDIfaceLayout->addWidget( lblScreen, 1, 0 ); cmbScreen = new QComboBox( FALSE, this, "cmbScreen" ); OSDIfaceLayout->addMultiCellWidget( cmbScreen, 1, 1, 1, 2 ); languageChange(); resize( QSize(332, 236).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ OSDIfaceBase::~OSDIfaceBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void OSDIfaceBase::languageChange() { setProperty( "caption", i18n( "Form2" ) ); TextLabel2->setProperty( "text", i18n( "Offset:" ) ); TextLabel3->setProperty( "text", i18n( "Show time:" ) ); TextLabel4->setProperty( "text", i18n( "Color:" ) ); TextLabel5->setProperty( "text", i18n( "Font:" ) ); chkShadow->setProperty( "text", i18n( "Show sha&dow" ) ); chkBackground->setProperty( "text", i18n( "Show &background" ) ); TextLabel6->setProperty( "text", i18n( "Background color:" ) ); TextLabel1->setProperty( "text", i18n( "Place:" ) ); lblScreen->setProperty( "text", i18n( "Shown on screen:" ) ); } #include "osdifacebase.moc"