Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/11/head
Michele Calgaro 10 months ago
parent 487235a78d
commit 6df466c45a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -42,11 +42,11 @@ MainApp::MainApp() : TDEApplication() {
// TDEConfig *ksConfig = config(); // TDEConfig *ksConfig = config();
// KMFIPTWatcher *watch = new KMFIPTWatcher( this, "KMFIPTWatcher" ); // KMFIPTWatcher *watch = new KMFIPTWatcher( this, "KMFIPTWatcher" );
// MainWidget *mainWid = new MainWidget( 0 ); // MainWidget *mainWid = new MainWidget( 0 );
// connect( watch, TQT_SIGNAL( sigUpdateActive( bool ) ), mainWid, TQT_SLOT( slotSetRunningStatus( bool ) ) ); // connect( watch, TQ_SIGNAL( sigUpdateActive( bool ) ), mainWid, TQ_SLOT( slotSetRunningStatus( bool ) ) );
// connect( watch, TQT_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ), // connect( watch, TQ_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ),
// mainWid, TQT_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ) ); // mainWid, TQ_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ) );
// connect( mainWid, TQT_SIGNAL( sigQueryDetails( bool ) ), watch, TQT_SLOT( slotQueryDetails( bool ) ) ); // connect( mainWid, TQ_SIGNAL( sigQueryDetails( bool ) ), watch, TQ_SLOT( slotQueryDetails( bool ) ) );
/* /*
TQHBoxLayout *_layout = new TQHBoxLayout(this); TQHBoxLayout *_layout = new TQHBoxLayout(this);
_layout->add(mainWid);*/ _layout->add(mainWid);*/

@ -31,7 +31,7 @@
Details::Details( TQWidget* parent, const char* name, WFlags fl ) Details::Details( TQWidget* parent, const char* name, WFlags fl )
: DetailsDesigner( parent, name, fl ) { : DetailsDesigner( parent, name, fl ) {
TQObject::connect( m_cmd_close, TQT_SIGNAL( clicked() ), this, TQT_SLOT ( close() ) ); TQObject::connect( m_cmd_close, TQ_SIGNAL( clicked() ), this, TQ_SLOT ( close() ) );
} }

@ -55,7 +55,7 @@ KMFIPTWatcher::~KMFIPTWatcher() {}
void KMFIPTWatcher::go() { void KMFIPTWatcher::go() {
// KMessageBox::information( 0, i18n( "go()" ) ); // KMessageBox::information( 0, i18n( "go()" ) );
m_timer = new TQTimer(); m_timer = new TQTimer();
TQObject::connect( m_timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( timeout() ) ); TQObject::connect( m_timer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( timeout() ) );
m_timer->start( 3000, false ); m_timer->start( 3000, false );
} }

@ -54,19 +54,19 @@ KMFSysTray::KMFSysTray( TQWidget* w ) : KSystemTray ( w ) , DCOPObject( "KMFSys
setPixmap( baseIcon ); setPixmap( baseIcon );
// Connect the watch deamon // Connect the watch deamon
connect( watch, TQT_SIGNAL( sigUpdateActive( bool ) ), this, TQT_SLOT( slotSetRunningStatus( bool ) ) ); connect( watch, TQ_SIGNAL( sigUpdateActive( bool ) ), this, TQ_SLOT( slotSetRunningStatus( bool ) ) );
connect( watch, TQT_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ), connect( watch, TQ_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ),
this, TQT_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ) ); this, TQ_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ) );
connect( watch, TQT_SIGNAL( sigUpdateIPTDoc( KMFIPTDoc* ) ), connect( watch, TQ_SIGNAL( sigUpdateIPTDoc( KMFIPTDoc* ) ),
this, TQT_SIGNAL( sigUpdateIPTDoc( KMFIPTDoc* ) ) ); this, TQ_SIGNAL( sigUpdateIPTDoc( KMFIPTDoc* ) ) );
connect( this, TQT_SIGNAL( sigQueryDetails( bool ) ), watch, TQT_SLOT( slotQueryDetails( bool ) ) ); connect( this, TQ_SIGNAL( sigQueryDetails( bool ) ), watch, TQ_SLOT( slotQueryDetails( bool ) ) );
// Connect view // Connect view
connect( w, TQT_SIGNAL( closing() ), this, TQT_SLOT ( slotDetailsClosed() ) ); connect( w, TQ_SIGNAL( closing() ), this, TQ_SLOT ( slotDetailsClosed() ) );
connect( w, TQT_SIGNAL( showing() ), this, TQT_SLOT ( slotQueryDetails() ) ); connect( w, TQ_SIGNAL( showing() ), this, TQ_SLOT ( slotQueryDetails() ) );
connect( this, TQT_SIGNAL( sigUpdateIPTDoc( KMFIPTDoc* ) ), w, TQT_SLOT( slotLoadDoc( KMFIPTDoc* ) ) ); connect( this, TQ_SIGNAL( sigUpdateIPTDoc( KMFIPTDoc* ) ), w, TQ_SLOT( slotLoadDoc( KMFIPTDoc* ) ) );
initMenu(); initMenu();
@ -82,7 +82,7 @@ KMFSysTray::~KMFSysTray() {}
void KMFSysTray::initMenu() { void KMFSysTray::initMenu() {
TDEPopupMenu* menu = contextMenu (); TDEPopupMenu* menu = contextMenu ();
menu->insertItem( TDEGlobal::iconLoader()->loadIcon( "kmyfirewall", TDEIcon::Small ), i18n( "Launch KMyFirewall..."), this, TQT_SLOT( slotLaunchKMF() ), CTRL+Key_K ); menu->insertItem( TDEGlobal::iconLoader()->loadIcon( "kmyfirewall", TDEIcon::Small ), i18n( "Launch KMyFirewall..."), this, TQ_SLOT( slotLaunchKMF() ), CTRL+Key_K );
} }

@ -39,10 +39,10 @@ MainWidget::MainWidget(TQWidget* parent, const char* name, WFlags fl)
m_ledActive->off(); m_ledActive->off();
m_cmd_info->setEnabled( false ); m_cmd_info->setEnabled( false );
m_wid_details = new Details( 0 ); m_wid_details = new Details( 0 );
connect( m_wid_details, TQT_SIGNAL( closing() ), this, TQT_SLOT ( slotDetailsClosed() ) ); connect( m_wid_details, TQ_SIGNAL( closing() ), this, TQ_SLOT ( slotDetailsClosed() ) );
connect( this, TQT_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ), connect( this, TQ_SIGNAL( sigUpdateRuleCount( const TQString&, const TQString&, int ) ),
m_wid_details, TQT_SLOT( slotUpdateRuleCount( const TQString&, const TQString&, int ) ) ); m_wid_details, TQ_SLOT( slotUpdateRuleCount( const TQString&, const TQString&, int ) ) );
connect( m_cmd_info, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotShowDetails() ) ) ; connect( m_cmd_info, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotShowDetails() ) ) ;
} }
MainWidget::~MainWidget() MainWidget::~MainWidget()

@ -1073,13 +1073,13 @@ KMFRuleOptionEditMAC::KMFRuleOptionEditMAC(TQObject *parent, const char *name)
m_edit->hide(); m_edit->hide();
// Connect the Signals for the editor class to our slots passing them to the app // Connect the Signals for the editor class to our slots passing them to the app
connect( m_edit,SIGNAL(sigAddRuleOpt(TQString*, QPtrList&lt; TQString &gt;* ) ), connect( m_edit,TQ_SIGNAL(sigAddRuleOpt(TQString*, QPtrList&lt; TQString &gt;* ) ),
this,SLOT( slotAddRuleOption(TQString*, QPtrList&lt; TQString &gt;* ) ) ); this,TQ_SLOT( slotAddRuleOption(TQString*, QPtrList&lt; TQString &gt;* ) ) );
// //
//connect( m_edit,SIGNAL(sigAddTargetOpt(TQString*, QPtrList&lt; TQString &gt;* ) ), //connect( m_edit,TQ_SIGNAL(sigAddTargetOpt(TQString*, QPtrList&lt; TQString &gt;* ) ),
// this,SLOT( slotAddTargetOption(TQString*, QPtrList&lt; TQString &gt;* ) ) ); // this,TQ_SLOT( slotAddTargetOption(TQString*, QPtrList&lt; TQString &gt;* ) ) );
connect( m_edit,SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditMAC::~KMFRuleOptionEditMAC() {} KMFRuleOptionEditMAC::~KMFRuleOptionEditMAC() {}

@ -52,11 +52,11 @@ KMFIPTablesCompiler::KMFIPTablesCompiler( TQObject* parent, const char* name ) :
m_errorHandler = new KMFErrorHandler( "KMFIPTablesCompiler" ); m_errorHandler = new KMFErrorHandler( "KMFIPTablesCompiler" );
m_iptWidget = 0; m_iptWidget = 0;
new TDEAction( i18n( "&Export as IPTables (Linux) Script" ), "fileexport", new TDEAction( i18n( "&Export as IPTables (Linux) Script" ), "fileexport",
0, this, TQT_SLOT( slotExportIPT() ), actionCollection(), "compile_iptables" ); 0, this, TQ_SLOT( slotExportIPT() ), actionCollection(), "compile_iptables" );
if ( genericDoc() ) { if ( genericDoc() ) {
new TDEAction( i18n( "&Convert to IPTables Document and View" ), "fileexport", new TDEAction( i18n( "&Convert to IPTables Document and View" ), "fileexport",
0, this, TQT_SLOT( slotConvertToIPTDoc() ), actionCollection(), "convert_to_iptdoc" ); 0, this, TQ_SLOT( slotConvertToIPTDoc() ), actionCollection(), "convert_to_iptdoc" );
setXMLFile( "kmfiptablescompiler.rc" ); setXMLFile( "kmfiptablescompiler.rc" );
kdDebug() << "KMFIPTablesCompiler: Finished initialisation." << endl; kdDebug() << "KMFIPTablesCompiler: Finished initialisation." << endl;

@ -45,7 +45,7 @@ KMFPFCompiler::KMFPFCompiler( TQObject* parent, const char* name ) : KMFPlugin(
if ( genericDoc() ) { if ( genericDoc() ) {
new TDEAction( i18n( "Export as &PF (OpenBSD) Script" ), "fileexport", new TDEAction( i18n( "Export as &PF (OpenBSD) Script" ), "fileexport",
0, this, TQT_SLOT( slotExportPF() ), actionCollection(), "compile_pf" ); 0, this, TQ_SLOT( slotExportPF() ), actionCollection(), "compile_pf" );
setXMLFile( "kmfpfcompiler.rc" ); setXMLFile( "kmfpfcompiler.rc" );
kdDebug() << "KMFPFCompiler: Finished initialisation." << endl; kdDebug() << "KMFPFCompiler: Finished initialisation." << endl;

@ -175,10 +175,10 @@ KMFProtocolUsage* KMFNetHost::addProtocolUsage( const TQUuid& protocolUuid, cons
} }
new_protocol->setProtocol( prot ); new_protocol->setProtocol( prot );
m_protocols.append( new_protocol ); m_protocols.append( new_protocol );
disconnect( new_protocol, TQT_SIGNAL( destroyed( TQObject* ) ), disconnect( new_protocol, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolUsageDeleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolUsageDeleted( TQObject* ) ) );
connect( new_protocol, TQT_SIGNAL( destroyed( TQObject* ) ), connect( new_protocol, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolUsageDeleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolUsageDeleted( TQObject* ) ) );
changed(); changed();
return new_protocol; return new_protocol;
} }

@ -463,10 +463,10 @@ KMFProtocolUsage* KMFNetZone::addProtocolUsage( const TQUuid& protocolUuid, cons
} }
new_protocol->setProtocol( prot ); new_protocol->setProtocol( prot );
m_protocols.append( new_protocol ); m_protocols.append( new_protocol );
disconnect( new_protocol, TQT_SIGNAL( destroyed( TQObject* ) ), disconnect( new_protocol, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolUsageDeleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolUsageDeleted( TQObject* ) ) );
connect( new_protocol, TQT_SIGNAL( destroyed( TQObject* ) ), connect( new_protocol, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolUsageDeleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolUsageDeleted( TQObject* ) ) );
changed(); changed();
return new_protocol; return new_protocol;
} }

@ -87,10 +87,10 @@ void KMFProtocolUsage::setProtocol( KMFProtocol* p ) {
// kdDebug() << "KMFProtocolUsage::setProtocol( KMFProtocol* " << p->name() << " )" << endl; // kdDebug() << "KMFProtocolUsage::setProtocol( KMFProtocol* " << p->name() << " )" << endl;
m_protocol = p; m_protocol = p;
disconnect( m_protocol, TQT_SIGNAL( destroyed( TQObject* ) ), disconnect( m_protocol, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolDeleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolDeleted( TQObject* ) ) );
connect( m_protocol, TQT_SIGNAL( destroyed( TQObject* ) ), connect( m_protocol, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolDeleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolDeleted( TQObject* ) ) );
} }
void KMFProtocolUsage::slotOnProtocolDeleted( TQObject* ) { void KMFProtocolUsage::slotOnProtocolDeleted( TQObject* ) {

@ -276,7 +276,7 @@ KMFError* KMFTarget::tryAutoConfiguration() {
// //
// disconnect( // disconnect(
// TDEProcessWrapper::instance(), // TDEProcessWrapper::instance(),
// TQT_SIGNAL( sigProcessFinished( // TQ_SIGNAL( sigProcessFinished(
// const TQString&, // const TQString&,
// int, // int,
// bool, // bool,
@ -284,7 +284,7 @@ KMFError* KMFTarget::tryAutoConfiguration() {
// const TQString& , // const TQString& ,
// const TQString& ) ), // const TQString& ) ),
// this, // this,
// TQT_SLOT( slotProcessFinished( // TQ_SLOT( slotProcessFinished(
// const TQString&, // const TQString&,
// int, // int,
// bool, // bool,

@ -51,9 +51,9 @@ TDEProcessWrapper::TDEProcessWrapper( TQObject* parent, const char* name ) : TQ
m_status = -1; m_status = -1;
m_exitedNormal = false; m_exitedNormal = false;
connect( m_childproc, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), this, TQT_SLOT( slotReceivedOutput( TDEProcess*, char*, int ) ) ); connect( m_childproc, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), this, TQ_SLOT( slotReceivedOutput( TDEProcess*, char*, int ) ) );
connect( m_childproc, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), this, TQT_SLOT( slotReceivedError( TDEProcess*, char*, int ) ) ); connect( m_childproc, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), this, TQ_SLOT( slotReceivedError( TDEProcess*, char*, int ) ) );
connect( m_childproc, TQT_SIGNAL( processExited( TDEProcess* ) ), this, TQT_SLOT( slotProcessExited( TDEProcess* ) ) ) ; connect( m_childproc, TQ_SIGNAL( processExited( TDEProcess* ) ), this, TQ_SLOT( slotProcessExited( TDEProcess* ) ) ) ;
} }
TDEProcessWrapper::~TDEProcessWrapper() TDEProcessWrapper::~TDEProcessWrapper()

