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

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

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


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

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

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

    lblMail = new QLabel( tab, "lblMail" );

    tabLayout->addMultiCellWidget( lblMail, 0, 0, 0, 1 );

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

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

    TextLabel6 = new QLabel( tab, "TextLabel6" );

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

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

    tabLayout->addWidget( cmbGroup, 2, 1 );
    tabSearch->insertTab( tab, QString("") );
    YahooSearchLayout->addWidget( tabSearch );
    languageChange();
    resize( QSize(394, 268).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void YahooSearchBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    lblMail->setProperty( "text", i18n( "Yahoo ID:" ) );
    TextLabel6->setProperty( "text", i18n( "Add to group:" ) );
    tabSearch->changeTab( tab, i18n( "&Add contact" ) );
}

#include "yahoosearchbase.moc"
