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

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

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


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

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

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

    Line3 = new QFrame( tab, "Line3" );
    Line3->setProperty( "frameShape", "HLine" );
    Line3->setProperty( "frameShadow", "Sunken" );
    Line3->setProperty( "frameShape", QFrame::VLine );
    Line3->setProperty( "frameShape", "HLine" );

    tabLayout->addMultiCellWidget( Line3, 1, 1, 0, 2 );

    edtNick = new QLineEdit( tab, "edtNick" );

    tabLayout->addMultiCellWidget( edtNick, 2, 2, 1, 2 );

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

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

    edtLogin = new QLineEdit( tab, "edtLogin" );
    QFont edtLogin_font(  edtLogin->font() );
    edtLogin_font.setBold( TRUE );
    edtLogin->setFont( edtLogin_font ); 

    tabLayout->addMultiCellWidget( edtLogin, 0, 0, 1, 2 );

    TextLabel2 = new QLabel( tab, "TextLabel2" );
    QFont TextLabel2_font(  TextLabel2->font() );
    TextLabel2_font.setBold( TRUE );
    TextLabel2->setFont( TextLabel2_font ); 
    TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    tabLayout->addWidget( TextLabel2, 0, 0 );

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

    tabLayout->addWidget( TextLabel1, 3, 0 );

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

    tabLayout->addWidget( TextLabel2_2, 4, 0 );

    edtFirst = new QLineEdit( tab, "edtFirst" );

    tabLayout->addMultiCellWidget( edtFirst, 3, 3, 1, 2 );

    edtLast = new QLineEdit( tab, "edtLast" );

    tabLayout->addMultiCellWidget( edtLast, 4, 4, 1, 2 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    tabLayout->addItem( spacer, 7, 0 );

    Line6 = new QFrame( tab, "Line6" );
    Line6->setProperty( "frameStyle", QFrame::VLine | QFrame::Sunken );

    tabLayout->addMultiCellWidget( Line6, 5, 5, 0, 2 );

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

    tabLayout->addMultiCellWidget( TextLabel1_2_2, 6, 6, 0, 1 );

    cmbEncoding = new QComboBox( FALSE, tab, "cmbEncoding" );
    cmbEncoding->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbEncoding->sizePolicy().hasHeightForWidth() ) );

    tabLayout->addWidget( cmbEncoding, 6, 2 );
    TabWidget4->insertTab( tab, QString("") );

    tab_2 = new QWidget( TabWidget4, "tab_2" );
    tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 

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

    tabLayout_2->addWidget( TextLabel5, 0, 0 );

    cmbStatus = new QComboBox( FALSE, tab_2, "cmbStatus" );
    cmbStatus->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbStatus->sizePolicy().hasHeightForWidth() ) );

    tabLayout_2->addWidget( cmbStatus, 0, 1 );

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

    tabLayout_2->addWidget( lblOnline, 1, 0 );

    edtOnline = new QLineEdit( tab_2, "edtOnline" );

    tabLayout_2->addWidget( edtOnline, 1, 1 );

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

    tabLayout_2->addWidget( lblNA, 2, 0 );

    edtNA = new QLineEdit( tab_2, "edtNA" );

    tabLayout_2->addWidget( edtNA, 2, 1 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    tabLayout_2->addItem( spacer_2, 4, 1 );
    TabWidget4->insertTab( tab_2, QString("") );
    MSNInfoLayout->addWidget( TabWidget4 );
    languageChange();
    resize( QSize(372, 299).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void YahooInfoBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel4->setProperty( "text", i18n( "Nick:" ) );
    TextLabel2->setProperty( "text", i18n( "Login:" ) );
    TextLabel1->setProperty( "text", i18n( "First name:" ) );
    TextLabel2_2->setProperty( "text", i18n( "Last name:" ) );
    TextLabel1_2_2->setProperty( "text", i18n( "Encoding:" ) );
    TabWidget4->changeTab( tab, i18n( "&Names" ) );
    TextLabel5->setProperty( "text", i18n( "Status:" ) );
    lblOnline->setProperty( "text", i18n( "Online:" ) );
    lblNA->setProperty( "text", QString::null );
    TabWidget4->changeTab( tab_2, i18n( "&Status" ) );
}

#include "yahooinfobase.moc"
