@ -92,22 +92,22 @@ KMFRuleEdit::KMFRuleEdit( TQWidget* parent, const char* name, WFlags fl )
m_err = new KMFError ( ) ;
m_err = new KMFError ( ) ;
m_err_handler = new KMFErrorHandler ( " KMFRuleEdit " ) ;
m_err_handler = new KMFErrorHandler ( " KMFRuleEdit " ) ;
kb_optSelect - > clear ( ) ;
kb_optSelect - > clear ( ) ;
connect ( kb_optSelect , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( slotNewOptionType ( int ) ) ) ;
connect ( kb_optSelect , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( slotNewOptionType ( int ) ) ) ;
m_lv_table_filter = new KMFListView ( m_widgetStack , " m_lv_table_filter " ) ;
m_lv_table_filter = new KMFListView ( m_widgetStack , " m_lv_table_filter " ) ;
m_lv_table_filter - > show ( ) ;
m_lv_table_filter - > show ( ) ;
connect ( m_lv_table_filter , TQ T _SIGNAL( contextMenuRequested ( TQListViewItem * , const TQPoint & , int ) ) ,
connect ( m_lv_table_filter , TQ _SIGNAL( contextMenuRequested ( TQListViewItem * , const TQPoint & , int ) ) ,
this , TQ T _SLOT( slotRuleRBM ( TQListViewItem * , const TQPoint & , int ) ) ) ;
this , TQ _SLOT( slotRuleRBM ( TQListViewItem * , const TQPoint & , int ) ) ) ;
connect ( m_lv_table_filter , TQ T _SIGNAL( itemRenamed ( TQListViewItem * , int , const TQString & ) ) ,
connect ( m_lv_table_filter , TQ _SIGNAL( itemRenamed ( TQListViewItem * , int , const TQString & ) ) ,
this , TQ T _SLOT( slotRenameRule ( TQListViewItem * , int , const TQString & ) ) ) ;
this , TQ _SLOT( slotRenameRule ( TQListViewItem * , int , const TQString & ) ) ) ;
connect ( m_lv_table_filter , TQ T _SIGNAL( clicked ( TQListViewItem * ) ) ,
connect ( m_lv_table_filter , TQ _SIGNAL( clicked ( TQListViewItem * ) ) ,
this , TQ T _SLOT( slotNewItemSelected ( TQListViewItem * ) ) ) ;
this , TQ _SLOT( slotNewItemSelected ( TQListViewItem * ) ) ) ;
// connect( this, TQ T _SIGNAL( sigUpdateView() ),
// connect( this, TQ _SIGNAL( sigUpdateView() ),
// m_lv_table_filter, TQ T _SLOT( slotUpdateView() ) );
// m_lv_table_filter, TQ _SLOT( slotUpdateView() ) );
m_widgetStack - > addWidget ( m_lv_table_filter ) ;
m_widgetStack - > addWidget ( m_lv_table_filter ) ;
@ -115,28 +115,28 @@ KMFRuleEdit::KMFRuleEdit( TQWidget* parent, const char* name, WFlags fl )
m_lv_table_nat = new KMFListView ( m_widgetStack , " m_lv_table_nat " ) ;
m_lv_table_nat = new KMFListView ( m_widgetStack , " m_lv_table_nat " ) ;
m_lv_table_nat - > show ( ) ;
m_lv_table_nat - > show ( ) ;
connect ( m_lv_table_nat , TQ T _SIGNAL( contextMenuRequested ( TQListViewItem * , const TQPoint & , int ) ) ,
connect ( m_lv_table_nat , TQ _SIGNAL( contextMenuRequested ( TQListViewItem * , const TQPoint & , int ) ) ,
this , TQ T _SLOT( slotRuleRBM ( TQListViewItem * , const TQPoint & , int ) ) ) ;
this , TQ _SLOT( slotRuleRBM ( TQListViewItem * , const TQPoint & , int ) ) ) ;
connect ( m_lv_table_nat , TQ T _SIGNAL( itemRenamed ( TQListViewItem * , int , const TQString & ) ) ,
connect ( m_lv_table_nat , TQ _SIGNAL( itemRenamed ( TQListViewItem * , int , const TQString & ) ) ,
this , TQ T _SLOT( slotRenameRule ( TQListViewItem * , int , const TQString & ) ) ) ;
this , TQ _SLOT( slotRenameRule ( TQListViewItem * , int , const TQString & ) ) ) ;
connect ( m_lv_table_nat , TQ T _SIGNAL( clicked ( TQListViewItem * ) ) ,
connect ( m_lv_table_nat , TQ _SIGNAL( clicked ( TQListViewItem * ) ) ,
this , TQ T _SLOT( slotNewItemSelected ( TQListViewItem * ) ) ) ;
this , TQ _SLOT( slotNewItemSelected ( TQListViewItem * ) ) ) ;
m_widgetStack - > addWidget ( m_lv_table_nat ) ;
m_widgetStack - > addWidget ( m_lv_table_nat ) ;
m_lv_table_mangle = new KMFListView ( m_widgetStack , " m_lv_table_mangle " ) ;
m_lv_table_mangle = new KMFListView ( m_widgetStack , " m_lv_table_mangle " ) ;
m_lv_table_mangle - > show ( ) ;
m_lv_table_mangle - > show ( ) ;
connect ( m_lv_table_mangle , TQ T _SIGNAL( contextMenuRequested ( TQListViewItem * , const TQPoint & , int ) ) ,
connect ( m_lv_table_mangle , TQ _SIGNAL( contextMenuRequested ( TQListViewItem * , const TQPoint & , int ) ) ,
this , TQ T _SLOT( slotRuleRBM ( TQListViewItem * , const TQPoint & , int ) ) ) ;
this , TQ _SLOT( slotRuleRBM ( TQListViewItem * , const TQPoint & , int ) ) ) ;
connect ( m_lv_table_mangle , TQ T _SIGNAL( itemRenamed ( TQListViewItem * , int , const TQString & ) ) ,
connect ( m_lv_table_mangle , TQ _SIGNAL( itemRenamed ( TQListViewItem * , int , const TQString & ) ) ,
this , TQ T _SLOT( slotRenameRule ( TQListViewItem * , int , const TQString & ) ) ) ;
this , TQ _SLOT( slotRenameRule ( TQListViewItem * , int , const TQString & ) ) ) ;
connect ( m_lv_table_mangle , TQ T _SIGNAL( clicked ( TQListViewItem * ) ) ,
connect ( m_lv_table_mangle , TQ _SIGNAL( clicked ( TQListViewItem * ) ) ,
this , TQ T _SLOT( slotNewItemSelected ( TQListViewItem * ) ) ) ;
this , TQ _SLOT( slotNewItemSelected ( TQListViewItem * ) ) ) ;
@ -146,37 +146,37 @@ KMFRuleEdit::KMFRuleEdit( TQWidget* parent, const char* name, WFlags fl )
m_editchain = new KMFChainEdit ( this , " chianditor " , 0 ) ;
m_editchain = new KMFChainEdit ( this , " chianditor " , 0 ) ;
kdDebug ( ) < < " CONNECTING CHAINEDITOR " < < endl ;
kdDebug ( ) < < " CONNECTING CHAINEDITOR " < < endl ;
connect ( m_editchain , TQ T _SIGNAL( sigHideMe ( ) ) ,
connect ( m_editchain , TQ _SIGNAL( sigHideMe ( ) ) ,
this , TQ T _SLOT( slotShowOverview ( ) ) ) ;
this , TQ _SLOT( slotShowOverview ( ) ) ) ;
m_widgetStack - > addWidget ( m_editchain ) ;
m_widgetStack - > addWidget ( m_editchain ) ;
m_object_info = new KMFObjectInfo ( this , " rule info " ) ;
m_object_info = new KMFObjectInfo ( this , " rule info " ) ;
connect ( m_object_info , TQ T _SIGNAL( sigHideMe ( ) ) ,
connect ( m_object_info , TQ _SIGNAL( sigHideMe ( ) ) ,
this , TQ T _SLOT( slotShowOverview ( ) ) ) ;
this , TQ _SLOT( slotShowOverview ( ) ) ) ;
m_widgetStack - > addWidget ( m_object_info ) ;
m_widgetStack - > addWidget ( m_object_info ) ;
m_new_chain = new KMFNewChainDlg ( ) ;
m_new_chain = new KMFNewChainDlg ( ) ;
connect ( m_new_chain , TQ T _SIGNAL( sigUpdateView ( ) ) ,
connect ( m_new_chain , TQ _SIGNAL( sigUpdateView ( ) ) ,
this , TQ T _SIGNAL( sigUpdateView ( ) ) ) ;
this , TQ _SIGNAL( sigUpdateView ( ) ) ) ;
m_myNetworkWidget = new KMFMyNetworkWidget ( this , " KMFMyNetworkWidget " ) ;
m_myNetworkWidget = new KMFMyNetworkWidget ( this , " KMFMyNetworkWidget " ) ;
connect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
connect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_myNetworkWidget , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_myNetworkWidget , TQ _SLOT( slotUpdateView ( ) ) ) ;
connect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
connect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_myNetworkWidget , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_myNetworkWidget , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
connect ( m_myNetworkWidget , TQ T _SIGNAL( sigActiveTargetChanged ( ) ) , this , TQ T _SLOT( slotUpdateView ( ) ) ) ;
connect ( m_myNetworkWidget , TQ _SIGNAL( sigActiveTargetChanged ( ) ) , this , TQ _SLOT( slotUpdateView ( ) ) ) ;
m_myNetworkWidget - > hide ( ) ; //close( false );
m_myNetworkWidget - > hide ( ) ; //close( false );
m_check_input = new KMFCheckInput ( ) ;
m_check_input = new KMFCheckInput ( ) ;
m_contextMenu = new TDEPopupMenu ( this ) ;
m_contextMenu = new TDEPopupMenu ( this ) ;
connect ( cb_log_rule , TQ T _SIGNAL( clicked ( ) ) ,
connect ( cb_log_rule , TQ _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotLogRuleChanged ( ) ) ) ;
this , TQ _SLOT( slotLogRuleChanged ( ) ) ) ;
connect ( cb_disable_rule , TQ T _SIGNAL( clicked ( ) ) ,
connect ( cb_disable_rule , TQ _SIGNAL( clicked ( ) ) ,
this , TQ T _SLOT( slotEnableRuleChanged ( ) ) ) ;
this , TQ _SLOT( slotEnableRuleChanged ( ) ) ) ;
rb_filter - > setChecked ( true ) ;
rb_filter - > setChecked ( true ) ;
loadPlugins ( ) ;
loadPlugins ( ) ;
@ -406,91 +406,91 @@ void KMFRuleEdit::setCurrTableView( KMFListView* lv ) {
setEnabled ( true ) ;
setEnabled ( true ) ;
kdDebug ( ) < < " Enabling Filter View " < < endl ;
kdDebug ( ) < < " Enabling Filter View " < < endl ;
m_lv_table_filter - > setEnabled ( true ) ;
m_lv_table_filter - > setEnabled ( true ) ;
connect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
connect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_filter , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_filter , TQ _SLOT( slotUpdateView ( ) ) ) ;
connect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
connect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_filter , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_filter , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
kdDebug ( ) < < " Disabling Nat View " < < endl ;
kdDebug ( ) < < " Disabling Nat View " < < endl ;
m_lv_table_nat - > setEnabled ( false ) ;
m_lv_table_nat - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_nat , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_nat , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_nat , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_nat , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
kdDebug ( ) < < " Disabling Mangle View " < < endl ;
kdDebug ( ) < < " Disabling Mangle View " < < endl ;
m_lv_table_mangle - > setEnabled ( false ) ;
m_lv_table_mangle - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
} else if ( lv = = m_lv_table_nat ) {
} else if ( lv = = m_lv_table_nat ) {
setEnabled ( true ) ;
setEnabled ( true ) ;
kdDebug ( ) < < " Disabling Filter View " < < endl ;
kdDebug ( ) < < " Disabling Filter View " < < endl ;
m_lv_table_filter - > setEnabled ( false ) ;
m_lv_table_filter - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_filter , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_filter , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_filter , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_filter , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
kdDebug ( ) < < " Enabling Nat View " < < endl ;
kdDebug ( ) < < " Enabling Nat View " < < endl ;
m_lv_table_nat - > setEnabled ( true ) ;
m_lv_table_nat - > setEnabled ( true ) ;
connect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
connect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_nat , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_nat , TQ _SLOT( slotUpdateView ( ) ) ) ;
connect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
connect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_nat , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_nat , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
kdDebug ( ) < < " Disabling Mangle View " < < endl ;
kdDebug ( ) < < " Disabling Mangle View " < < endl ;
m_lv_table_mangle - > setEnabled ( false ) ;
m_lv_table_mangle - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
} else if ( lv = = m_lv_table_mangle ) {
} else if ( lv = = m_lv_table_mangle ) {
setEnabled ( true ) ;
setEnabled ( true ) ;
kdDebug ( ) < < " Disabling Filter View " < < endl ;
kdDebug ( ) < < " Disabling Filter View " < < endl ;
m_lv_table_filter - > setEnabled ( false ) ;
m_lv_table_filter - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_filter , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_filter , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_filter , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_filter , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
kdDebug ( ) < < " Disabling Nat View " < < endl ;
kdDebug ( ) < < " Disabling Nat View " < < endl ;
m_lv_table_nat - > setEnabled ( false ) ;
m_lv_table_nat - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
kdDebug ( ) < < " Enabling Mangle View " < < endl ;
kdDebug ( ) < < " Enabling Mangle View " < < endl ;
m_lv_table_mangle - > setEnabled ( true ) ;
m_lv_table_mangle - > setEnabled ( true ) ;
connect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
connect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( ) ) ) ;
connect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
connect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
} else if ( ! lv ) {
} else if ( ! lv ) {
kdDebug ( ) < < " Disabling Filter View " < < endl ;
kdDebug ( ) < < " Disabling Filter View " < < endl ;
m_lv_table_filter - > setEnabled ( false ) ;
m_lv_table_filter - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_filter , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_filter , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_filter , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_filter , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
kdDebug ( ) < < " Disabling Nat View " < < endl ;
kdDebug ( ) < < " Disabling Nat View " < < endl ;
m_lv_table_nat - > setEnabled ( false ) ;
m_lv_table_nat - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
kdDebug ( ) < < " Disabling Mangle View " < < endl ;
kdDebug ( ) < < " Disabling Mangle View " < < endl ;
m_lv_table_mangle - > setEnabled ( false ) ;
m_lv_table_mangle - > setEnabled ( false ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( ) ) ) ;
disconnect ( this , TQ T _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
disconnect ( this , TQ _SIGNAL( sigUpdateView ( NetfilterObject * ) ) ,
m_lv_table_mangle , TQ T _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
m_lv_table_mangle , TQ _SLOT( slotUpdateView ( NetfilterObject * ) ) ) ;
}
}
}
}
@ -967,7 +967,7 @@ void KMFRuleEdit::slotEditNetwork() {
// KMFMyNetworkWidget *wid = new KMFMyNetworkWidget( this, "name" );
// KMFMyNetworkWidget *wid = new KMFMyNetworkWidget( this, "name" );
// wid->setNetwork( m_network );
// wid->setNetwork( m_network );
// wid->slotUpdateView();
// wid->slotUpdateView();
/* connect( wid, TQ T _SIGNAL( sigActiveTargetChanged() ), this, TQT _SLOT( slotUpdateView() ) );*/
/* connect( wid, TQ _SIGNAL( sigActiveTargetChanged() ), this, TQ_SLOT( slotUpdateView() ) );*/
m_myNetworkWidget - > slotUpdateView ( ) ;
m_myNetworkWidget - > slotUpdateView ( ) ;
m_app - > setOutputWidget ( m_myNetworkWidget ) ;
m_app - > setOutputWidget ( m_myNetworkWidget ) ;
m_app - > showOutput ( ) ;
m_app - > showOutput ( ) ;
@ -1156,7 +1156,7 @@ void KMFRuleEdit::createRBM( NetfilterObject* obj ) {
TQString lab_str = i18n ( " Table: %1 " ) . arg ( name ) ;
TQString lab_str = i18n ( " Table: %1 " ) . arg ( name ) ;
m_contextMenu - > insertTitle ( lab_str ) ;
m_contextMenu - > insertTitle ( lab_str ) ;
m_contextMenu - > insertItem ( icon_new , i18n ( " Add Chain... " ) , this , TQ T _SLOT( slotAddChain ( ) ) ) ;
m_contextMenu - > insertItem ( icon_new , i18n ( " Add Chain... " ) , this , TQ _SLOT( slotAddChain ( ) ) ) ;
}
}
break ;
break ;
case NetfilterObject : : CHAIN :
case NetfilterObject : : CHAIN :
@ -1166,14 +1166,14 @@ void KMFRuleEdit::createRBM( NetfilterObject* obj ) {
TQString lab_str = i18n ( " Chain: %1 " ) . arg ( name ) ;
TQString lab_str = i18n ( " Chain: %1 " ) . arg ( name ) ;
m_contextMenu - > insertTitle ( icon_chain , lab_str ) ;
m_contextMenu - > insertTitle ( icon_chain , lab_str ) ;
m_contextMenu - > insertItem ( icon_new , i18n ( " Add Rule... " ) , this , TQ T _SLOT( slotAddRule ( ) ) ) ;
m_contextMenu - > insertItem ( icon_new , i18n ( " Add Rule... " ) , this , TQ _SLOT( slotAddRule ( ) ) ) ;
m_contextMenu - > insertSeparator ( ) ;
m_contextMenu - > insertSeparator ( ) ;
if ( ! chain - > isBuildIn ( ) )
if ( ! chain - > isBuildIn ( ) )
m_contextMenu - > insertItem ( icon_edit , i18n ( " Chain Documentation " ) , this , TQ T _SLOT( slotEditChainInfo ( ) ) ) ;
m_contextMenu - > insertItem ( icon_edit , i18n ( " Chain Documentation " ) , this , TQ _SLOT( slotEditChainInfo ( ) ) ) ;
m_contextMenu - > insertItem ( icon_new , i18n ( " Add Chain... " ) , this , TQ T _SLOT( slotAddChain ( ) ) ) ;
m_contextMenu - > insertItem ( icon_new , i18n ( " Add Chain... " ) , this , TQ _SLOT( slotAddChain ( ) ) ) ;
m_contextMenu - > insertItem ( icon_edit , i18n ( " Edit Chain " ) , this , TQ T _SLOT( slotEditChain ( ) ) ) ;
m_contextMenu - > insertItem ( icon_edit , i18n ( " Edit Chain " ) , this , TQ _SLOT( slotEditChain ( ) ) ) ;
if ( ! chain - > isBuildIn ( ) )
if ( ! chain - > isBuildIn ( ) )
m_contextMenu - > insertItem ( icon_del , i18n ( " Delete Chain " ) , this , TQ T _SLOT( slotDelChain ( ) ) ) ;
m_contextMenu - > insertItem ( icon_del , i18n ( " Delete Chain " ) , this , TQ _SLOT( slotDelChain ( ) ) ) ;
}
}
case NetfilterObject : : RULE :
case NetfilterObject : : RULE :
if ( IPTRule * rule = dynamic_cast < IPTRule * > ( obj ) ) {
if ( IPTRule * rule = dynamic_cast < IPTRule * > ( obj ) ) {
@ -1187,26 +1187,26 @@ void KMFRuleEdit::createRBM( NetfilterObject* obj ) {
for ( uint i = 0 ; i < m_editPlugins . count ( ) ; i + + ) {
for ( uint i = 0 ; i < m_editPlugins . count ( ) ; i + + ) {
sub_edit - > insertItem ( icon_edit , i18n ( " Edit %1 " ) . arg ( m_editPlugins . at ( i ) - > optionEditName ( ) ) , i ) ;
sub_edit - > insertItem ( icon_edit , i18n ( " Edit %1 " ) . arg ( m_editPlugins . at ( i ) - > optionEditName ( ) ) , i ) ;
}
}
connect ( sub_edit , TQ T _SIGNAL( activated ( int ) ) ,
connect ( sub_edit , TQ _SIGNAL( activated ( int ) ) ,
this , TQ T _SLOT( slotNewOptionType ( int ) ) ) ;
this , TQ _SLOT( slotNewOptionType ( int ) ) ) ;
m_contextMenu - > insertItem ( i18n ( " Edit Rule Option " ) , sub_edit ) ;
m_contextMenu - > insertItem ( i18n ( " Edit Rule Option " ) , sub_edit ) ;
// m_contextMenu->insertItem( icon_new, i18n( "Add Rule..." ), this, TQ T _SLOT( slotAddRule() ) );
// m_contextMenu->insertItem( icon_new, i18n( "Add Rule..." ), this, TQ _SLOT( slotAddRule() ) );
m_contextMenu - > insertItem ( icon_new , i18n ( " Insert Rule... " ) , this , TQ T _SLOT( slotAddRule ( ) ) ) ;
m_contextMenu - > insertItem ( icon_new , i18n ( " Insert Rule... " ) , this , TQ _SLOT( slotAddRule ( ) ) ) ;
// m_contextMenu->insertSeparator();
// m_contextMenu->insertSeparator();
m_contextMenu - > insertItem ( icon_del , i18n ( " Delete Rule " ) , this , TQ T _SLOT( slotDelRule ( ) ) ) ;
m_contextMenu - > insertItem ( icon_del , i18n ( " Delete Rule " ) , this , TQ _SLOT( slotDelRule ( ) ) ) ;
m_contextMenu - > insertSeparator ( ) ;
m_contextMenu - > insertSeparator ( ) ;
m_contextMenu - > insertItem ( icon_rename , i18n ( " Rename Rule " ) , this , TQ T _SLOT( slotRenameRule ( ) ) ) ;
m_contextMenu - > insertItem ( icon_rename , i18n ( " Rename Rule " ) , this , TQ _SLOT( slotRenameRule ( ) ) ) ;
m_contextMenu - > insertItem ( icon_edit , i18n ( " Rule Documentation " ) , this , TQ T _SLOT( slotEditRuleInfo ( ) ) ) ;
m_contextMenu - > insertItem ( icon_edit , i18n ( " Rule Documentation " ) , this , TQ _SLOT( slotEditRuleInfo ( ) ) ) ;
m_contextMenu - > insertItem ( icon_up , i18n ( " Move Up " ) , this , TQ T _SLOT( slotMoveRuleUp ( ) ) ) ;
m_contextMenu - > insertItem ( icon_up , i18n ( " Move Up " ) , this , TQ _SLOT( slotMoveRuleUp ( ) ) ) ;
m_contextMenu - > insertItem ( icon_down , i18n ( " Move Down " ) , this , TQ T _SLOT( slotMoveRuleDown ( ) ) ) ;
m_contextMenu - > insertItem ( icon_down , i18n ( " Move Down " ) , this , TQ _SLOT( slotMoveRuleDown ( ) ) ) ;
m_contextMenu - > insertSeparator ( ) ;
m_contextMenu - > insertSeparator ( ) ;
m_contextMenu - > insertItem ( icon_edit , i18n ( " Edit Chain " ) , this , TQ T _SLOT( slotEditChain ( ) ) ) ;
m_contextMenu - > insertItem ( icon_edit , i18n ( " Edit Chain " ) , this , TQ _SLOT( slotEditChain ( ) ) ) ;
if ( ! rule - > chain ( ) - > isBuildIn ( ) )
if ( ! rule - > chain ( ) - > isBuildIn ( ) )
m_contextMenu - > insertItem ( icon_del , i18n ( " Delete Chain " ) , this , TQ T _SLOT( slotDelChain ( ) ) ) ;
m_contextMenu - > insertItem ( icon_del , i18n ( " Delete Chain " ) , this , TQ _SLOT( slotDelChain ( ) ) ) ;
m_contextMenu - > insertSeparator ( ) ;
m_contextMenu - > insertSeparator ( ) ;
TDEPopupMenu * sub_copy = new TDEPopupMenu ( m_contextMenu ) ;
TDEPopupMenu * sub_copy = new TDEPopupMenu ( m_contextMenu ) ;
connect ( sub_copy , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( slotCopyRule ( int ) ) ) ;
connect ( sub_copy , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( slotCopyRule ( int ) ) ) ;
sub_copy - > insertTitle ( i18n ( " Copy to Chain " ) ) ;
sub_copy - > insertTitle ( i18n ( " Copy to Chain " ) ) ;
TQPtrList < IPTChain > chains = m_table - > chains ( ) ;
TQPtrList < IPTChain > chains = m_table - > chains ( ) ;
for ( uint i = 0 ; i < chains . count ( ) ; i + + ) {
for ( uint i = 0 ; i < chains . count ( ) ; i + + ) {
@ -1216,7 +1216,7 @@ void KMFRuleEdit::createRBM( NetfilterObject* obj ) {
m_contextMenu - > insertItem ( icon_copy , i18n ( " Copy Rule " ) , sub_copy ) ;
m_contextMenu - > insertItem ( icon_copy , i18n ( " Copy Rule " ) , sub_copy ) ;
TDEPopupMenu * sub_move = new TDEPopupMenu ( m_contextMenu ) ;
TDEPopupMenu * sub_move = new TDEPopupMenu ( m_contextMenu ) ;
connect ( sub_move , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( slotMoveRule ( int ) ) ) ;
connect ( sub_move , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( slotMoveRule ( int ) ) ) ;
sub_move - > insertTitle ( i18n ( " Move to Chain " ) ) ;
sub_move - > insertTitle ( i18n ( " Move to Chain " ) ) ;
TQPtrList < IPTChain > chains2 = m_table - > chains ( ) ;
TQPtrList < IPTChain > chains2 = m_table - > chains ( ) ;
for ( uint i = 0 ; i < chains2 . count ( ) ; i + + ) {
for ( uint i = 0 ; i < chains2 . count ( ) ; i + + ) {