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

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

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

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


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

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

    lblLink = new LinkLabel( this, "lblLink" );
    Layout4->addWidget( lblLink );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout4->addItem( spacer );

    Form1Layout->addMultiCellLayout( Layout4, 5, 5, 0, 1 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Form1Layout->addItem( spacer_2, 6, 1 );

    TextLabel1_3 = new QLabel( this, "TextLabel1_3" );
    TextLabel1_3->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Form1Layout->addWidget( TextLabel1_3, 4, 0 );

    TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
    TextLabel1_2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Form1Layout->addWidget( TextLabel1_2, 3, 0 );

    edtPicture = new EditFile( this, "edtPicture" );

    Form1Layout->addMultiCellWidget( edtPicture, 1, 1, 0, 1 );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignLeft ) );

    Form1Layout->addMultiCellWidget( TextLabel1, 0, 0, 0, 1 );

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

    spnContact = new QSpinBox( this, "spnContact" );
    spnContact->setProperty( "maxValue", 20 );
    Layout5->addWidget( spnContact );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout5->addItem( spacer_3 );

    Form1Layout->addLayout( Layout5, 3, 1 );

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

    spnGroup = new QSpinBox( this, "spnGroup" );
    spnGroup->setProperty( "maxValue", 20 );
    Layout6->addWidget( spnGroup );
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout6->addItem( spacer_4 );

    Form1Layout->addLayout( Layout6, 4, 1 );

    TextLabel2 = new QLabel( this, "TextLabel2" );
    TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Form1Layout->addWidget( TextLabel2, 2, 0 );

    cmbPosition = new QComboBox( FALSE, this, "cmbPosition" );

    Form1Layout->addWidget( cmbPosition, 2, 1 );
    languageChange();
    resize( QSize(419, 187).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void BkgndCfgBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel1_3->setProperty( "text", i18n( "Group margin:" ) );
    TextLabel1_2->setProperty( "text", i18n( "Contact margin:" ) );
    TextLabel1->setProperty( "text", i18n( "Main window background:" ) );
    TextLabel2->setProperty( "text", i18n( "Place:" ) );
}

#include "bkgndcfgbase.moc"
