#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'connection_setting_wireless_security_eap.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "connection_setting_wireless_security_eap.h"

#include <ntqvariant.h>
#include <kpassdlg.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqlineedit.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a ConnectionSettingWirelessSecurityEAP as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
ConnectionSettingWirelessSecurityEAP::ConnectionSettingWirelessSecurityEAP( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "ConnectionSettingWirelessSecurityEAP" );
    ConnectionSettingWirelessSecurityEAPLayout = new TQGridLayout( this, 1, 1, 0, 6, "ConnectionSettingWirelessSecurityEAPLayout"); 

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    textLabel8 = new TQLabel( groupBox2, "textLabel8" );

    groupBox2Layout->addWidget( textLabel8, 0, 0 );

    textLabel9 = new TQLabel( groupBox2, "textLabel9" );

    groupBox2Layout->addWidget( textLabel9, 1, 0 );

    cboMethod = new TQComboBox( false, groupBox2, "cboMethod" );

    groupBox2Layout->addWidget( cboMethod, 0, 1 );

    txtIdentity = new TQLineEdit( groupBox2, "txtIdentity" );

    groupBox2Layout->addWidget( txtIdentity, 1, 1 );

    txtAnonIdentity = new TQLineEdit( groupBox2, "txtAnonIdentity" );

    groupBox2Layout->addWidget( txtAnonIdentity, 2, 1 );

    textLabel10 = new TQLabel( groupBox2, "textLabel10" );

    groupBox2Layout->addWidget( textLabel10, 2, 0 );

    textLabel11 = new TQLabel( groupBox2, "textLabel11" );

    groupBox2Layout->addWidget( textLabel11, 3, 0 );

    txtPassword = new KPasswordEdit( groupBox2, "txtPassword" );

    groupBox2Layout->addWidget( txtPassword, 3, 1 );

    textLabel16 = new TQLabel( groupBox2, "textLabel16" );

    groupBox2Layout->addWidget( textLabel16, 4, 0 );

    txtPrivateSecretKey = new KPasswordEdit( groupBox2, "txtPrivateSecretKey" );

    groupBox2Layout->addWidget( txtPrivateSecretKey, 4, 1 );

    textLabel12 = new TQLabel( groupBox2, "textLabel12" );

    groupBox2Layout->addWidget( textLabel12, 0, 2 );

    kURLClientCert = new KURLRequester( groupBox2, "kURLClientCert" );

    groupBox2Layout->addWidget( kURLClientCert, 0, 3 );

    kURLPrivateKey = new KURLRequester( groupBox2, "kURLPrivateKey" );

    groupBox2Layout->addWidget( kURLPrivateKey, 1, 3 );

    textLabel15 = new TQLabel( groupBox2, "textLabel15" );

    groupBox2Layout->addWidget( textLabel15, 1, 2 );

    textLabel14 = new TQLabel( groupBox2, "textLabel14" );

    groupBox2Layout->addWidget( textLabel14, 3, 2 );

    kURLCACert = new KURLRequester( groupBox2, "kURLCACert" );

    groupBox2Layout->addWidget( kURLCACert, 3, 3 );

    textLabel1 = new TQLabel( groupBox2, "textLabel1" );

    groupBox2Layout->addWidget( textLabel1, 2, 2 );

    chkCAStore = new TQCheckBox( groupBox2, "chkCAStore" );

    groupBox2Layout->addWidget( chkCAStore, 2, 3 );

    ConnectionSettingWirelessSecurityEAPLayout->addWidget( groupBox2, 0, 0 );
    languageChange();
    resize( TQSize(583, 174).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConnectionSettingWirelessSecurityEAP::languageChange()
{
    setCaption( tr2i18n( "Form2" ) );
    groupBox2->setTitle( tr2i18n( "EAP" ) );
    textLabel8->setText( tr2i18n( "Method:" ) );
    textLabel9->setText( tr2i18n( "Identity:" ) );
    textLabel10->setText( tr2i18n( "Anonymous Identity:" ) );
    textLabel11->setText( tr2i18n( "Password:" ) );
    textLabel16->setText( tr2i18n( "Private Secret Key:" ) );
    textLabel12->setText( tr2i18n( "Client Certificate:" ) );
    textLabel15->setText( tr2i18n( "Private Keyfile:" ) );
    textLabel14->setText( tr2i18n( "CA Certificate:" ) );
    textLabel1->setText( tr2i18n( "Use System CA Certificates" ) );
    chkCAStore->setText( TQString::null );
}

/****************************************************************************
** ConnectionSettingWirelessSecurityEAP meta object code from reading C++ file 'connection_setting_wireless_security_eap.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "connection_setting_wireless_security_eap.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *ConnectionSettingWirelessSecurityEAP::className() const
{
    return "ConnectionSettingWirelessSecurityEAP";
}

TQMetaObject *ConnectionSettingWirelessSecurityEAP::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ConnectionSettingWirelessSecurityEAP( "ConnectionSettingWirelessSecurityEAP", &ConnectionSettingWirelessSecurityEAP::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString ConnectionSettingWirelessSecurityEAP::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "ConnectionSettingWirelessSecurityEAP", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString ConnectionSettingWirelessSecurityEAP::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "ConnectionSettingWirelessSecurityEAP", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* ConnectionSettingWirelessSecurityEAP::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"ConnectionSettingWirelessSecurityEAP", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ConnectionSettingWirelessSecurityEAP.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* ConnectionSettingWirelessSecurityEAP::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "ConnectionSettingWirelessSecurityEAP" ) )
	return this;
    return TQWidget::tqt_cast( clname );
}

bool ConnectionSettingWirelessSecurityEAP::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool ConnectionSettingWirelessSecurityEAP::tqt_emit( int _id, TQUObject* _o )
{
    return TQWidget::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool ConnectionSettingWirelessSecurityEAP::tqt_property( int id, int f, TQVariant* v)
{
    return TQWidget::tqt_property( id, f, v);
}

bool ConnectionSettingWirelessSecurityEAP::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
