#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './passworddialogbase.ui'
**
** Created: 木  7月 19 22:29:29 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.5   edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "passworddialogbase.h"

#include <qvariant.h>
#include <kpassdlg.h>
#include <kpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "kpassdlg.h"
#include "kpushbutton.h"
static const unsigned char img0_passworddialogbase[] = { 
    0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20,
    0x08, 0x06, 0x00, 0x00, 0x00, 0x73, 0x7a, 0x7a, 0xf4, 0x00, 0x00, 0x01,
    0x9f, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xc5, 0x56, 0xc1, 0x91, 0x83,
    0x30, 0x0c, 0x5c, 0x65, 0x28, 0x24, 0x7d, 0xf0, 0xa3, 0x91, 0x6b, 0xe4,
    0x7c, 0x8c, 0xcf, 0x34, 0x92, 0x2b, 0x84, 0x1f, 0xd4, 0x91, 0x4e, 0x74,
    0x0f, 0x62, 0x1f, 0x18, 0x5b, 0x16, 0x66, 0xb8, 0xec, 0x27, 0xd1, 0x64,
    0x25, 0xad, 0xd6, 0x8a, 0x81, 0x18, 0xef, 0x45, 0x13, 0xbe, 0x31, 0xd2,
    0x5a, 0x08, 0x44, 0xe0, 0x4b, 0x74, 0x32, 0x88, 0x6e, 0x62, 0xf3, 0xd7,
    0x6f, 0x0c, 0xba, 0xa2, 0x3f, 0x00, 0xe0, 0xa6, 0x62, 0x31, 0x70, 0x95,
    0x88, 0xa6, 0x4c, 0x39, 0x0f, 0x66, 0x82, 0xd7, 0x4f, 0x91, 0xd9, 0x3a,
    0x07, 0x00, 0x08, 0x87, 0x04, 0x66, 0x02, 0x83, 0x92, 0x2e, 0xad, 0x9b,
    0x2f, 0x65, 0xb6, 0x1c, 0xbd, 0x00, 0xa1, 0xb9, 0xd4, 0xa0, 0x04, 0xbd,
    0x80, 0x8a, 0x15, 0x88, 0xc5, 0x9d, 0x13, 0x70, 0x11, 0x74, 0x02, 0x68,
    0xbf, 0x3c, 0x25, 0xe4, 0xa6, 0x4f, 0x2e, 0x21, 0x91, 0x50, 0xbc, 0xf6,
    0xdf, 0xa7, 0xcc, 0x23, 0x5e, 0x54, 0x31, 0xb0, 0x5f, 0x20, 0xed, 0xd4,
    0x9a, 0xb3, 0x4e, 0xd5, 0x63, 0x10, 0x35, 0x12, 0x41, 0x0b, 0x22, 0x2e,
    0x6e, 0x7f, 0xae, 0xf6, 0xdb, 0x97, 0xf0, 0xf4, 0x4d, 0xc8, 0x1c, 0xae,
    0xb8, 0x2c, 0x24, 0x67, 0xab, 0x04, 0x84, 0xa6, 0x7f, 0x1d, 0xaa, 0x9a,
    0x1f, 0x16, 0xa0, 0x99, 0xf6, 0x48, 0x73, 0xb5, 0x80, 0xa3, 0x8d, 0x43,
    0x1e, 0xa8, 0x28, 0xe2, 0xd2, 0xab, 0x58, 0x03, 0xd1, 0x81, 0x9a, 0x05,
    0xbb, 0xee, 0x61, 0xa4, 0x68, 0x5e, 0x83, 0xac, 0x80, 0xd2, 0xf4, 0xea,
    0x5b, 0xb2, 0xe0, 0x48, 0x03, 0x00, 0xce, 0x0e, 0xe8, 0xee, 0x1d, 0xc6,
    0xe7, 0x18, 0x3e, 0x25, 0x0c, 0xd6, 0x61, 0xba, 0xcf, 0x1b, 0x7e, 0xc8,
    0xfb, 0xda, 0x8b, 0xf6, 0x22, 0x06, 0xeb, 0x36, 0x7c, 0x7c, 0xac, 0x1c,
    0x18, 0x9f, 0x23, 0x3a, 0x44, 0xcd, 0x05, 0xf1, 0x31, 0xdf, 0xc7, 0x12,
    0x62, 0x3e, 0xb0, 0x12, 0xd0, 0xdd, 0x3b, 0x8c, 0x78, 0x29, 0x13, 0x30,
    0x3f, 0xa6, 0x24, 0xdf, 0xc7, 0xf3, 0xcf, 0x94, 0x7d, 0x7d, 0x8b, 0xf9,
    0x41, 0xc0, 0x91, 0x49, 0x72, 0x93, 0xaf, 0xe3, 0xf9, 0x7b, 0xc2, 0x60,
    0xdd, 0x26, 0xcf, 0xc7, 0x31, 0xff, 0x96, 0x52, 0x16, 0x26, 0x89, 0x10,
    0xce, 0x30, 0xc1, 0x4f, 0xc5, 0x83, 0x75, 0x20, 0x2c, 0x27, 0x69, 0x7a,
    0x03, 0xd3, 0x9b, 0x1d, 0x9f, 0x78, 0x29, 0xcc, 0xc1, 0x09, 0xfc, 0xed,
    0x40, 0x87, 0x0e, 0x6d, 0xdf, 0x26, 0x9d, 0x70, 0xd6, 0x25, 0xf9, 0xa9,
    0xd8, 0xf4, 0x26, 0x99, 0xff, 0xd9, 0x1b, 0xca, 0xee, 0x80, 0x8f, 0xa7,
    0xc7, 0xde, 0x09, 0xbc, 0x26, 0x6a, 0xfb, 0x36, 0x14, 0x97, 0x9c, 0x70,
    0xd1, 0x71, 0xf8, 0xfc, 0xe0, 0xc0, 0x6c, 0x27, 0x2e, 0x4d, 0x92, 0x73,
    0xe2, 0x0c, 0x18, 0xa0, 0xec, 0x0e, 0xa4, 0x9c, 0x70, 0xd6, 0x65, 0x1d,
    0xa9, 0x85, 0xf4, 0x3a, 0xfa, 0x2f, 0xf8, 0x05, 0x93, 0xf4, 0xf4, 0x90,
    0x3d, 0xfb, 0x44, 0xb9, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44,
    0xae, 0x42, 0x60, 0x82
};


