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

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

#include "kmyfirewallruleeditor.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <kled.h>
#include <kpushbutton.h>
#include <ntqpushbutton.h>
#include <ntqsplitter.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqcheckbox.h>
#include <ntqcombobox.h>
#include <ntqwidgetstack.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    m_splitter = new TQSplitter( this, "m_splitter" );
    m_splitter->setOrientation( TQSplitter::Horizontal );

    gb_options = new TQGroupBox( m_splitter, "gb_options" );
    gb_options->setEnabled( true );
    gb_options->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, gb_options->sizePolicy().hasHeightForWidth() ) );
    gb_options->setLineWidth( 0 );
    gb_options->setColumnLayout(0, TQt::Vertical );
    gb_options->layout()->setSpacing( 6 );
    gb_options->layout()->setMargin( 2 );
    gb_optionsLayout = new TQGridLayout( gb_options->layout() );
    gb_optionsLayout->setAlignment( TQt::AlignTop );

    l_editing_rule = new TQLabel( gb_options, "l_editing_rule" );
    l_editing_rule->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignLeft ) );

    gb_optionsLayout->addMultiCellWidget( l_editing_rule, 3, 3, 0, 1 );

    buttonGroup6 = new TQButtonGroup( gb_options, "buttonGroup6" );
    buttonGroup6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, buttonGroup6->sizePolicy().hasHeightForWidth() ) );
    buttonGroup6->setLineWidth( 0 );
    buttonGroup6->setExclusive( true );
    buttonGroup6->setColumnLayout(0, TQt::Vertical );
    buttonGroup6->layout()->setSpacing( 6 );
    buttonGroup6->layout()->setMargin( 0 );
    buttonGroup6Layout = new TQHBoxLayout( buttonGroup6->layout() );
    buttonGroup6Layout->setAlignment( TQt::AlignTop );

    rb_filter = new TQRadioButton( buttonGroup6, "rb_filter" );
    rb_filter->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, rb_filter->sizePolicy().hasHeightForWidth() ) );
    rb_filter->setChecked( true );
    buttonGroup6Layout->addWidget( rb_filter );

    rb_nat = new TQRadioButton( buttonGroup6, "rb_nat" );
    rb_nat->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, rb_nat->sizePolicy().hasHeightForWidth() ) );
    buttonGroup6Layout->addWidget( rb_nat );

    rb_mangle = new TQRadioButton( buttonGroup6, "rb_mangle" );
    rb_mangle->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, rb_mangle->sizePolicy().hasHeightForWidth() ) );
    buttonGroup6Layout->addWidget( rb_mangle );

    gb_optionsLayout->addWidget( buttonGroup6, 1, 1 );

    textLabel2 = new TQLabel( gb_options, "textLabel2" );
    textLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );
    textLabel2->setLineWidth( 0 );

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

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

    m_led_modules = new KLed( gb_options, "m_led_modules" );
    m_led_modules->setMinimumSize( TQSize( 16, 16 ) );
    m_led_modules->setMaximumSize( TQSize( 16, 16 ) );
    m_led_modules->setState( KLed::Off );
    m_led_modules->setLook( KLed::Sunken );
    m_led_modules->setDarkFactor( 600 );

    layout14->addWidget( m_led_modules, 1, 1 );

    textLabel1_2_3_2_2 = new TQLabel( gb_options, "textLabel1_2_3_2_2" );
    textLabel1_2_3_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel1_2_3_2_2->sizePolicy().hasHeightForWidth() ) );

    layout14->addWidget( textLabel1_2_3_2_2, 2, 2 );

    m_led_rp = new KLed( gb_options, "m_led_rp" );
    m_led_rp->setMinimumSize( TQSize( 16, 16 ) );
    m_led_rp->setMaximumSize( TQSize( 16, 16 ) );
    m_led_rp->setState( KLed::Off );
    m_led_rp->setLook( KLed::Sunken );
    m_led_rp->setDarkFactor( 600 );

    layout14->addWidget( m_led_rp, 1, 3 );

    m_led_fwd = new KLed( gb_options, "m_led_fwd" );
    m_led_fwd->setMinimumSize( TQSize( 16, 16 ) );
    m_led_fwd->setMaximumSize( TQSize( 16, 16 ) );
    m_led_fwd->setState( KLed::Off );
    m_led_fwd->setLook( KLed::Sunken );
    m_led_fwd->setDarkFactor( 600 );

    layout14->addWidget( m_led_fwd, 2, 1 );

    m_led_martians = new KLed( gb_options, "m_led_martians" );
    m_led_martians->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, m_led_martians->sizePolicy().hasHeightForWidth() ) );
    m_led_martians->setMinimumSize( TQSize( 16, 16 ) );
    m_led_martians->setMaximumSize( TQSize( 16, 16 ) );
    m_led_martians->setState( KLed::Off );
    m_led_martians->setLook( KLed::Sunken );
    m_led_martians->setDarkFactor( 600 );

    layout14->addWidget( m_led_martians, 2, 3 );

    m_led_syn = new KLed( gb_options, "m_led_syn" );
    m_led_syn->setMinimumSize( TQSize( 16, 16 ) );
    m_led_syn->setMaximumSize( TQSize( 16, 16 ) );
    m_led_syn->setState( KLed::Off );
    m_led_syn->setLook( KLed::Sunken );
    m_led_syn->setDarkFactor( 600 );

    layout14->addWidget( m_led_syn, 0, 3 );

    textLabel1_2_3_2_2_2 = new TQLabel( gb_options, "textLabel1_2_3_2_2_2" );

    layout14->addWidget( textLabel1_2_3_2_2_2, 0, 2 );

    textLabel1_2_2_2 = new TQLabel( gb_options, "textLabel1_2_2_2" );

    layout14->addWidget( textLabel1_2_2_2, 1, 2 );

    textLabel1_2_8 = new TQLabel( gb_options, "textLabel1_2_8" );

    layout14->addWidget( textLabel1_2_8, 2, 0 );

    textLabel1 = new TQLabel( gb_options, "textLabel1" );
    textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );

    layout14->addMultiCellWidget( textLabel1, 0, 0, 0, 1 );

    textLabel1_2_3_2 = new TQLabel( gb_options, "textLabel1_2_3_2" );

    layout14->addWidget( textLabel1_2_3_2, 1, 0 );

    gb_optionsLayout->addMultiCellLayout( layout14, 0, 0, 0, 1 );

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

    TextLabel8 = new TQLabel( gb_options, "TextLabel8" );
    TextLabel8->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, TextLabel8->sizePolicy().hasHeightForWidth() ) );
    Layout23->addWidget( TextLabel8 );

    cb_frag = new TQCheckBox( gb_options, "cb_frag" );
    cb_frag->setEnabled( false );
    Layout23->addWidget( cb_frag );

    TextLabel9 = new TQLabel( gb_options, "TextLabel9" );
    Layout23->addWidget( TextLabel9 );

    cb_frag_inv = new TQCheckBox( gb_options, "cb_frag_inv" );
    cb_frag_inv->setEnabled( false );
    Layout23->addWidget( cb_frag_inv );

    gb_optionsLayout->addMultiCellLayout( Layout23, 7, 7, 0, 1 );

    kb_optSelect = new KComboBox( false, gb_options, "kb_optSelect" );
    kb_optSelect->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, kb_optSelect->sizePolicy().hasHeightForWidth() ) );

    gb_optionsLayout->addMultiCellWidget( kb_optSelect, 6, 6, 0, 1 );

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

    cb_disable_rule = new TQCheckBox( gb_options, "cb_disable_rule" );
    cb_disable_rule->setEnabled( false );
    cb_disable_rule->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, cb_disable_rule->sizePolicy().hasHeightForWidth() ) );

    layout12->addWidget( cb_disable_rule, 0, 1 );

    cb_log_rule = new TQCheckBox( gb_options, "cb_log_rule" );
    cb_log_rule->setEnabled( false );
    cb_log_rule->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cb_log_rule->sizePolicy().hasHeightForWidth() ) );

    layout12->addWidget( cb_log_rule, 1, 1 );

    TextLabel1_2 = new TQLabel( gb_options, "TextLabel1_2" );

    layout12->addWidget( TextLabel1_2, 0, 0 );

    TextLabel1_2_2 = new TQLabel( gb_options, "TextLabel1_2_2" );

    layout12->addWidget( TextLabel1_2_2, 1, 0 );

    gb_optionsLayout->addMultiCellLayout( layout12, 5, 5, 0, 1 );

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

    textLabel2_2 = new TQLabel( gb_options, "textLabel2_2" );
    layout20->addWidget( textLabel2_2 );

    b_move_up = new KPushButton( gb_options, "b_move_up" );
    b_move_up->setFlat( true );
    layout20->addWidget( b_move_up );

    b_move_down = new KPushButton( gb_options, "b_move_down" );
    b_move_down->setFlat( true );
    layout20->addWidget( b_move_down );

    gb_optionsLayout->addMultiCellLayout( layout20, 4, 4, 0, 1 );

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

    TextLabel10 = new TQLabel( gb_options, "TextLabel10" );
    TextLabel10->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, TextLabel10->sizePolicy().hasHeightForWidth() ) );
    Layout21->addWidget( TextLabel10 );

    cb_target = new TQComboBox( false, gb_options, "cb_target" );
    cb_target->setEnabled( false );
    cb_target->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cb_target->sizePolicy().hasHeightForWidth() ) );
    cb_target->setAutoResize( true );
    cb_target->setInsertionPolicy( TQComboBox::NoInsertion );
    cb_target->setDuplicatesEnabled( false );
    Layout21->addWidget( cb_target );

    gb_optionsLayout->addMultiCellLayout( Layout21, 8, 8, 0, 1 );

    m_ws_target_opt = new TQWidgetStack( gb_options, "m_ws_target_opt" );

    page = new TQWidget( m_ws_target_opt, "page" );
    m_ws_target_opt->addWidget( page, 0 );

    gb_optionsLayout->addMultiCellWidget( m_ws_target_opt, 9, 9, 0, 1 );

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

    KMyFirewallRuleEditorLayout->addWidget( m_splitter, 0, 0 );
    languageChange();
    resize( TQSize(483, 447).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( cb_frag, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotFragChanged() ) );
    connect( cb_frag_inv, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotFragChanged() ) );
    connect( cb_target, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( slotTargetChanged(const TQString&) ) );
    connect( cb_frag, TQ_SIGNAL( toggled(bool) ), cb_frag_inv, TQ_SLOT( setEnabled(bool) ) );
    connect( rb_filter, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotNewTableSelected() ) );
    connect( rb_nat, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotNewTableSelected() ) );
    connect( rb_mangle, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotNewTableSelected() ) );
    connect( b_move_down, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotMoveRuleDown() ) );
    connect( b_move_up, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotMoveRuleUp() ) );

    // tab order
    setTabOrder( rb_filter, cb_disable_rule );
    setTabOrder( cb_disable_rule, cb_log_rule );
    setTabOrder( cb_log_rule, kb_optSelect );
    setTabOrder( kb_optSelect, cb_frag );
    setTabOrder( cb_frag, cb_frag_inv );
    setTabOrder( cb_frag_inv, cb_target );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KMyFirewallRuleEditor::languageChange()
{
    setCaption( tr2i18n( "Rule Editor" ) );
    gb_options->setTitle( TQString::null );
    l_editing_rule->setText( tr2i18n( "Editing Rule" ) );
    buttonGroup6->setTitle( TQString::null );
    rb_filter->setText( tr2i18n( "filter" ) );
    rb_nat->setText( tr2i18n( "nat" ) );
    rb_mangle->setText( tr2i18n( "mangle" ) );
    textLabel2->setText( tr2i18n( "<b>Table:</b>" ) );
    textLabel1_2_3_2_2->setText( tr2i18n( "Log martians:" ) );
    textLabel1_2_3_2_2_2->setText( tr2i18n( "Syncookies:" ) );
    textLabel1_2_2_2->setText( tr2i18n( "RP-Filter:" ) );
    textLabel1_2_8->setText( tr2i18n( "IP forwarding:" ) );
    textLabel1->setText( tr2i18n( "<b>FW options:</b>" ) );
    textLabel1_2_3_2->setText( tr2i18n( "Load modules:" ) );
    TextLabel8->setText( tr2i18n( "Fragments:" ) );
    cb_frag->setText( TQString::null );
    TextLabel9->setText( tr2i18n( "Invert:" ) );
    cb_frag_inv->setText( TQString::null );
    cb_disable_rule->setText( TQString::null );
    cb_log_rule->setText( TQString::null );
    TextLabel1_2->setText( tr2i18n( "Disable rule:" ) );
    TextLabel1_2_2->setText( tr2i18n( "Log matching packets:" ) );
    textLabel2_2->setText( tr2i18n( "Move rule in chain:" ) );
    b_move_up->setText( TQString::null );
    b_move_down->setText( TQString::null );
    TextLabel10->setText( tr2i18n( "Target:" ) );
}