@ -49,19 +49,19 @@
namespace KMF { namespace KMF {
KMFGenericInterface::KMFGenericInterface( TQWidget *parent, const char *name ) : KJanusWidget( parent, name, KJanusWidget::IconList ) { KMFGenericInterface::KMFGenericInterface( TQWidget *parent, const char *name ) : KJanusWidget( parent, name, KJanusWidget::IconList ) {
connect( this,TQT_SIGNAL( aboutToShowPage( TQWidget* ) ), connect( this,TQ_SIGNAL( aboutToShowPage( TQWidget* ) ),
this,TQT_SLOT( slotPageChanged( TQWidget* ) ) ); this,TQ_SLOT( slotPageChanged( TQWidget* ) ) );
loadIcons(); loadIcons();
//###################### My Network Widget ################################### //###################### My Network Widget ###################################
myNetworkFrame = addPage(i18n("My Network"), i18n("Define and configure the firewall host you like to configure"), icon_zone_page ); myNetworkFrame = addPage(i18n("My Network"), i18n("Define and configure the firewall host you like to configure"), icon_zone_page );
m_myNetworkWidget = new KMFMyNetworkWidget( myNetworkFrame, "m_myNetworkWidget" ); m_myNetworkWidget = new KMFMyNetworkWidget( myNetworkFrame, "m_myNetworkWidget" );
connect( this, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_myNetworkWidget, TQT_SLOT( slotUpdateView() ) ); m_myNetworkWidget, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_myNetworkWidget, TQT_SLOT( slotUpdateView( NetfilterObject* ) ) ); m_myNetworkWidget, TQ_SLOT( slotUpdateView( NetfilterObject* ) ) );
connect( m_myNetworkWidget, TQT_SIGNAL( sigActiveTargetChanged() ), this, TQT_SIGNAL( sigTargetChanged() ) ); connect( m_myNetworkWidget, TQ_SIGNAL( sigActiveTargetChanged() ), this, TQ_SIGNAL( sigTargetChanged() ) );
TQGridLayout *myNetworkLayout = new TQGridLayout( myNetworkFrame, 1, 1, 2, 2 ); TQGridLayout *myNetworkLayout = new TQGridLayout( myNetworkFrame, 1, 1, 2, 2 );
myNetworkLayout->addWidget( m_myNetworkWidget,0,0 ); myNetworkLayout->addWidget( m_myNetworkWidget,0,0 );
@ -70,10 +70,10 @@ KMFGenericInterface::KMFGenericInterface( TQWidget *parent, const char *name ) :
protocolFrame = addPage(i18n("Access Control"), i18n("Access configuration for incoming and outgoing connections"), icon_protocol_page ); protocolFrame = addPage(i18n("Access Control"), i18n("Access configuration for incoming and outgoing connections"), icon_protocol_page );
m_protocolPageZones = new KMFGenericInterfaceProtocol( protocolFrame, "m_protocolPageIncoming"); m_protocolPageZones = new KMFGenericInterfaceProtocol( protocolFrame, "m_protocolPageIncoming");
connect( this, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_protocolPageZones, TQT_SLOT( slotUpdateView() ) ); m_protocolPageZones, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_protocolPageZones, TQT_SLOT( slotUpdateView( NetfilterObject* ) ) ); m_protocolPageZones, TQ_SLOT( slotUpdateView( NetfilterObject* ) ) );
TQGridLayout *protocoLayout = new TQGridLayout( protocolFrame, 1, 1, 2, 2 ); TQGridLayout *protocoLayout = new TQGridLayout( protocolFrame, 1, 1, 2, 2 );
protocoLayout->addWidget( m_protocolPageZones,0,0 ); protocoLayout->addWidget( m_protocolPageZones,0,0 );
@ -81,10 +81,10 @@ KMFGenericInterface::KMFGenericInterface( TQWidget *parent, const char *name ) :
//###################### HOSTS PAGE ################################### //###################### HOSTS PAGE ###################################
hostFrame = addPage(i18n("Special Hosts"), i18n("Define Hosts that should be treated specially."), icon_host_page ); hostFrame = addPage(i18n("Special Hosts"), i18n("Define Hosts that should be treated specially."), icon_host_page );
m_hostPage = new KMFGenericInterfaceHost(hostFrame,"m_hostPageTrusted"); m_hostPage = new KMFGenericInterfaceHost(hostFrame,"m_hostPageTrusted");
connect( this, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_hostPage, TQT_SLOT( slotUpdateView() ) ); m_hostPage, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_hostPage, TQT_SLOT( slotUpdateView( NetfilterObject* ) ) ); m_hostPage, TQ_SLOT( slotUpdateView( NetfilterObject* ) ) );
TQGridLayout *hostLayout = new TQGridLayout( hostFrame, 1, 1, 2, 2 ); TQGridLayout *hostLayout = new TQGridLayout( hostFrame, 1, 1, 2, 2 );
hostLayout->addWidget( m_hostPage,0,0 ); hostLayout->addWidget( m_hostPage,0,0 );
@ -93,10 +93,10 @@ KMFGenericInterface::KMFGenericInterface( TQWidget *parent, const char *name ) :
icmpFrame = addPage(i18n("ICMP Options"), i18n("Define how ICMP packets should be handled."), icon_icmp_page ); icmpFrame = addPage(i18n("ICMP Options"), i18n("Define how ICMP packets should be handled."), icon_icmp_page );
TQGridLayout *icmpLayout = new TQGridLayout( icmpFrame, 1, 1, 2, 2 ); TQGridLayout *icmpLayout = new TQGridLayout( icmpFrame, 1, 1, 2, 2 );
m_icmpPage = new KMFGenericInterfaceIcmp(icmpFrame,"m_icmpPage"); m_icmpPage = new KMFGenericInterfaceIcmp(icmpFrame,"m_icmpPage");
connect( this, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_icmpPage, TQT_SLOT( slotUpdateView() ) ); m_icmpPage, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_icmpPage, TQT_SLOT( slotUpdateView( NetfilterObject* ) ) ); m_icmpPage, TQ_SLOT( slotUpdateView( NetfilterObject* ) ) );
icmpLayout->addWidget( m_icmpPage,0,0 ); icmpLayout->addWidget( m_icmpPage,0,0 );
@ -105,10 +105,10 @@ KMFGenericInterface::KMFGenericInterface( TQWidget *parent, const char *name ) :
natFrame = addPage(i18n("NAT Configuration"), i18n("Configure NAT (Network Address Translation) here."), icon_nat_page ); natFrame = addPage(i18n("NAT Configuration"), i18n("Configure NAT (Network Address Translation) here."), icon_nat_page );
TQGridLayout *natLayout = new TQGridLayout( natFrame, 1, 1, 2, 2 ); TQGridLayout *natLayout = new TQGridLayout( natFrame, 1, 1, 2, 2 );
m_natPage = new KMFGenericInterfaceNat(natFrame,"m_natPage"); m_natPage = new KMFGenericInterfaceNat(natFrame,"m_natPage");
connect( this, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_natPage, TQT_SLOT( slotUpdateView() ) ); m_natPage, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_natPage, TQT_SLOT( slotUpdateView( NetfilterObject* ) ) ); m_natPage, TQ_SLOT( slotUpdateView( NetfilterObject* ) ) );
natLayout->addWidget( m_natPage,0,0 ); natLayout->addWidget( m_natPage,0,0 );
@ -116,10 +116,10 @@ KMFGenericInterface::KMFGenericInterface( TQWidget *parent, const char *name ) :
logFrame = addPage(i18n("Logging"), i18n("Configure your firewall's logging behavior here."), icon_logging_page ); logFrame = addPage(i18n("Logging"), i18n("Configure your firewall's logging behavior here."), icon_logging_page );
TQGridLayout *logLayout = new TQGridLayout( logFrame, 1, 1, 2, 2 ); TQGridLayout *logLayout = new TQGridLayout( logFrame, 1, 1, 2, 2 );
m_loggingPage = new KMFGenericInterfaceLogging(logFrame,"m_loggingPage"); m_loggingPage = new KMFGenericInterfaceLogging(logFrame,"m_loggingPage");
connect( this, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_loggingPage, TQT_SLOT( slotUpdateView() ) ); m_loggingPage, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_loggingPage, TQT_SLOT( slotUpdateView( NetfilterObject* ) ) ); m_loggingPage, TQ_SLOT( slotUpdateView( NetfilterObject* ) ) );
logLayout->addWidget( m_loggingPage,0,0 ); logLayout->addWidget( m_loggingPage,0,0 );

@ -49,39 +49,39 @@ KMFGenericInterfacePart::KMFGenericInterfacePart( TQWidget *parentWidget, const
} }
m_genericinterface->loadDoc( m_app->network() ); m_genericinterface->loadDoc( m_app->network() );
connect( m_genericinterface, TQT_SIGNAL( sigTargetChanged() ), connect( m_genericinterface, TQ_SIGNAL( sigTargetChanged() ),
this, TQT_SLOT( slotTargetChanged() ) ); this, TQ_SLOT( slotTargetChanged() ) );
connect( m_app, TQT_SIGNAL( sigUpdateView() ), connect( m_app, TQ_SIGNAL( sigUpdateView() ),
m_genericinterface, TQT_SIGNAL( sigUpdateView() ) ); m_genericinterface, TQ_SIGNAL( sigUpdateView() ) );
connect( m_app, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( m_app, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_genericinterface, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ) ); m_genericinterface, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ) );
connect( m_app, TQT_SIGNAL( sigEnableActions( bool ) ), connect( m_app, TQ_SIGNAL( sigEnableActions( bool ) ),
this, TQT_SLOT( slotEnableActions( bool ) ) ); this, TQ_SLOT( slotEnableActions( bool ) ) );
m_actionGoMyNetwork = new TDEAction( i18n( "&My Network" ), TQIconSet( BarIcon( "network", KMFGenericInterfacePartFactory::instance() ) ), m_actionGoMyNetwork = new TDEAction( i18n( "&My Network" ), TQIconSet( BarIcon( "network", KMFGenericInterfacePartFactory::instance() ) ),
0 , this, TQT_SLOT( slotGoMyNetwork() ), actionCollection(), "my_network" ); 0 , this, TQ_SLOT( slotGoMyNetwork() ), actionCollection(), "my_network" );
m_actionGoAccessControl = new TDEAction( i18n( "&Access Control" ), TQIconSet( BarIcon( "services", KMFGenericInterfacePartFactory::instance() ) ), m_actionGoAccessControl = new TDEAction( i18n( "&Access Control" ), TQIconSet( BarIcon( "services", KMFGenericInterfacePartFactory::instance() ) ),
0 , this, TQT_SLOT( slotGoAccessControl() ), actionCollection(), "access_control" ); 0 , this, TQ_SLOT( slotGoAccessControl() ), actionCollection(), "access_control" );
m_actionGoSpecialHosts = new TDEAction( i18n( "&Special Hosts Control" ), TQIconSet( BarIcon( "network_local", KMFGenericInterfacePartFactory::instance() ) ), m_actionGoSpecialHosts = new TDEAction( i18n( "&Special Hosts Control" ), TQIconSet( BarIcon( "network_local", KMFGenericInterfacePartFactory::instance() ) ),
0 , this, TQT_SLOT( slotGoSpecialHosts() ), actionCollection(), "special_hosts" ); 0 , this, TQ_SLOT( slotGoSpecialHosts() ), actionCollection(), "special_hosts" );
m_actionGoICMPOptions = new TDEAction( i18n( "&ICMP Options" ), TQIconSet( BarIcon( "pipe", KMFGenericInterfacePartFactory::instance() ) ), m_actionGoICMPOptions = new TDEAction( i18n( "&ICMP Options" ), TQIconSet( BarIcon( "pipe", KMFGenericInterfacePartFactory::instance() ) ),
0 , this, TQT_SLOT( slotGoICMPOptions() ), actionCollection(), "icmp_options" ); 0 , this, TQ_SLOT( slotGoICMPOptions() ), actionCollection(), "icmp_options" );
m_actionGoNATConfiguration = new TDEAction( i18n( "&NAT Configuration" ), TQIconSet( BarIcon( "document-save-as", KMFGenericInterfacePartFactory::instance() ) ), m_actionGoNATConfiguration = new TDEAction( i18n( "&NAT Configuration" ), TQIconSet( BarIcon( "document-save-as", KMFGenericInterfacePartFactory::instance() ) ),
0 , this, TQT_SLOT( slotGoNATConfiguration() ), actionCollection(), "nat_configuration" ); 0 , this, TQ_SLOT( slotGoNATConfiguration() ), actionCollection(), "nat_configuration" );
m_actionGoLogging = new TDEAction( i18n( "&Logging" ), TQIconSet( BarIcon( "text-x-log", KMFGenericInterfacePartFactory::instance() ) ), m_actionGoLogging = new TDEAction( i18n( "&Logging" ), TQIconSet( BarIcon( "text-x-log", KMFGenericInterfacePartFactory::instance() ) ),
0 , this, TQT_SLOT( slotGoLogging() ), actionCollection(), "logging_options" ); 0 , this, TQ_SLOT( slotGoLogging() ), actionCollection(), "logging_options" );
setWidget( m_genericinterface ); setWidget( m_genericinterface );

