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

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

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


/* 
 *  Constructs a ConnectWndBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
ConnectWndBase::ConnectWndBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_connectwndbase )
{
    if ( !name )
	setName( "Form3" );
    QFont f( font() );
    setFont( f ); 
    Form3Layout = new QVBoxLayout( this, 11, 6, "Form3Layout"); 
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Form3Layout->addItem( spacer );

    lblConnect = new QLabel( this, "lblConnect" );
    lblConnect->setProperty( "alignment", int( QLabel::AlignCenter ) );
    Form3Layout->addWidget( lblConnect );

    Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout2->addItem( spacer_2 );

    lblMovie = new QLabel( this, "lblMovie" );
    lblMovie->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, lblMovie->sizePolicy().hasHeightForWidth() ) );
    lblMovie->setProperty( "minimumSize", QSize( 60, 60 ) );
    Layout2->addWidget( lblMovie );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout2->addItem( spacer_3 );
    Form3Layout->addLayout( Layout2 );

    lblComplete = new QLabel( this, "lblComplete" );
    lblComplete->setProperty( "alignment", int( QLabel::AlignCenter ) );
    Form3Layout->addWidget( lblComplete );

    lblNext = new QLabel( this, "lblNext" );
    lblNext->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
    Form3Layout->addWidget( lblNext );

    frmError = new QFrame( this, "frmError" );
    frmError->setProperty( "frameShape", "StyledPanel" );
    frmError->setProperty( "frameShadow", "Sunken" );
    frmErrorLayout = new QVBoxLayout( frmError, 11, 6, "frmErrorLayout"); 

    lblError = new QLabel( frmError, "lblError" );
    QFont lblError_font(  lblError->font() );
    lblError_font.setBold( TRUE );
    lblError->setFont( lblError_font ); 
    lblError->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignCenter ) );
    frmErrorLayout->addWidget( lblError );
    Form3Layout->addWidget( frmError );
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Form3Layout->addItem( spacer_4 );
    languageChange();
    resize( QSize(304, 284).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConnectWndBase::languageChange()
{
    setProperty( "caption", i18n( "Form3" ) );
    lblConnect->setProperty( "text", i18n( "Connecting" ) );
    lblMovie->setProperty( "text", QString::null );
    lblComplete->setProperty( "text", i18n( "Complete" ) );
    lblNext->setProperty( "text", i18n( "If you want to add connection press button \" Next\".\n"
"You can add connection later using connection manager" ) );
    lblError->setProperty( "text", QString::null );
}

#include "connectwndbase.moc"
