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

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

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    groupIPConfig = new TQGroupBox( this, "groupIPConfig" );
    groupIPConfig->setCheckable( true );
    groupIPConfig->setChecked( false );
    groupIPConfig->setColumnLayout(0, TQt::Vertical );
    groupIPConfig->layout()->setSpacing( 6 );
    groupIPConfig->layout()->setMargin( 11 );
    groupIPConfigLayout = new TQGridLayout( groupIPConfig->layout() );
    groupIPConfigLayout->setAlignment( TQt::AlignTop );

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

    groupIPConfigLayout->addWidget( textLabel1, 3, 0 );

    textLabel2_2 = new TQLabel( groupIPConfig, "textLabel2_2" );

    groupIPConfigLayout->addWidget( textLabel2_2, 4, 0 );

    textLabel2 = new TQLabel( groupIPConfig, "textLabel2" );

    groupIPConfigLayout->addWidget( textLabel2, 0, 0 );

    txtIP = new TQLineEdit( groupIPConfig, "txtIP" );

    groupIPConfigLayout->addWidget( txtIP, 0, 1 );

    txtDNSAddresses = new TQLineEdit( groupIPConfig, "txtDNSAddresses" );

    groupIPConfigLayout->addWidget( txtDNSAddresses, 3, 1 );

    txtDNSSearch = new TQLineEdit( groupIPConfig, "txtDNSSearch" );

    groupIPConfigLayout->addWidget( txtDNSSearch, 4, 1 );

    textLabel2_3 = new TQLabel( groupIPConfig, "textLabel2_3" );

    groupIPConfigLayout->addWidget( textLabel2_3, 1, 0 );

    txtNetmask = new TQLineEdit( groupIPConfig, "txtNetmask" );

    groupIPConfigLayout->addWidget( txtNetmask, 1, 1 );

    textLabel1_2 = new TQLabel( groupIPConfig, "textLabel1_2" );

    groupIPConfigLayout->addWidget( textLabel1_2, 2, 0 );

    txtGateway = new TQLineEdit( groupIPConfig, "txtGateway" );

    groupIPConfigLayout->addWidget( txtGateway, 2, 1 );

    ConnectionSettingIPv4WidgetLayout->addWidget( groupIPConfig, 0, 0 );
    languageChange();
    resize( TQSize(534, 330).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( txtIP, txtNetmask );
    setTabOrder( txtNetmask, txtGateway );
    setTabOrder( txtGateway, txtDNSAddresses );
    setTabOrder( txtDNSAddresses, txtDNSSearch );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConnectionSettingIPv4Widget::languageChange()
{
    setCaption( tr2i18n( "Form3" ) );
    groupIPConfig->setTitle( tr2i18n( "Use manual IP configuration" ) );
    textLabel1->setText( tr2i18n( "DNS Addresses:" ) );
    textLabel2_2->setText( tr2i18n( "DNS Search:" ) );
    textLabel2->setText( tr2i18n( "IP Address:" ) );
    textLabel2_3->setText( tr2i18n( "Netmask:" ) );
    textLabel1_2->setText( tr2i18n( "Gateway:" ) );
}

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

TQMetaObject *ConnectionSettingIPv4Widget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ConnectionSettingIPv4Widget( "ConnectionSettingIPv4Widget", &ConnectionSettingIPv4Widget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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