#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './osdconfigbase.ui'
**
** Created: вт мар 30 17:47:57 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 "osdconfigbase.h"

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

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


/* 
 *  Constructs a OSDConfigBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
OSDConfigBase::OSDConfigBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_osdconfigbase )
{
    if ( !name )
	setName( "OSDConfig" );
    OSDConfigLayout = new QGridLayout( this, 1, 1, 11, 6, "OSDConfigLayout"); 

    chkMessage = new QCheckBox( this, "chkMessage" );

    OSDConfigLayout->addMultiCellWidget( chkMessage, 0, 0, 0, 2 );

    chkStatus = new QCheckBox( this, "chkStatus" );

    OSDConfigLayout->addMultiCellWidget( chkStatus, 1, 1, 0, 2 );

    chkTyping = new QCheckBox( this, "chkTyping" );

    OSDConfigLayout->addMultiCellWidget( chkTyping, 2, 2, 0, 2 );

    chkMessageContent = new QCheckBox( this, "chkMessageContent" );

    OSDConfigLayout->addMultiCellWidget( chkMessageContent, 3, 3, 0, 2 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    OSDConfigLayout->addItem( spacer, 5, 0 );

    edtLines = new QSpinBox( this, "edtLines" );
    edtLines->setProperty( "minValue", 0 );

    OSDConfigLayout->addWidget( edtLines, 4, 1 );

    lblLines = new QLabel( this, "lblLines" );

    OSDConfigLayout->addWidget( lblLines, 4, 0 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    OSDConfigLayout->addItem( spacer_2, 4, 2 );
    languageChange();
    resize( QSize(289, 188).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

/*
 *  Destroys the object and frees any allocated resources
 */
OSDConfigBase::~OSDConfigBase()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void OSDConfigBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    chkMessage->setProperty( "text", i18n( "Enable &messages notification" ) );
    chkStatus->setProperty( "text", i18n( "Enable &status notification" ) );
    chkTyping->setProperty( "text", i18n( "Enable &typing notification" ) );
    chkMessageContent->setProperty( "text", i18n( "Show message content" ) );
    edtLines->setProperty( "specialValueText", i18n( "All" ) );
    lblLines->setProperty( "text", i18n( "Show lines of content:" ) );
}

#include "osdconfigbase.moc"
