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

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

#include "kmyfirewallnetworkwidget.h"

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

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

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

    layout27 = new TQVBoxLayout( 0, 0, 6, "layout27"); 

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

    textLabel3_2 = new TQLabel( this, "textLabel3_2" );
    textLabel3_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, textLabel3_2->sizePolicy().hasHeightForWidth() ) );
    layout27->addWidget( textLabel3_2 );
    layout7->addLayout( layout27 );

    layout22 = new TQVBoxLayout( 0, 0, 6, "layout22"); 

    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 );
    layout22->addLayout( layout19 );

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

    m_sb_mask = new KIntSpinBox( this, "m_sb_mask" );
    m_sb_mask->setEnabled( false );
    m_sb_mask->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_sb_mask->sizePolicy().hasHeightForWidth() ) );
    m_sb_mask->setMaxValue( 32 );
    layout21->addWidget( m_sb_mask );
    spacer2 = new TQSpacerItem( 19, 2, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout21->addItem( spacer2 );

    textLabel3_2_2 = new TQLabel( this, "textLabel3_2_2" );
    textLabel3_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, textLabel3_2_2->sizePolicy().hasHeightForWidth() ) );
    textLabel3_2_2->setAlignment( int( TQLabel::AlignVCenter ) );
    layout21->addWidget( textLabel3_2_2 );

    lbl_mask = new TQLabel( this, "lbl_mask" );
    lbl_mask->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, lbl_mask->sizePolicy().hasHeightForWidth() ) );
    layout21->addWidget( lbl_mask );
    layout22->addLayout( layout21 );
    layout7->addLayout( layout22 );

    KMyFirewallNetworkWidgetLayout->addLayout( layout7, 1, 0 );
    spacer3 = new TQSpacerItem( 20, 45, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KMyFirewallNetworkWidgetLayout->addItem( spacer3, 2, 0 );

    m_txt_desc = new TQTextEdit( this, "m_txt_desc" );

    KMyFirewallNetworkWidgetLayout->addMultiCellWidget( m_txt_desc, 1, 2, 1, 1 );

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

    KMyFirewallNetworkWidgetLayout->addWidget( textLabel2, 0, 1 );

    textLabel1 = new TQLabel( this, "textLabel1" );
    textLabel1->setAlignment( int( TQLabel::AlignVCenter ) );

    KMyFirewallNetworkWidgetLayout->addWidget( textLabel1, 0, 0 );
    languageChange();
    resize( TQSize(633, 128).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KMyFirewallNetworkWidget::languageChange()
{
    setCaption( tr2i18n( "KMyFirewallNetworkWidget" ) );
    textLabel3->setText( tr2i18n( "Network:" ) );
    textLabel3_2->setText( tr2i18n( "Mask Length:" ) );
    textLabel4->setText( tr2i18n( "." ) );
    textLabel4_4->setText( tr2i18n( "." ) );
    textLabel4_3->setText( tr2i18n( "." ) );
    textLabel3_2_2->setText( tr2i18n( "Mask:" ) );
    lbl_mask->setText( tr2i18n( "255.255.255.0" ) );
    textLabel2->setText( tr2i18n( "Zone Documentation:" ) );
    textLabel1->setText( tr2i18n( "Zone Properties:" ) );
}

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

TQMetaObject *KMyFirewallNetworkWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KMyFirewallNetworkWidget( "KMyFirewallNetworkWidget", &KMyFirewallNetworkWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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