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

/****************************************************************************
** Form implementation generated from reading ui file 'connection_setting_ppp.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_ppp.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqcheckbox.h>
#include <ntqspinbox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    layout9 = new TQGridLayout( 0, 1, 1, 0, 6, "layout9"); 

    mRequireMppe128 = new TQCheckBox( this, "mRequireMppe128" );

    layout9->addWidget( mRequireMppe128, 3, 1 );
    spacer6 = new TQSpacerItem( 20, 50, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout9->addMultiCell( spacer6, 5, 6, 2, 2 );

    layout11 = new TQHBoxLayout( 0, 0, 6, "layout11"); 

    mLcpEchoInterval = new TQSpinBox( this, "mLcpEchoInterval" );
    layout11->addWidget( mLcpEchoInterval );

    textLabel11 = new TQLabel( this, "textLabel11" );
    layout11->addWidget( textLabel11 );

    layout9->addLayout( layout11, 4, 2 );

    layout12 = new TQHBoxLayout( 0, 0, 6, "layout12"); 

    mLcpEchoFailure = new TQSpinBox( this, "mLcpEchoFailure" );
    layout12->addWidget( mLcpEchoFailure );

    textLabel10 = new TQLabel( this, "textLabel10" );
    layout12->addWidget( textLabel10 );

    layout9->addLayout( layout12, 3, 2 );

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

    mBaudRate = new TQSpinBox( this, "mBaudRate" );
    layout15->addWidget( mBaudRate );

    textLabel7 = new TQLabel( this, "textLabel7" );
    layout15->addWidget( textLabel7 );

    layout9->addLayout( layout15, 0, 2 );

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

    mMtu = new TQSpinBox( this, "mMtu" );
    layout13->addWidget( mMtu );

    textLabel9 = new TQLabel( this, "textLabel9" );
    layout13->addWidget( textLabel9 );

    layout9->addLayout( layout13, 2, 2 );

    mRefusePap = new TQCheckBox( this, "mRefusePap" );

    layout9->addWidget( mRefusePap, 2, 0 );

    mNoAuth = new TQCheckBox( this, "mNoAuth" );

    layout9->addWidget( mNoAuth, 0, 0 );

    mNoVjComp = new TQCheckBox( this, "mNoVjComp" );

    layout9->addWidget( mNoVjComp, 1, 1 );

    mRefuseMschap = new TQCheckBox( this, "mRefuseMschap" );

    layout9->addWidget( mRefuseMschap, 4, 0 );

    layout14 = new TQHBoxLayout( 0, 0, 6, "layout14"); 

    mMru = new TQSpinBox( this, "mMru" );
    layout14->addWidget( mMru );

    textLabel8 = new TQLabel( this, "textLabel8" );
    layout14->addWidget( textLabel8 );

    layout9->addLayout( layout14, 1, 2 );

    mRequireMppe = new TQCheckBox( this, "mRequireMppe" );

    layout9->addWidget( mRequireMppe, 2, 1 );

    mRefuseMschapV2 = new TQCheckBox( this, "mRefuseMschapV2" );

    layout9->addWidget( mRefuseMschapV2, 5, 0 );

    mNoBsd = new TQCheckBox( this, "mNoBsd" );

    layout9->addWidget( mNoBsd, 6, 0 );

    mStatefulMppe = new TQCheckBox( this, "mStatefulMppe" );

    layout9->addWidget( mStatefulMppe, 4, 1 );

    mCrtscts = new TQCheckBox( this, "mCrtscts" );

    layout9->addWidget( mCrtscts, 6, 1 );

    mNoDeflate = new TQCheckBox( this, "mNoDeflate" );

    layout9->addWidget( mNoDeflate, 0, 1 );

    mRefuseChap = new TQCheckBox( this, "mRefuseChap" );

    layout9->addWidget( mRefuseChap, 3, 0 );

    mRefuseEap = new TQCheckBox( this, "mRefuseEap" );

    layout9->addWidget( mRefuseEap, 1, 0 );
    ConnectionSettingPppWidgetLayout->addLayout( layout9 );
    spacer2 = new TQSpacerItem( 20, 41, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    ConnectionSettingPppWidgetLayout->addItem( spacer2 );
    languageChange();
    resize( TQSize(472, 284).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( mNoAuth, mRefuseEap );
    setTabOrder( mRefuseEap, mRefusePap );
    setTabOrder( mRefusePap, mRefuseChap );
    setTabOrder( mRefuseChap, mRefuseMschap );
    setTabOrder( mRefuseMschap, mRefuseMschapV2 );
    setTabOrder( mRefuseMschapV2, mNoBsd );
    setTabOrder( mNoBsd, mNoDeflate );
    setTabOrder( mNoDeflate, mNoVjComp );
    setTabOrder( mNoVjComp, mRequireMppe );
    setTabOrder( mRequireMppe, mRequireMppe128 );
    setTabOrder( mRequireMppe128, mStatefulMppe );
    setTabOrder( mStatefulMppe, mCrtscts );
    setTabOrder( mCrtscts, mBaudRate );
    setTabOrder( mBaudRate, mMru );
    setTabOrder( mMru, mMtu );
    setTabOrder( mMtu, mLcpEchoFailure );
    setTabOrder( mLcpEchoFailure, mLcpEchoInterval );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConnectionSettingPppWidget::languageChange()
{
    setCaption( tr2i18n( "Form2" ) );
    mRequireMppe128->setText( tr2i18n( "Require MPPE128" ) );
    textLabel11->setText( tr2i18n( "LCP Echo Interval" ) );
    textLabel10->setText( tr2i18n( "LCP Echo Failure" ) );
    textLabel7->setText( tr2i18n( "Baud rate" ) );
    textLabel9->setText( tr2i18n( "MTU" ) );
    mRefusePap->setText( tr2i18n( "Refuse PAP" ) );
    mNoAuth->setText( tr2i18n( "No Authorization" ) );
    mNoVjComp->setText( tr2i18n( "No VJ Compression" ) );
    mRefuseMschap->setText( tr2i18n( "Refuse MSCHAP" ) );
    textLabel8->setText( tr2i18n( "MRU" ) );
    mRequireMppe->setText( tr2i18n( "Require MPPE" ) );
    mRefuseMschapV2->setText( tr2i18n( "Refuse MSCHAPv2" ) );
    mNoBsd->setText( tr2i18n( "No BSD" ) );
    mStatefulMppe->setText( tr2i18n( "Stateful MPPE" ) );
    mCrtscts->setText( tr2i18n( "CRTSCTS" ) );
    mNoDeflate->setText( tr2i18n( "No Deflate" ) );
    mRefuseChap->setText( tr2i18n( "Refuse CHAP" ) );
    mRefuseEap->setText( tr2i18n( "Refuse EAP" ) );
}

/****************************************************************************
** ConnectionSettingPppWidget meta object code from reading C++ file 'connection_setting_ppp.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_ppp.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 *ConnectionSettingPppWidget::className() const
{
    return "ConnectionSettingPppWidget";
}

TQMetaObject *ConnectionSettingPppWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ConnectionSettingPppWidget( "ConnectionSettingPppWidget", &ConnectionSettingPppWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* ConnectionSettingPppWidget::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(
	"ConnectionSettingPppWidget", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ConnectionSettingPppWidget.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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