#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './jabberinfobase.ui'
**
** Created: вт мар 30 17:33:05 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 "jabberinfobase.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 <qmultilineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

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

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


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

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

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

    tabLayout->addWidget( edtID, 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 );

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

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

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

    tabLayout->addWidget( edtFirstName, 2, 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 );

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

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

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

    tabLayout->addWidget( TextLabel10, 5, 0 );

    Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5"); 

    edtUrl = new QLineEdit( tab, "edtUrl" );
    Layout5->addWidget( edtUrl );

    btnUrl = new QPushButton( tab, "btnUrl" );
    Layout5->addWidget( btnUrl );

    tabLayout->addLayout( Layout5, 5, 1 );

    Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 

    edtDate = new DatePicker( tab, "edtDate" );
    Layout2->addWidget( edtDate );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout2->addItem( spacer_2 );

    tabLayout->addLayout( Layout2, 4, 1 );
    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 );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    tabLayout_2->addItem( spacer_3, 5, 1 );

    edtAutoReply = new QMultiLineEdit( tab_2, "edtAutoReply" );

    tabLayout_2->addMultiCellWidget( edtAutoReply, 4, 4, 0, 1 );

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

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

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

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

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

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

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

    tabLayout_2->addWidget( edtNA, 3, 1 );

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

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

    cmbResource = new QComboBox( FALSE, tab_2, "cmbResource" );

    tabLayout_2->addWidget( cmbResource, 1, 1 );
    TabWidget4->insertTab( tab_2, QString("") );
    JabberInfoLayout->addWidget( TabWidget4 );
    languageChange();
    resize( QSize(493, 361).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( TabWidget4, edtID );
    setTabOrder( edtID, edtFirstName );
    setTabOrder( edtFirstName, edtNick );
    setTabOrder( edtNick, edtUrl );
    setTabOrder( edtUrl, btnUrl );
    setTabOrder( btnUrl, cmbStatus );
    setTabOrder( cmbStatus, cmbResource );
    setTabOrder( cmbResource, edtOnline );
    setTabOrder( edtOnline, edtNA );
    setTabOrder( edtNA, edtAutoReply );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void JabberInfoBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel2->setProperty( "text", i18n( "ID:" ) );
    TextLabel3->setProperty( "text", i18n( "First name:" ) );
    TextLabel4->setProperty( "text", i18n( "Nick:" ) );
    TextLabel9->setProperty( "text", i18n( "Birth date:" ) );
    TextLabel10->setProperty( "text", i18n( "Homepage:" ) );
    btnUrl->setProperty( "text", QString::null );
    TabWidget4->changeTab( tab, i18n( "&Names" ) );
    TextLabel5->setProperty( "text", i18n( "Status:" ) );
    lblNA->setProperty( "text", QString::null );
    lblOnline->setProperty( "text", i18n( "Online:" ) );
    lblResource->setProperty( "text", i18n( "Resource:" ) );
    TabWidget4->changeTab( tab_2, i18n( "&Status" ) );
}

#include "jabberinfobase.moc"