@ -55,38 +55,38 @@ KMFGenericInterfaceHost::KMFGenericInterfaceHost( TQWidget *parent, const char *
m_contextMenu = new TDEPopupMenu( this, "Popup" ); m_contextMenu = new TDEPopupMenu( this, "Popup" );
m_contextMenu->hide(); m_contextMenu->hide();
loadIcons(); loadIcons();
connect( m_lv_zones, TQT_SIGNAL( pressed( TQListViewItem* ) ) , connect( m_lv_zones, TQ_SIGNAL( pressed( TQListViewItem* ) ) ,
this, TQT_SLOT( slotNewItemSelected( TQListViewItem* ) ) ); this, TQ_SLOT( slotNewItemSelected( TQListViewItem* ) ) );
connect( m_lv_zones, TQT_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ), connect( m_lv_zones, TQ_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ),
this, TQT_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) ); this, TQ_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) );
connect( m_lv_zones, TQT_SIGNAL( itemRenamed ( TQListViewItem *, int, const TQString & ) ) , connect( m_lv_zones, TQ_SIGNAL( itemRenamed ( TQListViewItem *, int, const TQString & ) ) ,
this, TQT_SLOT( slotHostRenamed( TQListViewItem*, int , const TQString & ) ) ); this, TQ_SLOT( slotHostRenamed( TQListViewItem*, int , const TQString & ) ) );
connect( m_sb_host_1, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_host_1, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_host_2, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_host_2, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_host_3, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_host_3, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_host_4, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_host_4, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_host_desc, TQT_SIGNAL( textChanged() ), connect( m_host_desc, TQ_SIGNAL( textChanged() ),
this, TQT_SLOT( slotHostDescChanged() ) ); this, TQ_SLOT( slotHostDescChanged() ) );
connect( c_log_in, TQT_SIGNAL( toggled( bool ) ), connect( c_log_in, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotLoggingChanged( bool ) ) ); this, TQ_SLOT( slotLoggingChanged( bool ) ) );
connect( c_log_out, TQT_SIGNAL( toggled( bool ) ), connect( c_log_out, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotLoggingChanged( bool ) ) ); this, TQ_SLOT( slotLoggingChanged( bool ) ) );
b_newHost->setIconSet( icon_new ); b_newHost->setIconSet( icon_new );
b_delHost->setIconSet( icon_del ); b_delHost->setIconSet( icon_del );
connect( b_newHost, TQT_SIGNAL( clicked() ), connect( b_newHost, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotNewHost() ) ); this, TQ_SLOT( slotNewHost() ) );
connect( b_delHost, TQT_SIGNAL( clicked() ), connect( b_delHost, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotDelHost() ) ); this, TQ_SLOT( slotDelHost() ) );
} }
@ -383,7 +383,7 @@ void KMFGenericInterfaceHost::slotZoneRBM( TQListViewItem* item, const TQPoint&
TQString name = m_zone->name(); TQString name = m_zone->name();
TQString lab_str = i18n("Special Host Type: %1").arg( m_zone->guiName() ); TQString lab_str = i18n("Special Host Type: %1").arg( m_zone->guiName() );
m_contextMenu->insertTitle( icon_chain, lab_str ); m_contextMenu->insertTitle( icon_chain, lab_str );
m_contextMenu->insertItem( icon_new, i18n( "New Host..." ), this, TQT_SLOT( slotNewHost() ) ); m_contextMenu->insertItem( icon_new, i18n( "New Host..." ), this, TQ_SLOT( slotNewHost() ) );
m_contextMenu->popup( point ); m_contextMenu->popup( point );
} }
} else if ( kmfitem != 0 && kmfitem->type() == NetfilterObject::NETHOST ) { } else if ( kmfitem != 0 && kmfitem->type() == NetfilterObject::NETHOST ) {
@ -396,10 +396,10 @@ void KMFGenericInterfaceHost::slotZoneRBM( TQListViewItem* item, const TQPoint&
TQString name = m_zone->name(); TQString name = m_zone->name();
TQString lab_str = i18n("Special Host: %1").arg( m_host->guiName() ); TQString lab_str = i18n("Special Host: %1").arg( m_host->guiName() );
m_contextMenu->insertTitle( icon_chain, lab_str ); m_contextMenu->insertTitle( icon_chain, lab_str );
m_contextMenu->insertItem( icon_new, i18n( "New Host..." ), this, TQT_SLOT( slotNewHost() ) ); m_contextMenu->insertItem( icon_new, i18n( "New Host..." ), this, TQ_SLOT( slotNewHost() ) );
m_contextMenu->insertItem( icon_rename, i18n( "Rename Host..." ), this, TQT_SLOT( slotRenameHost() ) ); m_contextMenu->insertItem( icon_rename, i18n( "Rename Host..." ), this, TQ_SLOT( slotRenameHost() ) );
m_contextMenu->insertSeparator(); m_contextMenu->insertSeparator();
m_contextMenu->insertItem( icon_del, i18n( "Delete Host" ), this, TQT_SLOT( slotDelHost() ) ); m_contextMenu->insertItem( icon_del, i18n( "Delete Host" ), this, TQ_SLOT( slotDelHost() ) );
m_contextMenu->popup( point ); m_contextMenu->popup( point );

@ -37,10 +37,10 @@
namespace KMF { namespace KMF {
KMFGenericInterfaceIcmp::KMFGenericInterfaceIcmp( TQWidget *parent, const char *name, WFlags f ) KMFGenericInterfaceIcmp::KMFGenericInterfaceIcmp( TQWidget *parent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceIcmp( parent, name, f ) { : KMyFirewallGenericInterfaceIcmp( parent, name, f ) {
connect( c_allow_ping, TQT_SIGNAL( toggled( bool ) ), connect( c_allow_ping, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotEnablePingReplyToggled( bool ) ) ); this, TQ_SLOT( slotEnablePingReplyToggled( bool ) ) );
connect( c_limit_ping, TQT_SIGNAL( toggled( bool ) ), connect( c_limit_ping, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotEnablePingReplyLimitToggled( bool ) ) ); this, TQ_SLOT( slotEnablePingReplyLimitToggled( bool ) ) );
} }

@ -38,14 +38,14 @@
namespace KMF { namespace KMF {
KMFGenericInterfaceLogging::KMFGenericInterfaceLogging( TQWidget *parent, const char *name, WFlags f ) KMFGenericInterfaceLogging::KMFGenericInterfaceLogging( TQWidget *parent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceLogging( parent, name, f ) { : KMyFirewallGenericInterfaceLogging( parent, name, f ) {
connect( m_c_log, TQT_SIGNAL( toggled( bool ) ), connect( m_c_log, TQ_SIGNAL( toggled( bool ) ),
this,TQT_SLOT( slotLoggingChanged( bool ) ) ); this,TQ_SLOT( slotLoggingChanged( bool ) ) );
connect( m_c_limitLog, TQT_SIGNAL( toggled( bool ) ), connect( m_c_limitLog, TQ_SIGNAL( toggled( bool ) ),
this,TQT_SLOT( slotLimitChanged( bool ) ) ); this,TQ_SLOT( slotLimitChanged( bool ) ) );
connect( m_le_logPrefix, TQT_SIGNAL( textChanged( const TQString & ) ), connect( m_le_logPrefix, TQ_SIGNAL( textChanged( const TQString & ) ),
this,TQT_SLOT ( slotLogPrefixChanged( const TQString & ) ) ); this,TQ_SLOT ( slotLogPrefixChanged( const TQString & ) ) );
} }

@ -46,23 +46,23 @@ namespace KMF {
KMFGenericInterfaceNat::KMFGenericInterfaceNat( TQWidget *parent, const char *name, WFlags f ) KMFGenericInterfaceNat::KMFGenericInterfaceNat( TQWidget *parent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceNATWidget( parent, name, f ) { : KMyFirewallGenericInterfaceNATWidget( parent, name, f ) {
connect( m_c_enable_nat, TQT_SIGNAL( toggled( bool ) ), connect( m_c_enable_nat, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotNatEnabled( bool ) ) ); this, TQ_SLOT( slotNatEnabled( bool ) ) );
connect( m_c_use_masquerade, TQT_SIGNAL( toggled( bool ) ), connect( m_c_use_masquerade, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotMasqueradeEnabled( bool ) ) ); this, TQ_SLOT( slotMasqueradeEnabled( bool ) ) );
connect( m_sb_addr_1, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_addr_1, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_addr_2, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_addr_2, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_addr_3, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_addr_3, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_addr_4, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_addr_4, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_cb_external_interface, TQT_SIGNAL( activated( const TQString& ) ), connect( m_cb_external_interface, TQ_SIGNAL( activated( const TQString& ) ),
this, TQT_SLOT( slotExternalInterfaceChanged( const TQString& ) ) ); this, TQ_SLOT( slotExternalInterfaceChanged( const TQString& ) ) );
} }

@ -70,15 +70,15 @@ KMFGenericInterfaceProtocol::KMFGenericInterfaceProtocol( TQWidget *parent, cons
// Network Widget // Network Widget
m_network_widget = new KMFNetworkWidget( m_widgetStack, "m_network_widget" ); m_network_widget = new KMFNetworkWidget( m_widgetStack, "m_network_widget" );
m_widgetStack->addWidget( m_network_widget ); m_widgetStack->addWidget( m_network_widget );
connect( m_network_widget,TQT_SIGNAL( sigZoneChanged( KMFNetZone* ) ), connect( m_network_widget,TQ_SIGNAL( sigZoneChanged( KMFNetZone* ) ),
this,TQT_SLOT( slotZoneChanged( KMFNetZone* ) ) ); this,TQ_SLOT( slotZoneChanged( KMFNetZone* ) ) );
// Host widget // Host widget
m_nethostProperties_widget = new KMFNetHostPropertiesWidget( m_widgetStack, "m_nethostProperties_widget" ); m_nethostProperties_widget = new KMFNetHostPropertiesWidget( m_widgetStack, "m_nethostProperties_widget" );
m_widgetStack->addWidget( m_nethostProperties_widget ); m_widgetStack->addWidget( m_nethostProperties_widget );
connect( m_nethostProperties_widget, TQT_SIGNAL( sigHostAddressChanged( const TQString& ) ), connect( m_nethostProperties_widget, TQ_SIGNAL( sigHostAddressChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
// Protocol Widget // Protocol Widget
m_protocolProperties_widget = new KMFProtocolPropertiesWidget( m_widgetStack, "m_protocolProperties_widget" ); m_protocolProperties_widget = new KMFProtocolPropertiesWidget( m_widgetStack, "m_protocolProperties_widget" );
@ -91,31 +91,31 @@ KMFGenericInterfaceProtocol::KMFGenericInterfaceProtocol( TQWidget *parent, cons
TQGridLayout *grid = new TQGridLayout( m_protocolsFrame, 1, 1 ); TQGridLayout *grid = new TQGridLayout( m_protocolsFrame, 1, 1 );
grid->addWidget( m_protocolLIstView, 0, 0 ); grid->addWidget( m_protocolLIstView, 0, 0 );
connect( m_protocolLIstView,TQT_SIGNAL( sigProtocolClicked( KMFProtocolUsage*, bool ) ), connect( m_protocolLIstView,TQ_SIGNAL( sigProtocolClicked( KMFProtocolUsage*, bool ) ),
this, TQT_SLOT( slotProtocolClicked( KMFProtocolUsage*, bool ) ) ); this, TQ_SLOT( slotProtocolClicked( KMFProtocolUsage*, bool ) ) );
connect( m_protocolLIstView,TQT_SIGNAL( sigProtocolCategoryClicked( KMFProtocolCategory* ) ), connect( m_protocolLIstView,TQ_SIGNAL( sigProtocolCategoryClicked( KMFProtocolCategory* ) ),
this, TQT_SLOT ( slotProtocolCategoryClicked( KMFProtocolCategory* ) ) ); this, TQ_SLOT ( slotProtocolCategoryClicked( KMFProtocolCategory* ) ) );
// Zone view // Zone view
connect( m_lv_zones, TQT_SIGNAL( pressed( TQListViewItem* ) ) , connect( m_lv_zones, TQ_SIGNAL( pressed( TQListViewItem* ) ) ,
this, TQT_SLOT( slotNewItemSelected( TQListViewItem* ) ) ); this, TQ_SLOT( slotNewItemSelected( TQListViewItem* ) ) );
connect( m_lv_zones, TQT_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ), connect( m_lv_zones, TQ_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ),
this, TQT_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) ); this, TQ_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) );
connect( m_lv_zones, TQT_SIGNAL( itemRenamed ( TQListViewItem *, int, const TQString & ) ) , connect( m_lv_zones, TQ_SIGNAL( itemRenamed ( TQListViewItem *, int, const TQString & ) ) ,
this, TQT_SLOT( slotRenameItem( TQListViewItem *, int, const TQString & ) ) ); this, TQ_SLOT( slotRenameItem( TQListViewItem *, int, const TQString & ) ) );
// Main win // Main win
connect( m_c_restrictOutgoing, TQT_SIGNAL( clicked() ), connect( m_c_restrictOutgoing, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotRestrictionChanged() ) ); this, TQ_SLOT( slotRestrictionChanged() ) );
connect( m_c_allowIncoming, TQT_SIGNAL( clicked() ), connect( m_c_allowIncoming, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotRestrictionChanged() ) ); this, TQ_SLOT( slotRestrictionChanged() ) );
connect( m_zoneSelect, TQT_SIGNAL( activated( const TQString& ) ), connect( m_zoneSelect, TQ_SIGNAL( activated( const TQString& ) ),
this, TQT_SLOT( slotCurrentZoneChanged( const TQString& ) ) ); this, TQ_SLOT( slotCurrentZoneChanged( const TQString& ) ) );
m_zone = 0; m_zone = 0;
m_type = -1; m_type = -1;
@ -266,15 +266,15 @@ void KMFGenericInterfaceProtocol::slotZoneRBM( TQListViewItem* item, const TQPoi
TQString name = m_zone->name(); TQString name = m_zone->name();
TQString lab_str = i18n("Zone: %1").arg( m_zone->guiName() ); TQString lab_str = i18n("Zone: %1").arg( m_zone->guiName() );
m_contextMenu->insertTitle( icon_chain, lab_str ); m_contextMenu->insertTitle( icon_chain, lab_str );
m_contextMenu->insertItem( icon_new, i18n( "Add Host..." ), this, TQT_SLOT( slotAddHost() ) ); m_contextMenu->insertItem( icon_new, i18n( "Add Host..." ), this, TQ_SLOT( slotAddHost() ) );
m_contextMenu->insertSeparator(); m_contextMenu->insertSeparator();
m_contextMenu->insertItem( icon_new, i18n( "Add Zone..." ), this, TQT_SLOT( slotAddZone() ) ); m_contextMenu->insertItem( icon_new, i18n( "Add Zone..." ), this, TQ_SLOT( slotAddZone() ) );
if ( m_zone->name() != "incoming_world" && m_zone->name() != "outgoing_world" ) { if ( m_zone->name() != "incoming_world" && m_zone->name() != "outgoing_world" ) {
m_contextMenu->insertItem( icon_rename, i18n( "Rename Zone..." ), this, TQT_SLOT( slotRenameZone() ) ); m_contextMenu->insertItem( icon_rename, i18n( "Rename Zone..." ), this, TQ_SLOT( slotRenameZone() ) );
m_contextMenu->insertSeparator(); m_contextMenu->insertSeparator();
m_contextMenu->insertItem( icon_del, i18n( "Delete Zone" ), this, TQT_SLOT( slotDelZone() ) ); m_contextMenu->insertItem( icon_del, i18n( "Delete Zone" ), this, TQ_SLOT( slotDelZone() ) );
} }
m_contextMenu->popup( point ); m_contextMenu->popup( point );
@ -288,8 +288,8 @@ void KMFGenericInterfaceProtocol::slotZoneRBM( TQListViewItem* item, const TQPoi
TQString name = m_host->name(); TQString name = m_host->name();
TQString lab_str = i18n("Host: %1").arg( m_host->guiName() ); TQString lab_str = i18n("Host: %1").arg( m_host->guiName() );
m_contextMenu->insertTitle( icon_chain, lab_str ); m_contextMenu->insertTitle( icon_chain, lab_str );
m_contextMenu->insertItem( icon_rename, i18n( "Rename Host..." ), this, TQT_SLOT( slotRenameHost() ) ); m_contextMenu->insertItem( icon_rename, i18n( "Rename Host..." ), this, TQ_SLOT( slotRenameHost() ) );
m_contextMenu->insertItem( icon_rename, i18n( "Delete Host..." ), this, TQT_SLOT( slotDelHost() ) ); m_contextMenu->insertItem( icon_rename, i18n( "Delete Host..." ), this, TQ_SLOT( slotDelHost() ) );
m_contextMenu->popup( point ); m_contextMenu->popup( point );
} }
} }

@ -74,28 +74,28 @@ KMFInstallerPlugin::KMFInstallerPlugin( TQObject *parent, const char *name )
// m_installerPlugin = 0; // m_installerPlugin = 0;
m_execWidget = 0; m_execWidget = 0;
m_actionStopFw = new TDEAction( i18n( "&Reset IPTables" ), "decrypted", m_actionStopFw = new TDEAction( i18n( "&Reset IPTables" ), "decrypted",
0, this, TQT_SLOT( slotStopFirewall() ), actionCollection(), "reset_iptables" ); 0, this, TQ_SLOT( slotStopFirewall() ), actionCollection(), "reset_iptables" );
m_actionRunFw = new TDEAction( i18n( "Run Fir&ewall" ), "encrypted", m_actionRunFw = new TDEAction( i18n( "Run Fir&ewall" ), "encrypted",
0, this, TQT_SLOT( slotStartFirewall() ), actionCollection(), "run_firewall" ); 0, this, TQ_SLOT( slotStartFirewall() ), actionCollection(), "run_firewall" );
m_actionPreviewScript = new TDEAction( i18n( "&Preview Script" ), "mime_txt", m_actionPreviewScript = new TDEAction( i18n( "&Preview Script" ), "mime_txt",
0 , this, TQT_SLOT( slotShowScript() ), actionCollection(), "preview_script" ); 0 , this, TQ_SLOT( slotShowScript() ), actionCollection(), "preview_script" );
m_generateInstallPackage = new TDEAction( i18n( "&Generate Linux Installation Package" ), "fileexport", m_generateInstallPackage = new TDEAction( i18n( "&Generate Linux Installation Package" ), "fileexport",
0 , this, TQT_SLOT( slotGenerateInstallerPackage() ), actionCollection(), "generate_install_package" ); 0 , this, TQ_SLOT( slotGenerateInstallerPackage() ), actionCollection(), "generate_install_package" );
m_actionShowConfig = new TDEAction( i18n( "Show &All Tables" ), "messagebox_info", m_actionShowConfig = new TDEAction( i18n( "Show &All Tables" ), "messagebox_info",
0 , this, TQT_SLOT( slotShowConfig() ), actionCollection(), "show_ipt_config" ); 0 , this, TQ_SLOT( slotShowConfig() ), actionCollection(), "show_ipt_config" );
m_actionShowFilter = new TDEAction( i18n( "Show &Filter Table" ), "messagebox_info", m_actionShowFilter = new TDEAction( i18n( "Show &Filter Table" ), "messagebox_info",
0 , this, TQT_SLOT( slotShowFilter() ), actionCollection(), "show_filter" ); 0 , this, TQ_SLOT( slotShowFilter() ), actionCollection(), "show_filter" );
m_actionShowNat = new TDEAction( i18n( "Show &Nat Table" ), "messagebox_info", m_actionShowNat = new TDEAction( i18n( "Show &Nat Table" ), "messagebox_info",
0 , this, TQT_SLOT( slotShowNat() ), actionCollection(), "show_nat" ); 0 , this, TQ_SLOT( slotShowNat() ), actionCollection(), "show_nat" );
m_actionShowMangle = new TDEAction( i18n( "Show &Mangle Table" ), "messagebox_info", m_actionShowMangle = new TDEAction( i18n( "Show &Mangle Table" ), "messagebox_info",
0 , this, TQT_SLOT( slotShowMangle() ), actionCollection(), "show_mangle" ); 0 , this, TQ_SLOT( slotShowMangle() ), actionCollection(), "show_mangle" );
m_actionMenu = new TDEActionMenu( i18n( "Show IPTables Configuration" ), "messagebox_info", this , "show_menu" ); m_actionMenu = new TDEActionMenu( i18n( "Show IPTables Configuration" ), "messagebox_info", this , "show_menu" );
@ -108,15 +108,15 @@ KMFInstallerPlugin::KMFInstallerPlugin( TQObject *parent, const char *name )
actionCollection() ->insert( m_actionMenu ); actionCollection() ->insert( m_actionMenu );
m_actionInstallFW = new TDEAction( i18n( "&Install Firewall" ), "go-down", m_actionInstallFW = new TDEAction( i18n( "&Install Firewall" ), "go-down",
0 , this, TQT_SLOT( slotInstallFW() ), actionCollection(), "install_firewall" ); 0 , this, TQ_SLOT( slotInstallFW() ), actionCollection(), "install_firewall" );
m_actionUninstallFW = new TDEAction( i18n( "&Uninstall Firewall" ), "go-up", m_actionUninstallFW = new TDEAction( i18n( "&Uninstall Firewall" ), "go-up",
0 , this, TQT_SLOT( slotUninstallFW() ), actionCollection(), "uninstall_firewall" ); 0 , this, TQ_SLOT( slotUninstallFW() ), actionCollection(), "uninstall_firewall" );
setXMLFile( "kmfinstallerpluginui.rc" ); setXMLFile( "kmfinstallerpluginui.rc" );
slotEnableActions( false ); slotEnableActions( false );
connect( app,TQT_SIGNAL( sigEnableActions( bool ) ), connect( app,TQ_SIGNAL( sigEnableActions( bool ) ),
this, TQT_SLOT( slotEnableActions(bool ) ) ); this, TQ_SLOT( slotEnableActions(bool ) ) );
kdDebug() << "KMFInstallerPlugin: Finished Initialisationn " << endl; kdDebug() << "KMFInstallerPlugin: Finished Initialisationn " << endl;
} }

@ -114,8 +114,8 @@ KMFProcOut* KMFIPTInstaller::execWidget(){
} }
kdDebug() << "Need to create new execWidget." << endl; kdDebug() << "Need to create new execWidget." << endl;
m_execWidget = new KMFProcOut( 0, "KMFProcOut" ); m_execWidget = new KMFProcOut( 0, "KMFProcOut" );
connect( m_execWidget, TQT_SIGNAL( sigJobFinished( bool, const TQString& ) ), connect( m_execWidget, TQ_SIGNAL( sigJobFinished( bool, const TQString& ) ),
this, TQT_SLOT( slotJobFinished( bool, const TQString& ) ) ); this, TQ_SLOT( slotJobFinished( bool, const TQString& ) ) );
setOutputWidget( m_execWidget ); setOutputWidget( m_execWidget );
return m_execWidget; return m_execWidget;
} }

