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

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

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


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

    tabWnd = new QTabWidget( this, "tabWnd" );

    tab = new QWidget( tabWnd, "tab" );
    tabLayout = new QVBoxLayout( tab, 11, 6, "tabLayout"); 

    chkEnable = new QCheckBox( tab, "chkEnable" );
    tabLayout->addWidget( chkEnable );

    lblDescription = new QLabel( tab, "lblDescription" );
    lblDescription->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
    tabLayout->addWidget( lblDescription );

    addWnd = new QChildWidget( tab, "addWnd" );
    tabLayout->addWidget( addWnd );
    tabWnd->insertTab( tab, QString("") );
    Form1Layout->addWidget( tabWnd );
    languageChange();
    resize( QSize(334, 260).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PluginCfgBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    chkEnable->setProperty( "text", i18n( "Plugin &enabled" ) );
    lblDescription->setProperty( "text", QString::null );
    tabWnd->changeTab( tab, QString::null );
}

#include "plugincfgbase.moc"
