#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/tluebke/kwlan/src/kfoundnewinterface.ui'
**
** Created: Mo Okt 9 21:42:42 2006
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.6   edited Aug 31 2005 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "kfoundnewinterface.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a KFoundNewInterface 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.
 */
KFoundNewInterface::KFoundNewInterface( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KFoundNewInterface" );
    setSizeGripEnabled( TRUE );
    KFoundNewInterfaceLayout = new QGridLayout( this, 1, 1, 11, 6, "KFoundNewInterfaceLayout"); 

    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
    Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout1->addItem( Horizontal_Spacing2 );

    buttonOk = new QPushButton( this, "buttonOk" );
    buttonOk->setAutoDefault( TRUE );
    buttonOk->setDefault( TRUE );
    Layout1->addWidget( buttonOk );

    buttonCancel = new QPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( TRUE );
    Layout1->addWidget( buttonCancel );

    KFoundNewInterfaceLayout->addLayout( Layout1, 4, 0 );

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

    KFoundNewInterfaceLayout->addWidget( textLabel1, 0, 0 );

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

    KFoundNewInterfaceLayout->addWidget( txtInterface, 1, 0 );

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

    KFoundNewInterfaceLayout->addWidget( textLabel3, 2, 0 );

    cbNeverShowAgain = new QCheckBox( this, "cbNeverShowAgain" );

    KFoundNewInterfaceLayout->addWidget( cbNeverShowAgain, 3, 0 );
    languageChange();
    resize( QSize(242, 148).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KFoundNewInterface::languageChange()
{
    setCaption( tr2i18n( "Kwlan" ) );
    buttonOk->setText( tr2i18n( "&Yes" ) );
    buttonOk->setAccel( QKeySequence( tr2i18n( "Alt+Y" ) ) );
    buttonCancel->setText( tr2i18n( "N&o" ) );
    buttonCancel->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );
    textLabel1->setText( tr2i18n( "Kwlan has found a new interface!" ) );
    txtInterface->setText( tr2i18n( "Interface" ) );
    textLabel3->setText( tr2i18n( "Would you like to configure it now?" ) );
    cbNeverShowAgain->setText( tr2i18n( "&Never show this dialog again" ) );
    cbNeverShowAgain->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
}

#include "kfoundnewinterface.moc"