/*
 *  Constructs a KIpMessengerPasswordDialogBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
KIpMessengerPasswordDialogBase::KIpMessengerPasswordDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    QImage img;
    img.loadFromData( img0_passworddialogbase, sizeof( img0_passworddialogbase ), "PNG" );
    image0 = img;
    if ( !name )
	setName( "KIpMessengerPasswordDialogBase" );
    setMinimumSize( QSize( 220, 50 ) );
    setMaximumSize( QSize( 220, 50 ) );
    setBaseSize( QSize( 220, 50 ) );
    setIcon( image0 );
    setModal( TRUE );

    m_PasswordInputbox = new KPasswordEdit( this, "m_PasswordInputbox" );
    m_PasswordInputbox->setGeometry( QRect( 10, 10, 110, 25 ) );

    m_UnlockButton = new KPushButton( this, "m_UnlockButton" );
    m_UnlockButton->setGeometry( QRect( 120, 10, 90, 30 ) );
    m_UnlockButton->setMinimumSize( QSize( 0, 0 ) );
    languageChange();
    resize( QSize(220, 50).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_UnlockButton, SIGNAL( clicked() ), this, SLOT( slotUnlockClicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIpMessengerPasswordDialogBase::languageChange()
{
    setCaption( tr2i18n( "Input Password" ) );
    m_UnlockButton->setText( tr2i18n( "&Unlock" ) );
    m_UnlockButton->setAccel( QKeySequence( tr2i18n( "Alt+U" ) ) );
}

void KIpMessengerPasswordDialogBase::slotUnlockClicked()
{
    qWarning( "KIpMessengerPasswordDialogBase::slotUnlockClicked(): Not implemented yet" );
}

#include "passworddialogbase.moc"
