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

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

#include "kmyfirewallgenericinterfaceprotocolwidget.h"

#include <ntqvariant.h>
#include <tdelistview.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqwidgetstack.h>
#include <ntqsplitter.h>
#include <ntqframe.h>
#include <ntqcheckbox.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    groupBox25 = new TQGroupBox( this, "groupBox25" );
    groupBox25->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 8, groupBox25->sizePolicy().hasHeightForWidth() ) );
    groupBox25->setColumnLayout(0, TQt::Vertical );
    groupBox25->layout()->setSpacing( 6 );
    groupBox25->layout()->setMargin( 11 );
    groupBox25Layout = new TQGridLayout( groupBox25->layout() );
    groupBox25Layout->setAlignment( TQt::AlignTop );

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

    groupBox25Layout->addWidget( textLabel1, 0, 0 );

    m_widgetStack = new TQWidgetStack( groupBox25, "m_widgetStack" );
    m_widgetStack->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, m_widgetStack->sizePolicy().hasHeightForWidth() ) );

    qt_dead_widget_m_protocolOptions = new TQWidget( m_widgetStack, "qt_dead_widget_m_protocolOptions" );
    qt_dead_widget_m_protocolOptionsLayout = new TQGridLayout( qt_dead_widget_m_protocolOptions, 1, 1, 0, 6, "qt_dead_widget_m_protocolOptionsLayout"); 
    m_widgetStack->addWidget( qt_dead_widget_m_protocolOptions, 0 );

    qt_dead_widget_m_zoneOptions = new TQWidget( m_widgetStack, "qt_dead_widget_m_zoneOptions" );
    qt_dead_widget_m_zoneOptionsLayout = new TQGridLayout( qt_dead_widget_m_zoneOptions, 1, 1, 11, 6, "qt_dead_widget_m_zoneOptionsLayout"); 
    m_widgetStack->addWidget( qt_dead_widget_m_zoneOptions, 1 );

    qt_dead_widget_m_hostOptions = new TQWidget( m_widgetStack, "qt_dead_widget_m_hostOptions" );
    m_widgetStack->addWidget( qt_dead_widget_m_hostOptions, 2 );

    groupBox25Layout->addMultiCellWidget( m_widgetStack, 3, 3, 0, 2 );

    splitter5 = new TQSplitter( groupBox25, "splitter5" );
    splitter5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, splitter5->sizePolicy().hasHeightForWidth() ) );
    splitter5->setOrientation( TQSplitter::Horizontal );

    m_lv_zones = new TDEListView( splitter5, "m_lv_zones" );
    m_lv_zones->addColumn( tr2i18n( "Object" ) );
    m_lv_zones->addColumn( tr2i18n( "Atributes" ) );
    m_lv_zones->addColumn( tr2i18n( "Description" ) );
    m_lv_zones->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 12, 0, m_lv_zones->sizePolicy().hasHeightForWidth() ) );
    m_lv_zones->setFullWidth( true );

    m_protocolsFrame = new TQFrame( splitter5, "m_protocolsFrame" );
    m_protocolsFrame->setFrameShape( TQFrame::NoFrame );
    m_protocolsFrame->setFrameShadow( TQFrame::Raised );

    groupBox25Layout->addMultiCellWidget( splitter5, 2, 2, 0, 2 );

    m_c_allowIncoming = new TQCheckBox( groupBox25, "m_c_allowIncoming" );

    groupBox25Layout->addMultiCellWidget( m_c_allowIncoming, 1, 1, 0, 1 );

    m_c_restrictOutgoing = new TQCheckBox( groupBox25, "m_c_restrictOutgoing" );

    groupBox25Layout->addWidget( m_c_restrictOutgoing, 1, 2 );

    m_zoneSelect = new TQComboBox( false, groupBox25, "m_zoneSelect" );
    m_zoneSelect->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, m_zoneSelect->sizePolicy().hasHeightForWidth() ) );

    groupBox25Layout->addMultiCellWidget( m_zoneSelect, 0, 0, 1, 2 );

    KMyFirewallGenericInterfaceProtocolWidgetLayout->addWidget( groupBox25, 0, 0 );
    languageChange();
    resize( TQSize(511, 449).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KMyFirewallGenericInterfaceProtocolWidget::languageChange()
{
    setCaption( tr2i18n( "Protocols" ) );
    groupBox25->setTitle( tr2i18n( "Access Control Configuration" ) );
    textLabel1->setText( tr2i18n( "Edit zone:" ) );
    m_lv_zones->header()->setLabel( 0, tr2i18n( "Object" ) );
    m_lv_zones->header()->setLabel( 1, tr2i18n( "Atributes" ) );
    m_lv_zones->header()->setLabel( 2, tr2i18n( "Description" ) );
    m_c_allowIncoming->setText( tr2i18n( "Allow Incoming Connections" ) );
    m_c_restrictOutgoing->setText( tr2i18n( "Restrict Outgoing Connections" ) );
}

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

TQMetaObject *KMyFirewallGenericInterfaceProtocolWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KMyFirewallGenericInterfaceProtocolWidget( "KMyFirewallGenericInterfaceProtocolWidget", &KMyFirewallGenericInterfaceProtocolWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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