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

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

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


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

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

    JabberWorkInfoLayout->addWidget( TextLabel2, 1, 0 );

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

    JabberWorkInfoLayout->addWidget( TextLabel1, 0, 0 );

    edtTitle = new QLineEdit( this, "edtTitle" );

    JabberWorkInfoLayout->addWidget( edtTitle, 2, 1 );

    edtDepartment = new QLineEdit( this, "edtDepartment" );

    JabberWorkInfoLayout->addWidget( edtDepartment, 1, 1 );

    edtRole = new QLineEdit( this, "edtRole" );

    JabberWorkInfoLayout->addWidget( edtRole, 3, 1 );

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

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

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

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

    edtCompany = new QLineEdit( this, "edtCompany" );

    JabberWorkInfoLayout->addWidget( edtCompany, 0, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    JabberWorkInfoLayout->addItem( spacer, 4, 1 );
    languageChange();
    resize( QSize(380, 196).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void JabberWorkInfoBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel2->setProperty( "text", i18n( "Department:" ) );
    TextLabel1->setProperty( "text", i18n( "Company:" ) );
    TextLabel4->setProperty( "text", i18n( "Role:" ) );
    TextLabel3->setProperty( "text", i18n( "Position:" ) );
}

#include "jabberworkinfobase.moc"
