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

#include <qvariant.h>
#include <qwidget.h>
#include <qpushbutton.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_dockcfgbase[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


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

    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 

    chkAutoHide = new QCheckBox( this, "chkAutoHide" );
    Layout1->addWidget( chkAutoHide );

    spnAutoHide = new QSpinBox( this, "spnAutoHide" );
    spnAutoHide->setProperty( "maxValue", 999 );
    Layout1->addWidget( spnAutoHide );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    Layout1->addWidget( TextLabel1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout1->addItem( spacer );
    Form1Layout->addLayout( Layout1 );

    Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 

    TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
    Layout2->addWidget( TextLabel1_2 );

    spn_desk = new QSpinBox( this, "spn_desk" );
    spn_desk->setProperty( "maxValue", 999 );
    spn_desk->setProperty( "minValue", 0 );
    spn_desk->setProperty( "value", 0 );
    Layout2->addWidget( spn_desk );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout2->addItem( spacer_2 );
    Form1Layout->addLayout( Layout2 );

    Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout3->addItem( spacer_3 );

    btnCustomize = new QPushButton( this, "btnCustomize" );
    Layout3->addWidget( btnCustomize );
    Form1Layout->addLayout( Layout3 );
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Form1Layout->addItem( spacer_4 );
    languageChange();
    resize( QSize(313, 138).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DockCfgBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    chkAutoHide->setProperty( "text", i18n( "Hide main window after" ) );
    TextLabel1->setProperty( "text", i18n( "seconds inactive" ) );
    TextLabel1_2->setProperty( "text", i18n( "Show Mainwin on desktop" ) );
    spn_desk->setProperty( "specialValueText", i18n( "current" ) );
    btnCustomize->setProperty( "text", i18n( "&Customize dock menu" ) );
}

#include "dockcfgbase.moc"
