#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './osdifacebase.ui'
**
** Created: вт мар 30 17:48:09 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "osdifacebase.h"

#include <qvariant.h>
#include <qwidget.h>
#include <qlabel.h>
#include <qspinbox.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "fontedit.h"
#include "qcolorbutton.h"
static const char* const img0_osdifacebase[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};

static const char* const img1_osdifacebase[] = { 
"22 22 2 1",
". c None",
"# c #a1c410",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


/* 
 *  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 ),
      image0( (const char **) img0_osdifacebase ),
      image1( (const char **) img1_osdifacebase )
{
    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 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    OSDIfaceLayout->addItem( spacer, 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 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    OSDIfaceLayout->addItem( spacer_2, 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"
