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

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

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


/* 
 *  Constructs a TransparentCfgBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
TransparentCfgBase::TransparentCfgBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_transparentcfgbase )
{
    if ( !name )
	setName( "Form1" );
    Form1Layout = new QVBoxLayout( this, 11, 6, "Form1Layout"); 

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
    TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
    Form1Layout->addWidget( TextLabel1 );

    sldTransparency = new QSlider( this, "sldTransparency" );
    sldTransparency->setProperty( "maxValue", 100 );
    sldTransparency->setProperty( "lineStep", 5 );
    sldTransparency->setProperty( "pageStep", 20 );
    sldTransparency->setProperty( "orientation", "Horizontal" );
    sldTransparency->setProperty( "tickmarks", "Right" );
    sldTransparency->setProperty( "tickInterval", 0 );
    Form1Layout->addWidget( sldTransparency );

    chkInactive = new QCheckBox( this, "chkInactive" );
    Form1Layout->addWidget( chkInactive );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Form1Layout->addItem( spacer );
    languageChange();
    resize( QSize(304, 167).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void TransparentCfgBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel1->setProperty( "text", i18n( "Transparency of main window:" ) );
    chkInactive->setProperty( "text", i18n( "Transparent only if inactive" ) );
}

#include "transparentcfgbase.moc"