void KMyFirewallRuleEditor::slotAddRule()
{
    tqWarning( "KMyFirewallRuleEditor::slotAddRule(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotDelRule()
{
    tqWarning( "KMyFirewallRuleEditor::slotDelRule(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditIPopt()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditIPopt(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditIntOpt()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditIntOpt(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditLimitOpt()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditLimitOpt(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditMacOpt()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditMacOpt(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditProtOpt()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditProtOpt(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditRule()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditRule(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditStateOpt()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditStateOpt(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditTargetOpt()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditTargetOpt(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditTargetOption()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditTargetOption(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotEditTosOpt()
{
    tqWarning( "KMyFirewallRuleEditor::slotEditTosOpt(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotFragChanged()
{
    tqWarning( "KMyFirewallRuleEditor::slotFragChanged(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotHelp()
{
    tqWarning( "KMyFirewallRuleEditor::slotHelp(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotMoveRuleDown()
{
    tqWarning( "KMyFirewallRuleEditor::slotMoveRuleDown(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotMoveRuleUp()
{
    tqWarning( "KMyFirewallRuleEditor::slotMoveRuleUp(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotNewChainSelected(int)
{
    tqWarning( "KMyFirewallRuleEditor::slotNewChainSelected(int): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotNewTableSelected()
{
    tqWarning( "KMyFirewallRuleEditor::slotNewTableSelected(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotSaveConfig()
{
    tqWarning( "KMyFirewallRuleEditor::slotSaveConfig(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotSaveRuleChanges()
{
    tqWarning( "KMyFirewallRuleEditor::slotSaveRuleChanges(): Not implemented yet" );
}

void KMyFirewallRuleEditor::slotTargetChanged(const TQString&)
{
    tqWarning( "KMyFirewallRuleEditor::slotTargetChanged(const TQString&): Not implemented yet" );
}

void KMyFirewallRuleEditor::accept()
{
    tqWarning( "KMyFirewallRuleEditor::accept(): Not implemented yet" );
}

void KMyFirewallRuleEditor::reject()
{
    tqWarning( "KMyFirewallRuleEditor::reject(): Not implemented yet" );
}

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

TQMetaObject *KMyFirewallRuleEditor::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KMyFirewallRuleEditor( "KMyFirewallRuleEditor", &KMyFirewallRuleEditor::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KMyFirewallRuleEditor::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 = {"slotAddRule", 0, 0 };
    static const TQUMethod slot_1 = {"slotDelRule", 0, 0 };
    static const TQUMethod slot_2 = {"slotEditIPopt", 0, 0 };
    static const TQUMethod slot_3 = {"slotEditIntOpt", 0, 0 };
    static const TQUMethod slot_4 = {"slotEditLimitOpt", 0, 0 };
    static const TQUMethod slot_5 = {"slotEditMacOpt", 0, 0 };
    static const TQUMethod slot_6 = {"slotEditProtOpt", 0, 0 };
    static const TQUMethod slot_7 = {"slotEditRule", 0, 0 };
    static const TQUMethod slot_8 = {"slotEditStateOpt", 0, 0 };
    static const TQUMethod slot_9 = {"slotEditTargetOpt", 0, 0 };
    static const TQUMethod slot_10 = {"slotEditTargetOption", 0, 0 };
    static const TQUMethod slot_11 = {"slotEditTosOpt", 0, 0 };
    static const TQUMethod slot_12 = {"slotFragChanged", 0, 0 };
    static const TQUMethod slot_13 = {"slotHelp", 0, 0 };
    static const TQUMethod slot_14 = {"slotMoveRuleDown", 0, 0 };
    static const TQUMethod slot_15 = {"slotMoveRuleUp", 0, 0 };
    static const TQUParameter param_slot_16[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_16 = {"slotNewChainSelected", 1, param_slot_16 };
    static const TQUMethod slot_17 = {"slotNewTableSelected", 0, 0 };
    static const TQUMethod slot_18 = {"slotSaveConfig", 0, 0 };
    static const TQUMethod slot_19 = {"slotSaveRuleChanges", 0, 0 };
    static const TQUParameter param_slot_20[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_20 = {"slotTargetChanged", 1, param_slot_20 };
    static const TQUMethod slot_21 = {"accept", 0, 0 };
    static const TQUMethod slot_22 = {"reject", 0, 0 };
    static const TQUMethod slot_23 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotAddRule()", &slot_0, TQMetaData::Public },
	{ "slotDelRule()", &slot_1, TQMetaData::Public },
	{ "slotEditIPopt()", &slot_2, TQMetaData::Public },
	{ "slotEditIntOpt()", &slot_3, TQMetaData::Public },
	{ "slotEditLimitOpt()", &slot_4, TQMetaData::Public },
	{ "slotEditMacOpt()", &slot_5, TQMetaData::Public },
	{ "slotEditProtOpt()", &slot_6, TQMetaData::Public },
	{ "slotEditRule()", &slot_7, TQMetaData::Public },
	{ "slotEditStateOpt()", &slot_8, TQMetaData::Public },
	{ "slotEditTargetOpt()", &slot_9, TQMetaData::Public },
	{ "slotEditTargetOption()", &slot_10, TQMetaData::Public },
	{ "slotEditTosOpt()", &slot_11, TQMetaData::Public },
	{ "slotFragChanged()", &slot_12, TQMetaData::Public },
	{ "slotHelp()", &slot_13, TQMetaData::Public },
	{ "slotMoveRuleDown()", &slot_14, TQMetaData::Public },
	{ "slotMoveRuleUp()", &slot_15, TQMetaData::Public },
	{ "slotNewChainSelected(int)", &slot_16, TQMetaData::Public },
	{ "slotNewTableSelected()", &slot_17, TQMetaData::Public },
	{ "slotSaveConfig()", &slot_18, TQMetaData::Public },
	{ "slotSaveRuleChanges()", &slot_19, TQMetaData::Public },
	{ "slotTargetChanged(const TQString&)", &slot_20, TQMetaData::Public },
	{ "accept()", &slot_21, TQMetaData::Public },
	{ "reject()", &slot_22, TQMetaData::Public },
	{ "languageChange()", &slot_23, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KMyFirewallRuleEditor", parentObject,
	slot_tbl, 24,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KMyFirewallRuleEditor.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KMyFirewallRuleEditor::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotAddRule(); break;
    case 1: slotDelRule(); break;
    case 2: slotEditIPopt(); break;
    case 3: slotEditIntOpt(); break;
    case 4: slotEditLimitOpt(); break;
    case 5: slotEditMacOpt(); break;
    case 6: slotEditProtOpt(); break;
    case 7: slotEditRule(); break;
    case 8: slotEditStateOpt(); break;
    case 9: slotEditTargetOpt(); break;
    case 10: slotEditTargetOption(); break;
    case 11: slotEditTosOpt(); break;
    case 12: slotFragChanged(); break;
    case 13: slotHelp(); break;
    case 14: slotMoveRuleDown(); break;
    case 15: slotMoveRuleUp(); break;
    case 16: slotNewChainSelected((int)static_QUType_int.get(_o+1)); break;
    case 17: slotNewTableSelected(); break;
    case 18: slotSaveConfig(); break;
    case 19: slotSaveRuleChanges(); break;
    case 20: slotTargetChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 21: accept(); break;
    case 22: reject(); break;
    case 23: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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