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

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

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


/* 
 *  Constructs a MSNInfoBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
MSNInfoBase::MSNInfoBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_msninfobase )
{
    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"); 

    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 );

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

    tabLayout->addWidget( edtEMail, 0, 1 );

    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, 1 );

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

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

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

    tabLayout->addWidget( edtNick, 3, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    tabLayout->addItem( spacer, 6, 0 );
    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(342, 316).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MSNInfoBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel2->setProperty( "text", i18n( "EMail" ) );
    TextLabel4->setProperty( "text", i18n( "Nick:" ) );
    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 "msninfobase.moc"