@ -128,8 +128,8 @@ KMFProcOut* KMFPFInstaller::execWidget(){
} }
kdDebug() << "Need to create new execWidget." << endl; kdDebug() << "Need to create new execWidget." << endl;
m_execWidget = new KMFProcOut( 0, "KMFProcOut" ); m_execWidget = new KMFProcOut( 0, "KMFProcOut" );
connect( m_execWidget, TQT_SIGNAL( sigJobFinished( bool, const TQString& ) ), connect( m_execWidget, TQ_SIGNAL( sigJobFinished( bool, const TQString& ) ),
this, TQT_SLOT( slotJobFinished( bool, const TQString& ) ) ); this, TQ_SLOT( slotJobFinished( bool, const TQString& ) ) );
setOutputWidget( m_execWidget ); setOutputWidget( m_execWidget );
return m_execWidget; return m_execWidget;
} }

@ -118,7 +118,7 @@ void KMFChainEdit::loadChain( IPTChain* chain ) {
} else { } else {
c_has_default_target->setEnabled( true ); c_has_default_target->setEnabled( true );
c_has_default_target->setChecked( false ); c_has_default_target->setChecked( false );
connect( c_has_default_target, TQT_SIGNAL( toggled( bool ) ), cb_target, TQT_SLOT( setEnabled( bool ) ) ); connect( c_has_default_target, TQ_SIGNAL( toggled( bool ) ), cb_target, TQ_SLOT( setEnabled( bool ) ) );
cb_target->clear(); cb_target->clear();
cb_target->insertItem( "ACCEPT" ); cb_target->insertItem( "ACCEPT" );
cb_target->insertItem( "DROP" ); cb_target->insertItem( "DROP" );

@ -65,44 +65,44 @@ KMFIPTEditorPart::KMFIPTEditorPart( TQWidget *parentWidget, const char *widgetNa
m_ruleedit->loadDoc( app->network() ); m_ruleedit->loadDoc( app->network() );
m_editdoc->loadDoc( app->network()->currentDocAsIPTDoc() ); m_editdoc->loadDoc( app->network()->currentDocAsIPTDoc() );
connect( app, TQT_SIGNAL( sigUpdateView() ), connect( app, TQ_SIGNAL( sigUpdateView() ),
m_ruleedit, TQT_SLOT( slotUpdateView() ) ); m_ruleedit, TQ_SLOT( slotUpdateView() ) );
connect( app, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( app, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_ruleedit, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ) ); m_ruleedit, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ) );
connect( app, TQT_SIGNAL( sigEnableActions( bool ) ), connect( app, TQ_SIGNAL( sigEnableActions( bool ) ),
this, TQT_SLOT( slotEnableActions( bool ) ) ); this, TQ_SLOT( slotEnableActions( bool ) ) );
connect ( m_editdoc, TQT_SIGNAL( sigConfigChanged() ), connect ( m_editdoc, TQ_SIGNAL( sigConfigChanged() ),
m_ruleedit, TQT_SLOT( slotUpdateView() ) ); m_ruleedit, TQ_SLOT( slotUpdateView() ) );
// notify the part that this is our internal widget // notify the part that this is our internal widget
setWidget( m_ruleedit ); setWidget( m_ruleedit );
m_actionEditChain = new TDEAction( i18n( "&Edit Chain" ), TQIconSet( BarIcon( "configure_toolbars", KMFIPTEditorPartFactory::instance() ) ), m_actionEditChain = new TDEAction( i18n( "&Edit Chain" ), TQIconSet( BarIcon( "configure_toolbars", KMFIPTEditorPartFactory::instance() ) ),
0 , this, TQT_SLOT( slotEditChain() ), actionCollection(), "edit_chain" ); 0 , this, TQ_SLOT( slotEditChain() ), actionCollection(), "edit_chain" );
m_actionNewChain = new TDEAction( i18n( "Add New Chain..." ), TQIconSet( BarIcon( "view_tree", KMFIPTEditorPartFactory::instance() ) ), m_actionNewChain = new TDEAction( i18n( "Add New Chain..." ), TQIconSet( BarIcon( "view_tree", KMFIPTEditorPartFactory::instance() ) ),
0 , this, TQT_SLOT( slotNewChain() ), actionCollection(), "new_chain" ); 0 , this, TQ_SLOT( slotNewChain() ), actionCollection(), "new_chain" );
m_actionDelChain = new TDEAction( i18n( "Delete Chain" ), TQIconSet( BarIcon( "edit-delete", KMFIPTEditorPartFactory::instance() ) ), m_actionDelChain = new TDEAction( i18n( "Delete Chain" ), TQIconSet( BarIcon( "edit-delete", KMFIPTEditorPartFactory::instance() ) ),
0 , this, TQT_SLOT( slotDelChain() ), actionCollection(), "del_chain" ); 0 , this, TQ_SLOT( slotDelChain() ), actionCollection(), "del_chain" );
m_actionNewRule = new TDEAction( i18n( "Add New Rule..." ), TQIconSet( TDEGlobal:: iconLoader()->loadIcon( "rule", TDEIcon::Toolbar ) ) , m_actionNewRule = new TDEAction( i18n( "Add New Rule..." ), TQIconSet( TDEGlobal:: iconLoader()->loadIcon( "rule", TDEIcon::Toolbar ) ) ,
TDEStdAccel::shortcut(TDEStdAccel::New) , this, TQT_SLOT( slotNewRule() ), actionCollection(), "new_rule" ); TDEStdAccel::shortcut(TDEStdAccel::New) , this, TQ_SLOT( slotNewRule() ), actionCollection(), "new_rule" );
// m_actionNewRule->setIconSet( TQIconSet( loader->loadIcon( "rule-22", TDEIcon::User ) ) ); // m_actionNewRule->setIconSet( TQIconSet( loader->loadIcon( "rule-22", TDEIcon::User ) ) );
m_actionDelRule = new TDEAction( i18n( "Delete Rule" ), TQIconSet( BarIcon( "edit-delete", KMFIPTEditorPartFactory::instance() ) ), m_actionDelRule = new TDEAction( i18n( "Delete Rule" ), TQIconSet( BarIcon( "edit-delete", KMFIPTEditorPartFactory::instance() ) ),
TDEStdAccel::shortcut(TDEStdAccel::DeleteWordBack), this, TQT_SLOT( slotDelRule() ), actionCollection(), "del_rule" ); TDEStdAccel::shortcut(TDEStdAccel::DeleteWordBack), this, TQ_SLOT( slotDelRule() ), actionCollection(), "del_rule" );
m_actionEditDocOptions = new TDEAction( i18n( "&Configure Firewall Options..." ), "configure", 0 , this, TQT_SLOT( slotEditDocOptions() ), m_actionEditDocOptions = new TDEAction( i18n( "&Configure Firewall Options..." ), "configure", 0 , this, TQ_SLOT( slotEditDocOptions() ),
actionCollection(), "edit_doc_options" ); actionCollection(), "edit_doc_options" );
m_actionEditNetwork = new TDEAction( i18n( "&Configure the Network" ), TQIconSet( BarIcon( "configure_toolbars", KMFIPTEditorPartFactory::instance() ) ), 0 , this, TQT_SLOT( slotEditNetwork() ), m_actionEditNetwork = new TDEAction( i18n( "&Configure the Network" ), TQIconSet( BarIcon( "configure_toolbars", KMFIPTEditorPartFactory::instance() ) ), 0 , this, TQ_SLOT( slotEditNetwork() ),
actionCollection(), "edit_network" ); actionCollection(), "edit_network" );

