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

#include <qvariant.h>
#include <qwidget.h>
#include <qpushbutton.h>
#include <qtabwidget.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_jabberaddbase[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


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

    tabAdd = new QTabWidget( this, "tabAdd" );
    tabAdd->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, tabAdd->sizePolicy().hasHeightForWidth() ) );

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

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

    tabLayout->addWidget( edtID, 0, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    tabLayout->addItem( spacer, 2, 0 );

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

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

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

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

    cmbGroup = new QComboBox( FALSE, tab, "cmbGroup" );

    tabLayout->addWidget( cmbGroup, 1, 1 );
    tabAdd->insertTab( tab, QString("") );

    JabberAddLayout->addMultiCellWidget( tabAdd, 1, 1, 0, 1 );

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

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

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

    JabberAddLayout->addWidget( cmbServices, 0, 1 );
    languageChange();
    resize( QSize(487, 358).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void JabberAddBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel1_2->setProperty( "text", i18n( "Add to group:" ) );
    TextLabel2->setProperty( "text", i18n( "Jabber ID:" ) );
    tabAdd->changeTab( tab, i18n( "Jabber ID" ) );
    TextLabel1->setProperty( "text", i18n( "Service:" ) );
}

#include "jabberaddbase.moc"
