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

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

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


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

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

    cmbLang = new QComboBox( FALSE, this, "cmbLang" );
    cmbLang->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbLang->sizePolicy().hasHeightForWidth() ) );
    InterfaceLayout->addWidget( cmbLang );

    grpMode = new QButtonGroup( this, "grpMode" );
    grpMode->setColumnLayout(0, Qt::Vertical );
    grpMode->layout()->setSpacing( 6 );
    grpMode->layout()->setMargin( 11 );
    grpModeLayout = new QVBoxLayout( grpMode->layout() );
    grpModeLayout->setAlignment( Qt::AlignTop );

    btnChat = new QRadioButton( grpMode, "btnChat" );
    grpModeLayout->addWidget( btnChat );

    btnSimple = new QRadioButton( grpMode, "btnSimple" );
    grpModeLayout->addWidget( btnSimple );

    chkSaveFont = new QCheckBox( grpMode, "chkSaveFont" );
    grpModeLayout->addWidget( chkSaveFont );
    InterfaceLayout->addWidget( grpMode );

    grpContainer = new QButtonGroup( this, "grpContainer" );
    grpContainer->setColumnLayout(0, Qt::Vertical );
    grpContainer->layout()->setSpacing( 6 );
    grpContainer->layout()->setMargin( 11 );
    grpContainerLayout = new QVBoxLayout( grpContainer->layout() );
    grpContainerLayout->setAlignment( Qt::AlignTop );

    btnNew = new QRadioButton( grpContainer, "btnNew" );
    grpContainerLayout->addWidget( btnNew );

    btnGroup = new QRadioButton( grpContainer, "btnGroup" );
    grpContainerLayout->addWidget( btnGroup );

    btnOne = new QRadioButton( grpContainer, "btnOne" );
    grpContainerLayout->addWidget( btnOne );

    chkEnter = new QCheckBox( grpContainer, "chkEnter" );
    grpContainerLayout->addWidget( chkEnter );

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

    lblCopy1 = new QLabel( grpContainer, "lblCopy1" );
    lblCopy1->setProperty( "backgroundOrigin", "ParentOrigin" );
    Layout2->addWidget( lblCopy1 );

    spnCopy = new QSpinBox( grpContainer, "spnCopy" );
    spnCopy->setProperty( "maxValue", 20 );
    Layout2->addWidget( spnCopy );

    lblCopy2 = new QLabel( grpContainer, "lblCopy2" );
    lblCopy2->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, lblCopy2->sizePolicy().hasHeightForWidth() ) );
    lblCopy2->setProperty( "backgroundOrigin", "ParentOrigin" );
    Layout2->addWidget( lblCopy2 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout2->addItem( spacer );
    grpContainerLayout->addLayout( Layout2 );
    InterfaceLayout->addWidget( grpContainer );

    chkStart = new QCheckBox( this, "chkStart" );
    InterfaceLayout->addWidget( chkStart );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    InterfaceLayout->addItem( spacer_2 );
    languageChange();
    resize( QSize(417, 352).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void InterfaceConfigBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel1_2->setProperty( "text", i18n( "Language:" ) );
    grpMode->setProperty( "title", i18n( "Message window" ) );
    btnChat->setProperty( "text", i18n( "&Simple mode" ) );
    btnSimple->setProperty( "text", i18n( "&Chat mode" ) );
    chkSaveFont->setProperty( "text", i18n( "&Using last selected font" ) );
    grpContainer->setProperty( "title", i18n( "Container mode" ) );
    btnNew->setProperty( "text", i18n( "Open each contact in &new container" ) );
    btnGroup->setProperty( "text", i18n( "Open one container for &group" ) );
    btnOne->setProperty( "text", i18n( "Open all contacts in &one container" ) );
    chkEnter->setProperty( "text", i18n( "Use \"&Enter\" for send message" ) );
    lblCopy1->setProperty( "text", QString::null );
    lblCopy2->setProperty( "text", QString::null );
    chkStart->setProperty( "text", i18n( "Start SIM on every &windows startup" ) );
}

#include "interfacecfgbase.moc"
