summaryrefslogtreecommitdiffstats
path: root/src/loggingoptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/loggingoptions.cpp')
-rw-r--r--src/loggingoptions.cpp124
1 files changed, 62 insertions, 62 deletions
diff --git a/src/loggingoptions.cpp b/src/loggingoptions.cpp
index 7a8d410..e525a19 100644
--- a/src/loggingoptions.cpp
+++ b/src/loggingoptions.cpp
@@ -20,18 +20,18 @@
* *
***************************************************************************/
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
+#include <ntqbuttongroup.h>
+#include <ntqcheckbox.h>
+#include <ntqlayout.h>
+#include <ntqlineedit.h>
+#include <ntqpushbutton.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
#include <kdebug.h>
-#include <kglobal.h>
+#include <tdeglobal.h>
#include <kiconloader.h>
#include <kinputdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kmessagebox.h>
#include "knmap.h"
@@ -41,8 +41,8 @@
// constructor
// ===========
-LoggingOptions::LoggingOptions( QWidget* parent, const char* name )
-: QWidget( parent, name )
+LoggingOptions::LoggingOptions( TQWidget* parent, const char* name )
+: TQWidget( parent, name )
{ createLayout( );
}
@@ -50,35 +50,35 @@ LoggingOptions::LoggingOptions( QWidget* parent, const char* name )
// ============
void LoggingOptions::createLayout( )
-{ QGridLayout* gridLayout = new QGridLayout( this );
- KIconLoader* iconLoader = KGlobal::iconLoader( );
- QIconSet fileOpenIconSet = iconLoader->loadIconSet( "fileopen", KIcon::Small );
-
- m_baseFileNameButton = new QPushButton( fileOpenIconSet, NULL, this, "base file name button" );
- m_grepableLogButton = new QPushButton( fileOpenIconSet, NULL, this, "grepable log button" );
- m_normalLogButton = new QPushButton( fileOpenIconSet, NULL, this, "normal log button" );
- m_resumeButton = new QPushButton( fileOpenIconSet, NULL, this, "resume button" );
- m_scriptKiddieButton = new QPushButton( fileOpenIconSet, NULL, this, "script kiddie button" );
- m_stylesheetButton = new QPushButton( fileOpenIconSet, NULL, this, "stylesheet button" );
- m_xmlLogButton = new QPushButton( fileOpenIconSet, NULL, this, "xml log button" );
-
- m_appendOutputCheckBox = new QCheckBox( i18n( "Append output (--append_output)" ), this, "append output checkbox" );
- m_baseFileNameCheckBox = new QCheckBox( i18n( "Base file name (-oA <name>) " ), this, "base name checkbox" );
- m_grepableLogCheckBox = new QCheckBox( i18n( "grep'able log file (-oG <file>) " ), this, "grepable log checkbox" );
- m_normalLogCheckBox = new QCheckBox( i18n( "Normal log file (-oN <file>) " ), this, "normal log checkbox" );
- m_noStylesheetCheckBox = new QCheckBox( i18n( "No XSL stylesheet (--no_stylesheet)" ), this, "no stylesheet checkbox" );
- m_resumeCheckBox = new QCheckBox( i18n( "Resume file (--resume <file>) " ), this, "resume checkbox" );
- m_scriptKiddieCheckBox = new QCheckBox( i18n( "Script kiddie log file (-oS <file>) " ), this, "script kiddie checkbox" );
- m_stylesheetCheckBox = new QCheckBox( i18n( "XSL stylesheet (--stylesheet <file>) " ), this, "stylesheet checkbox" );
- m_xmlLogCheckBox = new QCheckBox( i18n( "XML log file (-oX <file>) " ), this, "xml log checkbox" );
-
- m_baseFileNameLineEdit = new QLineEdit( this, "base file name line edit" );
- m_grepableLogLineEdit = new QLineEdit( this, "grepable log line edit" );
- m_normalLogLineEdit = new QLineEdit( this, "normal log line edit" );
- m_resumeLineEdit = new QLineEdit( this, "resume line edit" );
- m_scriptKiddieLineEdit = new QLineEdit( this, "script kiddie line edit" );
- m_stylesheetLineEdit = new QLineEdit( this, "stylesheet line edit" );
- m_xmlLogLineEdit = new QLineEdit( this, "xml log line edit" );
+{ TQGridLayout* gridLayout = new TQGridLayout( this );
+ TDEIconLoader* iconLoader = TDEGlobal::iconLoader( );
+ TQIconSet fileOpenIconSet = iconLoader->loadIconSet( "fileopen", TDEIcon::Small );
+
+ m_baseFileNameButton = new TQPushButton( fileOpenIconSet, NULL, this, "base file name button" );
+ m_grepableLogButton = new TQPushButton( fileOpenIconSet, NULL, this, "grepable log button" );
+ m_normalLogButton = new TQPushButton( fileOpenIconSet, NULL, this, "normal log button" );
+ m_resumeButton = new TQPushButton( fileOpenIconSet, NULL, this, "resume button" );
+ m_scriptKiddieButton = new TQPushButton( fileOpenIconSet, NULL, this, "script kiddie button" );
+ m_stylesheetButton = new TQPushButton( fileOpenIconSet, NULL, this, "stylesheet button" );
+ m_xmlLogButton = new TQPushButton( fileOpenIconSet, NULL, this, "xml log button" );
+
+ m_appendOutputCheckBox = new TQCheckBox( i18n( "Append output (--append_output)" ), this, "append output checkbox" );
+ m_baseFileNameCheckBox = new TQCheckBox( i18n( "Base file name (-oA <name>) " ), this, "base name checkbox" );
+ m_grepableLogCheckBox = new TQCheckBox( i18n( "grep'able log file (-oG <file>) " ), this, "grepable log checkbox" );
+ m_normalLogCheckBox = new TQCheckBox( i18n( "Normal log file (-oN <file>) " ), this, "normal log checkbox" );
+ m_noStylesheetCheckBox = new TQCheckBox( i18n( "No XSL stylesheet (--no_stylesheet)" ), this, "no stylesheet checkbox" );
+ m_resumeCheckBox = new TQCheckBox( i18n( "Resume file (--resume <file>) " ), this, "resume checkbox" );
+ m_scriptKiddieCheckBox = new TQCheckBox( i18n( "Script kiddie log file (-oS <file>) " ), this, "script kiddie checkbox" );
+ m_stylesheetCheckBox = new TQCheckBox( i18n( "XSL stylesheet (--stylesheet <file>) " ), this, "stylesheet checkbox" );
+ m_xmlLogCheckBox = new TQCheckBox( i18n( "XML log file (-oX <file>) " ), this, "xml log checkbox" );
+
+ m_baseFileNameLineEdit = new TQLineEdit( this, "base file name line edit" );
+ m_grepableLogLineEdit = new TQLineEdit( this, "grepable log line edit" );
+ m_normalLogLineEdit = new TQLineEdit( this, "normal log line edit" );
+ m_resumeLineEdit = new TQLineEdit( this, "resume line edit" );
+ m_scriptKiddieLineEdit = new TQLineEdit( this, "script kiddie line edit" );
+ m_stylesheetLineEdit = new TQLineEdit( this, "stylesheet line edit" );
+ m_xmlLogLineEdit = new TQLineEdit( this, "xml log line edit" );
byte row = 1;
gridLayout->addWidget( m_appendOutputCheckBox, row++, 1 );
@@ -149,19 +149,19 @@ void LoggingOptions::finaliseInitialisation( )
connect( m_appendOutputCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( )));
connect( m_baseFileNameCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( )));
- connect( m_baseFileNameLineEdit, SIGNAL( textChanged( const QString& )), SIGNAL( optionsDirty( )));
+ connect( m_baseFileNameLineEdit, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( )));
connect( m_grepableLogCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( )));
- connect( m_grepableLogLineEdit, SIGNAL( textChanged( const QString& )), SIGNAL( optionsDirty( )));
+ connect( m_grepableLogLineEdit, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( )));
connect( m_normalLogCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( )));
- connect( m_normalLogLineEdit, SIGNAL( textChanged( const QString& )), SIGNAL( optionsDirty( )));
+ connect( m_normalLogLineEdit, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( )));
connect( m_resumeCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( )));
- connect( m_resumeLineEdit, SIGNAL( textChanged( const QString& )), SIGNAL( optionsDirty( )));
+ connect( m_resumeLineEdit, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( )));
connect( m_scriptKiddieCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( )));
- connect( m_scriptKiddieLineEdit, SIGNAL( textChanged( const QString& )), SIGNAL( optionsDirty( )));
+ connect( m_scriptKiddieLineEdit, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( )));
connect( m_stylesheetCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( )));
- connect( m_stylesheetLineEdit, SIGNAL( textChanged( const QString& )), SIGNAL( optionsDirty( )));
+ connect( m_stylesheetLineEdit, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( )));
connect( m_xmlLogCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( )));
- connect( m_xmlLogLineEdit, SIGNAL( textChanged( const QString& )), SIGNAL( optionsDirty( )));
+ connect( m_xmlLogLineEdit, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( )));
}
// getOptions
@@ -169,52 +169,52 @@ void LoggingOptions::finaliseInitialisation( )
bool LoggingOptions::getOptions( )
{ bool baseFileNameState = m_baseFileNameCheckBox->isChecked( );
- QString baseFileNameValue = m_baseFileNameLineEdit->text( );
+ TQString baseFileNameValue = m_baseFileNameLineEdit->text( );
bool grepableLogState = m_grepableLogCheckBox->isChecked( );
- QString grepableLogValue = m_grepableLogLineEdit->text( );
+ TQString grepableLogValue = m_grepableLogLineEdit->text( );
bool normalLogState = m_normalLogCheckBox->isChecked( );
- QString normalLogValue = m_normalLogLineEdit->text( );
+ TQString normalLogValue = m_normalLogLineEdit->text( );
bool resumeState = m_resumeCheckBox->isChecked( );
- QString resumeValue = m_resumeLineEdit->text( );
+ TQString resumeValue = m_resumeLineEdit->text( );
bool scriptKiddieState = m_scriptKiddieCheckBox->isChecked( );
- QString scriptKiddieValue = m_scriptKiddieLineEdit->text( );
+ TQString scriptKiddieValue = m_scriptKiddieLineEdit->text( );
bool stylesheetState = m_stylesheetCheckBox->isChecked( );
- QString stylesheetValue = m_stylesheetLineEdit->text( );
+ TQString stylesheetValue = m_stylesheetLineEdit->text( );
bool xmlLogState = m_xmlLogCheckBox->isChecked( );
- QString xmlLogValue = m_xmlLogLineEdit->text( );
+ TQString xmlLogValue = m_xmlLogLineEdit->text( );
if( baseFileNameState && baseFileNameValue.isEmpty( ))
- { KMessageBox::error( this, i18n( QString( "Base file name not specified" )), i18n( "Base file name error" ));
+ { KMessageBox::error( this, i18n( TQString( "Base file name not specified" )), i18n( "Base file name error" ));
return false;
}
if( grepableLogState && grepableLogValue.isEmpty( ))
- { KMessageBox::error( this, i18n( QString( "grep'able log file name not specified" )), i18n( "grep'able log file name error" ));
+ { KMessageBox::error( this, i18n( TQString( "grep'able log file name not specified" )), i18n( "grep'able log file name error" ));
return false;
}
if( normalLogState && normalLogValue.isEmpty( ))
- { KMessageBox::error( this, i18n( QString( "Normal log file name not specified" )), i18n( "Normal log file name error" ));
+ { KMessageBox::error( this, i18n( TQString( "Normal log file name not specified" )), i18n( "Normal log file name error" ));
return false;
}
if( resumeState && scriptKiddieValue.isEmpty( ))
- { KMessageBox::error( this, i18n( QString( "Resume file name not specified" )), i18n( "Resume file name error" ));
+ { KMessageBox::error( this, i18n( TQString( "Resume file name not specified" )), i18n( "Resume file name error" ));
return false;
}
if( scriptKiddieState && scriptKiddieValue.isEmpty( ))
- { KMessageBox::error( this, i18n( QString( "Script kiddie log file name not specified" )), i18n( "Script kiddie log file name error" ));
+ { KMessageBox::error( this, i18n( TQString( "Script kiddie log file name not specified" )), i18n( "Script kiddie log file name error" ));
return false;
}
if( stylesheetState && stylesheetValue.isEmpty( ))
- { KMessageBox::error( this, i18n( QString( "XSL stylesheet file name not specified" )), i18n( "XSL stylesheet file name error" ));
+ { KMessageBox::error( this, i18n( TQString( "XSL stylesheet file name not specified" )), i18n( "XSL stylesheet file name error" ));
return false;
}
if( xmlLogState && xmlLogValue.isEmpty( ))
- { KMessageBox::error( this, i18n( QString( "XML log file name not specified" )), i18n( "XML log file name error" ));
+ { KMessageBox::error( this, i18n( TQString( "XML log file name not specified" )), i18n( "XML log file name error" ));
return false;
}
@@ -240,7 +240,7 @@ bool LoggingOptions::getOptions( )
// readProfile
// ===========
-void LoggingOptions::readProfile( KConfig* config )
+void LoggingOptions::readProfile( TDEConfig* config )
{ m_appendOutputState = config->readBoolEntry( "appendOutputState" );
m_baseFileNameState = config->readBoolEntry( "baseFileNameState" );
m_baseFileNameValue = config->readEntry( "baseFileNameValue" );
@@ -262,7 +262,7 @@ void LoggingOptions::readProfile( KConfig* config )
// saveProfile
// ===========
-void LoggingOptions::saveProfile( KConfig* config )
+void LoggingOptions::saveProfile( TDEConfig* config )
{ config->writeEntry( "appendOutputState", m_appendOutputState );
config->writeEntry( "baseFileNameState", m_baseFileNameState );
config->writeEntry( "baseFileNameValue", m_baseFileNameValue );