diff options
Diffstat (limited to 'src/klamscanoptions.cpp')
-rw-r--r-- | src/klamscanoptions.cpp | 168 |
1 files changed, 84 insertions, 84 deletions
diff --git a/src/klamscanoptions.cpp b/src/klamscanoptions.cpp index 73e99ac..428cd5c 100644 --- a/src/klamscanoptions.cpp +++ b/src/klamscanoptions.cpp @@ -9,10 +9,10 @@ #include "klamscanoptions.h" -#include <qlabel.h> -#include <qspinbox.h> -#include <qcheckbox.h> -#include <qbuttongroup.h> +#include <tqlabel.h> +#include <tqspinbox.h> +#include <tqcheckbox.h> +#include <tqbuttongroup.h> #include <kurlrequester.h> #include <kconfig.h> #include <kcombobox.h> @@ -25,152 +25,152 @@ * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ -KlamscanOptions::KlamscanOptions( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, fl ) +KlamscanOptions::KlamscanOptions( TQWidget* parent, const char* name, bool modal, WFlags fl ) + : TQDialog( parent, name, modal, fl ) { if ( !name ) setName( "KlamscanOptions" ); - Archive_Support = new QGroupBox( this, "Archive_Support" ); - Archive_Support->setGeometry( QRect( 20, 10, 551, 130 ) ); + Archive_Support = new TQGroupBox( this, "Archive_Support" ); + Archive_Support->setGeometry( TQRect( 20, 10, 551, 130 ) ); - textLabel1_2_2 = new QLabel( Archive_Support, "textLabel1_2_2" ); - textLabel1_2_2->setGeometry( QRect( 13, 52, 222, 21 ) ); + textLabel1_2_2 = new TQLabel( Archive_Support, "textLabel1_2_2" ); + textLabel1_2_2->setGeometry( TQRect( 13, 52, 222, 21 ) ); - textLabel1_2 = new QLabel( Archive_Support, "textLabel1_2" ); - textLabel1_2->setGeometry( QRect( 314, 19, 222, 21 ) ); + textLabel1_2 = new TQLabel( Archive_Support, "textLabel1_2" ); + textLabel1_2->setGeometry( TQRect( 314, 19, 222, 21 ) ); - textLabel1_2_3 = new QLabel( Archive_Support, "textLabel1_2_3" ); - textLabel1_2_3->setGeometry( QRect( 314, 51, 222, 21 ) ); + textLabel1_2_3 = new TQLabel( Archive_Support, "textLabel1_2_3" ); + textLabel1_2_3->setGeometry( TQRect( 314, 51, 222, 21 ) ); - textLabel1 = new QLabel( Archive_Support, "textLabel1" ); - textLabel1->setGeometry( QRect( 13, 20, 222, 21 ) ); + textLabel1 = new TQLabel( Archive_Support, "textLabel1" ); + textLabel1->setGeometry( TQRect( 13, 20, 222, 21 ) ); - NoFilesToExtract = new QSpinBox(1,999,1, Archive_Support, "NoFilesToExtract" ); - NoFilesToExtract->setGeometry( QRect( 240, 20, 40, 21 ) ); + NoFilesToExtract = new TQSpinBox(1,999,1, Archive_Support, "NoFilesToExtract" ); + NoFilesToExtract->setGeometry( TQRect( 240, 20, 40, 21 ) ); - MBsToExtract = new QSpinBox(1,999,1, Archive_Support, "MBsToExtract" ); - MBsToExtract->setGeometry( QRect( 474, 19, 40, 21 ) ); + MBsToExtract = new TQSpinBox(1,999,1, Archive_Support, "MBsToExtract" ); + MBsToExtract->setGeometry( TQRect( 474, 19, 40, 21 ) ); - RecursionLevel = new QSpinBox(1,999,1, Archive_Support, "RecursionLevel" ); - RecursionLevel->setGeometry( QRect( 241, 51, 40, 21 ) ); + RecursionLevel = new TQSpinBox(1,999,1, Archive_Support, "RecursionLevel" ); + RecursionLevel->setGeometry( TQRect( 241, 51, 40, 21 ) ); - CompressionRatio = new QSpinBox(1,999,1, Archive_Support, "CompressionRatio" ); - CompressionRatio->setGeometry( QRect( 474, 51, 40, 21 ) ); + CompressionRatio = new TQSpinBox(1,999,1, Archive_Support, "CompressionRatio" ); + CompressionRatio->setGeometry( TQRect( 474, 51, 40, 21 ) ); - VirusLimitsExceeded = new QCheckBox( Archive_Support, "VirusLimitsExceeded" ); - VirusLimitsExceeded->setGeometry( QRect( 11, 81, 220, 20 ) ); - VirusLimitsExceeded->setPaletteForegroundColor( QColor( 255, 0, 0 ) ); + VirusLimitsExceeded = new TQCheckBox( Archive_Support, "VirusLimitsExceeded" ); + VirusLimitsExceeded->setGeometry( TQRect( 11, 81, 220, 20 ) ); + VirusLimitsExceeded->setPaletteForegroundColor( TQColor( 255, 0, 0 ) ); - VirusEncrypted = new QCheckBox( Archive_Support, "VirusEncrypted" ); - VirusEncrypted->setGeometry( QRect( 318, 82, 220, 20 ) ); - VirusEncrypted->setPaletteForegroundColor( QColor( 255, 0, 0 ) ); + VirusEncrypted = new TQCheckBox( Archive_Support, "VirusEncrypted" ); + VirusEncrypted->setGeometry( TQRect( 318, 82, 220, 20 ) ); + VirusEncrypted->setPaletteForegroundColor( TQColor( 255, 0, 0 ) ); - ArchiveTypes = new QButtonGroup( this, "ArchiveTypes" ); - ArchiveTypes->setGeometry( QRect( 20, 150, 551, 320 ) ); + ArchiveTypes = new TQButtonGroup( this, "ArchiveTypes" ); + ArchiveTypes->setGeometry( TQRect( 20, 150, 551, 320 ) ); - ScanZip = new QCheckBox( ArchiveTypes, "ScanZip" ); - ScanZip->setGeometry( QRect( 20, 30, 150, 21 ) ); + ScanZip = new TQCheckBox( ArchiveTypes, "ScanZip" ); + ScanZip->setGeometry( TQRect( 20, 30, 150, 21 ) ); KComboBox* zipUrl = new KComboBox(true, this); ZipUsing = new KURLRequester( zipUrl,ArchiveTypes, "ZipUsing" ); - ZipUsing->setGeometry( QRect( 178, 29, 340, 26 ) ); + ZipUsing->setGeometry( TQRect( 178, 29, 340, 26 ) ); - ScanRar = new QCheckBox( ArchiveTypes, "ScanRar" ); - ScanRar->setGeometry( QRect( 20, 60, 150, 21 ) ); + ScanRar = new TQCheckBox( ArchiveTypes, "ScanRar" ); + ScanRar->setGeometry( TQRect( 20, 60, 150, 21 ) ); KComboBox* rarUrl = new KComboBox(true, this); RarUsing = new KURLRequester( rarUrl, ArchiveTypes, "RarUsing" ); - RarUsing->setGeometry( QRect( 178, 59, 340, 26 ) ); + RarUsing->setGeometry( TQRect( 178, 59, 340, 26 ) ); - ScanArj = new QCheckBox( ArchiveTypes, "ScanArj" ); - ScanArj->setGeometry( QRect( 20, 90, 150, 21 ) ); + ScanArj = new TQCheckBox( ArchiveTypes, "ScanArj" ); + ScanArj->setGeometry( TQRect( 20, 90, 150, 21 ) ); KComboBox* arjUrl = new KComboBox(true, this); ArjUsing = new KURLRequester( arjUrl,ArchiveTypes, "ArjUsing" ); - ArjUsing->setGeometry( QRect( 178, 89, 340, 26 ) ); + ArjUsing->setGeometry( TQRect( 178, 89, 340, 26 ) ); - ScanZoo = new QCheckBox( ArchiveTypes, "ScanZoo" ); - ScanZoo->setGeometry( QRect( 20, 120, 150, 21 ) ); + ScanZoo = new TQCheckBox( ArchiveTypes, "ScanZoo" ); + ScanZoo->setGeometry( TQRect( 20, 120, 150, 21 ) ); KComboBox* zooUrl = new KComboBox(true, this); ZooUsing = new KURLRequester( zooUrl,ArchiveTypes, "ZooUsing" ); - ZooUsing->setGeometry( QRect( 178, 119, 340, 26 ) ); + ZooUsing->setGeometry( TQRect( 178, 119, 340, 26 ) ); - ScanLzh = new QCheckBox( ArchiveTypes, "ScanLzh" ); - ScanLzh->setGeometry( QRect( 20, 150, 150, 21 ) ); + ScanLzh = new TQCheckBox( ArchiveTypes, "ScanLzh" ); + ScanLzh->setGeometry( TQRect( 20, 150, 150, 21 ) ); KComboBox* lzhUrl = new KComboBox(true, this); LzhUsing = new KURLRequester( lzhUrl,ArchiveTypes, "LzhUsing" ); - LzhUsing->setGeometry( QRect( 178, 149, 340, 26 ) ); + LzhUsing->setGeometry( TQRect( 178, 149, 340, 26 ) ); - ScanJar = new QCheckBox( ArchiveTypes, "ScanJar" ); - ScanJar->setGeometry( QRect( 20, 180, 150, 21 ) ); + ScanJar = new TQCheckBox( ArchiveTypes, "ScanJar" ); + ScanJar->setGeometry( TQRect( 20, 180, 150, 21 ) ); KComboBox* jarUrl = new KComboBox(true, this); JarUsing = new KURLRequester( jarUrl,ArchiveTypes, "JarUsing" ); - JarUsing->setGeometry( QRect( 178, 179, 340, 26 ) ); + JarUsing->setGeometry( TQRect( 178, 179, 340, 26 ) ); - ScanDeb = new QCheckBox( ArchiveTypes, "ScanDeb" ); - ScanDeb->setGeometry( QRect( 20, 210, 150, 21 ) ); + ScanDeb = new TQCheckBox( ArchiveTypes, "ScanDeb" ); + ScanDeb->setGeometry( TQRect( 20, 210, 150, 21 ) ); KComboBox* debUrl = new KComboBox(true, this); DebUsing = new KURLRequester( debUrl,ArchiveTypes, "DebUsing" ); - DebUsing->setGeometry( QRect( 178, 209, 340, 26 ) ); + DebUsing->setGeometry( TQRect( 178, 209, 340, 26 ) ); - ScanTar = new QCheckBox( ArchiveTypes, "ScanTar" ); - ScanTar->setGeometry( QRect( 20, 240, 150, 21 ) ); + ScanTar = new TQCheckBox( ArchiveTypes, "ScanTar" ); + ScanTar->setGeometry( TQRect( 20, 240, 150, 21 ) ); KComboBox* tarUrl = new KComboBox(true, this); TarUsing = new KURLRequester( tarUrl,ArchiveTypes, "TarUsing" ); - TarUsing->setGeometry( QRect( 178, 239, 340, 26 ) ); + TarUsing->setGeometry( TQRect( 178, 239, 340, 26 ) ); - ScanTgz = new QCheckBox( ArchiveTypes, "ScanTgz" ); - ScanTgz->setGeometry( QRect( 20, 270, 150, 21 ) ); + ScanTgz = new TQCheckBox( ArchiveTypes, "ScanTgz" ); + ScanTgz->setGeometry( TQRect( 20, 270, 150, 21 ) ); KComboBox* tgzUrl = new KComboBox(true, this); TgzUsing = new KURLRequester( tgzUrl,ArchiveTypes, "TgzUsing" ); - TgzUsing->setGeometry( QRect( 178, 269, 340, 26 ) ); + TgzUsing->setGeometry( TQRect( 178, 269, 340, 26 ) ); - FileTypes = new QGroupBox( this, "FileTypes" ); - FileTypes->setGeometry( QRect( 20, 490, 551, 120 ) ); + FileTypes = new TQGroupBox( this, "FileTypes" ); + FileTypes->setGeometry( TQRect( 20, 490, 551, 120 ) ); - ScanMail = new QCheckBox( FileTypes, "ScanMail" ); - ScanMail->setGeometry( QRect( 20, 20, 200, 21 ) ); + ScanMail = new TQCheckBox( FileTypes, "ScanMail" ); + ScanMail->setGeometry( TQRect( 20, 20, 200, 21 ) ); - ScanHTML = new QCheckBox( FileTypes, "ScanHTML" ); - ScanHTML->setGeometry( QRect( 270, 20, 200, 21 ) ); + ScanHTML = new TQCheckBox( FileTypes, "ScanHTML" ); + ScanHTML->setGeometry( TQRect( 270, 20, 200, 21 ) ); - ScanPE = new QCheckBox( FileTypes, "ScanPE" ); - ScanPE->setGeometry( QRect( 20, 50, 220, 21 ) ); + ScanPE = new TQCheckBox( FileTypes, "ScanPE" ); + ScanPE->setGeometry( TQRect( 20, 50, 220, 21 ) ); - ScanOle = new QCheckBox( FileTypes, "ScanOle" ); - ScanOle->setGeometry( QRect( 270, 50, 270, 21 ) ); + ScanOle = new TQCheckBox( FileTypes, "ScanOle" ); + ScanOle->setGeometry( TQRect( 270, 50, 270, 21 ) ); ScanOle->setChecked( FALSE ); - VirusBroken = new QCheckBox( FileTypes, "VirusBroken" ); - VirusBroken->setGeometry( QRect( 20, 80, 240, 20 ) ); - VirusBroken->setPaletteForegroundColor( QColor( 255, 0, 0 ) ); + VirusBroken = new TQCheckBox( FileTypes, "VirusBroken" ); + VirusBroken->setGeometry( TQRect( 20, 80, 240, 20 ) ); + VirusBroken->setPaletteForegroundColor( TQColor( 255, 0, 0 ) ); - ExcludeQuarantine = new QCheckBox( FileTypes, "ExcludeQuarantine" ); - ExcludeQuarantine->setGeometry( QRect( 270, 80, 270, 21 ) ); + ExcludeQuarantine = new TQCheckBox( FileTypes, "ExcludeQuarantine" ); + ExcludeQuarantine->setGeometry( TQRect( 270, 80, 270, 21 ) ); ExcludeQuarantine->setChecked( FALSE ); - OK = new QPushButton( this, i18n( "OK" ) ); - OK->setGeometry( QRect( 190, 626, 91, 31 ) ); + OK = new TQPushButton( this, i18n( "OK" ) ); + OK->setGeometry( TQRect( 190, 626, 91, 31 ) ); OK->setDefault( TRUE ); connect( OK, SIGNAL(clicked()), SLOT(updateSettings()) ); - Cancel = new QPushButton( this, i18n( "Cancel" ) ); - Cancel->setGeometry( QRect( 300, 626, 91, 31 ) ); + Cancel = new TQPushButton( this, i18n( "Cancel" ) ); + Cancel->setGeometry( TQRect( 300, 626, 91, 31 ) ); connect( Cancel, SIGNAL(clicked()), SLOT(close()) ); languageChange(); - resize( QSize(589, 667).expandedTo(minimumSizeHint()) ); + resize( TQSize(589, 667).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); fetchSettings(); @@ -181,7 +181,7 @@ KlamscanOptions::KlamscanOptions( QWidget* parent, const char* name, bool modal, */ KlamscanOptions::~KlamscanOptions() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -336,10 +336,10 @@ void KlamscanOptions::fetchSettings() config->setGroup("Klamscan"); - NoFilesToExtract->setValue(QString(config->readEntry("NoFilesToExtract")).toInt()); - MBsToExtract->setValue(QString(config->readEntry("MBsToExtract")).replace("M","").toInt()); - CompressionRatio->setValue(QString(config->readEntry("CompressionRatio")).toInt()); - RecursionLevel->setValue(QString(config->readEntry("RecursionLevel")).toInt()); + NoFilesToExtract->setValue(TQString(config->readEntry("NoFilesToExtract")).toInt()); + MBsToExtract->setValue(TQString(config->readEntry("MBsToExtract")).replace("M","").toInt()); + CompressionRatio->setValue(TQString(config->readEntry("CompressionRatio")).toInt()); + RecursionLevel->setValue(TQString(config->readEntry("RecursionLevel")).toInt()); if (config->readEntry("VirusLimitsExceeded") == "Yes") VirusLimitsExceeded->setChecked(true); |