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

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

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


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

    TextLabel3_2 = new QLabel( this, "TextLabel3_2" );
    TextLabel3_2->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
    ForwardCfgLayout->addWidget( TextLabel3_2 );

    cmbPhone = new QComboBox( FALSE, this, "cmbPhone" );
    ForwardCfgLayout->addWidget( cmbPhone );

    TextLabel4_2 = new QLabel( this, "TextLabel4_2" );
    TextLabel4_2->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
    ForwardCfgLayout->addWidget( TextLabel4_2 );

    chkFirst = new QCheckBox( this, "chkFirst" );
    ForwardCfgLayout->addWidget( chkFirst );

    chkTranslit = new QCheckBox( this, "chkTranslit" );
    ForwardCfgLayout->addWidget( chkTranslit );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    ForwardCfgLayout->addItem( spacer );
    languageChange();
    resize( QSize(352, 215).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ForwardConfigBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel3_2->setProperty( "text", i18n( "Send all messages in status \"Away\" and \"N/A\" on the cellular:" ) );
    TextLabel4_2->setProperty( "text", i18n( "For the answer or sending of the new message you can answer on SMS having specified in the beginning of the message a line:\n"
"<UIN>:" ) );
    chkFirst->setProperty( "text", i18n( "Send only &one message (don't split)" ) );
    chkTranslit->setProperty( "text", i18n( "Send in &translit" ) );
}

#include "forwardcfgbase.moc"
