From d598a49a3e1cadea0d72be28d147d219686413e7 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 11:31:17 -0500 Subject: Convert to TDE R14 API --- src/simpleoptions.cpp | 74 +++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'src/simpleoptions.cpp') diff --git a/src/simpleoptions.cpp b/src/simpleoptions.cpp index 56df1a2..547ce1f 100644 --- a/src/simpleoptions.cpp +++ b/src/simpleoptions.cpp @@ -20,14 +20,14 @@ * * ***************************************************************************/ -#include -#include -#include +#include +#include +#include -#include +#include #include -#include -#include +#include +#include #include "simpleoptions.h" #include "whatsthis.h" @@ -35,8 +35,8 @@ // constructor // =========== -SimpleOptions::SimpleOptions( QWidget* parent, const char* name ) -: QWidget( parent, name ) +SimpleOptions::SimpleOptions( TQWidget* parent, const char* name ) +: TQWidget( parent, name ) { createLayout( ); } @@ -44,55 +44,55 @@ SimpleOptions::SimpleOptions( QWidget* parent, const char* name ) // ============ void SimpleOptions::createLayout( ) -{ QGridLayout* gridLayout = new QGridLayout( this ); +{ TQGridLayout* gridLayout = new TQGridLayout( this ); byte row = 1; - m_allPortsCheckBox = new QCheckBox( i18n( "All ports (--allports)" ), this, "all ports check" ); - m_fastScanCheckBox = new QCheckBox( i18n( "Fast Scan (-F)" ), this, "fast scan check" ); - m_ipV6CheckBox = new QCheckBox( i18n( "IPV6 support (-6)" ), this, "ipv6 check" ); - m_privilegedCheckBox = new QCheckBox( i18n( "Assume privileged (--privileged)" ), this, "privileged check" ); - m_noRandomPortsCheckBox = new QCheckBox( i18n( "No Random Ports (-r)" ), this, "no random ports check" ); - m_osDetectionCheckBox = new QCheckBox( i18n( "OS Detection (-O)" ), this, "os detection check" ); - m_osScanLimitCheckBox = new QCheckBox( i18n( "OS scan limit (--osscan_limit)" ), this, "os scan limit check" ); - m_packetTraceCheckBox = new QCheckBox( i18n( "Packet trace (--packet_trace)" ), this, "packet trace check" ); - m_prepackagedCheckBox = new QCheckBox( i18n( "Prepackaged options (-A)" ), this, "prepackaged check" ); - m_randomizeHostsCheckBox = new QCheckBox( i18n( "Randomize hosts (--randomize_hosts)" ), this, "randomize check" ); - m_sendEthCheckBox = new QCheckBox( i18n( "Send raw eth. packets (--send_eth)" ), this, "send eth check" ); - m_sendIPCheckBox = new QCheckBox( i18n( "Send raw IP packets (--send_ip)" ), this, "send ip check" ); - m_verboseCheckBox = new QCheckBox( i18n( "Verbose (-v)" ), this, "verbose check" ); + m_allPortsCheckBox = new TQCheckBox( i18n( "All ports (--allports)" ), this, "all ports check" ); + m_fastScanCheckBox = new TQCheckBox( i18n( "Fast Scan (-F)" ), this, "fast scan check" ); + m_ipV6CheckBox = new TQCheckBox( i18n( "IPV6 support (-6)" ), this, "ipv6 check" ); + m_privilegedCheckBox = new TQCheckBox( i18n( "Assume privileged (--privileged)" ), this, "privileged check" ); + m_noRandomPortsCheckBox = new TQCheckBox( i18n( "No Random Ports (-r)" ), this, "no random ports check" ); + m_osDetectionCheckBox = new TQCheckBox( i18n( "OS Detection (-O)" ), this, "os detection check" ); + m_osScanLimitCheckBox = new TQCheckBox( i18n( "OS scan limit (--osscan_limit)" ), this, "os scan limit check" ); + m_packetTraceCheckBox = new TQCheckBox( i18n( "Packet trace (--packet_trace)" ), this, "packet trace check" ); + m_prepackagedCheckBox = new TQCheckBox( i18n( "Prepackaged options (-A)" ), this, "prepackaged check" ); + m_randomizeHostsCheckBox = new TQCheckBox( i18n( "Randomize hosts (--randomize_hosts)" ), this, "randomize check" ); + m_sendEthCheckBox = new TQCheckBox( i18n( "Send raw eth. packets (--send_eth)" ), this, "send eth check" ); + m_sendIPCheckBox = new TQCheckBox( i18n( "Send raw IP packets (--send_ip)" ), this, "send ip check" ); + m_verboseCheckBox = new TQCheckBox( i18n( "Verbose (-v)" ), this, "verbose check" ); row = 1; - gridLayout->addWidget( new QLabel( " ", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 1 ); gridLayout->addWidget( m_allPortsCheckBox, row++, 3 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 1 ); gridLayout->addWidget( m_privilegedCheckBox, row++, 3 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 1 ); gridLayout->addWidget( m_fastScanCheckBox, row++, 3 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 1 ); gridLayout->addWidget( m_ipV6CheckBox, row++, 3 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 1 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 1 ); gridLayout->addWidget( m_noRandomPortsCheckBox, row++, 3 ); byte rowBlock1 = row; row = 1; - gridLayout->addWidget( new QLabel( "#", this ), row, 5 ); + gridLayout->addWidget( new TQLabel( "#", this ), row, 5 ); gridLayout->addWidget( m_osDetectionCheckBox, row++, 7 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 5 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 5 ); gridLayout->addWidget( m_osScanLimitCheckBox, row++, 7 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 5 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 5 ); gridLayout->addWidget( m_packetTraceCheckBox, row++, 7 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 5 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 5 ); gridLayout->addWidget( m_prepackagedCheckBox, row++, 7 ); byte rowBlock2 = row; row = 1; - gridLayout->addWidget( new QLabel( " ", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 9 ); gridLayout->addWidget( m_randomizeHostsCheckBox, row++, 11 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 9 ); gridLayout->addWidget( m_sendEthCheckBox, row++, 11 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 9 ); gridLayout->addWidget( m_sendIPCheckBox, row++, 11 ); - gridLayout->addWidget( new QLabel( " ", this ), row, 9 ); + gridLayout->addWidget( new TQLabel( " ", this ), row, 9 ); gridLayout->addWidget( m_verboseCheckBox, row++, 11 ); byte rowBlock3 = row; @@ -157,7 +157,7 @@ bool SimpleOptions::getOptions( bool& needRoot ) // readProfile // =========== -void SimpleOptions::readProfile( KConfig* config ) +void SimpleOptions::readProfile( TDEConfig* config ) { m_allPortsState = config->readBoolEntry( "allPortsState" ); m_fastScanState = config->readBoolEntry( "fastScanState" ); m_ipV6State = config->readBoolEntry( "ipV6State" ); @@ -176,7 +176,7 @@ void SimpleOptions::readProfile( KConfig* config ) // saveProfile // =========== -void SimpleOptions::saveProfile( KConfig* config ) +void SimpleOptions::saveProfile( TDEConfig* config ) { config->writeEntry( "allPortsState", m_allPortsState ); config->writeEntry( "fastScanState", m_fastScanState ); config->writeEntry( "ipV6State", m_ipV6State ); -- cgit v1.2.1