diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 11:31:17 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 11:31:17 -0500 |
commit | d598a49a3e1cadea0d72be28d147d219686413e7 (patch) | |
tree | 3111c0383d0b514f59aaeef0a2f656acc595fd8a /src/pandsoptions.cpp | |
parent | 56ffa61b35fc088a0e7e2aa885b9ffed82c8d8be (diff) | |
download | knmap-d598a49a3e1cadea0d72be28d147d219686413e7.tar.gz knmap-d598a49a3e1cadea0d72be28d147d219686413e7.zip |
Convert to TDE R14 API
Diffstat (limited to 'src/pandsoptions.cpp')
-rw-r--r-- | src/pandsoptions.cpp | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/src/pandsoptions.cpp b/src/pandsoptions.cpp index f007be0..9d0e66c 100644 --- a/src/pandsoptions.cpp +++ b/src/pandsoptions.cpp @@ -20,15 +20,15 @@ * * ***************************************************************************/ -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlineedit.h> +#include <ntqcheckbox.h> +#include <ntqlabel.h> +#include <ntqlayout.h> +#include <ntqlineedit.h> -#include <kconfig.h> +#include <tdeconfig.h> #include <kdebug.h> -#include <kglobal.h> -#include <klocale.h> +#include <tdeglobal.h> +#include <tdelocale.h> #include <kmessagebox.h> #include "pandsoptions.h" @@ -37,8 +37,8 @@ // constructor // =========== -PAndSOptions::PAndSOptions( QWidget* parent, const char* name ) -: QWidget( parent, name ) +PAndSOptions::PAndSOptions( TQWidget* parent, const char* name ) +: TQWidget( parent, name ) { createLayout( ); } @@ -46,100 +46,100 @@ PAndSOptions::PAndSOptions( QWidget* parent, const char* name ) // ============ void PAndSOptions::createLayout( ) -{ QGridLayout* gridLayout = new QGridLayout( this ); - - m_ackCheckBox = new QCheckBox( i18n( "TCP ACK (-PA)" ), this, "ack check" ); - m_ackLineEdit = new QLineEdit( this, "ack edit" ); - m_arpCheckBox = new QCheckBox( i18n( "ARP (-PR)" ), this, "arp check" ); - m_dontPingCheckBox = new QCheckBox( i18n( "Don't ping (-P0)" ), this, "dont ping check" ); - m_echoCheckBox = new QCheckBox( i18n( "ICMP echo (-PE)" ), this, "icmp echo check" ); - m_netmaskCheckBox = new QCheckBox( i18n( "ICMP netmask (-PM)" ), this, "icmp netmask check" ); - m_synCheckBox = new QCheckBox( i18n( "TCP SYN (-PS)" ), this, "syn check" ); - m_synLineEdit = new QLineEdit( this, "syn edit" ); - m_timestampCheckBox = new QCheckBox( i18n( "ICMP timestamp (-PP)" ), this, "icmp timestamp check" ); +{ TQGridLayout* gridLayout = new TQGridLayout( this ); + + m_ackCheckBox = new TQCheckBox( i18n( "TCP ACK (-PA)" ), this, "ack check" ); + m_ackLineEdit = new TQLineEdit( this, "ack edit" ); + m_arpCheckBox = new TQCheckBox( i18n( "ARP (-PR)" ), this, "arp check" ); + m_dontPingCheckBox = new TQCheckBox( i18n( "Don't ping (-P0)" ), this, "dont ping check" ); + m_echoCheckBox = new TQCheckBox( i18n( "ICMP echo (-PE)" ), this, "icmp echo check" ); + m_netmaskCheckBox = new TQCheckBox( i18n( "ICMP netmask (-PM)" ), this, "icmp netmask check" ); + m_synCheckBox = new TQCheckBox( i18n( "TCP SYN (-PS)" ), this, "syn check" ); + m_synLineEdit = new TQLineEdit( this, "syn edit" ); + m_timestampCheckBox = new TQCheckBox( i18n( "ICMP timestamp (-PP)" ), this, "icmp timestamp check" ); byte row = 1; - gridLayout->addWidget( new QLabel( " ", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 1 ); gridLayout->addWidget( m_ackCheckBox, row++, 3 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 1 ); gridLayout->addWidget( m_ackLineEdit, row++, 3 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 1 ); gridLayout->addWidget( m_arpCheckBox, row++, 3 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 1 ); gridLayout->addWidget( m_dontPingCheckBox, row++, 3 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 1 ); gridLayout->addWidget( m_echoCheckBox, row++, 3 ); byte rowBlock1 = row; row = 1; - gridLayout->addWidget( new QLabel( " ", this ), row, 5 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 5 ); gridLayout->addWidget( m_netmaskCheckBox, row++, 7 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 5 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 5 ); gridLayout->addWidget( m_synCheckBox, row++, 7 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 5 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 5 ); gridLayout->addWidget( m_synLineEdit, row++, 7 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 5 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 5 ); gridLayout->addWidget( m_timestampCheckBox, row++, 7 ); byte rowBlock2 = row; - m_scanFTPBounceCheckBox = new QCheckBox( i18n( "FTP Bounce (-b)" ), this, "ftp bounce scan check" ); - m_scanFTPRelayLineEdit = new QLineEdit( this, "ftp relay edit" ); - m_scanIdleCheckBox = new QCheckBox( i18n( "Idle (-sI)" ), this, "idle scan check" ); - m_scanListCheckBox = new QCheckBox( i18n( "List Scan (-sL)" ), this, "list scan check" ); - m_scanNullCheckBox = new QCheckBox( i18n( "Null Scan (-sN)" ), this, "null scan check" ); - m_scanPingCheckBox = new QCheckBox( i18n( "Ping Scan (-sP)" ), this, "ping scan check" ); - m_scanProtocolCheckBox = new QCheckBox( i18n( "Protocol Scan (-sO)" ), this, "protocol scan check" ); - m_scanRPCCheckBox = new QCheckBox( i18n( "RPC (-sR)" ), this, "rpc scan check" ); - m_scanFINCheckBox = new QCheckBox( i18n( "Stealth FIN (-sF)" ), this, "fin scan check" ); - m_scanAckCheckBox = new QCheckBox( i18n( "TCP Ack Scan (-sA)" ), this, "ack scan check" ); - m_scanSYNCheckBox = new QCheckBox( i18n( "TCP SYN (-sS)" ), this, "syn scan check" ); - m_scanTCPConnectCheckBox = new QCheckBox( i18n( "TCP Connect (-sT)" ), this, "connect scan check" ); - m_scanUDPCheckBox = new QCheckBox( i18n( "UDP Scan (-sU)" ), this, "udp scan check" ); - m_scanVersionCheckBox = new QCheckBox( i18n( "Version Detection (-sV)" ), this, "version scan check" ); - m_scanWindowCheckBox = new QCheckBox( i18n( "Window Scan (-sW)" ), this, "window scan check" ); - m_scanXmasCheckBox = new QCheckBox( i18n( "Xmas Tree (-sX)" ), this, "xmas scan check" ); - m_zombieLineEdit = new QLineEdit( this, "zombie edit" ); + m_scanFTPBounceCheckBox = new TQCheckBox( i18n( "FTP Bounce (-b)" ), this, "ftp bounce scan check" ); + m_scanFTPRelayLineEdit = new TQLineEdit( this, "ftp relay edit" ); + m_scanIdleCheckBox = new TQCheckBox( i18n( "Idle (-sI)" ), this, "idle scan check" ); + m_scanListCheckBox = new TQCheckBox( i18n( "List Scan (-sL)" ), this, "list scan check" ); + m_scanNullCheckBox = new TQCheckBox( i18n( "Null Scan (-sN)" ), this, "null scan check" ); + m_scanPingCheckBox = new TQCheckBox( i18n( "Ping Scan (-sP)" ), this, "ping scan check" ); + m_scanProtocolCheckBox = new TQCheckBox( i18n( "Protocol Scan (-sO)" ), this, "protocol scan check" ); + m_scanRPCCheckBox = new TQCheckBox( i18n( "RPC (-sR)" ), this, "rpc scan check" ); + m_scanFINCheckBox = new TQCheckBox( i18n( "Stealth FIN (-sF)" ), this, "fin scan check" ); + m_scanAckCheckBox = new TQCheckBox( i18n( "TCP Ack Scan (-sA)" ), this, "ack scan check" ); + m_scanSYNCheckBox = new TQCheckBox( i18n( "TCP SYN (-sS)" ), this, "syn scan check" ); + m_scanTCPConnectCheckBox = new TQCheckBox( i18n( "TCP Connect (-sT)" ), this, "connect scan check" ); + m_scanUDPCheckBox = new TQCheckBox( i18n( "UDP Scan (-sU)" ), this, "udp scan check" ); + m_scanVersionCheckBox = new TQCheckBox( i18n( "Version Detection (-sV)" ), this, "version scan check" ); + m_scanWindowCheckBox = new TQCheckBox( i18n( "Window Scan (-sW)" ), this, "window scan check" ); + m_scanXmasCheckBox = new TQCheckBox( i18n( "Xmas Tree (-sX)" ), this, "xmas scan check" ); + m_zombieLineEdit = new TQLineEdit( this, "zombie edit" ); row = 1; - gridLayout->addWidget( new QLabel( " ", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 9 ); gridLayout->addWidget( m_scanFTPBounceCheckBox, row++, 11 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 9 ); gridLayout->addWidget( m_scanFTPRelayLineEdit, row++, 11 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 9 ); gridLayout->addWidget( m_scanIdleCheckBox, row++, 11 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 9 ); gridLayout->addWidget( m_zombieLineEdit, row++, 11 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 9 ); gridLayout->addWidget( m_scanListCheckBox, row++, 11 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 9 ); gridLayout->addWidget( m_scanNullCheckBox, row++, 11 ); byte rowBlock3 = row; row = 1; - gridLayout->addWidget( new QLabel( " ", this ), row, 13 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 13 ); gridLayout->addWidget( m_scanPingCheckBox, row++, 15 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 13 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 13 ); gridLayout->addWidget( m_scanProtocolCheckBox, row++, 15 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 13 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 13 ); gridLayout->addWidget( m_scanRPCCheckBox, row++, 15 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 13 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 13 ); gridLayout->addWidget( m_scanFINCheckBox, row++, 15 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 13 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 13 ); gridLayout->addWidget( m_scanAckCheckBox, row++, 15 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 13 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 13 ); gridLayout->addWidget( m_scanSYNCheckBox, row++, 15 ); byte rowBlock4 = row; row = 1; - gridLayout->addWidget( new QLabel( " ", this ), row, 17 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 17 ); gridLayout->addWidget( m_scanTCPConnectCheckBox, row++, 19 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 17 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 17 ); gridLayout->addWidget( m_scanUDPCheckBox, row++, 19 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 17 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 17 ); gridLayout->addWidget( m_scanVersionCheckBox, row++, 19 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 17 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 17 ); gridLayout->addWidget( m_scanWindowCheckBox, row++, 19 ); - gridLayout->addWidget( new QLabel( "#", this ), row, 17 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 17 ); gridLayout->addWidget( m_scanXmasCheckBox, row++, 19 ); byte rowBlock5 = row; @@ -177,7 +177,7 @@ void PAndSOptions::finaliseInitialisation( ) connect( whatsThis, SIGNAL( clicked( )), SLOT( slotWhatsThisClicked( ))); connect( m_ackCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_ackLineEdit, SIGNAL( textChanged ( const QString& )), SIGNAL( optionsDirty( ))); + connect( m_ackLineEdit, SIGNAL( textChanged ( const TQString& )), SIGNAL( optionsDirty( ))); connect( m_arpCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); connect( m_dontPingCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); connect( m_echoCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); @@ -185,7 +185,7 @@ void PAndSOptions::finaliseInitialisation( ) connect( m_scanAckCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); connect( m_scanFINCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); connect( m_scanFTPBounceCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_scanFTPRelayLineEdit, SIGNAL( textChanged ( const QString& )), SIGNAL( optionsDirty( ))); + connect( m_scanFTPRelayLineEdit, SIGNAL( textChanged ( const TQString& )), SIGNAL( optionsDirty( ))); connect( m_scanIdleCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); connect( m_scanListCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); connect( m_scanNullCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); @@ -199,9 +199,9 @@ void PAndSOptions::finaliseInitialisation( ) connect( m_scanWindowCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); connect( m_scanXmasCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); connect( m_synCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_synLineEdit, SIGNAL( textChanged ( const QString& )), SIGNAL( optionsDirty( ))); + connect( m_synLineEdit, SIGNAL( textChanged ( const TQString& )), SIGNAL( optionsDirty( ))); connect( m_timestampCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_zombieLineEdit, SIGNAL( textChanged ( const QString& )), SIGNAL( optionsDirty( ))); + connect( m_zombieLineEdit, SIGNAL( textChanged ( const TQString& )), SIGNAL( optionsDirty( ))); } // getOptions @@ -255,7 +255,7 @@ bool PAndSOptions::getOptions( bool& needRoot ) // readProfile // =========== -void PAndSOptions::readProfile( KConfig* config ) +void PAndSOptions::readProfile( TDEConfig* config ) { m_ackState = config->readBoolEntry( "ackState" ); m_ackValue = config->readEntry( "ackValue" ); m_arpState = config->readBoolEntry( "arpState" ); @@ -287,7 +287,7 @@ void PAndSOptions::readProfile( KConfig* config ) // saveProfile // =========== -void PAndSOptions::saveProfile( KConfig* config ) +void PAndSOptions::saveProfile( TDEConfig* config ) { config->writeEntry( "ackState", m_ackState ); config->writeEntry( "ackValue", m_ackValue ); config->writeEntry( "arpState", m_arpState ); |