#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './startwin.ui'
**
** Created: Mon Sep 6 01:23:50 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.2.1   edited May 19 14:22 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "startwin.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <kpushbutton.h>
#include <qcheckbox.h>
#include <qframe.h>
#include <kcombobox.h>
#include <kpassdlg.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a Startwin as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
Startwin::Startwin( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "Startwin" );
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( QSize( 449, 234 ) );
    setBackgroundOrigin( QWidget::ParentOrigin );
    StartwinLayout = new QGridLayout( this, 1, 1, 11, 6, "StartwinLayout"); 

    layout25 = new QVBoxLayout( 0, 0, 6, "layout25"); 
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout25->addItem( spacer );

    pixmapLabel1 = new QLabel( this, "pixmapLabel1" );
    pixmapLabel1->setMaximumSize( QSize( 48, 48 ) );
    pixmapLabel1->setScaledContents( FALSE );
    pixmapLabel1->setAlignment( int( QLabel::AlignBottom | QLabel::AlignHCenter ) );
    layout25->addWidget( pixmapLabel1 );

    StartwinLayout->addLayout( layout25, 3, 0 );

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

    accountTypeTextLabel = new QLabel( this, "accountTypeTextLabel" );
    accountTypeTextLabel->setAlignment( int( QLabel::AlignCenter ) );
    layout35->addWidget( accountTypeTextLabel );

    clockTextLabel = new QLabel( this, "clockTextLabel" );
    clockTextLabel->setAlignment( int( QLabel::WordBreak | QLabel::AlignBottom | QLabel::AlignHCenter ) );
    layout35->addWidget( clockTextLabel );

    StartwinLayout->addLayout( layout35, 3, 1 );
    QSpacerItem* spacer_3 = new QSpacerItem( 61, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    StartwinLayout->addItem( spacer_3, 3, 2 );

    layout15 = new QVBoxLayout( 0, 0, 6, "layout15"); 

    statusTextLabel = new QLabel( this, "statusTextLabel" );
    statusTextLabel->setMinimumSize( QSize( 0, 0 ) );
    statusTextLabel->setAlignment( int( QLabel::AlignBottom | QLabel::AlignHCenter ) );
    layout15->addWidget( statusTextLabel );

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

    setupButton = new KPushButton( this, "setupButton" );
    setupButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, setupButton->sizePolicy().hasHeightForWidth() ) );
    layout14->addWidget( setupButton );

    connectButton = new KPushButton( this, "connectButton" );
    connectButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, connectButton->sizePolicy().hasHeightForWidth() ) );
    layout14->addWidget( connectButton );
    QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout14->addItem( spacer_5 );
    layout15->addLayout( layout14 );

    StartwinLayout->addMultiCellLayout( layout15, 3, 3, 3, 5 );

    layout13 = new QHBoxLayout( 0, 0, 6, "layout13"); 

    ipTextLabel = new QLabel( this, "ipTextLabel" );
    ipTextLabel->setAlignment( int( QLabel::AlignCenter ) );
    layout13->addWidget( ipTextLabel );
    QSpacerItem* spacer_6 = new QSpacerItem( 137, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout13->addItem( spacer_6 );

    logWindowCheckBox = new QCheckBox( this, "logWindowCheckBox" );
    logWindowCheckBox->setEnabled( TRUE );
    logWindowCheckBox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, logWindowCheckBox->sizePolicy().hasHeightForWidth() ) );
    logWindowCheckBox->setAutoMask( FALSE );
    layout13->addWidget( logWindowCheckBox );

    StartwinLayout->addMultiCellLayout( layout13, 2, 2, 0, 5 );

    line2 = new QFrame( this, "line2" );
    line2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, line2->sizePolicy().hasHeightForWidth() ) );
    line2->setFrameShape( QFrame::HLine );
    line2->setFrameShadow( QFrame::Sunken );
    line2->setFrameShape( QFrame::HLine );

    StartwinLayout->addMultiCellWidget( line2, 1, 1, 0, 5 );

    layout29 = new QGridLayout( 0, 1, 1, 0, 6, "layout29"); 

    connectionLabel = new QLabel( this, "connectionLabel" );

    layout29->addWidget( connectionLabel, 0, 0 );

    passwordTextLabel = new QLabel( this, "passwordTextLabel" );

    layout29->addWidget( passwordTextLabel, 2, 0 );

    usernameTextLabel = new QLabel( this, "usernameTextLabel" );

    layout29->addWidget( usernameTextLabel, 1, 0 );

    StartwinLayout->addMultiCellLayout( layout29, 0, 0, 0, 3 );

    layout28 = new QGridLayout( 0, 1, 1, 0, 6, "layout28"); 

    usernameLineEdit = new QLabel( this, "usernameLineEdit" );

    layout28->addWidget( usernameLineEdit, 1, 0 );

    connectionComboBox = new KComboBox( FALSE, this, "connectionComboBox" );
    connectionComboBox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, connectionComboBox->sizePolicy().hasHeightForWidth() ) );

    layout28->addWidget( connectionComboBox, 0, 0 );

    passwordLineEdit = new KPasswordEdit( this, "passwordLineEdit" );
    passwordLineEdit->setEnabled( FALSE );
    passwordLineEdit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, passwordLineEdit->sizePolicy().hasHeightForWidth() ) );

    layout28->addWidget( passwordLineEdit, 2, 0 );

    StartwinLayout->addLayout( layout28, 0, 5 );
    QSpacerItem* spacer_7 = new QSpacerItem( 47, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    StartwinLayout->addItem( spacer_7, 0, 4 );
    languageChange();
    resize( QSize(449, 234).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( connectionComboBox, logWindowCheckBox );
    setTabOrder( logWindowCheckBox, setupButton );
    setTabOrder( setupButton, connectButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Startwin::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    accountTypeTextLabel->setText( QString::null );
    clockTextLabel->setText( tr2i18n( "0:00:00" ) );
    statusTextLabel->setText( tr2i18n( "Disconnected" ) );
    setupButton->setText( tr2i18n( "Setup" ) );
    setupButton->setAccel( QKeySequence( QString::null ) );
    connectButton->setText( tr2i18n( "Connect" ) );
    connectButton->setAccel( QKeySequence( QString::null ) );
    ipTextLabel->setText( tr2i18n( "IP Address Is" ) );
    logWindowCheckBox->setText( tr2i18n( "Show Log Window" ) );
    logWindowCheckBox->setAccel( QKeySequence( QString::null ) );
    connectionLabel->setText( tr2i18n( "Choose your connection" ) );
    passwordTextLabel->setText( tr2i18n( "Password" ) );
    usernameTextLabel->setText( tr2i18n( "Username" ) );
    usernameLineEdit->setText( QString::null );
}

#include "startwin.moc"
