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

#include <qvariant.h>
#include <qwidget.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a SearchBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 *
 *  The wizard will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal wizard.
 */
SearchBase::SearchBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QWizard( parent, name, modal, fl )
{
    if ( !name )
	setName( "Search" );

    firstPage = new QWidget( this, "firstPage" );
    firstPageLayout = new QGridLayout( firstPage, 1, 1, 11, 6, "firstPageLayout"); 

    TextLabel1 = new QLabel( firstPage, "TextLabel1" );

    firstPageLayout->addMultiCellWidget( TextLabel1, 0, 0, 0, 2 );

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

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

    cmbType = new QComboBox( FALSE, firstPage, "cmbType" );

    firstPageLayout->addWidget( cmbType, 1, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    firstPageLayout->addItem( spacer, 1, 2 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    firstPageLayout->addItem( spacer_2, 2, 1 );
    addPage( firstPage, QString("") );
    languageChange();
    resize( QSize(382, 265).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SearchBase::languageChange()
{
    setProperty( "caption", i18n( "Search / Add contact" ) );
    TextLabel1->setProperty( "text", i18n( "Choose type of contact which you want to find or add:" ) );
    TextLabel2->setProperty( "text", i18n( "Contact type:" ) );
    setTitle( firstPage, i18n( "Choose contact type" ) );
}

#include "searchbase.moc"
