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

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

#include "kmyfirewallchaineditor.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqlcdnumber.h>
#include <ntqtabwidget.h>
#include <ntqcombobox.h>
#include <ntqcheckbox.h>
#include <ntqlineedit.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    GroupBox6 = new TQGroupBox( this, "GroupBox6" );
    GroupBox6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, GroupBox6->sizePolicy().hasHeightForWidth() ) );
    GroupBox6->setFrameShape( TQGroupBox::GroupBoxPanel );
    GroupBox6->setFrameShadow( TQGroupBox::Sunken );
    GroupBox6->setColumnLayout(0, TQt::Vertical );
    GroupBox6->layout()->setSpacing( 6 );
    GroupBox6->layout()->setMargin( 11 );
    GroupBox6Layout = new TQGridLayout( GroupBox6->layout() );
    GroupBox6Layout->setAlignment( TQt::AlignTop );

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

    TextLabel1 = new TQLabel( GroupBox6, "TextLabel1" );
    TextLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
    Layout9->addWidget( TextLabel1 );

    l_chain_name = new TQLabel( GroupBox6, "l_chain_name" );
    TQFont l_chain_name_font(  l_chain_name->font() );
    l_chain_name_font.setBold( true );
    l_chain_name->setFont( l_chain_name_font ); 
    Layout9->addWidget( l_chain_name );

    TextLabel1_2 = new TQLabel( GroupBox6, "TextLabel1_2" );
    TextLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, TextLabel1_2->sizePolicy().hasHeightForWidth() ) );
    Layout9->addWidget( TextLabel1_2 );

    l_chain_table = new TQLabel( GroupBox6, "l_chain_table" );
    TQFont l_chain_table_font(  l_chain_table->font() );
    l_chain_table_font.setBold( true );
    l_chain_table->setFont( l_chain_table_font ); 
    Layout9->addWidget( l_chain_table );

    GroupBox6Layout->addMultiCellLayout( Layout9, 0, 0, 0, 5 );

    TextLabel1_5_2 = new TQLabel( GroupBox6, "TextLabel1_5_2" );
    TextLabel1_5_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, TextLabel1_5_2->sizePolicy().hasHeightForWidth() ) );
    TQFont TextLabel1_5_2_font(  TextLabel1_5_2->font() );
    TextLabel1_5_2_font.setBold( true );
    TextLabel1_5_2->setFont( TextLabel1_5_2_font ); 

    GroupBox6Layout->addWidget( TextLabel1_5_2, 1, 0 );

    lcd_rules = new TQLCDNumber( GroupBox6, "lcd_rules" );
    lcd_rules->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, lcd_rules->sizePolicy().hasHeightForWidth() ) );
    lcd_rules->setLineWidth( 0 );
    lcd_rules->setNumDigits( 2 );
    lcd_rules->setSegmentStyle( TQLCDNumber::Flat );

    GroupBox6Layout->addWidget( lcd_rules, 1, 1 );

    TextLabel1_5 = new TQLabel( GroupBox6, "TextLabel1_5" );
    TextLabel1_5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, TextLabel1_5->sizePolicy().hasHeightForWidth() ) );
    TQFont TextLabel1_5_font(  TextLabel1_5->font() );
    TextLabel1_5_font.setBold( true );
    TextLabel1_5->setFont( TextLabel1_5_font ); 

    GroupBox6Layout->addWidget( TextLabel1_5, 1, 2 );

    lcd_feeds = new TQLCDNumber( GroupBox6, "lcd_feeds" );
    lcd_feeds->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, lcd_feeds->sizePolicy().hasHeightForWidth() ) );
    lcd_feeds->setLineWidth( 0 );
    lcd_feeds->setNumDigits( 2 );
    lcd_feeds->setSegmentStyle( TQLCDNumber::Flat );

    GroupBox6Layout->addWidget( lcd_feeds, 1, 3 );

    TextLabel1_4 = new TQLabel( GroupBox6, "TextLabel1_4" );
    TextLabel1_4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, TextLabel1_4->sizePolicy().hasHeightForWidth() ) );
    TQFont TextLabel1_4_font(  TextLabel1_4->font() );
    TextLabel1_4_font.setBold( true );
    TextLabel1_4->setFont( TextLabel1_4_font ); 

    GroupBox6Layout->addWidget( TextLabel1_4, 1, 4 );

    lcd_fwds = new TQLCDNumber( GroupBox6, "lcd_fwds" );
    lcd_fwds->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, lcd_fwds->sizePolicy().hasHeightForWidth() ) );
    lcd_fwds->setLineWidth( 0 );
    lcd_fwds->setNumDigits( 2 );
    lcd_fwds->setSegmentStyle( TQLCDNumber::Flat );

    GroupBox6Layout->addWidget( lcd_fwds, 1, 5 );

    KMyFirewallChainEditorLayout->addWidget( GroupBox6, 0, 0 );

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

    kPushButton5 = new KPushButton( this, "kPushButton5" );
    layout36->addWidget( kPushButton5 );
    spacer9_2 = new TQSpacerItem( 110, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout36->addItem( spacer9_2 );

    b_help = new TQPushButton( this, "b_help" );
    b_help->setEnabled( true );
    b_help->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, b_help->sizePolicy().hasHeightForWidth() ) );
    layout36->addWidget( b_help );
    spacer9 = new TQSpacerItem( 110, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout36->addItem( spacer9 );

    b_ok = new TQPushButton( this, "b_ok" );
    b_ok->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, b_ok->sizePolicy().hasHeightForWidth() ) );
    layout36->addWidget( b_ok );

    KMyFirewallChainEditorLayout->addLayout( layout36, 2, 0 );

    m_tabWidget = new TQTabWidget( this, "m_tabWidget" );
    m_tabWidget->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, m_tabWidget->sizePolicy().hasHeightForWidth() ) );

    tab = new TQWidget( m_tabWidget, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

    gb_target = new TQGroupBox( tab, "gb_target" );
    gb_target->setEnabled( true );
    gb_target->setColumnLayout(0, TQt::Vertical );
    gb_target->layout()->setSpacing( 6 );
    gb_target->layout()->setMargin( 11 );
    gb_targetLayout = new TQGridLayout( gb_target->layout() );
    gb_targetLayout->setAlignment( TQt::AlignTop );

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

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

    cb_target = new TQComboBox( false, gb_target, "cb_target" );
    cb_target->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cb_target->sizePolicy().hasHeightForWidth() ) );
    cb_target->setInsertionPolicy( TQComboBox::NoInsertion );
    cb_target->setDuplicatesEnabled( false );

    layout11->addWidget( cb_target, 0, 1 );

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

    layout11->addMultiCellWidget( c_has_default_target, 1, 1, 0, 1 );

    TextLabel6_2 = new TQLabel( gb_target, "TextLabel6_2" );
    TQFont TextLabel6_2_font(  TextLabel6_2->font() );
    TextLabel6_2_font.setBold( true );
    TextLabel6_2->setFont( TextLabel6_2_font ); 
    TextLabel6_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );

    layout11->addWidget( TextLabel6_2, 0, 0 );

    layout12->addLayout( layout11, 2, 0 );

    TextLabel1_3 = new TQLabel( gb_target, "TextLabel1_3" );
    TextLabel1_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, TextLabel1_3->sizePolicy().hasHeightForWidth() ) );
    TextLabel1_3->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );

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

    TextLabel7 = new TQLabel( gb_target, "TextLabel7" );
    TextLabel7->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, TextLabel7->sizePolicy().hasHeightForWidth() ) );
    TextLabel7->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );

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

    gb_targetLayout->addLayout( layout12, 0, 0 );

    tabLayout->addWidget( gb_target, 0, 0 );
    m_tabWidget->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( m_tabWidget, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 

    gb_logging = new TQGroupBox( tab_2, "gb_logging" );
    gb_logging->setEnabled( true );
    gb_logging->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, gb_logging->sizePolicy().hasHeightForWidth() ) );
    gb_logging->setAlignment( int( TQGroupBox::AlignVCenter | TQGroupBox::AlignBottom | TQGroupBox::AlignTop | TQGroupBox::AlignLeft ) );
    gb_logging->setColumnLayout(0, TQt::Vertical );
    gb_logging->layout()->setSpacing( 6 );
    gb_logging->layout()->setMargin( 11 );
    gb_loggingLayout = new TQGridLayout( gb_logging->layout() );
    gb_loggingLayout->setAlignment( TQt::AlignTop );

    c_enable_log = new TQCheckBox( gb_logging, "c_enable_log" );

    gb_loggingLayout->addWidget( c_enable_log, 1, 0 );

    l_logging_2 = new TQLabel( gb_logging, "l_logging_2" );
    l_logging_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop | TQLabel::AlignLeft ) );

    gb_loggingLayout->addWidget( l_logging_2, 0, 0 );

    groupBox4 = new TQGroupBox( gb_logging, "groupBox4" );
    groupBox4->setLineWidth( 0 );
    groupBox4->setColumnLayout(0, TQt::Vertical );
    groupBox4->layout()->setSpacing( 6 );
    groupBox4->layout()->setMargin( 11 );
    groupBox4Layout = new TQGridLayout( groupBox4->layout() );
    groupBox4Layout->setAlignment( TQt::AlignTop );

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

    groupBox4Layout->addWidget( c_log_prefix, 2, 0 );

    t_log_prefix = new TQLineEdit( groupBox4, "t_log_prefix" );
    t_log_prefix->setEnabled( false );
    t_log_prefix->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, t_log_prefix->sizePolicy().hasHeightForWidth() ) );
    t_log_prefix->setMaxLength( 29 );
    t_log_prefix->setFrame( true );

    groupBox4Layout->addWidget( t_log_prefix, 2, 1 );

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

    groupBox4Layout->addWidget( c_log_burst, 1, 0 );

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

    groupBox4Layout->addWidget( c_log_limit, 0, 0 );

    sb_burst = new TQSpinBox( groupBox4, "sb_burst" );
    sb_burst->setEnabled( false );
    sb_burst->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, sb_burst->sizePolicy().hasHeightForWidth() ) );
    sb_burst->setMinValue( 1 );
    sb_burst->setValue( 5 );

    groupBox4Layout->addWidget( sb_burst, 1, 1 );

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

    sb_limit = new TQSpinBox( groupBox4, "sb_limit" );
    sb_limit->setEnabled( false );
    sb_limit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, sb_limit->sizePolicy().hasHeightForWidth() ) );
    sb_limit->setMaxValue( 60 );
    sb_limit->setMinValue( 1 );
    layout8->addWidget( sb_limit );

    TextLabel8_2 = new TQLabel( groupBox4, "TextLabel8_2" );
    TextLabel8_2->setEnabled( false );
    TextLabel8_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)1, 0, 0, TextLabel8_2->sizePolicy().hasHeightForWidth() ) );
    TextLabel8_2->setAlignment( int( TQLabel::AlignCenter ) );
    layout8->addWidget( TextLabel8_2 );

    cb_interval = new TQComboBox( false, groupBox4, "cb_interval" );
    cb_interval->setEnabled( false );
    cb_interval->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cb_interval->sizePolicy().hasHeightForWidth() ) );
    cb_interval->setDuplicatesEnabled( false );
    layout8->addWidget( cb_interval );

    groupBox4Layout->addLayout( layout8, 0, 1 );

    gb_loggingLayout->addWidget( groupBox4, 2, 0 );

    tabLayout_2->addWidget( gb_logging, 0, 0 );
    m_tabWidget->insertTab( tab_2, TQString::fromLatin1("") );

    KMyFirewallChainEditorLayout->addWidget( m_tabWidget, 1, 0 );
    languageChange();
    resize( TQSize(500, 572).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( c_enable_log, TQ_SIGNAL( toggled(bool) ), c_log_limit, TQ_SLOT( setEnabled(bool) ) );
    connect( b_help, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotHelp() ) );
    connect( b_ok, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( kPushButton5, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( c_enable_log, TQ_SIGNAL( toggled(bool) ), c_log_burst, TQ_SLOT( setEnabled(bool) ) );
    connect( c_enable_log, TQ_SIGNAL( toggled(bool) ), c_log_prefix, TQ_SLOT( setEnabled(bool) ) );
    connect( c_log_limit, TQ_SIGNAL( toggled(bool) ), sb_limit, TQ_SLOT( setEnabled(bool) ) );
    connect( c_log_limit, TQ_SIGNAL( toggled(bool) ), cb_interval, TQ_SLOT( setEnabled(bool) ) );
    connect( c_log_burst, TQ_SIGNAL( toggled(bool) ), sb_burst, TQ_SLOT( setEnabled(bool) ) );
    connect( c_log_prefix, TQ_SIGNAL( toggled(bool) ), t_log_prefix, TQ_SLOT( setEnabled(bool) ) );
    connect( c_log_limit, TQ_SIGNAL( toggled(bool) ), TextLabel8_2, TQ_SLOT( setEnabled(bool) ) );
    connect( c_enable_log, TQ_SIGNAL( toggled(bool) ), groupBox4, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( kPushButton5, b_help );
    setTabOrder( b_help, b_ok );
    setTabOrder( b_ok, m_tabWidget );
    setTabOrder( m_tabWidget, c_has_default_target );
    setTabOrder( c_has_default_target, cb_target );
    setTabOrder( cb_target, c_enable_log );
    setTabOrder( c_enable_log, c_log_limit );
    setTabOrder( c_log_limit, c_log_burst );
    setTabOrder( c_log_burst, c_log_prefix );
    setTabOrder( c_log_prefix, t_log_prefix );
    setTabOrder( t_log_prefix, sb_burst );
    setTabOrder( sb_burst, sb_limit );
    setTabOrder( sb_limit, cb_interval );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KMyFirewallChainEditor::languageChange()
{
    setCaption( tr2i18n( "Chain Editor" ) );
    GroupBox6->setTitle( tr2i18n( "Chain Properties" ) );
    TextLabel1->setText( tr2i18n( "Working on chain:" ) );
    l_chain_name->setText( tr2i18n( "CHAINNAME" ) );
    TextLabel1_2->setText( tr2i18n( "in table:" ) );
    l_chain_table->setText( tr2i18n( "filter" ) );
    TextLabel1_5_2->setText( tr2i18n( "Chain rules:" ) );
    TextLabel1_5->setText( tr2i18n( "Chain feeds:" ) );
    TextLabel1_4->setText( tr2i18n( "Chain forwards:" ) );
    kPushButton5->setText( tr2i18n( "&Cancel" ) );
    b_help->setText( tr2i18n( "&Help" ) );
    b_ok->setText( tr2i18n( "&Apply" ) );
    gb_target->setTitle( tr2i18n( "Configure Default Policy" ) );
    c_has_default_target->setText( tr2i18n( "Define default policy" ) );
    TextLabel6_2->setText( tr2i18n( "Please set the default policy for your chain:" ) );
    TextLabel1_3->setText( tr2i18n( "User defined chains do not have any \"Default Policy\" set because the packets return to the chain from which this chain is fed, right after the rule that fed the chain. If you want your user defined chains to act like built-in chains, enable the option \"Define Default Policy\" and set the policy to your needs." ) );
    TextLabel7->setText( tr2i18n( "The Default Policy decides what to do with Packets that do not match any of the rules defined for the Chain." ) );
    m_tabWidget->changeTab( tab, tr2i18n( "Policy" ) );
    gb_logging->setTitle( tr2i18n( "Logging" ) );
    c_enable_log->setText( tr2i18n( "Enable chain drop logging" ) );
    l_logging_2->setText( tr2i18n( "Here you can decide whether you would like to log all packets that did not match any rule at the end of the chain." ) );
    groupBox4->setTitle( TQString::null );
    c_log_prefix->setText( tr2i18n( "Use a log prefix:" ) );
    c_log_burst->setText( tr2i18n( "Burst limit:" ) );
    c_log_limit->setText( tr2i18n( "Limit logging: " ) );
    TextLabel8_2->setText( tr2i18n( "/" ) );
    cb_interval->clear();
    cb_interval->insertItem( tr2i18n( "second" ) );
    cb_interval->insertItem( tr2i18n( "minute" ) );
    cb_interval->insertItem( tr2i18n( "hour" ) );
    m_tabWidget->changeTab( tab_2, tr2i18n( "Logging" ) );
}

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

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

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

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

TQMetaObject *KMyFirewallChainEditor::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KMyFirewallChainEditor( "KMyFirewallChainEditor", &KMyFirewallChainEditor::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KMyFirewallChainEditor::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 = {"slotHelp", 0, 0 };
    static const TQUMethod slot_1 = {"accept", 0, 0 };
    static const TQUMethod slot_2 = {"reject", 0, 0 };
    static const TQUMethod slot_3 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotHelp()", &slot_0, TQMetaData::Public },
	{ "accept()", &slot_1, TQMetaData::Public },
	{ "reject()", &slot_2, TQMetaData::Public },
	{ "languageChange()", &slot_3, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KMyFirewallChainEditor", parentObject,
	slot_tbl, 4,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KMyFirewallChainEditor.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KMyFirewallChainEditor::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotHelp(); break;
    case 1: accept(); break;
    case 2: reject(); break;
    case 3: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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