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

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

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

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


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

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

    tab = new QWidget( tabAR, "tab" );
    tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

    chkOverride = new QCheckBox( tab, "chkOverride" );

    tabLayout->addMultiCellWidget( chkOverride, 0, 0, 0, 2 );

    btnHelp = new QPushButton( tab, "btnHelp" );

    tabLayout->addWidget( btnHelp, 2, 0 );

    chkNoShow = new QCheckBox( tab, "chkNoShow" );
    chkNoShow->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, chkNoShow->sizePolicy().hasHeightForWidth() ) );

    tabLayout->addWidget( chkNoShow, 2, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    tabLayout->addItem( spacer, 2, 2 );

    edtAutoReply = new MultiLineEdit( tab, "edtAutoReply" );

    tabLayout->addMultiCellWidget( edtAutoReply, 1, 1, 0, 2 );
    tabAR->insertTab( tab, QString("") );
    ARConfigLayout->addWidget( tabAR );
    languageChange();
    resize( QSize(421, 314).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ARConfigBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    chkOverride->setProperty( "text", i18n( "&Override global settings" ) );
    btnHelp->setProperty( "text", i18n( "&Help" ) );
    chkNoShow->setProperty( "text", i18n( "Don't show autoreply dialog" ) );
    tabAR->changeTab( tab, QString::null );
}

#include "arcfgbase.moc"
