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

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

#include "kmyfirewallipv4adddresswidget.h"

#include <ntqvariant.h>
#include <knuminput.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    m_sb_from_1 = new KIntSpinBox( this, "m_sb_from_1" );
    m_sb_from_1->setEnabled( false );
    m_sb_from_1->setMaxValue( 255 );
    layout19->addWidget( m_sb_from_1 );

    textLabel4 = new TQLabel( this, "textLabel4" );
    textLabel4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) );
    textLabel4->setAlignment( int( TQLabel::AlignBottom ) );
    layout19->addWidget( textLabel4 );

    m_sb_from_2 = new KIntSpinBox( this, "m_sb_from_2" );
    m_sb_from_2->setEnabled( false );
    m_sb_from_2->setMaxValue( 255 );
    layout19->addWidget( m_sb_from_2 );

    textLabel4_4 = new TQLabel( this, "textLabel4_4" );
    textLabel4_4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel4_4->sizePolicy().hasHeightForWidth() ) );
    textLabel4_4->setAlignment( int( TQLabel::AlignBottom ) );
    layout19->addWidget( textLabel4_4 );

    m_sb_from_3 = new KIntSpinBox( this, "m_sb_from_3" );
    m_sb_from_3->setEnabled( false );
    m_sb_from_3->setMaxValue( 255 );
    layout19->addWidget( m_sb_from_3 );

    textLabel4_3 = new TQLabel( this, "textLabel4_3" );
    textLabel4_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel4_3->sizePolicy().hasHeightForWidth() ) );
    textLabel4_3->setAlignment( int( TQLabel::AlignBottom ) );
    layout19->addWidget( textLabel4_3 );

    m_sb_from_4 = new KIntSpinBox( this, "m_sb_from_4" );
    m_sb_from_4->setEnabled( false );
    m_sb_from_4->setMaxValue( 255 );
    layout19->addWidget( m_sb_from_4 );

    KMyFirewallIPv4AdddressWidgetLayout->addLayout( layout19, 0, 1 );

    textLabel3_3 = new TQLabel( this, "textLabel3_3" );
    textLabel3_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, textLabel3_3->sizePolicy().hasHeightForWidth() ) );

    KMyFirewallIPv4AdddressWidgetLayout->addWidget( textLabel3_3, 0, 0 );
    languageChange();
    resize( TQSize(371, 31).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KMyFirewallIPv4AdddressWidget::languageChange()
{
    setCaption( tr2i18n( "Form2" ) );
    textLabel4->setText( tr2i18n( "." ) );
    textLabel4_4->setText( tr2i18n( "." ) );
    textLabel4_3->setText( tr2i18n( "." ) );
    textLabel3_3->setText( tr2i18n( "IP Address:" ) );
}

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

TQMetaObject *KMyFirewallIPv4AdddressWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KMyFirewallIPv4AdddressWidget( "KMyFirewallIPv4AdddressWidget", &KMyFirewallIPv4AdddressWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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