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

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

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


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

    edtSize = new QSpinBox( this, "edtSize" );
    edtSize->setProperty( "maxValue", 1000 );

    UserHistoryCfgLayout->addWidget( edtSize, 0, 2 );

    lblSize1 = new QLabel( this, "lblSize1" );

    UserHistoryCfgLayout->addWidget( lblSize1, 0, 3 );

    chkSize = new QCheckBox( this, "chkSize" );

    UserHistoryCfgLayout->addWidget( chkSize, 0, 0 );

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

    UserHistoryCfgLayout->addWidget( lblSize, 0, 1 );

    edtDays = new QSpinBox( this, "edtDays" );
    edtDays->setProperty( "maxValue", 1000 );

    UserHistoryCfgLayout->addWidget( edtDays, 1, 2 );

    lblDays1 = new QLabel( this, "lblDays1" );

    UserHistoryCfgLayout->addWidget( lblDays1, 1, 3 );

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

    UserHistoryCfgLayout->addWidget( lblDays, 1, 1 );

    chkDays = new QCheckBox( this, "chkDays" );

    UserHistoryCfgLayout->addWidget( chkDays, 1, 0 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    UserHistoryCfgLayout->addItem( spacer, 0, 4 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    UserHistoryCfgLayout->addItem( spacer_2, 2, 1 );
    languageChange();
    resize( QSize(285, 145).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void UserHistoryCfgBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    lblSize1->setProperty( "text", i18n( "Mb" ) );
    chkSize->setProperty( "text", QString::null );
    lblSize->setProperty( "text", i18n( "Max history file size" ) );
    lblDays1->setProperty( "text", i18n( "days" ) );
    lblDays->setProperty( "text", i18n( "Keep history " ) );
    chkDays->setProperty( "text", QString::null );
}

#include "userhistorycfgbase.moc"
