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

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

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


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

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

    LocationInfoLayout->addWidget( edtZip, 4, 1 );

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

    LocationInfoLayout->addWidget( edtState, 3, 1 );

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

    LocationInfoLayout->addWidget( edtCountry, 5, 1 );

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

    LocationInfoLayout->addWidget( edtCity, 2, 1 );

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

    LocationInfoLayout->addWidget( TextLabel12, 2, 0 );

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

    LocationInfoLayout->addWidget( TextLabel14, 4, 0 );

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

    LocationInfoLayout->addWidget( TextLabel15, 5, 0 );

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

    LocationInfoLayout->addWidget( TextLabel13, 3, 0 );

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

    LocationInfoLayout->addWidget( TextLabel11, 0, 0 );

    edtExt = new QMultiLineEdit( this, "edtExt" );

    LocationInfoLayout->addWidget( edtExt, 1, 1 );

    edtStreet = new QMultiLineEdit( this, "edtStreet" );

    LocationInfoLayout->addWidget( edtStreet, 0, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    LocationInfoLayout->addItem( spacer, 6, 1 );
    languageChange();
    resize( QSize(409, 283).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void JabberHomeInfoBase::languageChange()
{
    setProperty( "caption", i18n( "Form2" ) );
    TextLabel12->setProperty( "text", i18n( "City:" ) );
    TextLabel14->setProperty( "text", i18n( "Zip code:" ) );
    TextLabel15->setProperty( "text", i18n( "Country:" ) );
    TextLabel13->setProperty( "text", i18n( "State:" ) );
    TextLabel11->setProperty( "text", i18n( "Address:" ) );
}

#include "jabberhomeinfobase.moc"
