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

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

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


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

    chkInTask = new QCheckBox( this, "chkInTask" );
    Form1Layout->addWidget( chkInTask );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void OnTopCfgBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    chkInTask->setProperty( "text", i18n( "Show &main window in task manager" ) );
    chkContainer->setProperty( "text", i18n( "&Container always on top" ) );
}

#include "ontopcfgbase.moc"