@ -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, TQT_SIGNAL( activated( int ) ) , this, TQT_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, TQT_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ), connect( m_lv_table_filter, TQ_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ),
this, TQT_SLOT( slotRuleRBM( TQListViewItem*, const TQPoint&, int ) ) ); this, TQ_SLOT( slotRuleRBM( TQListViewItem*, const TQPoint&, int ) ) );
connect( m_lv_table_filter, TQT_SIGNAL( itemRenamed ( TQListViewItem*, int, const TQString& ) ), connect( m_lv_table_filter, TQ_SIGNAL( itemRenamed ( TQListViewItem*, int, const TQString& ) ),
this, TQT_SLOT( slotRenameRule( TQListViewItem*, int, const TQString& ) ) ); this, TQ_SLOT( slotRenameRule( TQListViewItem*, int, const TQString& ) ) );
connect( m_lv_table_filter, TQT_SIGNAL( clicked( TQListViewItem* ) ), connect( m_lv_table_filter, TQ_SIGNAL( clicked( TQListViewItem* ) ),
this, TQT_SLOT( slotNewItemSelected( TQListViewItem* ) ) ); this, TQ_SLOT( slotNewItemSelected( TQListViewItem* ) ) );
// connect( this, TQT_SIGNAL( sigUpdateView() ), // connect( this, TQ_SIGNAL( sigUpdateView() ),
// m_lv_table_filter, TQT_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, TQT_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ), connect( m_lv_table_nat, TQ_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ),
this, TQT_SLOT( slotRuleRBM( TQListViewItem*, const TQPoint&, int ) ) ); this, TQ_SLOT( slotRuleRBM( TQListViewItem*, const TQPoint&, int ) ) );
connect( m_lv_table_nat, TQT_SIGNAL( itemRenamed ( TQListViewItem*, int, const TQString& ) ), connect( m_lv_table_nat, TQ_SIGNAL( itemRenamed ( TQListViewItem*, int, const TQString& ) ),
this, TQT_SLOT( slotRenameRule( TQListViewItem*, int, const TQString& ) ) ); this, TQ_SLOT( slotRenameRule( TQListViewItem*, int, const TQString& ) ) );
connect( m_lv_table_nat, TQT_SIGNAL( clicked( TQListViewItem* ) ), connect( m_lv_table_nat, TQ_SIGNAL( clicked( TQListViewItem* ) ),
this, TQT_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, TQT_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ), connect( m_lv_table_mangle, TQ_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ),
this, TQT_SLOT( slotRuleRBM( TQListViewItem*, const TQPoint&, int ) ) ); this, TQ_SLOT( slotRuleRBM( TQListViewItem*, const TQPoint&, int ) ) );
connect( m_lv_table_mangle, TQT_SIGNAL( itemRenamed ( TQListViewItem*, int, const TQString& ) ), connect( m_lv_table_mangle, TQ_SIGNAL( itemRenamed ( TQListViewItem*, int, const TQString& ) ),
this, TQT_SLOT( slotRenameRule( TQListViewItem*, int, const TQString& ) ) ); this, TQ_SLOT( slotRenameRule( TQListViewItem*, int, const TQString& ) ) );
connect( m_lv_table_mangle, TQT_SIGNAL( clicked( TQListViewItem* ) ), connect( m_lv_table_mangle, TQ_SIGNAL( clicked( TQListViewItem* ) ),
this, TQT_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, TQT_SIGNAL( sigHideMe() ), connect( m_editchain, TQ_SIGNAL( sigHideMe() ),
this, TQT_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, TQT_SIGNAL( sigHideMe() ), connect( m_object_info, TQ_SIGNAL( sigHideMe() ),
this, TQT_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, TQT_SIGNAL( sigUpdateView() ), connect( m_new_chain, TQ_SIGNAL( sigUpdateView() ),
this, TQT_SIGNAL( sigUpdateView() ) ); this, TQ_SIGNAL( sigUpdateView() ) );
m_myNetworkWidget = new KMFMyNetworkWidget( this, "KMFMyNetworkWidget" ); m_myNetworkWidget = new KMFMyNetworkWidget( this, "KMFMyNetworkWidget" );
connect( this, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_myNetworkWidget, TQT_SLOT( slotUpdateView() ) ); m_myNetworkWidget, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_myNetworkWidget, TQT_SLOT( slotUpdateView( NetfilterObject* ) ) ); m_myNetworkWidget, TQ_SLOT( slotUpdateView( NetfilterObject* ) ) );
connect( m_myNetworkWidget, TQT_SIGNAL( sigActiveTargetChanged() ), this, TQT_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, TQT_SIGNAL( clicked() ), connect( cb_log_rule, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotLogRuleChanged() ) ); this, TQ_SLOT( slotLogRuleChanged() ) );
connect( cb_disable_rule, TQT_SIGNAL( clicked() ), connect( cb_disable_rule, TQ_SIGNAL( clicked() ),
this, TQT_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, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_filter, TQT_SLOT( slotUpdateView() ) ); m_lv_table_filter, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_filter, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_nat, TQT_SLOT( slotUpdateView() ) ); m_lv_table_nat, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_nat, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_mangle, TQT_SLOT( slotUpdateView() ) ); m_lv_table_mangle, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_mangle, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_filter, TQT_SLOT( slotUpdateView() ) ); m_lv_table_filter, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_filter, TQT_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, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_nat, TQT_SLOT( slotUpdateView() ) ); m_lv_table_nat, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_nat, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_mangle, TQT_SLOT( slotUpdateView() ) ); m_lv_table_mangle, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_mangle, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_filter, TQT_SLOT( slotUpdateView() ) ); m_lv_table_filter, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_filter, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_mangle, TQT_SLOT( slotUpdateView() ) ); m_lv_table_mangle, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_mangle, TQT_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, TQT_SIGNAL( sigUpdateView() ), connect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_mangle, TQT_SLOT( slotUpdateView() ) ); m_lv_table_mangle, TQ_SLOT( slotUpdateView() ) );
connect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_mangle, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_filter, TQT_SLOT( slotUpdateView() ) ); m_lv_table_filter, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_filter, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_mangle, TQT_SLOT( slotUpdateView() ) ); m_lv_table_mangle, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_mangle, TQT_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, TQT_SIGNAL( sigUpdateView() ), disconnect( this, TQ_SIGNAL( sigUpdateView() ),
m_lv_table_mangle, TQT_SLOT( slotUpdateView() ) ); m_lv_table_mangle, TQ_SLOT( slotUpdateView() ) );
disconnect( this, TQT_SIGNAL( sigUpdateView( NetfilterObject* ) ), disconnect( this, TQ_SIGNAL( sigUpdateView( NetfilterObject* ) ),
m_lv_table_mangle, TQT_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, TQT_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, TQT_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, TQT_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, TQT_SLOT( slotEditChainInfo() ) ); m_contextMenu->insertItem( icon_edit, i18n( "Chain Documentation" ), this, TQ_SLOT( slotEditChainInfo() ) );
m_contextMenu->insertItem( icon_new, i18n( "Add Chain..." ), this, TQT_SLOT( slotAddChain() ) ); m_contextMenu->insertItem( icon_new, i18n( "Add Chain..." ), this, TQ_SLOT( slotAddChain() ) );
m_contextMenu->insertItem( icon_edit, i18n( "Edit Chain" ), this, TQT_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, TQT_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,TQT_SIGNAL(activated( int ) ), connect( sub_edit,TQ_SIGNAL(activated( int ) ),
this,TQT_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, TQT_SLOT( slotAddRule() ) ); // m_contextMenu->insertItem( icon_new, i18n( "Add Rule..." ), this, TQ_SLOT( slotAddRule() ) );
m_contextMenu->insertItem( icon_new, i18n( "Insert Rule..." ), this, TQT_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, TQT_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, TQT_SLOT( slotRenameRule() ) ); m_contextMenu->insertItem( icon_rename, i18n( "Rename Rule" ), this, TQ_SLOT( slotRenameRule() ) );
m_contextMenu->insertItem( icon_edit, i18n( "Rule Documentation" ), this, TQT_SLOT( slotEditRuleInfo() ) ); m_contextMenu->insertItem( icon_edit, i18n( "Rule Documentation" ), this, TQ_SLOT( slotEditRuleInfo() ) );
m_contextMenu->insertItem( icon_up, i18n( "Move Up" ), this, TQT_SLOT( slotMoveRuleUp() ) ); m_contextMenu->insertItem( icon_up, i18n( "Move Up" ), this, TQ_SLOT( slotMoveRuleUp() ) );
m_contextMenu->insertItem( icon_down, i18n( "Move Down" ), this, TQT_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, TQT_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, TQT_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, TQT_SIGNAL( activated( int ) ), this, TQT_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, TQT_SIGNAL( activated( int ) ), this, TQT_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++ ) {

@ -180,20 +180,20 @@ void KMFConfigDialog::setupGeneral() {
/*TQLabel *text1 = */new TQLabel( i18n( "<qt>By using the Generic Interface the creation of rulesets is much easier but it is not as flexible as the Normal Interface.</qt>" ), gb_generic ); /*TQLabel *text1 = */new TQLabel( i18n( "<qt>By using the Generic Interface the creation of rulesets is much easier but it is not as flexible as the Normal Interface.</qt>" ), gb_generic );
m_cb_generic_interface = new TQCheckBox( i18n( "Use the Generic Interface" ), gb_generic ); m_cb_generic_interface = new TQCheckBox( i18n( "Use the Generic Interface" ), gb_generic );
m_cb_generic_interface->setChecked( KMFConfig::useGenericInterface() ); m_cb_generic_interface->setChecked( KMFConfig::useGenericInterface() );
connect( m_cb_generic_interface, TQT_SIGNAL( toggled( bool ) ), connect( m_cb_generic_interface, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotEnableGenericInterface( bool ) ) ); this, TQ_SLOT( slotEnableGenericInterface( bool ) ) );
TQLabel *text2 = new TQLabel( i18n( "<qt>Max. stored Undos:</qt>" ), page ); TQLabel *text2 = new TQLabel( i18n( "<qt>Max. stored Undos:</qt>" ), page );
m_sb_max_undo = new KIntSpinBox( 0, 100, 1, 10, 10, page, "spin_box" ); m_sb_max_undo = new KIntSpinBox( 0, 100, 1, 10, 10, page, "spin_box" );
m_sb_max_undo->setValue( 10 ); m_sb_max_undo->setValue( 10 );
m_b_enable_warnings = new KPushButton( i18n( "Reenable All Messages" ), page ); m_b_enable_warnings = new KPushButton( i18n( "Reenable All Messages" ), page );
m_b_enable_warnings->setFixedHeight( 30 ); m_b_enable_warnings->setFixedHeight( 30 );
connect( m_b_enable_warnings, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEnableWarnings() ) ); connect( m_b_enable_warnings, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEnableWarnings() ) );
TQLabel *text3 = new TQLabel( i18n( "<qt>By enabling KMyFirewall will communicate with the local computer using SSH. This will enable password keeping (e.g. TDEWallet support).</qt>" ), page ); TQLabel *text3 = new TQLabel( i18n( "<qt>By enabling KMyFirewall will communicate with the local computer using SSH. This will enable password keeping (e.g. TDEWallet support).</qt>" ), page );
m_cb_useSSHForLocalhost = new TQCheckBox( i18n( "Use SSH for localhost communication" ), page ); m_cb_useSSHForLocalhost = new TQCheckBox( i18n( "Use SSH for localhost communication" ), page );
m_cb_useSSHForLocalhost->setChecked( KMFConfig::useSSHForLocalhost() ); m_cb_useSSHForLocalhost->setChecked( KMFConfig::useSSHForLocalhost() );
// connect( m_cb_useSSHForLocalhost, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEnableLocalSSHUsage( bool ) ) ); // connect( m_cb_useSSHForLocalhost, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( slotEnableLocalSSHUsage( bool ) ) );
lay->addMultiCellWidget( gb_generic, 0, 0, 0, 1 ); lay->addMultiCellWidget( gb_generic, 0, 0, 0, 1 );

@ -50,7 +50,7 @@ KMFCheckListOutput::KMFCheckListOutput( TQWidget *parent, const char *name , boo
l_prog -> addMultiCellWidget( mlb_outputView, 1, 3, 0, 2 ); l_prog -> addMultiCellWidget( mlb_outputView, 1, 3, 0, 2 );
connect( mpb_ok, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( hide() ) ); connect( mpb_ok, TQ_SIGNAL( clicked() ) , this, TQ_SLOT( hide() ) );
m_currItem = new TQListViewItem( mlb_outputView ); m_currItem = new TQListViewItem( mlb_outputView );
m_currItem->setText( 0, i18n( "Starting system scan..." ) ); m_currItem->setText( 0, i18n( "Starting system scan..." ) );
loadIcons(); loadIcons();

@ -32,9 +32,9 @@
namespace KMF { namespace KMF {
KMFDocumentInfo::KMFDocumentInfo(TQWidget* parent, const char* name, bool modal, WFlags fl) KMFDocumentInfo::KMFDocumentInfo(TQWidget* parent, const char* name, bool modal, WFlags fl)
: KMyFirewallDocumentInfo(parent,name, modal,fl) { : KMyFirewallDocumentInfo(parent,name, modal,fl) {
connect( b_help, TQT_SIGNAL( clicked() ), connect( b_help, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotHelp() ) ); this, TQ_SLOT( slotHelp() ) );
connect( b_saveAsTemplate, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSaveAsTemplate() ) ); connect( b_saveAsTemplate, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSaveAsTemplate() ) );
} }

@ -74,27 +74,27 @@ KMFGenericInterfaceEditProtocol::KMFGenericInterfaceEditProtocol( TQWidget *pare
// m_protocolsLoaded = false; // m_protocolsLoaded = false;
// m_protocols.clear(); // m_protocols.clear();
connect( m_lv_protocols, TQT_SIGNAL( pressed( TQListViewItem* ) ) , connect( m_lv_protocols, TQ_SIGNAL( pressed( TQListViewItem* ) ) ,
this, TQT_SLOT( slotNewItemSelected( TQListViewItem* ) ) ); this, TQ_SLOT( slotNewItemSelected( TQListViewItem* ) ) );
connect( m_lb_tcpPorts, TQT_SIGNAL( currentChanged ( TQListBoxItem * ) ), this, TQT_SLOT( slotCurrentTCPPortChanged( TQListBoxItem * ) ) ); connect( m_lb_tcpPorts, TQ_SIGNAL( currentChanged ( TQListBoxItem * ) ), this, TQ_SLOT( slotCurrentTCPPortChanged( TQListBoxItem * ) ) );
connect( m_lb_udpPorts, TQT_SIGNAL( currentChanged ( TQListBoxItem * ) ), this, TQT_SLOT( slotCurrentUDPPortChanged( TQListBoxItem * ) ) ); connect( m_lb_udpPorts, TQ_SIGNAL( currentChanged ( TQListBoxItem * ) ), this, TQ_SLOT( slotCurrentUDPPortChanged( TQListBoxItem * ) ) );
// connect( m_sb_port_num, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotPortVauleChanged( int ) ) ); // connect( m_sb_port_num, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( slotPortVauleChanged( int ) ) );
connect( m_te_desc, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( slotNameDescritionChanged() ) ); connect( m_te_desc, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( slotNameDescritionChanged() ) );
connect( m_le_protocolName , TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( slotNameDescritionChanged() ) ); connect( m_le_protocolName , TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( slotNameDescritionChanged() ) );
connect( m_rb_tcp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotProtocolTypeChanged() ) ); connect( m_rb_tcp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotProtocolTypeChanged() ) );
connect( m_rb_udp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotProtocolTypeChanged() ) ); connect( m_rb_udp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotProtocolTypeChanged() ) );
connect( m_b_add_port, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddPort() ) ); connect( m_b_add_port, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddPort() ) );
connect( m_b_del_port, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotDelPort() ) ); connect( m_b_del_port, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDelPort() ) );
connect( m_b_new_protocol, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddProtocol() ) ); connect( m_b_new_protocol, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddProtocol() ) );
connect( m_b_del_protocol, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotDelProtocol() ) ); connect( m_b_del_protocol, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDelProtocol() ) );
connect( m_cb_showAll,TQT_SIGNAL( toggled( bool ) ), this , TQT_SLOT( slotUpdateView() ) ); connect( m_cb_showAll,TQ_SIGNAL( toggled( bool ) ), this , TQ_SLOT( slotUpdateView() ) );
} }
@ -425,10 +425,10 @@ void KMFGenericInterfaceEditProtocol::slotUpdateView() {
TQValueList< KMFProtocol* >::iterator it; TQValueList< KMFProtocol* >::iterator it;
for( it = prots.begin(); it != prots.end(); ++it ) { for( it = prots.begin(); it != prots.end(); ++it ) {
KMFProtocol* p= *it; KMFProtocol* p= *it;
disconnect( p, TQT_SIGNAL( destroyed( TQObject* ) ), disconnect( p, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolDeleleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolDeleleted( TQObject* ) ) );
connect( p, TQT_SIGNAL( destroyed( TQObject* ) ), connect( p, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolDeleleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolDeleleted( TQObject* ) ) );
} }
setEnabled( true ); setEnabled( true );

@ -48,31 +48,31 @@ KMFHostWidget::KMFHostWidget(TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallHostWidget(parent, name, fl ) : KMyFirewallHostWidget(parent, name, fl )
{ {
kdDebug() << "KMFHostWidget::KMFHostWidget(TQWidget* parent, const char* name, WFlags fl)" << endl; kdDebug() << "KMFHostWidget::KMFHostWidget(TQWidget* parent, const char* name, WFlags fl)" << endl;
connect( m_sb_host_0, TQT_SIGNAL( valueChanged ( int ) ), connect( m_sb_host_0, TQ_SIGNAL( valueChanged ( int ) ),
this, TQT_SLOT( slotAddressChanged( int ) ) ); this, TQ_SLOT( slotAddressChanged( int ) ) );
connect( m_sb_host_1, TQT_SIGNAL( valueChanged ( int ) ), connect( m_sb_host_1, TQ_SIGNAL( valueChanged ( int ) ),
this, TQT_SLOT( slotAddressChanged( int ) ) ); this, TQ_SLOT( slotAddressChanged( int ) ) );
connect( m_sb_host_2, TQT_SIGNAL( valueChanged ( int ) ), connect( m_sb_host_2, TQ_SIGNAL( valueChanged ( int ) ),
this, TQT_SLOT( slotAddressChanged( int ) ) ); this, TQ_SLOT( slotAddressChanged( int ) ) );
connect( m_sb_host_3, TQT_SIGNAL( valueChanged ( int ) ), connect( m_sb_host_3, TQ_SIGNAL( valueChanged ( int ) ),
this, TQT_SLOT( slotAddressChanged( int ) ) ); this, TQ_SLOT( slotAddressChanged( int ) ) );
connect( m_sb_host_sshPort, TQT_SIGNAL( valueChanged ( int ) ), connect( m_sb_host_sshPort, TQ_SIGNAL( valueChanged ( int ) ),
this, TQT_SLOT( slotSSHPortChanged( int ) ) ); this, TQ_SLOT( slotSSHPortChanged( int ) ) );
connect( m_cb_backend, TQT_SIGNAL( activated( const TQString& ) ), connect( m_cb_backend, TQ_SIGNAL( activated( const TQString& ) ),
this, TQT_SLOT( slotBackaendChanged( const TQString& ) ) ); this, TQ_SLOT( slotBackaendChanged( const TQString& ) ) );
connect( m_cb_os, TQT_SIGNAL( activated( const TQString& ) ), connect( m_cb_os, TQ_SIGNAL( activated( const TQString& ) ),
this, TQT_SLOT( slotOSChanged( const TQString& ) ) ); this, TQ_SLOT( slotOSChanged( const TQString& ) ) );
connect( m_host_desc, TQT_SIGNAL( textChanged() ), connect( m_host_desc, TQ_SIGNAL( textChanged() ),
this, TQT_SLOT( slotDescriptionChanged() ) ); this, TQ_SLOT( slotDescriptionChanged() ) );
connect( m_cmd_testSSH, TQT_SIGNAL( clicked() ), connect( m_cmd_testSSH, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotTestConnection() ) ); this, TQ_SLOT( slotTestConnection() ) );
connect( m_cmd_autoConf, TQT_SIGNAL( clicked() ), connect( m_cmd_autoConf, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotTryAutoConfiguration() ) ); this, TQ_SLOT( slotTryAutoConfiguration() ) );
} }
KMFHostWidget::~KMFHostWidget() KMFHostWidget::~KMFHostWidget()
@ -267,8 +267,8 @@ void KMFHostWidget::slotTryAutoConfiguration(){
} }
void KMFHostWidget::slotTryAutoConfiguration_Callback( KMFTarget* ) { void KMFHostWidget::slotTryAutoConfiguration_Callback( KMFTarget* ) {
disconnect( m_target, TQT_SIGNAL( sigTargetChanged( KMFTarget* ) ), disconnect( m_target, TQ_SIGNAL( sigTargetChanged( KMFTarget* ) ),
this,TQT_SLOT( slotTryAutoConfiguration_Callback( KMFTarget* ) ) ); this,TQ_SLOT( slotTryAutoConfiguration_Callback( KMFTarget* ) ) );
if ( ! m_target->config()->isValid() ) { if ( ! m_target->config()->isValid() ) {
KMessageBox::error( 0, i18n("<qt><p>Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.</p></qt>").arg( m_target->toFriendlyString() ) ); KMessageBox::error( 0, i18n("<qt><p>Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.</p></qt>").arg( m_target->toFriendlyString() ) );
} else { } else {

@ -40,8 +40,8 @@
namespace KMF { namespace KMF {
KMFInterfaceWidget::KMFInterfaceWidget( TQWidget* parent, const char* name, WFlags fl ) KMFInterfaceWidget::KMFInterfaceWidget( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallInterfaceWidget( parent, name, fl ) { : KMyFirewallInterfaceWidget( parent, name, fl ) {
connect( m_b_add_int, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddInterface() ) ); connect( m_b_add_int, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddInterface() ) );
connect( m_b_del_int, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotDelInterface() ) ); connect( m_b_del_int, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDelInterface() ) );
m_cb_int_name->clear(); m_cb_int_name->clear();
m_cb_int_name->insertItem( "eth" ); m_cb_int_name->insertItem( "eth" );

@ -43,14 +43,14 @@ KMFIPv4AddressWidget::KMFIPv4AddressWidget ( TQWidget* parent, const char* name,
: KMyFirewallIPv4AdddressWidget ( parent,name,fl ) { : KMyFirewallIPv4AdddressWidget ( parent,name,fl ) {
// m_address = new IPAddress( 0,0,0,0 ); // m_address = new IPAddress( 0,0,0,0 );
connect( m_sb_from_1, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_from_1, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_from_2, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_from_2, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_from_3, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_from_3, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_from_4, TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_from_4, TQ_SIGNAL( valueChanged( const TQString& ) ),
this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this, TQ_SLOT( slotAddressChanged( const TQString& ) ) );
} }
KMFIPv4AddressWidget::~KMFIPv4AddressWidget() {} KMFIPv4AddressWidget::~KMFIPv4AddressWidget() {}

@ -41,8 +41,8 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2004
namespace KMF { namespace KMF {
KMFListView::KMFListView( TQWidget *parent, const char *name ) : TDEListView( parent, name ) { KMFListView::KMFListView( TQWidget *parent, const char *name ) : TDEListView( parent, name ) {
loadIcons(); loadIcons();
connect( this, TQT_SIGNAL( sigLoadNode( NetfilterObject* ) ), connect( this, TQ_SIGNAL( sigLoadNode( NetfilterObject* ) ),
this, TQT_SLOT( slotLoadNode( NetfilterObject* ) ) ); this, TQ_SLOT( slotLoadNode( NetfilterObject* ) ) );
cast_error = i18n( "ERROR: Wrong ListViewItem Class used!\nThis is no KMFListViewItem" ); cast_error = i18n( "ERROR: Wrong ListViewItem Class used!\nThis is no KMFListViewItem" );
setSorting(0,true); setSorting(0,true);
m_show_desc = true; m_show_desc = true;

@ -30,9 +30,9 @@ KMFMultiPortWidget::KMFMultiPortWidget( TQWidget *parent, const char *name ) : K
m_err = new KMFError(); m_err = new KMFError();
m_err->setErrType( KMFError::OK ); m_err->setErrType( KMFError::OK );
lb_ports->clear(); lb_ports->clear();
connect( b_add, TQT_SIGNAL( clicked() ), this, TQT_SLOT( addPort() ) ); connect( b_add, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addPort() ) );
connect( b_remove, TQT_SIGNAL( clicked() ), this, TQT_SLOT( removePort() ) ); connect( b_remove, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removePort() ) );
connect( c_use_multiport, TQT_SIGNAL( toggled( bool ) ), this, TQT_SIGNAL( sigMultiPortChanged( bool ) ) ); connect( c_use_multiport, TQ_SIGNAL( toggled( bool ) ), this, TQ_SIGNAL( sigMultiPortChanged( bool ) ) );
} }
KMFMultiPortWidget::~KMFMultiPortWidget() {} KMFMultiPortWidget::~KMFMultiPortWidget() {}

@ -54,14 +54,14 @@ KMFMyNetworkWidget::KMFMyNetworkWidget(TQWidget* parent, const char* name, WFlag
m_network = 0; m_network = 0;
m_contextMenu = new TDEPopupMenu( this, "m_contextMenu" ); m_contextMenu = new TDEPopupMenu( this, "m_contextMenu" );
connect( m_lv_zones, TQT_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ), connect( m_lv_zones, TQ_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ),
this, TQT_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) ); this, TQ_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) );
connect( m_lv_zones, TQT_SIGNAL( pressed( TQListViewItem* ) ) , connect( m_lv_zones, TQ_SIGNAL( pressed( TQListViewItem* ) ) ,
this, TQT_SLOT( slotNewItemSelected( TQListViewItem* ) ) ); this, TQ_SLOT( slotNewItemSelected( TQListViewItem* ) ) );
connect( m_lv_zones, TQT_SIGNAL( itemRenamed ( TQListViewItem *, int, const TQString & ) ) , connect( m_lv_zones, TQ_SIGNAL( itemRenamed ( TQListViewItem *, int, const TQString & ) ) ,
this, TQT_SLOT( slotRenameItem( TQListViewItem *, int, const TQString & ) ) ); this, TQ_SLOT( slotRenameItem( TQListViewItem *, int, const TQString & ) ) );
@ -94,8 +94,8 @@ void KMFMyNetworkWidget::setupPropertiesView() {
kdDebug() << "void KMFMyNetworkWidget::setupPropertiesView()" << endl; kdDebug() << "void KMFMyNetworkWidget::setupPropertiesView()" << endl;
m_hostProperties = new KMFHostWidget( this, "host widget" ); m_hostProperties = new KMFHostWidget( this, "host widget" );
kt_hostProperties->addTab( m_hostProperties, i18n( "General" ) ); kt_hostProperties->addTab( m_hostProperties, i18n( "General" ) );
connect( m_hostProperties, TQT_SIGNAL( sigTargetChanged() ), connect( m_hostProperties, TQ_SIGNAL( sigTargetChanged() ),
this, TQT_SLOT( slotTargetChanged() ) ); this, TQ_SLOT( slotTargetChanged() ) );
m_hostProperties->InitGUI(); m_hostProperties->InitGUI();
@ -119,8 +119,8 @@ void KMFMyNetworkWidget::setupPropertiesView() {
m_network_widget = new KMFNetworkWidget( this, "m_network_widget" ); m_network_widget = new KMFNetworkWidget( this, "m_network_widget" );
connect( m_network_widget,TQT_SIGNAL( sigZoneChanged( KMFNetZone* ) ), connect( m_network_widget,TQ_SIGNAL( sigZoneChanged( KMFNetZone* ) ),
this,TQT_SLOT( slotZoneChanged( KMFNetZone* ) ) ); this,TQ_SLOT( slotZoneChanged( KMFNetZone* ) ) );
// grid->addWidget( m_network_widget, 0,0 ); // grid->addWidget( m_network_widget, 0,0 );
// grid->addWidget( m_network_widget, 1,0 ); // grid->addWidget( m_network_widget, 1,0 );
@ -236,15 +236,15 @@ void KMFMyNetworkWidget::slotZoneRBM( TQListViewItem* item, const TQPoint& point
TQString name = m_zone->name(); TQString name = m_zone->name();
TQString lab_str = i18n("Zone: %1").arg( m_zone->guiName() ); TQString lab_str = i18n("Zone: %1").arg( m_zone->guiName() );
m_contextMenu->insertTitle( icon_chain, lab_str ); m_contextMenu->insertTitle( icon_chain, lab_str );
m_contextMenu->insertItem( icon_new, i18n( "Add Host..." ), this, TQT_SLOT( slotAddHost() ) ); m_contextMenu->insertItem( icon_new, i18n( "Add Host..." ), this, TQ_SLOT( slotAddHost() ) );
m_contextMenu->insertSeparator(); m_contextMenu->insertSeparator();
m_contextMenu->insertItem( icon_new, i18n( "Add Zone..." ), this, TQT_SLOT( slotAddZone() ) ); m_contextMenu->insertItem( icon_new, i18n( "Add Zone..." ), this, TQ_SLOT( slotAddZone() ) );
if ( m_zone->name() != "incoming_world" && m_zone->name() != "outgoing_world" && ! m_zone->readOnly() ) { if ( m_zone->name() != "incoming_world" && m_zone->name() != "outgoing_world" && ! m_zone->readOnly() ) {
m_contextMenu->insertItem( icon_rename, i18n( "Rename Zone..." ), this, TQT_SLOT( slotRenameZone() ) ); m_contextMenu->insertItem( icon_rename, i18n( "Rename Zone..." ), this, TQ_SLOT( slotRenameZone() ) );
m_contextMenu->insertSeparator(); m_contextMenu->insertSeparator();
m_contextMenu->insertItem( icon_del, i18n( "Delete Zone" ), this, TQT_SLOT( slotDelZone() ) ); m_contextMenu->insertItem( icon_del, i18n( "Delete Zone" ), this, TQ_SLOT( slotDelZone() ) );
} }
m_contextMenu->popup( point ); m_contextMenu->popup( point );
@ -259,13 +259,13 @@ void KMFMyNetworkWidget::slotZoneRBM( TQListViewItem* item, const TQPoint& point
TQString lab_str = i18n("Host: %1").arg( m_target->guiName() ); TQString lab_str = i18n("Host: %1").arg( m_target->guiName() );
m_contextMenu->insertTitle( icon_chain, lab_str ); m_contextMenu->insertTitle( icon_chain, lab_str );
if ( ! m_target->readOnly() ) { if ( ! m_target->readOnly() ) {
m_contextMenu->insertItem( icon_rename, i18n( "Rename Host..." ), this, TQT_SLOT( slotRenameHost() ) ); m_contextMenu->insertItem( icon_rename, i18n( "Rename Host..." ), this, TQ_SLOT( slotRenameHost() ) );
m_contextMenu->insertSeparator(); m_contextMenu->insertSeparator();
m_contextMenu->insertItem( icon_del, i18n( "Delete Host..." ), this, TQT_SLOT( slotDelHost() ) ); m_contextMenu->insertItem( icon_del, i18n( "Delete Host..." ), this, TQ_SLOT( slotDelHost() ) );
} }
if ( ! m_target->isCurrentTarget() ) { if ( ! m_target->isCurrentTarget() ) {
m_contextMenu->insertSeparator(); m_contextMenu->insertSeparator();
m_contextMenu->insertItem( TDEGlobal::iconLoader()->loadIcon( "kmyfirewall", TDEIcon::Small ), i18n( "Make Active Target..." ), this, TQT_SLOT( slotSetActiveTarget() ) ); m_contextMenu->insertItem( TDEGlobal::iconLoader()->loadIcon( "kmyfirewall", TDEIcon::Small ), i18n( "Make Active Target..." ), this, TQ_SLOT( slotSetActiveTarget() ) );
} }
m_contextMenu->popup( point ); m_contextMenu->popup( point );

@ -49,23 +49,23 @@ KMFNetHostPropertiesWidget::KMFNetHostPropertiesWidget ( TQWidget* parent, const
m_address_widget = new KMFIPv4AddressWidget( m_frameAddress, "m_address_widget" ); m_address_widget = new KMFIPv4AddressWidget( m_frameAddress, "m_address_widget" );
connect( m_address_widget, TQT_SIGNAL( sigAddressChanged( int, int, int, int ) ), connect( m_address_widget, TQ_SIGNAL( sigAddressChanged( int, int, int, int ) ),
this,TQT_SLOT( slotAddressChanged( int, int, int, int ) ) ); this,TQ_SLOT( slotAddressChanged( int, int, int, int ) ) );
connect( m_cb_host_limit, TQT_SIGNAL( toggled( bool ) ), connect( m_cb_host_limit, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotHostLimitToggled( bool ) ) ); this, TQ_SLOT( slotHostLimitToggled( bool ) ) );
connect( m_sb_host_rate, TQT_SIGNAL( valueChanged( int ) ), connect( m_sb_host_rate, TQ_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( slotHostLimitValueChanged( int ) ) ); this, TQ_SLOT( slotHostLimitValueChanged( int ) ) );
connect( m_cb_limit_host_interval, TQT_SIGNAL( activated( int ) ), connect( m_cb_limit_host_interval, TQ_SIGNAL( activated( int ) ),
this, TQT_SLOT( slotHostLimitScaleChanged( int ) ) ); this, TQ_SLOT( slotHostLimitScaleChanged( int ) ) );
connect( m_cb_host_log, TQT_SIGNAL( toggled( bool ) ), connect( m_cb_host_log, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotHostLogToggled( bool ) ) ); this, TQ_SLOT( slotHostLogToggled( bool ) ) );
connect( m_host_desc, TQT_SIGNAL( textChanged() ), connect( m_host_desc, TQ_SIGNAL( textChanged() ),
this, TQT_SLOT( slotDescriptionChanged() ) ); this, TQ_SLOT( slotDescriptionChanged() ) );
TQGridLayout *grid = new TQGridLayout( m_frameAddress, 1, 1 ); TQGridLayout *grid = new TQGridLayout( m_frameAddress, 1, 1 );
grid->addWidget( m_address_widget, 0, 0 ); grid->addWidget( m_address_widget, 0, 0 );
@ -94,13 +94,13 @@ void KMFNetHostPropertiesWidget::loadHost( KMFNetHost* host ) {
} }
if ( m_host ) { if ( m_host ) {
disconnect( m_host, TQT_SIGNAL( destroyed() ), disconnect( m_host, TQ_SIGNAL( destroyed() ),
this,TQT_SLOT( slotHostDeleted() ) ); this,TQ_SLOT( slotHostDeleted() ) );
} }
m_host = host; m_host = host;
connect( m_host, TQT_SIGNAL( destroyed() ), connect( m_host, TQ_SIGNAL( destroyed() ),
this,TQT_SLOT( slotHostDeleted() ) ); this,TQ_SLOT( slotHostDeleted() ) );
blockAllSignals( true ); blockAllSignals( true );
setEnabled( true ); setEnabled( true );
m_address_widget->loadIPAddress( m_address_widget->loadIPAddress(

@ -29,20 +29,20 @@ namespace KMF {
KMFNetworkWidget::KMFNetworkWidget(TQWidget *parent, const char *name) KMFNetworkWidget::KMFNetworkWidget(TQWidget *parent, const char *name)
: KMyFirewallNetworkWidget(parent, name) { : KMyFirewallNetworkWidget(parent, name) {
m_allowEdit = true; m_allowEdit = true;
connect( m_sb_from_1,TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_from_1,TQ_SIGNAL( valueChanged( const TQString& ) ),
this,TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this,TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_from_2,TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_from_2,TQ_SIGNAL( valueChanged( const TQString& ) ),
this,TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this,TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_from_3,TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_from_3,TQ_SIGNAL( valueChanged( const TQString& ) ),
this,TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this,TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_from_4,TQT_SIGNAL( valueChanged( const TQString& ) ), connect( m_sb_from_4,TQ_SIGNAL( valueChanged( const TQString& ) ),
this,TQT_SLOT( slotAddressChanged( const TQString& ) ) ); this,TQ_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_mask,TQT_SIGNAL( valueChanged( int ) ), connect( m_sb_mask,TQ_SIGNAL( valueChanged( int ) ),
this,TQT_SLOT( slotShortMaskChanged( int ) ) ); this,TQ_SLOT( slotShortMaskChanged( int ) ) );
connect( m_txt_desc,TQT_SIGNAL( textChanged() ), connect( m_txt_desc,TQ_SIGNAL( textChanged() ),
this,TQT_SLOT( slotDescriptionChanged() ) ); this,TQ_SLOT( slotDescriptionChanged() ) );
} }
@ -57,7 +57,7 @@ void KMFNetworkWidget::loadZone( KMFNetZone* zone ) {
setEnabled( true ); setEnabled( true );
blockAllSignals( true ); blockAllSignals( true );
m_zone = zone; m_zone = zone;
connect( m_zone, TQT_SIGNAL( destroyed() ), this, TQT_SLOT ( slotZoneDeleted() ) ); connect( m_zone, TQ_SIGNAL( destroyed() ), this, TQ_SLOT ( slotZoneDeleted() ) );
m_sb_from_1->setEnabled( true ); m_sb_from_1->setEnabled( true );
m_sb_from_2->setEnabled( true ); m_sb_from_2->setEnabled( true );

@ -49,12 +49,12 @@ KMFNewDocDlg::KMFNewDocDlg( TQWidget *parent, const char *name, WFlags fl ) : KM
if ( pic.isNull() ) if ( pic.isNull() )
return ; return ;
l_pic->setPixmap( pic ); l_pic->setPixmap( pic );
connect( b_cancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); connect( b_cancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
connect( b_close, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); connect( b_close, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
connect( b_empty, TQT_SIGNAL( clicked() ), this, TQT_SLOT( loadEmpty() ) ); connect( b_empty, TQ_SIGNAL( clicked() ), this, TQ_SLOT( loadEmpty() ) );
connect( b_template, TQT_SIGNAL( clicked() ), this, TQT_SLOT( loadTemplate() ) ); connect( b_template, TQ_SIGNAL( clicked() ), this, TQ_SLOT( loadTemplate() ) );
connect( b_load_saved, TQT_SIGNAL( clicked() ), this, TQT_SLOT( loadSaved() ) ); connect( b_load_saved, TQ_SIGNAL( clicked() ), this, TQ_SLOT( loadSaved() ) );
connect( b_help, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotHelp() ) ); connect( b_help, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotHelp() ) );
TQRect screen = TQApplication::desktop() ->screenGeometry(); TQRect screen = TQApplication::desktop() ->screenGeometry();
TQRect mainRect; TQRect mainRect;
screen = TQApplication::desktop() ->screenGeometry( TQApplication::desktop() ->screenNumber( mainRect.center() ) ); screen = TQApplication::desktop() ->screenGeometry( TQApplication::desktop() ->screenNumber( mainRect.center() ) );

@ -39,9 +39,9 @@ KMFProcOut::KMFProcOut( TQWidget *parent, const char *name, WFlags fl ) : TQWidg
m_job_name = XML::Undefined_Value; m_job_name = XML::Undefined_Value;
childproc = new TDEProcess(); childproc = new TDEProcess();
connect( childproc, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), this, TQT_SLOT( slotReceivedOutput( TDEProcess*, char*, int ) ) ); connect( childproc, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), this, TQ_SLOT( slotReceivedOutput( TDEProcess*, char*, int ) ) );
connect( childproc, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), this, TQT_SLOT( slotReceivedError( TDEProcess*, char*, int ) ) ); connect( childproc, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), this, TQ_SLOT( slotReceivedError( TDEProcess*, char*, int ) ) );
connect( childproc, TQT_SIGNAL( processExited( TDEProcess* ) ), this, TQT_SLOT( slotProcessExited( TDEProcess* ) ) ) ; connect( childproc, TQ_SIGNAL( processExited( TDEProcess* ) ), this, TQ_SLOT( slotProcessExited( TDEProcess* ) ) ) ;
initGUI(); initGUI();
hide(); hide();
kdDebug() << "KMFProcOut: Finished initialisation." << endl; kdDebug() << "KMFProcOut: Finished initialisation." << endl;
@ -79,7 +79,7 @@ void KMFProcOut::initGUI() {
m_bkill = new KPushButton( icon_stop, i18n( "Kill Process" ) , this, "m_bkill" ); m_bkill = new KPushButton( icon_stop, i18n( "Kill Process" ) , this, "m_bkill" );
m_bkill->setEnabled( false ); m_bkill->setEnabled( false );
connect( m_bkill, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotKillJob() ) ); connect( m_bkill, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotKillJob() ) );
m_layout->addMultiCellWidget( m_ljob_name, 0, 0, 0, 9 ); m_layout->addMultiCellWidget( m_ljob_name, 0, 0, 0, 9 );
m_layout->addMultiCellWidget( m_bkill, 0, 0, 9, 10 ); m_layout->addMultiCellWidget( m_bkill, 0, 0, 9, 10 );

@ -50,8 +50,8 @@ KMFProtocolListView::KMFProtocolListView ( TQWidget* parent, const char* name, W
: KMyFirewallProtocolListView ( parent,name,fl ) { : KMyFirewallProtocolListView ( parent,name,fl ) {
m_reloading = false; m_reloading = false;
loadProtocols(); loadProtocols();
connect( m_lv_protocols, TQT_SIGNAL( pressed( TQListViewItem* ) ), connect( m_lv_protocols, TQ_SIGNAL( pressed( TQListViewItem* ) ),
this, TQT_SLOT( slotNewProtocolSelected( TQListViewItem* ) ) ); this, TQ_SLOT( slotNewProtocolSelected( TQListViewItem* ) ) );
} }
@ -146,10 +146,10 @@ void KMFProtocolListView::loadProtocols() {
TQValueList<KMFProtocol*>::iterator it; TQValueList<KMFProtocol*>::iterator it;
for( it = allProts.begin(); it != allProts.end(); ++it ) { for( it = allProts.begin(); it != allProts.end(); ++it ) {
KMFProtocol * prot = *it; KMFProtocol * prot = *it;
/* disconnect( prot, TQT_SIGNAL( destroyed( TQObject* ) ), /* disconnect( prot, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolDeleted( TQObject* ) ) ); this, TQ_SLOT( slotOnProtocolDeleted( TQObject* ) ) );
connect( prot, TQT_SIGNAL( destroyed( TQObject* ) ), connect( prot, TQ_SIGNAL( destroyed( TQObject* ) ),
this, TQT_SLOT( slotOnProtocolDeleted( TQObject* ) ) );*/ this, TQ_SLOT( slotOnProtocolDeleted( TQObject* ) ) );*/
KMFProtocolUsage *protUsage = prot->createUsage(); KMFProtocolUsage *protUsage = prot->createUsage();
protUsage->setProtocol( prot ); protUsage->setProtocol( prot );

@ -46,16 +46,16 @@ namespace KMF {
KMFProtocolPropertiesWidget::KMFProtocolPropertiesWidget ( TQWidget* parent, const char* name, WFlags fl ) KMFProtocolPropertiesWidget::KMFProtocolPropertiesWidget ( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallProtocolPropertiesWidget ( parent,name,fl ) { : KMyFirewallProtocolPropertiesWidget ( parent,name,fl ) {
connect( m_cb_limit, TQT_SIGNAL( toggled( bool ) ), connect( m_cb_limit, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotEnableProtocolLimit( bool ) ) ); this, TQ_SLOT( slotEnableProtocolLimit( bool ) ) );
connect( m_sb_limit_rate, TQT_SIGNAL( valueChanged( int ) ), connect( m_sb_limit_rate, TQ_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( slotSetProtocolLimitRate( int ) ) ); this, TQ_SLOT( slotSetProtocolLimitRate( int ) ) );
connect( m_cb_limit_interval, TQT_SIGNAL( highlighted( const TQString& ) ), this, TQT_SLOT( slotSetProtocolLimitInterval( const TQString& ) ) ); connect( m_cb_limit_interval, TQ_SIGNAL( highlighted( const TQString& ) ), this, TQ_SLOT( slotSetProtocolLimitInterval( const TQString& ) ) );
connect( m_cb_log, TQT_SIGNAL( toggled( bool ) ), connect( m_cb_log, TQ_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotEnableProtocolLogging( bool ) ) ); this, TQ_SLOT( slotEnableProtocolLogging( bool ) ) );
} }
@ -120,13 +120,13 @@ void KMFProtocolPropertiesWidget::loadProtocolUsage( KMFProtocolUsage* prot ) {
} }
if ( m_protocolUsage ) { if ( m_protocolUsage ) {
disconnect( m_protocolUsage, TQT_SIGNAL( destroyed() ), disconnect( m_protocolUsage, TQ_SIGNAL( destroyed() ),
this,TQT_SLOT( slotProtocolDeleted() ) ); this,TQ_SLOT( slotProtocolDeleted() ) );
} }
m_protocolUsage = prot; m_protocolUsage = prot;
connect( m_protocolUsage, TQT_SIGNAL( destroyed() ), connect( m_protocolUsage, TQ_SIGNAL( destroyed() ),
this,TQT_SLOT( slotProtocolDeleted() ) ); this,TQ_SLOT( slotProtocolDeleted() ) );
setEnabled( true ); setEnabled( true );
blockAllSignals( true ); blockAllSignals( true );

@ -89,16 +89,16 @@ KMFSelectActiveTarget::KMFSelectActiveTarget ( TQWidget* parent, const char* nam
{ {
m_cmd_ok->setEnabled( false ); m_cmd_ok->setEnabled( false );
connect( m_lv_zones, TQT_SIGNAL( pressed( TQListViewItem* ) ) , connect( m_lv_zones, TQ_SIGNAL( pressed( TQListViewItem* ) ) ,
this, TQT_SLOT( slotNewItemSelected( TQListViewItem* ) ) ); this, TQ_SLOT( slotNewItemSelected( TQListViewItem* ) ) );
connect( m_lv_zones, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ) , connect( m_lv_zones, TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ) ,
this, TQT_SLOT( slotNewItemDBLClicked( TQListViewItem*, const TQPoint &, int ) ) ); this, TQ_SLOT( slotNewItemDBLClicked( TQListViewItem*, const TQPoint &, int ) ) );
connect( m_cmd_cancel, TQT_SIGNAL( clicked() ) , connect( m_cmd_cancel, TQ_SIGNAL( clicked() ) ,
this, TQT_SLOT( slotCancel() ) ); this, TQ_SLOT( slotCancel() ) );
connect( m_cmd_ok, TQT_SIGNAL( clicked() ) , connect( m_cmd_ok, TQ_SIGNAL( clicked() ) ,
this, TQT_SLOT( slotOk() ) ); this, TQ_SLOT( slotOk() ) );
adjustSize(); adjustSize();
} }

@ -51,10 +51,10 @@ KMFSelectInterface::KMFSelectInterface( TQWidget *parent, const char *name, bool
connect( m_cob_interface, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotInterfaceChanged( int ) ) ); connect( m_cob_interface, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotInterfaceChanged( int ) ) );
connect( m_cmd_ok, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( accept() ) ); connect( m_cmd_ok, TQ_SIGNAL( clicked() ) , this, TQ_SLOT( accept() ) );
connect( m_cmd_help, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( help() ) ); connect( m_cmd_help, TQ_SIGNAL( clicked() ) , this, TQ_SLOT( help() ) );
connect( b_close, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( reject() ) ); connect( b_close, TQ_SIGNAL( clicked() ) , this, TQ_SLOT( reject() ) );
adjustSize(); adjustSize();
} }

@ -47,16 +47,16 @@ KMFSystemSettingsLinux::KMFSystemSettingsLinux(TQWidget* parent, const char* nam
m_url_init_path->setMode( KFile::Directory | KFile::LocalOnly ); m_url_init_path->setMode( KFile::Directory | KFile::LocalOnly );
m_url_runlevel_path->setMode( KFile::Directory | KFile::LocalOnly ); m_url_runlevel_path->setMode( KFile::Directory | KFile::LocalOnly );
connect( m_url_ipt_path, TQT_SIGNAL( textChanged( const TQString& ) ), connect( m_url_ipt_path, TQ_SIGNAL( textChanged( const TQString& ) ),
this, TQT_SLOT( slotSettingChanged() ) ); this, TQ_SLOT( slotSettingChanged() ) );
connect( m_url_mod_path, TQT_SIGNAL( textChanged( const TQString& ) ), connect( m_url_mod_path, TQ_SIGNAL( textChanged( const TQString& ) ),
this, TQT_SLOT( slotSettingChanged() ) ); this, TQ_SLOT( slotSettingChanged() ) );
connect( m_url_init_path, TQT_SIGNAL( textChanged( const TQString& ) ), connect( m_url_init_path, TQ_SIGNAL( textChanged( const TQString& ) ),
this, TQT_SLOT( slotSettingChanged() ) ); this, TQ_SLOT( slotSettingChanged() ) );
connect( m_url_runlevel_path, TQT_SIGNAL( textChanged( const TQString& ) ), connect( m_url_runlevel_path, TQ_SIGNAL( textChanged( const TQString& ) ),
this, TQT_SLOT( slotSettingChanged() ) ); this, TQ_SLOT( slotSettingChanged() ) );
connect( m_cob_distribution, TQT_SIGNAL( activated( const TQString& ) ), connect( m_cob_distribution, TQ_SIGNAL( activated( const TQString& ) ),
this, TQT_SLOT( slotDistributionChanged() ) ); this, TQ_SLOT( slotDistributionChanged() ) );
} }
KMFSystemSettingsLinux::~KMFSystemSettingsLinux() KMFSystemSettingsLinux::~KMFSystemSettingsLinux()

@ -34,12 +34,12 @@
#include "kmftemplatechooser.h" #include "kmftemplatechooser.h"
namespace KMF { namespace KMF {
KMFTemplateChooser::KMFTemplateChooser(TQWidget* parent, const char* name, bool modal, WFlags fl) : KMyFirewallTemplateChooser(parent,name, modal,fl) { KMFTemplateChooser::KMFTemplateChooser(TQWidget* parent, const char* name, bool modal, WFlags fl) : KMyFirewallTemplateChooser(parent,name, modal,fl) {
connect( lb_templates, TQT_SIGNAL( highlighted ( int ) ), connect( lb_templates, TQ_SIGNAL( highlighted ( int ) ),
this, TQT_SLOT( slotNewTemplateSelected( int ) ) ); this, TQ_SLOT( slotNewTemplateSelected( int ) ) );
connect( lb_templates, TQT_SIGNAL( doubleClicked( TQListBoxItem* ) ), connect( lb_templates, TQ_SIGNAL( doubleClicked( TQListBoxItem* ) ),
this, TQT_SLOT( slotNewTemplateSelected( TQListBoxItem* ) ) ); this, TQ_SLOT( slotNewTemplateSelected( TQListBoxItem* ) ) );
connect( b_help, TQT_SIGNAL( clicked() ), connect( b_help, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotHelp() ) ); this, TQ_SLOT( slotHelp() ) );
parseTemplates(); parseTemplates();
b_accept->setEnabled( false ); b_accept->setEnabled( false );

@ -55,25 +55,25 @@ KMFTransactionLog::KMFTransactionLog ( TQWidget* parent, const char* name, WFlag
m_redoXMLFile = new KTempFile(); m_redoXMLFile = new KTempFile();
m_redoXMLFile->setAutoDelete( true ); m_redoXMLFile->setAutoDelete( true );
connect( m_cmd_clearStacks, TQT_SIGNAL( clicked() ), connect( m_cmd_clearStacks, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotClearStacks() ) ); this, TQ_SLOT( slotClearStacks() ) );
connect( m_cmd_clearLog, TQT_SIGNAL( clicked() ), connect( m_cmd_clearLog, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotClearLog() ) ); this, TQ_SLOT( slotClearLog() ) );
connect( KMFUndoEngine::instance(), TQT_SIGNAL( sigStackChanged() ), connect( KMFUndoEngine::instance(), TQ_SIGNAL( sigStackChanged() ),
this, TQT_SLOT( slotUpdateView() ) ); this, TQ_SLOT( slotUpdateView() ) );
connect( KMFUndoEngine::instance(), TQT_SIGNAL( sigLog( const TQString& ) ), connect( KMFUndoEngine::instance(), TQ_SIGNAL( sigLog( const TQString& ) ),
this, TQT_SLOT( slotLog( const TQString& ) ) ); this, TQ_SLOT( slotLog( const TQString& ) ) );
connect( m_lvUndoTransactions, TQT_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ), connect( m_lvUndoTransactions, TQ_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ),
this, TQT_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) ); this, TQ_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) );
connect( m_lvRedoTransactions, TQT_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ), connect( m_lvRedoTransactions, TQ_SIGNAL( contextMenuRequested ( TQListViewItem*, const TQPoint&, int ) ),
this, TQT_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) ); this, TQ_SLOT( slotZoneRBM( TQListViewItem*, const TQPoint&, int ) ) );
connect( m_cmd_update, TQT_SIGNAL( clicked() ), connect( m_cmd_update, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotUpdateStatistics() ) ); this, TQ_SLOT( slotUpdateStatistics() ) );
m_lvUndoTransactions->setSorting(-1); m_lvUndoTransactions->setSorting(-1);
m_lvUndoTransactions->setSortColumn(-1); m_lvUndoTransactions->setSortColumn(-1);
@ -131,7 +131,7 @@ void KMFTransactionLog::slotZoneRBM( TQListViewItem* item, const TQPoint& point,
TQString name = i18n("Transaction: %1").arg( m_currentTransaction->uuid().toString() ); TQString name = i18n("Transaction: %1").arg( m_currentTransaction->uuid().toString() );
// TQString lab_str = i18n("Zone: %1").arg( m_zone->guiName() ); // TQString lab_str = i18n("Zone: %1").arg( m_zone->guiName() );
m_contextMenu->insertTitle( name ); m_contextMenu->insertTitle( name );
m_contextMenu->insertItem( i18n( "Show XML diff using Kompare" ), this, TQT_SLOT( slotShowDiff() ) ); m_contextMenu->insertItem( i18n( "Show XML diff using Kompare" ), this, TQ_SLOT( slotShowDiff() ) );
m_contextMenu->popup( point ); m_contextMenu->popup( point );
if ( m_undoXMLFile ) { if ( m_undoXMLFile ) {

@ -97,11 +97,11 @@ KMyFirewall::KMyFirewall( TQWidget* parent, const char *name ) : KMFMainWindow(
/* childproc = new TDEProcess(); /* childproc = new TDEProcess();
connect( childproc, TQT_SIGNAL( processExited( TDEProcess* ) ), this, TQT_SLOT( slotProcessExited( TDEProcess* ) ) ) ; connect( childproc, TQ_SIGNAL( processExited( TDEProcess* ) ), this, TQ_SLOT( slotProcessExited( TDEProcess* ) ) ) ;
connect( childproc, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), this, TQT_SLOT( slotReceivedOutput( TDEProcess*, char*, int ) ) ); connect( childproc, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), this, TQ_SLOT( slotReceivedOutput( TDEProcess*, char*, int ) ) );
connect( childproc, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), this, TQT_SLOT( slotReceivedError( TDEProcess*, char*, int ) ) );*/ connect( childproc, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), this, TQ_SLOT( slotReceivedError( TDEProcess*, char*, int ) ) );*/
@ -110,8 +110,8 @@ KMyFirewall::KMyFirewall( TQWidget* parent, const char *name ) : KMFMainWindow(
// Initialize the settings dialog // Initialize the settings dialog
m_configDlg = new KMFConfigDialog( this, "config" ); m_configDlg = new KMFConfigDialog( this, "config" );
m_configDlg->setNetwork( network() ); m_configDlg->setNetwork( network() );
connect ( m_configDlg, TQT_SIGNAL( sigConfigChanged() ), connect ( m_configDlg, TQ_SIGNAL( sigConfigChanged() ),
this, TQT_SLOT( slotConfigChanged() ) ); this, TQ_SLOT( slotConfigChanged() ) );
// Initialize error object // Initialize error object
m_err = new KMFError(); m_err = new KMFError();
@ -287,8 +287,8 @@ void KMyFirewall::setOutputWidget( TQWidget* wid ) {
kdDebug() << "Adding outputwidget: " << wid->className() << endl; kdDebug() << "Adding outputwidget: " << wid->className() << endl;
if ( strcmp(wid->className(), "KMFObjectInfo") ) { if ( strcmp(wid->className(), "KMFObjectInfo") ) {
KPushButton * close = new KPushButton( i18n( "Return to Editor View" ), widget ); KPushButton * close = new KPushButton( i18n( "Return to Editor View" ), widget );
connect( close, TQT_SIGNAL( clicked() ), connect( close, TQ_SIGNAL( clicked() ),
this, TQT_SLOT( slotShowEditor() ) ); this, TQ_SLOT( slotShowEditor() ) );
layout->addWidget( close, 1, 0 ); layout->addWidget( close, 1, 0 );
} }
m_outputWidget = widget; m_outputWidget = widget;
@ -299,50 +299,50 @@ void KMyFirewall::initActions() {
kdDebug() << "Init Actions..." << endl; kdDebug() << "Init Actions..." << endl;
// Custom Actions // Custom Actions
actionEditDocInfo = new TDEAction( i18n( "&Edit Document Information" ), "edit", 0 , this, TQT_SLOT( slotEditDocInfo() ), actionCollection(), "edit_doc_info" ); actionEditDocInfo = new TDEAction( i18n( "&Edit Document Information" ), "edit", 0 , this, TQ_SLOT( slotEditDocInfo() ), actionCollection(), "edit_doc_info" );
// KStdAction // KStdAction
actionNew = KStdAction::openNew( this, TQT_SLOT( slotFileNew() ), actionNew = KStdAction::openNew( this, TQ_SLOT( slotFileNew() ),
actionCollection(), "new" ); actionCollection(), "new" );
actionClose = KStdAction::close( this, TQT_SLOT( slotFileClose() ), actionClose = KStdAction::close( this, TQ_SLOT( slotFileClose() ),
actionCollection(), "close" ); actionCollection(), "close" );
actionOpen = KStdAction::open( this, TQT_SLOT( slotFileOpen() ), actionOpen = KStdAction::open( this, TQ_SLOT( slotFileOpen() ),
actionCollection(), "open" ); actionCollection(), "open" );
actionSave = KStdAction::save( this, TQT_SLOT( slotFileSave() ), actionSave = KStdAction::save( this, TQ_SLOT( slotFileSave() ),
actionCollection(), "save" ); actionCollection(), "save" );
actionSaveAs = KStdAction::saveAs( this, TQT_SLOT( slotFileSaveAs() ), actionSaveAs = KStdAction::saveAs( this, TQ_SLOT( slotFileSaveAs() ),
actionCollection(), "save_as" ); actionCollection(), "save_as" );
actionSaveAs->setEnabled( false ); actionSaveAs->setEnabled( false );
actionQuit = KStdAction::quit( this, TQT_SLOT( slotQuitApp() ), actionQuit = KStdAction::quit( this, TQ_SLOT( slotQuitApp() ),
actionCollection(), "quit" ); actionCollection(), "quit" );
actionUndo = KStdAction::undo( this, TQT_SLOT( slotUndo() ), actionUndo = KStdAction::undo( this, TQ_SLOT( slotUndo() ),
actionCollection(), "undo" ); actionCollection(), "undo" );
actionRedo = KStdAction::redo( this, TQT_SLOT( slotRedo() ), actionRedo = KStdAction::redo( this, TQ_SLOT( slotRedo() ),
actionCollection(), "redo" ); actionCollection(), "redo" );
actionExportTargetConfig = new TDEAction( i18n( "&Export Target Configuration..." ), "wizard", 0 , this, TQT_SLOT( slotExportTargetConfig() ), actionExportTargetConfig = new TDEAction( i18n( "&Export Target Configuration..." ), "wizard", 0 , this, TQ_SLOT( slotExportTargetConfig() ),
actionCollection(), "export_tagret_config" ); actionCollection(), "export_tagret_config" );
actionImportTargetConfig = new TDEAction( i18n( "&Import Target Configuration..." ), "wizard", 0 , this, TQT_SLOT( slotImportTargetConfig() ), actionImportTargetConfig = new TDEAction( i18n( "&Import Target Configuration..." ), "wizard", 0 , this, TQ_SLOT( slotImportTargetConfig() ),
actionCollection(), "import_tagret_config" ); actionCollection(), "import_tagret_config" );
actionShowTransactionLog = new TDEAction( i18n( "&Show Transaction Log..." ), "wizard", 0 , this, TQT_SLOT( slotShowTransactionLog() ), actionShowTransactionLog = new TDEAction( i18n( "&Show Transaction Log..." ), "wizard", 0 , this, TQ_SLOT( slotShowTransactionLog() ),
actionCollection(), "show_transaction_log" ); actionCollection(), "show_transaction_log" );
actionLoadTemplate = new TDEAction( i18n( "&Load Template..." ), "wizard", 0 , this, TQT_SLOT( slotLoadTemplate() ), actionLoadTemplate = new TDEAction( i18n( "&Load Template..." ), "wizard", 0 , this, TQ_SLOT( slotLoadTemplate() ),
actionCollection(), "load_template" ); actionCollection(), "load_template" );
// KStdAction::showToolbar( this, TQT_SLOT( toggleToolBar() ) , actionCollection() ); // KStdAction::showToolbar( this, TQ_SLOT( toggleToolBar() ) , actionCollection() );
KStdAction::showStatusbar( this, TQT_SLOT( toggleStatusBar() ), actionCollection() ); KStdAction::showStatusbar( this, TQ_SLOT( toggleStatusBar() ), actionCollection() );
KStdAction::preferences( this, TQT_SLOT( slotConfigureKMF() ), actionCollection() ); KStdAction::preferences( this, TQ_SLOT( slotConfigureKMF() ), actionCollection() );
KStdAction::configureToolbars( this, TQT_SLOT( slotConfigureToolbars() ), actionCollection() ); KStdAction::configureToolbars( this, TQ_SLOT( slotConfigureToolbars() ), actionCollection() );
} }
@ -362,7 +362,7 @@ void KMyFirewall::slotExportTargetConfig() {
void KMyFirewall::slotConfigureToolbars() { void KMyFirewall::slotConfigureToolbars() {
saveMainWindowSettings( TDEGlobal::config(), "KMyFirewall" ); saveMainWindowSettings( TDEGlobal::config(), "KMyFirewall" );
KEditToolbar dlg( factory() ); KEditToolbar dlg( factory() );
connect( &dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() ) ); connect( &dlg, TQ_SIGNAL( newToolbarConfig() ), this, TQ_SLOT( slotNewToolbarConfig() ) );
dlg.exec(); dlg.exec();
} }
@ -491,7 +491,7 @@ void KMyFirewall::slotEnableSave() {
void KMyFirewall::slotEditDocInfo() { void KMyFirewall::slotEditDocInfo() {
KMFDocumentInfo * dlg = new KMFDocumentInfo( this, "KMFObjectInfo", true ); KMFDocumentInfo * dlg = new KMFDocumentInfo( this, "KMFObjectInfo", true );
dlg->loadDoc( network()->currentDoc() ); dlg->loadDoc( network()->currentDoc() );
connect( dlg,TQT_SIGNAL( sigSaveAsTemplate() ) , this, TQT_SLOT( slotFileSaveAsTemplate() ) ); connect( dlg,TQ_SIGNAL( sigSaveAsTemplate() ) , this, TQ_SLOT( slotFileSaveAsTemplate() ) );
dlg->exec(); dlg->exec();
} }
@ -579,10 +579,10 @@ void KMyFirewall::slotLoadTemplate() {
KMFTemplateChooser * dlg = new KMFTemplateChooser( 0 , "KMyFirewall - Load Template", true, TQWidget::WDestructiveClose | TQWidget::WStyle_Customize | TQWidget::WStyle_NoBorder ); KMFTemplateChooser * dlg = new KMFTemplateChooser( 0 , "KMyFirewall - Load Template", true, TQWidget::WDestructiveClose | TQWidget::WStyle_Customize | TQWidget::WStyle_NoBorder );
// dlg->parseTemplates(); // dlg->parseTemplates();
connect( dlg, TQT_SIGNAL( sigLoadTemplate( const TQString& ) ), connect( dlg, TQ_SIGNAL( sigLoadTemplate( const TQString& ) ),
this, TQT_SLOT( slotLoadFile( const TQString& ) ) ); this, TQ_SLOT( slotLoadFile( const TQString& ) ) );
/* connect( dlg, TQT_SIGNAL( sigLoadEmptyDocument() ), /* connect( dlg, TQ_SIGNAL( sigLoadEmptyDocument() ),
this, TQT_SLOT( slotLoadFile( const TQString& ) ) );*/ this, TQ_SLOT( slotLoadFile( const TQString& ) ) );*/
dlg->exec(); dlg->exec();
} }
@ -921,9 +921,9 @@ void KMyFirewall::slotFileNew() {
KMFNewDocDlg *dlg = new KMFNewDocDlg( 0, "KMyFirewall - New Document", TQWidget::WDestructiveClose | TQWidget::WStyle_Customize | TQWidget::WStyle_NoBorder ); KMFNewDocDlg *dlg = new KMFNewDocDlg( 0, "KMyFirewall - New Document", TQWidget::WDestructiveClose | TQWidget::WStyle_Customize | TQWidget::WStyle_NoBorder );
dlg->show() ; dlg->show() ;
dlg->raise(); dlg->raise();
connect( dlg, TQT_SIGNAL( sigNewDocLoadTemplate() ), this, TQT_SLOT( slotLoadTemplate() ) ); connect( dlg, TQ_SIGNAL( sigNewDocLoadTemplate() ), this, TQ_SLOT( slotLoadTemplate() ) );
connect( dlg, TQT_SIGNAL( sigNewDocLoadEmpty() ), this, TQT_SLOT( slotLoadEmptyRuleset() ) ); connect( dlg, TQ_SIGNAL( sigNewDocLoadEmpty() ), this, TQ_SLOT( slotLoadEmptyRuleset() ) );
connect( dlg, TQT_SIGNAL( sigNewDocLoadSaved() ), this, TQT_SLOT( slotFileOpen() ) ); connect( dlg, TQ_SIGNAL( sigNewDocLoadSaved() ), this, TQ_SLOT( slotFileOpen() ) );
} }
void KMyFirewall::slotLoadEmptyRuleset() { void KMyFirewall::slotLoadEmptyRuleset() {

@ -47,8 +47,8 @@ KMFRuleOptionEditCustom::KMFRuleOptionEditCustom(TQObject *parent, const char *n
m_edit = new KMFRuleEditCustomOpt( 0 , "Edit" ); m_edit = new KMFRuleEditCustomOpt( 0 , "Edit" );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditCustom::~KMFRuleOptionEditCustom() {} KMFRuleOptionEditCustom::~KMFRuleOptionEditCustom() {}

@ -33,12 +33,12 @@ KMFRuleOptionEditorInterface::KMFRuleOptionEditorInterface(TQObject *parent, con
m_edit = new KMFRuleEditorInterface( 0 , "Edit", 0 ); m_edit = new KMFRuleEditorInterface( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
/* connect( m_edit,TQT_SIGNAL(sigAddRuleOpt(TQString*, TQPtrList< TQString >* ) ), /* connect( m_edit,TQ_SIGNAL(sigAddRuleOpt(TQString*, TQPtrList< TQString >* ) ),
this,TQT_SLOT( slotAddRuleOption(TQString*, TQPtrList< TQString >* ) ) ); this,TQ_SLOT( slotAddRuleOption(TQString*, TQPtrList< TQString >* ) ) );
connect( m_edit,TQT_SIGNAL(sigAddTargetOpt(TQString*, TQPtrList< TQString >* ) ), connect( m_edit,TQ_SIGNAL(sigAddTargetOpt(TQString*, TQPtrList< TQString >* ) ),
this,TQT_SLOT( slotAddTargetOption(TQString*, TQPtrList< TQString >* ) ) );*/ this,TQ_SLOT( slotAddTargetOption(TQString*, TQPtrList< TQString >* ) ) );*/
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditorInterface::~KMFRuleOptionEditorInterface() {} KMFRuleOptionEditorInterface::~KMFRuleOptionEditorInterface() {}

@ -45,8 +45,8 @@ KMFRuleOptionEditIP::KMFRuleOptionEditIP(TQObject *parent, const char *name)
m_edit = new KMFRuleEditIP( 0 , "Edit", 0 ); m_edit = new KMFRuleEditIP( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditIP::~KMFRuleOptionEditIP() {} KMFRuleOptionEditIP::~KMFRuleOptionEditIP() {}

@ -45,8 +45,8 @@ KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(TQObject *parent, const char *nam
m_edit = new KMFRuleEditorLimit( 0 , "Edit", 0 ); m_edit = new KMFRuleEditorLimit( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditLimit::~KMFRuleOptionEditLimit() {} KMFRuleOptionEditLimit::~KMFRuleOptionEditLimit() {}

@ -37,8 +37,8 @@ KMFRuleTargetOptionEditLog::KMFRuleTargetOptionEditLog(TQObject *parent, const c
m_edit = new KMFRuleEditTargetLog( 0 , "Edit", 0 ); m_edit = new KMFRuleEditTargetLog( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleTargetOptionEditLog::~KMFRuleTargetOptionEditLog() {} KMFRuleTargetOptionEditLog::~KMFRuleTargetOptionEditLog() {}

@ -34,8 +34,8 @@ KMFRuleOptionEditMAC::KMFRuleOptionEditMAC(TQObject *parent, const char *name)
m_edit = new KMFRuleEditMac( 0 , "Edit", 0 ); m_edit = new KMFRuleEditMac( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditMAC::~KMFRuleOptionEditMAC() {} KMFRuleOptionEditMAC::~KMFRuleOptionEditMAC() {}

@ -37,12 +37,12 @@ KMFRuleTargetOptionEditMark::KMFRuleTargetOptionEditMark(TQObject *parent, const
m_edit = new KMFRuleEditTargetMark( 0 , "Edit", 0 ); m_edit = new KMFRuleEditTargetMark( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
/* connect( m_edit,TQT_SIGNAL(sigAddRuleOpt(TQString*, TQPtrList< TQString >* ) ), /* connect( m_edit,TQ_SIGNAL(sigAddRuleOpt(TQString*, TQPtrList< TQString >* ) ),
this,TQT_SLOT( slotAddRuleOption(TQString*, TQPtrList< TQString >* ) ) ); this,TQ_SLOT( slotAddRuleOption(TQString*, TQPtrList< TQString >* ) ) );
connect( m_edit,TQT_SIGNAL(sigAddTargetOpt(TQString*, TQPtrList< TQString >* ) ), connect( m_edit,TQ_SIGNAL(sigAddTargetOpt(TQString*, TQPtrList< TQString >* ) ),
this,TQT_SLOT( slotAddTargetOption(TQString*, TQPtrList< TQString >* ) ) );*/ this,TQ_SLOT( slotAddTargetOption(TQString*, TQPtrList< TQString >* ) ) );*/
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleTargetOptionEditMark::~KMFRuleTargetOptionEditMark() {} KMFRuleTargetOptionEditMark::~KMFRuleTargetOptionEditMark() {}

@ -49,8 +49,8 @@ KMFRuleTargetOptionEditNat::KMFRuleTargetOptionEditNat(TQObject *parent, const c
m_edit = new KMFRuleEditorTargetNat( 0 , "Edit", 0 ); m_edit = new KMFRuleEditorTargetNat( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleTargetOptionEditNat::~KMFRuleTargetOptionEditNat() {} KMFRuleTargetOptionEditNat::~KMFRuleTargetOptionEditNat() {}

@ -84,23 +84,23 @@ KMFRuleEditorProtocol::KMFRuleEditorProtocol( TQWidget *parent, const char *name
cb_icmp_type->insertItem( "required-option-missing" ); cb_icmp_type->insertItem( "required-option-missing" );
mpwid = new KMFMultiPortWidget( tab_multiport, "mpwid" ); mpwid = new KMFMultiPortWidget( tab_multiport, "mpwid" );
connect( mpwid, TQT_SIGNAL( sigMultiPortChanged( bool ) ), this, TQT_SLOT( toggleMultiPort( bool ) ) ); connect( mpwid, TQ_SIGNAL( sigMultiPortChanged( bool ) ), this, TQ_SLOT( toggleMultiPort( bool ) ) );
pw_dest_port = new KMFPortWidget( tab_ports, "pw_dest_port" ); pw_dest_port = new KMFPortWidget( tab_ports, "pw_dest_port" );
pw_dest_port->setEnabled( false ); pw_dest_port->setEnabled( false );
connect( c_dest_port, TQT_SIGNAL( toggled( bool ) ) , pw_dest_port, TQT_SLOT( setEnabled( bool ) ) ); connect( c_dest_port, TQ_SIGNAL( toggled( bool ) ) , pw_dest_port, TQ_SLOT( setEnabled( bool ) ) );
pw_src_port = new KMFPortWidget( tab_ports, "pw_src_port" ); pw_src_port = new KMFPortWidget( tab_ports, "pw_src_port" );
pw_src_port->setEnabled( false ); pw_src_port->setEnabled( false );
connect( c_src_port, TQT_SIGNAL( toggled( bool ) ) , pw_src_port, TQT_SLOT( setEnabled( bool ) ) ); connect( c_src_port, TQ_SIGNAL( toggled( bool ) ) , pw_src_port, TQ_SLOT( setEnabled( bool ) ) );
tab_multiportLayout->addMultiCellWidget( mpwid, 0, 0, 2, 2 ); tab_multiportLayout->addMultiCellWidget( mpwid, 0, 0, 2, 2 );
tab_portsLayout->addWidget( pw_src_port, 1, 1 ); tab_portsLayout->addWidget( pw_src_port, 1, 1 );
tab_portsLayout->addWidget( pw_dest_port, 2, 1 ); tab_portsLayout->addWidget( pw_dest_port, 2, 1 );
connect( c_udp, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggleUdpRule( bool ) ) ); connect( c_udp, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( toggleUdpRule( bool ) ) );
connect( c_icmp, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggleIcmpRule( bool ) ) ); connect( c_icmp, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( toggleIcmpRule( bool ) ) );
connect( c_tcp, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggleTcpRule( bool ) ) ); connect( c_tcp, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( toggleTcpRule( bool ) ) );
tabWidget->setTabEnabled( tab_ports, false ); tabWidget->setTabEnabled( tab_ports, false );
tabWidget->setTabEnabled( tab_multiport, false ); tabWidget->setTabEnabled( tab_multiport, false );
tabWidget->setTabEnabled( tab_icmp, false ); tabWidget->setTabEnabled( tab_icmp, false );

@ -45,8 +45,8 @@ KMFRuleOptionEditProtocol::KMFRuleOptionEditProtocol(TQObject *parent, const cha
m_edit = new KMFRuleEditorProtocol( 0 , "Edit", 0 ); m_edit = new KMFRuleEditorProtocol( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditProtocol::~KMFRuleOptionEditProtocol() {} KMFRuleOptionEditProtocol::~KMFRuleOptionEditProtocol() {}

@ -45,8 +45,8 @@ KMFRuleOptionEditState::KMFRuleOptionEditState(TQObject *parent, const char *nam
m_edit = new KMFRuleEditorState( 0 , "Edit", 0 ); m_edit = new KMFRuleEditorState( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditState::~KMFRuleOptionEditState() {} KMFRuleOptionEditState::~KMFRuleOptionEditState() {}

@ -45,8 +45,8 @@ KMFRuleOptionEditTos::KMFRuleOptionEditTos(TQObject *parent, const char *name)
m_edit = new KMFRuleEditorTos( 0 , "Edit", 0 ); m_edit = new KMFRuleEditorTos( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleOptionEditTos::~KMFRuleOptionEditTos() {} KMFRuleOptionEditTos::~KMFRuleOptionEditTos() {}

@ -37,8 +37,8 @@ KMFRuleTargetOptionEditTos::KMFRuleTargetOptionEditTos(TQObject *parent, const c
m_edit = new KMFRuleEditorTos( 0 , "Edit", 0 ); m_edit = new KMFRuleEditorTos( 0 , "Edit", 0 );
m_edit->hide(); m_edit->hide();
connect( m_edit,TQT_SIGNAL(sigHideMe() ), connect( m_edit,TQ_SIGNAL(sigHideMe() ),
this,TQT_SLOT( slotShowOverview() ) ); this,TQ_SLOT( slotShowOverview() ) );
} }
KMFRuleTargetOptionEditTos::~KMFRuleTargetOptionEditTos() {} KMFRuleTargetOptionEditTos::~KMFRuleTargetOptionEditTos() {}

Loading…
Cancel
Save