/****************************************************************************
** Form implementation generated from reading ui file 'initialviewinterface.ui'
**
** Created: Fri Nov 1 21:46:11 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "initialviewinterface.h"

#include <qvariant.h>
#include <kcombobox.h>
#include <klineedit.h>
#include <kpassdlg.h>
#include <qcheckbox.h>
#include <qframe.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qtoolbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include <klocale.h>

#include "initialviewinterface.ui.h"

static const char* const image1_data[] = { 
"16 16 89 2",
"Qt c None",
"#h c #000000",
"#u c #000400",
"## c #007dee",
".3 c #009900",
".Y c #009d00",
".# c #00a1f6",
".X c #00ff00",
".n c #08a1f6",
".H c #08a5f6",
"#v c #10a1e6",
"#f c #10a5f6",
"#k c #10aaf6",
"#s c #181800",
".a c #18aaf6",
"#a c #29aef6",
".m c #31b2f6",
"#p c #393000",
"#g c #39b2f6",
"#b c #39b6f6",
"#q c #419dac",
".M c #41b6f6",
".l c #4abaf6",
".r c #52baf6",
".b c #52bef6",
".s c #5aaecd",
".f c #5abef6",
".k c #62c2f6",
".e c #6ac2f6",
".O c #737983",
".C c #73c6ee",
".c c #73c6f6",
".N c #7b7983",
".d c #7bcaf6",
"#. c #7be2ff",
".j c #83caf6",
".4 c #83cef6",
"#e c #83e2ff",
".q c #8bcef6",
".i c #94d2f6",
".R c #9cd2f6",
".I c #9cd6f6",
".0 c #a4c6cd",
".B c #acd6f6",
".h c #acdaf6",
".Q c #b4daf6",
".g c #bddef6",
".t c #c5a541",
".P c #c5def6",
".w c #c5e2f6",
"#n c #cda139",
".D c #cdaa4a",
".A c #cde2f6",
"#t c #d59d29",
".5 c #d5aa41",
".o c #d5e6f6",
".S c #deae4a",
".x c #dee6f6",
".p c #deeaf6",
".z c #e6eaf6",
"#w c #ee9d08",
".J c #eea529",
"#l c #f69d08",
".8 c #f6a110",
".y c #f6f2f6",
"#c c #ff9900",
".1 c #ff9d00",
"#i c #ff9d08",
"#r c #ffa100",
"#m c #ffa500",
"#o c #ffaa00",
".6 c #ffae00",
".T c #ffb200",
".E c #ffb600",
"#j c #ffba00",
".u c #ffba08",
"#d c #ffbe00",
".v c #ffc200",
".9 c #ffca00",
".7 c #ffce00",
".2 c #ffd200",
".G c #ffd600",
".F c #ffda00",
".L c #ffde00",
".W c #ffe200",
".K c #ffe600",
".V c #ffea00",
".U c #ffee00",
".Z c #ffffff",
"QtQtQtQt.#.a.b.c.d.e.b.fQtQtQtQt",
"QtQt.#.#.b.g.g.h.i.j.k.l.m.cQtQt",
"Qt.#.n.c.o.p.p.g.h.q.c.r.s.t.u.v",
"Qt.#.l.w.x.y.z.A.B.i.C.D.E.F.F.G",
".#.H.I.g.p.z.p.w.h.q.J.v.K.K.K.L",
".#.M.i.N.O.N.P.Q.R.S.T.L.K.U.V.W",
".#.b.q.X.Y.Z.N.R.0.1.2.F.K.V.V.L",
".#.b.e.X.3.Z.O.4.5.6.7.N.O.N.L.F",
".#.M.f.3.Y.Z.N.e.8.E.9#.##.Z.N.2",
".##a#b.l.r.f.r.r#c.E#d#e##.Z.O.9",
".##f#a.m#b#g#h.m#i.6#j####.Z.N#d",
".#.#.n#k.a#h.a.a#l#m.6.E.E#j.E.E",
"Qt.#.##h#h.#.#.##n.1#m#o.6.6#p#o",
"Qt.#.#.#.#.#.#.##q#c#c#r#r#s#r#r",
"QtQt.#.#.#.#.#.#.##t#c#h#u#c#c#c",
"QtQtQtQt.#.#.#.#.##v#w#c#c#c#c#c"};


/* 
 *  Constructs a InitialViewInterface which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
InitialViewInterface::InitialViewInterface( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    QPixmap image1( ( const char** ) image1_data );
    if ( !name )
	setName( "InitialViewInterface" );
    resize( 334, 734 ); 
    setPaletteBackgroundColor( QColor( 85, 170, 255 ) );
    setCaption( "InitialViewInterface" );

    Layout12 = new QGridLayout( this, 1, 1, 0, 6, "Layout12");

    Layout26 = new QGridLayout( 0, 1, 1, 0, 6, "Layout26");
    QSpacerItem* spacer = new QSpacerItem( 20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed );
    Layout26->addItem( spacer, 0, 1 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed );
    Layout26->addItem( spacer_2, 2, 1 );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout26->addItem( spacer_3, 1, 2 );

    PixmapLabel3 = new QLabel( this, "PixmapLabel3" );
    PixmapLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PixmapLabel3->sizePolicy().hasHeightForWidth() ) );
    PixmapLabel3->setScaledContents( FALSE );
    PixmapLabel3->setAlignment( int( QLabel::AlignVCenter ) );

    Layout26->addWidget( PixmapLabel3, 1, 1 );
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout26->addItem( spacer_4, 1, 0 );

    Layout12->addLayout( Layout26, 0, 1 );
    QSpacerItem* spacer_5 = new QSpacerItem( 16, 16, QSizePolicy::Minimum, QSizePolicy::Fixed );
    Layout12->addItem( spacer_5, 2, 1 );
    QSpacerItem* spacer_6 = new QSpacerItem( 16, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
    Layout12->addItem( spacer_6, 1, 2 );

    Frame5 = new QFrame( this, "Frame5" );
    Frame5->setMinimumSize( QSize( 0, 0 ) );
    Frame5->setPaletteBackgroundColor( QColor( 255, 255, 255 ) );
    Frame5->setFrameShape( QFrame::StyledPanel );
    Frame5->setFrameShadow( QFrame::Sunken );
    Frame5->setLineWidth( 2 );
    Frame5->setMargin( 6 );

    Layout10 = new QGridLayout( Frame5, 1, 1, 6, 6, "Layout10");

    profileComboBox_ = new KComboBox( FALSE, Frame5, "profileComboBox_" );
    profileComboBox_->setPaletteForegroundColor( QColor( 0, 0, 0 ) );

    Layout10->addMultiCellWidget( profileComboBox_, 1, 1, 0, 2 );

    passwordEdit_ = new KPasswordEdit( Frame5, "passwordEdit_" );

    Layout10->addMultiCellWidget( passwordEdit_, 7, 7, 0, 2 );
    QSpacerItem* spacer_7 = new QSpacerItem( 87, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout10->addItem( spacer_7, 9, 0 );
    QSpacerItem* spacer_8 = new QSpacerItem( 16, 30, QSizePolicy::Minimum, QSizePolicy::Preferred );
    Layout10->addItem( spacer_8, 2, 1 );
    QSpacerItem* spacer_9 = new QSpacerItem( 87, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout10->addItem( spacer_9, 9, 2 );

    ToolButton1 = new QToolButton( Frame5, "ToolButton1" );
    ToolButton1->setPaletteForegroundColor( QColor( 0, 0, 0 ) );
    ToolButton1->setText( "");
    ToolButton1->setPixmap( image1 );
    ToolButton1->setUsesTextLabel( TRUE );
    ToolButton1->setTextLabel( i18n( "Connect" ) );

    Layout10->addWidget( ToolButton1, 9, 1 );
    QSpacerItem* spacer_10 = new QSpacerItem( 0, 41, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout10->addItem( spacer_10, 10, 1 );

    TextLabel2_2 = new QLabel( Frame5, "TextLabel2_2" );
    TextLabel2_2->setPaletteForegroundColor( QColor( 0, 0, 0 ) );
    TextLabel2_2->setPaletteBackgroundColor( QColor( 255, 255, 255 ) );
    TextLabel2_2->setText( i18n( "Login with a saved profile:" ) );

    Layout10->addMultiCellWidget( TextLabel2_2, 0, 0, 0, 2 );

    rememberCheckBox_ = new QCheckBox( Frame5, "rememberCheckBox_" );
    rememberCheckBox_->setPaletteForegroundColor( QColor( 0, 0, 0 ) );
    rememberCheckBox_->setText( i18n( "Remember this profile" ) );

    Layout10->addMultiCellWidget( rememberCheckBox_, 8, 8, 0, 2 );

    TextLabel3 = new QLabel( Frame5, "TextLabel3" );
    TextLabel3->setPaletteForegroundColor( QColor( 0, 0, 0 ) );
    TextLabel3->setText( i18n( "Password:" ) );

    Layout10->addMultiCellWidget( TextLabel3, 6, 6, 0, 2 );

    TextLabel2 = new QLabel( Frame5, "TextLabel2" );
    TextLabel2->setPaletteForegroundColor( QColor( 0, 0, 0 ) );
    TextLabel2->setText( i18n( "Email address:" ) );

    Layout10->addMultiCellWidget( TextLabel2, 4, 4, 0, 2 );

    handleEdit_ = new KLineEdit( Frame5, "handleEdit_" );

    Layout10->addMultiCellWidget( handleEdit_, 5, 5, 0, 2 );

    TextLabel3_2 = new QLabel( Frame5, "TextLabel3_2" );
    TextLabel3_2->setPaletteForegroundColor( QColor( 0, 0, 0 ) );
    TextLabel3_2->setText( i18n( "Or enter your login information:" ) );

    Layout10->addMultiCellWidget( TextLabel3_2, 3, 3, 0, 2 );

    Layout12->addWidget( Frame5, 1, 1 );
    QSpacerItem* spacer_11 = new QSpacerItem( 16, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
    Layout12->addItem( spacer_11, 1, 0 );

    // signals and slots connections
    connect( profileComboBox_, SIGNAL( activated(int) ), this, SLOT( profileSelected(int) ) );
    connect( ToolButton1, SIGNAL( clicked() ), this, SLOT( connectToMsn() ) );

    // tab order
    setTabOrder( profileComboBox_, handleEdit_ );
    setTabOrder( handleEdit_, passwordEdit_ );
    setTabOrder( passwordEdit_, rememberCheckBox_ );
}

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


#include "initialviewinterface.moc"
