rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksystemlog@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 3021c04cf6
commit 2b7e8d86a6

@ -42,8 +42,8 @@
#include "acpidOptions.h" #include "acpidOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
AcpidOptions::AcpidOptions(TQWidget *tqparent) : AcpidOptions::AcpidOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *tqlayout = new TQHBoxLayout(this);

@ -41,7 +41,7 @@ class AcpidOptions : public TQWidget {
TQ_OBJECT TQ_OBJECT
public: public:
AcpidOptions(TQWidget *tqparent = 0); AcpidOptions(TQWidget *parent = 0);
~AcpidOptions(); ~AcpidOptions();
bool isValid(); bool isValid();

@ -25,8 +25,8 @@
#include "acpidReader.h" #include "acpidReader.h"
AcpidReader::AcpidReader(TQObject *tqparent, const char *name) : AcpidReader::AcpidReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name) DefaultReader(parent, name)
{ {
} }

@ -40,7 +40,7 @@ class AcpidReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
AcpidReader(TQObject *tqparent = 0, const char *name = 0); AcpidReader(TQObject *parent = 0, const char *name = 0);
virtual ~AcpidReader(); virtual ~AcpidReader();

@ -24,8 +24,8 @@
#include "parsingHelper.h" #include "parsingHelper.h"
#include "apacheAccessReader.h" #include "apacheAccessReader.h"
ApacheAccessReader::ApacheAccessReader(TQObject *tqparent, const char *name) : ApacheAccessReader::ApacheAccessReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name) DefaultReader(parent, name)
{ {
} }

@ -40,7 +40,7 @@ class ApacheAccessReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
ApacheAccessReader(TQObject *tqparent = 0, const char *name = 0); ApacheAccessReader(TQObject *parent = 0, const char *name = 0);
virtual ~ApacheAccessReader(); virtual ~ApacheAccessReader();

@ -42,8 +42,8 @@
#include "apacheOptions.h" #include "apacheOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
ApacheOptions::ApacheOptions(TQWidget *tqparent) : ApacheOptions::ApacheOptions(TQWidget *parent) :
TQWidget(tqparent), TQWidget(parent),
tabs(this, "tabs"), tabs(this, "tabs"),
apacheFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Apache log</b>. This list also determines the order in which the files are read.</p></qt>")), apacheFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Apache log</b>. This list also determines the order in which the files are read.</p></qt>")),
apacheAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Apache Access log</b>. This list also determines the order in which the files are read.</p></qt>")) apacheAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Apache Access log</b>. This list also determines the order in which the files are read.</p></qt>"))

@ -43,7 +43,7 @@ class ApacheOptions : public TQWidget {
TQ_OBJECT TQ_OBJECT
public: public:
ApacheOptions(TQWidget *tqparent = 0); ApacheOptions(TQWidget *parent = 0);
~ApacheOptions(); ~ApacheOptions();
bool isValid(); bool isValid();

@ -25,8 +25,8 @@
#include "parsingHelper.h" #include "parsingHelper.h"
#include "apacheReader.h" #include "apacheReader.h"
ApacheReader::ApacheReader(TQObject *tqparent, const char *name) : ApacheReader::ApacheReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name) DefaultReader(parent, name)
{ {
initializeTypeLevels(); initializeTypeLevels();

@ -40,7 +40,7 @@ class ApacheReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
ApacheReader(TQObject *tqparent = 0, const char *name = 0); ApacheReader(TQObject *parent = 0, const char *name = 0);
virtual ~ApacheReader(); virtual ~ApacheReader();

@ -42,8 +42,8 @@
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
BootAuthenticationOptions::BootAuthenticationOptions(TQWidget *tqparent) : BootAuthenticationOptions::BootAuthenticationOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this); TQVBoxLayout *tqlayout = new TQVBoxLayout(this);

@ -38,7 +38,7 @@ class BootAuthenticationOptions : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
BootAuthenticationOptions(TQWidget *tqparent = 0); BootAuthenticationOptions(TQWidget *parent = 0);
bool isValid(); bool isValid();

@ -24,7 +24,7 @@
ChildLogLine::ChildLogLine(TQDate& date, TQTime& time, TQStringList& list, TQString& file, LogLevel* level, int type) : ChildLogLine::ChildLogLine(TQDate& date, TQTime& time, TQStringList& list, TQString& file, LogLevel* level, int type) :
LogLine(date, time, list, file, level, type), LogLine(date, time, list, file, level, type),
tqparent(NULL) { parent(NULL) {
} }
@ -33,11 +33,11 @@ ChildLogLine::~ChildLogLine() {
} }
void ChildLogLine::setParent(ParentLogLine* line) { void ChildLogLine::setParent(ParentLogLine* line) {
tqparent=line; parent=line;
} }
ParentLogLine* ChildLogLine::getParent() { ParentLogLine* ChildLogLine::getParent() {
return(tqparent); return(parent);
} }
bool ChildLogLine::isChildLogLine() { bool ChildLogLine::isChildLogLine() {

@ -48,7 +48,7 @@ class ChildLogLine : public LogLine {
virtual bool isChildLogLine(); virtual bool isChildLogLine();
protected: protected:
ParentLogLine* tqparent; ParentLogLine* parent;
}; };

@ -42,8 +42,8 @@
#include "cronOptions.h" #include "cronOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
CronOptions::CronOptions(TQWidget *tqparent) : CronOptions::CronOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *tqlayout = new TQHBoxLayout(this);

@ -41,7 +41,7 @@ class CronOptions : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CronOptions(TQWidget *tqparent = 0); CronOptions(TQWidget *parent = 0);
~CronOptions(); ~CronOptions();
bool isValid(); bool isValid();

@ -23,8 +23,8 @@
#include <klocale.h> #include <klocale.h>
#include <kmessagebox.h> #include <kmessagebox.h>
CronReader::CronReader(TQObject *tqparent, const char *name) : CronReader::CronReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name) DefaultReader(parent, name)
{ {
} }

@ -40,7 +40,7 @@ class CronReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
CronReader(TQObject *tqparent = 0, const char *name = 0); CronReader(TQObject *parent = 0, const char *name = 0);
virtual ~CronReader(); virtual ~CronReader();

@ -24,8 +24,8 @@
#include "parsingHelper.h" #include "parsingHelper.h"
#include "cupsAccessReader.h" #include "cupsAccessReader.h"
CupsAccessReader::CupsAccessReader(TQObject *tqparent, const char *name) : CupsAccessReader::CupsAccessReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name) DefaultReader(parent, name)
{ {
} }

@ -40,7 +40,7 @@ class CupsAccessReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
CupsAccessReader(TQObject *tqparent = 0, const char *name = 0); CupsAccessReader(TQObject *parent = 0, const char *name = 0);
virtual ~CupsAccessReader(); virtual ~CupsAccessReader();

@ -42,8 +42,8 @@
#include "cupsOptions.h" #include "cupsOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
CupsOptions::CupsOptions(TQWidget *tqparent) : CupsOptions::CupsOptions(TQWidget *parent) :
TQWidget(tqparent), TQWidget(parent),
tabs(this, "tabs"), tabs(this, "tabs"),
cupsFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Cups log</b>. This list also determines the order in which the files are read.</p></qt>")), cupsFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Cups log</b>. This list also determines the order in which the files are read.</p></qt>")),
cupsAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Cups Web Server log</b>. This list also determines the order in which the files are read.</p></qt>")) cupsAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Cups Web Server log</b>. This list also determines the order in which the files are read.</p></qt>"))

@ -43,7 +43,7 @@ class CupsOptions : public TQWidget {
TQ_OBJECT TQ_OBJECT
public: public:
CupsOptions(TQWidget *tqparent = 0); CupsOptions(TQWidget *parent = 0);
~CupsOptions(); ~CupsOptions();
bool isValid(); bool isValid();

@ -26,8 +26,8 @@
#define DEBUG2_LOG_LEVEL_ICON "source" #define DEBUG2_LOG_LEVEL_ICON "source"
CupsReader::CupsReader(TQObject *tqparent, const char *name) : CupsReader::CupsReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name) DefaultReader(parent, name)
{ {
initializeTypeLevels(); initializeTypeLevels();

@ -40,7 +40,7 @@ class CupsReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
CupsReader(TQObject *tqparent = 0, const char *name = 0); CupsReader(TQObject *parent = 0, const char *name = 0);
virtual ~CupsReader(); virtual ~CupsReader();

@ -42,8 +42,8 @@
#include "daemonOptions.h" #include "daemonOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
DaemonOptions::DaemonOptions(TQWidget *tqparent) : DaemonOptions::DaemonOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *tqlayout = new TQHBoxLayout(this);

@ -39,7 +39,7 @@ class DaemonOptions : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DaemonOptions(TQWidget *tqparent = 0); DaemonOptions(TQWidget *parent = 0);
~DaemonOptions(); ~DaemonOptions();
bool isValid(); bool isValid();

@ -31,8 +31,8 @@
#include "defaultReader.h" #include "defaultReader.h"
DefaultReader::DefaultReader(TQObject *tqparent, const char *name) : DefaultReader::DefaultReader(TQObject *parent, const char *name) :
Reader(tqparent, name), Reader(parent, name),
buffers(NULL) buffers(NULL)
{ {

@ -48,7 +48,7 @@ class DefaultReader : public Reader {
TQ_OBJECT TQ_OBJECT
public: public:
DefaultReader(TQObject *tqparent = 0, const char *name = 0); DefaultReader(TQObject *parent = 0, const char *name = 0);
virtual ~DefaultReader(); virtual ~DefaultReader();

@ -36,9 +36,9 @@
#include "detailDialog.h" #include "detailDialog.h"
DetailDialog::DetailDialog(View* v, TQWidget *tqparent, const char *name) : DetailDialog::DetailDialog(View* v, TQWidget *parent, const char *name) :
//KDialogBase(tqparent, name, false, i18n("Log Line Details"), 0 /*KDialogBase::Ok*/), //KDialogBase(parent, name, false, i18n("Log Line Details"), 0 /*KDialogBase::Ok*/),
DetailDialogBase(tqparent, name, false, 0), DetailDialogBase(parent, name, false, 0),
view(v), view(v),
currentLine(NULL) { currentLine(NULL) {

@ -40,7 +40,7 @@ class DetailDialog : public DetailDialogBase {
TQ_OBJECT TQ_OBJECT
public: public:
DetailDialog(View* v, TQWidget *tqparent=NULL, const char* name=NULL); DetailDialog(View* v, TQWidget *parent=NULL, const char* name=NULL);
~DetailDialog(); ~DetailDialog();

@ -40,8 +40,8 @@
#include <kmessagebox.h> #include <kmessagebox.h>
#include <kiconloader.h> #include <kiconloader.h>
FileList::FileList(TQWidget *tqparent, TQString description) : FileList::FileList(TQWidget *parent, TQString description) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *tqlayout = new TQHBoxLayout(this);

@ -43,7 +43,7 @@ class FileList : public TQWidget {
TQ_OBJECT TQ_OBJECT
public: public:
FileList(TQWidget *tqparent, TQString description); FileList(TQWidget *parent, TQString description);
~FileList(); ~FileList();
virtual void insertItem(TQString& item); virtual void insertItem(TQString& item);

@ -16,9 +16,9 @@
#include "ksystemlog.h" #include "ksystemlog.h"
FindManager::FindManager(KSystemLog* tqparent, const char* name) : FindManager::FindManager(KSystemLog* parent, const char* name) :
TQObject(tqparent, name), TQObject(parent, name),
main(tqparent), main(parent),
findDialog(NULL), findDialog(NULL),
findManager(NULL), findManager(NULL),
previousItemFound(NULL), previousItemFound(NULL),

@ -42,7 +42,7 @@ class FindManager : public TQObject {
/** /**
* Default Constructor * Default Constructor
*/ */
FindManager(KSystemLog* tqparent, const char* name); FindManager(KSystemLog* parent, const char* name);
virtual ~FindManager(); virtual ~FindManager();

@ -38,8 +38,8 @@
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
#include "generalOptions.h" #include "generalOptions.h"
GeneralOptions::GeneralOptions(TQWidget *tqparent) : GeneralOptions::GeneralOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this); TQVBoxLayout *tqlayout = new TQVBoxLayout(this);

@ -36,7 +36,7 @@ class GeneralOptions : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
GeneralOptions(TQWidget *tqparent = 0); GeneralOptions(TQWidget *parent = 0);
bool isValid(); bool isValid();

@ -37,7 +37,7 @@
LogListItem* ItemFactory::createLogListItem(TQListView* view, LogLine* line) { LogListItem* ItemFactory::createLogListItem(TQListView* view, LogLine* line) {
//If it is a tqparent Log Line //If it is a parent Log Line
if (line->isParentLogLine()==true) if (line->isParentLogLine()==true)
return(createParentItem(view, (ParentLogLine*)line)); return(createParentItem(view, (ParentLogLine*)line));
@ -61,7 +61,7 @@ LogListItem* ItemFactory::createLogListItem(TQListView* view, LogLine* line) {
LogListItem* ItemFactory::createParentItem(TQListView* view, ParentLogLine* line) { LogListItem* ItemFactory::createParentItem(TQListView* view, ParentLogLine* line) {
//kdDebug() << "Creating a tqparent item : " << line->getLogLevel()->name << endl; //kdDebug() << "Creating a parent item : " << line->getLogLevel()->name << endl;
LogListItem* item=new LogListItem(view, line); LogListItem* item=new LogListItem(view, line);
@ -148,14 +148,14 @@ LogListItem* ItemFactory::createParentItem(TQListView* view, ParentLogLine* line
LogListItem* ItemFactory::createChildItem(TQListView* /*view*/, ChildLogLine* line) { LogListItem* ItemFactory::createChildItem(TQListView* /*view*/, ChildLogLine* line) {
LogListItem* tqparent=line->getParent()->getLogListItem(); LogListItem* parent=line->getParent()->getLogListItem();
if (tqparent==NULL) if (parent==NULL)
kdDebug() << "Parent log list item NULL !!!" << endl; kdDebug() << "Parent log list item NULL !!!" << endl;
//kdDebug() << "The log level of the tqparent is " << tqparent->getLogLine()->getLogLevel()->name << endl; //kdDebug() << "The log level of the parent is " << parent->getLogLine()->getLogLevel()->name << endl;
LogListItem* item=new LogListItem(tqparent, line); LogListItem* item=new LogListItem(parent, line);
initItem(item); initItem(item);
@ -267,25 +267,25 @@ TQString ItemFactory::createToolTipText(LogLine* line) {
TQString ItemFactory::createParentFormattedText(LogLine* line) { TQString ItemFactory::createParentFormattedText(LogLine* line) {
TQString result; TQString result;
ParentLogLine* tqparent=(ParentLogLine*) line; ParentLogLine* parent=(ParentLogLine*) line;
//All Group By cases are showed here //All Group By cases are showed here
if (tqparent->getGroupBy()==GROUP_BY_LOG_LEVEL) { if (parent->getGroupBy()==GROUP_BY_LOG_LEVEL) {
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getLogLevel()->name)); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getLogLevel()->name));
} }
else if (tqparent->getGroupBy()==GROUP_BY_DAY) { else if (parent->getGroupBy()==GROUP_BY_DAY) {
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getTime().date().toString())); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getTime().date().toString()));
} }
else if (tqparent->getGroupBy()==GROUP_BY_HOUR) { else if (parent->getGroupBy()==GROUP_BY_HOUR) {
TQString string(i18n("%1, %2 hour").tqarg(line->getTime().date().toString(), line->getTime().time().toString("h"))); TQString string(i18n("%1, %2 hour").tqarg(line->getTime().date().toString(), line->getTime().time().toString("h")));
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(string)); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(string));
} }
else if (tqparent->getGroupBy()==GROUP_BY_LOG_FILE) { else if (parent->getGroupBy()==GROUP_BY_LOG_FILE) {
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getOriginalFile())); result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getOriginalFile()));
} }
else { else {
TQStringList& list=line->getItemList(); TQStringList& list=line->getItemList();
int index=ParentLogLine::getGroupedColumnIndex(tqparent->getColumns(), tqparent->getGroupByColumn()); int index=ParentLogLine::getGroupedColumnIndex(parent->getColumns(), parent->getGroupByColumn());
if (index<0 || index>=(int) list.size()) if (index<0 || index>=(int) list.size())
result.append(i18n("<div align='center'><b>Group:</b> none</div>")); result.append(i18n("<div align='center'><b>Group:</b> none</div>"));
else else

@ -43,8 +43,8 @@
#include "kernelOptions.h" #include "kernelOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
KernelOptions::KernelOptions(TQWidget *tqparent) : KernelOptions::KernelOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *tqlayout = new TQHBoxLayout(this);

@ -40,7 +40,7 @@ class KernelOptions : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KernelOptions(TQWidget *tqparent = 0); KernelOptions(TQWidget *parent = 0);
~KernelOptions(); ~KernelOptions();
bool isValid(); bool isValid();

@ -22,8 +22,8 @@
#include "loadingDialog.h" #include "loadingDialog.h"
LoadingDialog::LoadingDialog(TQWidget* tqparent, const char* name, bool modal) : LoadingDialog::LoadingDialog(TQWidget* parent, const char* name, bool modal) :
KProgressDialog(tqparent, name, i18n("Loading Progress"), "", modal), KProgressDialog(parent, name, i18n("Loading Progress"), "", modal),
tabCount(0), tabCount(0),
currentTab(0), currentTab(0),

@ -46,7 +46,7 @@ class LoadingDialog : public KProgressDialog {
TQ_OBJECT TQ_OBJECT
public: public:
LoadingDialog(TQWidget* tqparent=0, const char* name=0, bool modal=false); LoadingDialog(TQWidget* parent=0, const char* name=0, bool modal=false);
~LoadingDialog(); ~LoadingDialog();

@ -30,8 +30,8 @@
#include "logLineFilter.h" #include "logLineFilter.h"
LogLineFilter::LogLineFilter(TQWidget* tqparent, KListView* listView, const char* name) : LogLineFilter::LogLineFilter(TQWidget* parent, KListView* listView, const char* name) :
KListViewSearchLine(tqparent, listView, name) { KListViewSearchLine(parent, listView, name) {
drawFilterMessage = true; drawFilterMessage = true;

@ -40,7 +40,7 @@
class LogLineFilter : public KListViewSearchLine class LogLineFilter : public KListViewSearchLine
{ {
public: public:
LogLineFilter(TQWidget* tqparent=NULL, KListView* listView=NULL, const char* name=NULL); LogLineFilter(TQWidget* parent=NULL, KListView* listView=NULL, const char* name=NULL);
protected: protected:
virtual void drawContents( TQPainter *p ); virtual void drawContents( TQPainter *p );

@ -73,18 +73,18 @@ LogLine* LogLineTree::synchronizeAddedLines(View* view) {
* This code wasn't able to find Parent Log Lines in the addedList object * This code wasn't able to find Parent Log Lines in the addedList object
*/ */
/* /*
//We first add the new tqparent items //We first add the new parent items
TQPtrListIterator<LogLine> it(addedList); TQPtrListIterator<LogLine> it(addedList);
LogLine* line=it.current(); LogLine* line=it.current();
kdDebug() << "Inserting " << parents.count() << " tqparent log item" << endl; kdDebug() << "Inserting " << parents.count() << " parent log item" << endl;
int i=0; int i=0;
while (line!=NULL) { while (line!=NULL) {
if (line->isParentLogLine()==true) { if (line->isParentLogLine()==true) {
ParentLogLine* tqparent=(ParentLogLine*) (line); ParentLogLine* parent=(ParentLogLine*) (line);
tqparent->insertItem(view->getLogList()); parent->insertItem(view->getLogList());
addedList.remove(it.current()); addedList.remove(it.current());
++i; ++i;
@ -95,18 +95,18 @@ LogLine* LogLineTree::synchronizeAddedLines(View* view) {
line=it.current(); line=it.current();
} }
kdDebug() << "Insertion of " << i << " tqparent log items" << endl; kdDebug() << "Insertion of " << i << " parent log items" << endl;
*/ */
kdDebug() << "Adding tqparent items to the tree..." << endl; kdDebug() << "Adding parent items to the tree..." << endl;
//We first add the new tqparent items //We first add the new parent items
TQPtrListIterator<ParentLogLine> it(parents); TQPtrListIterator<ParentLogLine> it(parents);
LogLine* line=it.current(); LogLine* line=it.current();
while (line!=NULL) { while (line!=NULL) {
//Even if the tqparent has already been added, it will automatically be added once time //Even if the parent has already been added, it will automatically be added once time
line->insertItem(view->getLogList()); line->insertItem(view->getLogList());
addedList.remove(it.current()); addedList.remove(it.current());
@ -126,29 +126,29 @@ bool LogLineTree::remove(LogLine* line) {
* - Only remove this line is it does not have any tqchildren left * - Only remove this line is it does not have any tqchildren left
*/ */
if (line->isParentLogLine()==true) { if (line->isParentLogLine()==true) {
ParentLogLine* tqparent=(ParentLogLine*) line; ParentLogLine* parent=(ParentLogLine*) line;
if (tqparent->hasChildren()==false) { if (parent->hasChildren()==false) {
parents.remove(tqparent); parents.remove(parent);
return(LogLineList::remove(line)); return(LogLineList::remove(line));
} }
} }
/** /**
* Child log line actions : * Child log line actions :
* - First remove the dependency from the tqparent * - First remove the dependency from the parent
* - Remove tqparent if it does not have child left * - Remove parent if it does not have child left
* - Finally remove child * - Finally remove child
*/ */
else if (line->isChildLogLine()==true) { else if (line->isChildLogLine()==true) {
ChildLogLine* child=(ChildLogLine*) line; ChildLogLine* child=(ChildLogLine*) line;
ParentLogLine* tqparent=child->getParent(); ParentLogLine* parent=child->getParent();
tqparent->removeChild(child); parent->removeChild(child);
//Remove tqparent if it does not have longer tqchildren //Remove parent if it does not have longer tqchildren
if (tqparent->hasChildren()==false) { if (parent->hasChildren()==false) {
parents.remove(tqparent); parents.remove(parent);
LogLineList::remove(tqparent); LogLineList::remove(parent);
} }
//Remove the tqchildren //Remove the tqchildren
@ -164,12 +164,12 @@ bool LogLineTree::remove(LogLine* line) {
void LogLineTree::insert(LogLine* line) { void LogLineTree::insert(LogLine* line) {
TQPtrListIterator<ParentLogLine> it(parents); TQPtrListIterator<ParentLogLine> it(parents);
ParentLogLine* tqparent=it.current(); ParentLogLine* parent=it.current();
bool insertion=false; bool insertion=false;
while (tqparent!=NULL) { while (parent!=NULL) {
insertion=tqparent->isChild(line); insertion=parent->isChild(line);
if (insertion==true) { if (insertion==true) {
TQDate date=line->getTime().date(); TQDate date=line->getTime().date();
@ -177,8 +177,8 @@ void LogLineTree::insert(LogLine* line) {
ChildLogLine* newChild=new ChildLogLine(date, time, line->getItemList(), line->getOriginalFile(), line->getLogLevel(), line->getType()); ChildLogLine* newChild=new ChildLogLine(date, time, line->getItemList(), line->getOriginalFile(), line->getLogLevel(), line->getType());
tqparent->addChild(newChild); parent->addChild(newChild);
newChild->setParent(tqparent); newChild->setParent(parent);
//Insert this child by the classical way //Insert this child by the classical way
LogLineList::insert(newChild); LogLineList::insert(newChild);
@ -189,14 +189,14 @@ void LogLineTree::insert(LogLine* line) {
} }
++it; ++it;
tqparent=it.current(); parent=it.current();
} }
TQDate date=line->getTime().date(); TQDate date=line->getTime().date();
TQTime time=line->getTime().time(); TQTime time=line->getTime().time();
ParentLogLine* newParent=new ParentLogLine(date, time, line->getItemList(), line->getOriginalFile(), line->getLogLevel(), line->getType(), this->groupBy, this->groupByColumn, this->columns); ParentLogLine* newParent=new ParentLogLine(date, time, line->getItemList(), line->getOriginalFile(), line->getLogLevel(), line->getType(), this->groupBy, this->groupByColumn, this->columns);
//Insert this tqparent by the classical way //Insert this parent by the classical way
LogLineList::insert(newParent); LogLineList::insert(newParent);
parents.append(newParent); parents.append(newParent);

@ -52,8 +52,8 @@ LogListItem::LogListItem(TQListView* list, LogLine* l) :
} }
LogListItem::LogListItem(TQListViewItem* tqparent, LogLine* l) : LogListItem::LogListItem(TQListViewItem* parent, LogLine* l) :
KListViewItem(tqparent), KListViewItem(parent),
line(l) line(l)
{ {
@ -185,7 +185,7 @@ void LogListItem::paintCell(TQPainter* p, const TQColorGroup& cg, int column, in
if (line->isParentLogLine()==true && column==0) { if (line->isParentLogLine()==true && column==0) {
//Draw 3 gray lines around the tqparent item //Draw 3 gray lines around the parent item
pBuf.setPen(cg.button()); pBuf.setPen(cg.button());
pBuf.drawLine(0, 0, width, 0); pBuf.drawLine(0, 0, width, 0);
pBuf.drawLine(0, height()-1, width, height()-1); pBuf.drawLine(0, height()-1, width, height()-1);
@ -200,7 +200,7 @@ void LogListItem::paintCell(TQPainter* p, const TQColorGroup& cg, int column, in
//Draw the item name in bold if it is a recent one //Draw the item name in bold if it is a recent one
if (line->isRecent()==true && column==lv->columns()-1) if (line->isRecent()==true && column==lv->columns()-1)
font.setBold(true); font.setBold(true);
//Draw in italic and bold if it's a tqparent item //Draw in italic and bold if it's a parent item
else if (line->isParentLogLine()==true && column==0) { else if (line->isParentLogLine()==true && column==0) {
font.setItalic(true); font.setItalic(true);
font.setBold(true); font.setBold(true);
@ -227,7 +227,7 @@ void LogListItem::paintCell(TQPainter* p, const TQColorGroup& cg, int column, in
text_x=1; text_x=1;
//If this is the first column and also a tqparent log line //If this is the first column and also a parent log line
if (line->isParentLogLine()==true && column==0) { if (line->isParentLogLine()==true && column==0) {
if (KSystemLogConfig::colorizeLogLines() && ((ParentLogLine*)line)->getGroupBy()==GROUP_BY_LOG_LEVEL) if (KSystemLogConfig::colorizeLogLines() && ((ParentLogLine*)line)->getGroupBy()==GROUP_BY_LOG_LEVEL)
pBuf.setPen( isSelected() ? cg.text() : line->getLogLevel()->color); pBuf.setPen( isSelected() ? cg.text() : line->getLogLevel()->color);

@ -50,7 +50,7 @@ class LogListItem : public KListViewItem {
public: public:
LogListItem(TQListView* list, LogLine* l); LogListItem(TQListView* list, LogLine* l);
LogListItem(TQListViewItem* tqparent, LogLine* l); LogListItem(TQListViewItem* parent, LogLine* l);
~LogListItem(); ~LogListItem();

@ -168,7 +168,7 @@ void LogManager::openingProgress(int percent) {
//Move this signal to Loading Dialog class //Move this signal to Loading Dialog class
emit GUIUpdated(); emit GUIUpdated();
//((KSystemLog*)( view->tqparent()))->kapp->processEvents(); //((KSystemLog*)( view->parent()))->kapp->processEvents();
} }
@ -351,7 +351,7 @@ void LogManager::initialize(LogMode* mode) {
connect(reader, TQT_SIGNAL(readingEnd()), this, TQT_SLOT(readingEnded())); connect(reader, TQT_SIGNAL(readingEnd()), this, TQT_SLOT(readingEnded()));
//Inform this reader that this LogManager is now its tqparent //Inform this reader that this LogManager is now its parent
reader->setLogManager(this); reader->setLogManager(this);
//Find the log files used for this kind of mode, and set them to our log manager //Find the log files used for this kind of mode, and set them to our log manager

@ -38,8 +38,8 @@
#include "loggerDialog.h" #include "loggerDialog.h"
LoggerDialog::LoggerDialog(TQWidget *tqparent, const char *name) : LoggerDialog::LoggerDialog(TQWidget *parent, const char *name) :
LoggerDialogBase(tqparent, name) { LoggerDialogBase(parent, name) {
connect(buttonOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(sendMessage())); connect(buttonOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(sendMessage()));

@ -32,7 +32,7 @@ class LoggerDialog: public LoggerDialogBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LoggerDialog(TQWidget *tqparent = 0, const char *name = 0); LoggerDialog(TQWidget *parent = 0, const char *name = 0);
protected slots: protected slots:
void sendMessage(); void sendMessage();

@ -35,8 +35,8 @@
#include "options.h" #include "options.h"
Options::Options(TQWidget* tqparent, const char *name, bool modal) : Options::Options(TQWidget* parent, const char *name, bool modal) :
KDialogBase(IconList, i18n("Configuration"), Ok|Apply|Cancel, Ok, tqparent, name, modal, true) KDialogBase(IconList, i18n("Configuration"), Ok|Apply|Cancel, Ok, parent, name, modal, true)
{ {
this->setMinimumSize(480, 500); this->setMinimumSize(480, 500);

@ -52,7 +52,7 @@ class Options: public KDialogBase {
TQ_OBJECT TQ_OBJECT
public: public:
Options(TQWidget *tqparent, const char *name, bool modal); Options(TQWidget *parent, const char *name, bool modal);
~Options(); ~Options();
public slots: public slots:

@ -43,8 +43,8 @@
#include "postfixOptions.h" #include "postfixOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
PostfixOptions::PostfixOptions(TQWidget *tqparent) : PostfixOptions::PostfixOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *tqlayout = new TQHBoxLayout(this);

@ -39,7 +39,7 @@ class PostfixOptions : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PostfixOptions(TQWidget *tqparent = 0); PostfixOptions(TQWidget *parent = 0);
~PostfixOptions(); ~PostfixOptions();
bool isValid(); bool isValid();

@ -29,8 +29,8 @@
#include <kmessagebox.h> #include <kmessagebox.h>
#include <kdebug.h> #include <kdebug.h>
Reader::Reader(TQObject *tqparent, const char *name) : Reader::Reader(TQObject *parent, const char *name) :
TQObject(tqparent, name), TQObject(parent, name),
logManager(NULL) logManager(NULL)
{ {

@ -52,7 +52,7 @@ class Reader : public TQObject {
TQ_OBJECT TQ_OBJECT
public: public:
Reader(TQObject* tqparent=NULL, const char* name=NULL); Reader(TQObject* parent=NULL, const char* name=NULL);
~Reader(); ~Reader();

@ -42,8 +42,8 @@
#include "sambaOptions.h" #include "sambaOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
SambaOptions::SambaOptions(TQWidget *tqparent) : SambaOptions::SambaOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *tqlayout = new TQHBoxLayout(this);

@ -41,7 +41,7 @@ class SambaOptions : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SambaOptions(TQWidget *tqparent = 0); SambaOptions(TQWidget *parent = 0);
~SambaOptions(); ~SambaOptions();
bool isValid(); bool isValid();

@ -24,8 +24,8 @@
#include "parsingHelper.h" #include "parsingHelper.h"
#include "sambaReader.h" #include "sambaReader.h"
SambaReader::SambaReader(TQObject *tqparent, const char *name) : SambaReader::SambaReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name) DefaultReader(parent, name)
{ {
} }

@ -40,7 +40,7 @@ class SambaReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
SambaReader(TQObject *tqparent = 0, const char *name = 0); SambaReader(TQObject *parent = 0, const char *name = 0);
virtual ~SambaReader(); virtual ~SambaReader();

@ -32,7 +32,7 @@
#endif #endif
SlotLogAction::SlotLogAction(KSystemLog* p) : SlotLogAction::SlotLogAction(KSystemLog* p) :
tqparent(p) { parent(p) {
} }
@ -41,14 +41,14 @@ void SlotLogAction::slotLogAction(KAction::ActivationReason reason, TQt::ButtonS
const TQObject* sender=TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(TQObject::sender())); const TQObject* sender=TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(TQObject::sender()));
//We can call the correct method from KSystemLog, which manage the two parameters //We can call the correct method from KSystemLog, which manage the two parameters
tqparent->logActionClicked(sender, reason, state); parent->logActionClicked(sender, reason, state);
} }
#else #else
void SlotLogAction::slotLogAction() { void SlotLogAction::slotLogAction() {
const TQObject* sender=TQObject::sender(); const TQObject* sender=TQObject::sender();
//In the other case, We can only call the method from KSystemLog, which keeps compatibility //In the other case, We can only call the method from KSystemLog, which keeps compatibility
tqparent->logActionClicked(sender); parent->logActionClicked(sender);
} }
#endif #endif

@ -33,7 +33,7 @@ class SlotLogAction : public TQObject {
TQ_OBJECT TQ_OBJECT
public: public:
SlotLogAction(KSystemLog* tqparent); SlotLogAction(KSystemLog* parent);
public slots: public slots:
@ -43,7 +43,7 @@ class SlotLogAction : public TQObject {
void slotLogAction(KAction::ActivationReason reason, TQt::ButtonState state); void slotLogAction(KAction::ActivationReason reason, TQt::ButtonState state);
private: private:
KSystemLog* tqparent; KSystemLog* parent;
}; };
#endif #endif

@ -32,7 +32,7 @@ class SlotLogAction : public TQObject {
TQ_OBJECT TQ_OBJECT
public: public:
SlotLogAction(KSystemLog* tqparent); SlotLogAction(KSystemLog* parent);
public slots: public slots:
@ -43,7 +43,7 @@ class SlotLogAction : public TQObject {
void slotLogAction(); void slotLogAction();
private: private:
KSystemLog* tqparent; KSystemLog* parent;
}; };
#endif #endif

@ -40,8 +40,8 @@
#include "specificFileList.h" #include "specificFileList.h"
SpecificFileList::SpecificFileList(TQWidget* tqparent, TQString description) : SpecificFileList::SpecificFileList(TQWidget* parent, TQString description) :
FileList(tqparent, description) FileList(parent, description)
{ {

@ -35,7 +35,7 @@ class SpecificFileList : public FileList {
TQ_OBJECT TQ_OBJECT
public: public:
SpecificFileList(TQWidget *tqparent, TQString description); SpecificFileList(TQWidget *parent, TQString description);
~SpecificFileList(); ~SpecificFileList();
virtual void insertItem(TQString& item); virtual void insertItem(TQString& item);

@ -42,8 +42,8 @@
#include "systemOptions.h" #include "systemOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
SystemOptions::SystemOptions(TQWidget *tqparent) : SystemOptions::SystemOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQVBoxLayout* tqlayout = new TQVBoxLayout(this); TQVBoxLayout* tqlayout = new TQVBoxLayout(this);

@ -42,7 +42,7 @@ class SystemOptions : public TQWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SystemOptions(TQWidget *tqparent = 0); SystemOptions(TQWidget *parent = 0);
~SystemOptions(); ~SystemOptions();
bool isValid(); bool isValid();

@ -23,8 +23,8 @@
#include <klocale.h> #include <klocale.h>
#include <kmessagebox.h> #include <kmessagebox.h>
SystemReader::SystemReader(TQObject *tqparent, const char *name) : SystemReader::SystemReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name) DefaultReader(parent, name)
{ {
} }

@ -39,7 +39,7 @@ class SystemReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
SystemReader(TQObject *tqparent = 0, const char *name = 0); SystemReader(TQObject *parent = 0, const char *name = 0);
virtual ~SystemReader(); virtual ~SystemReader();

@ -55,9 +55,9 @@
#include "ksystemlog.h" #include "ksystemlog.h"
View::View(TQWidget *tqparent) : View::View(TQWidget *parent) :
DCOPObject("KSystemLogInterface"), DCOPObject("KSystemLogInterface"),
TQWidget(tqparent), TQWidget(parent),
logManager(NULL), logManager(NULL),
table(NULL), table(NULL),
columns(NULL), columns(NULL),

@ -71,7 +71,7 @@ class View : public TQWidget, public KSystemLogInterface {
/** /**
* Default constructor * Default constructor
*/ */
View(TQWidget *tqparent); View(TQWidget *parent);
/** /**
* Destructor * Destructor

@ -30,8 +30,8 @@
#include "view.h" #include "view.h"
ViewToolTip::ViewToolTip(TQWidget *tqparent, View *view) : ViewToolTip::ViewToolTip(TQWidget *parent, View *view) :
TQToolTip(tqparent), TQToolTip(parent),
view(view) { view(view) {
} }

@ -30,7 +30,7 @@ class View;
class ViewToolTip : public TQToolTip { class ViewToolTip : public TQToolTip {
public: public:
ViewToolTip(TQWidget *tqparent, View* view); ViewToolTip(TQWidget *parent, View* view);
virtual ~ViewToolTip(); virtual ~ViewToolTip();

@ -42,8 +42,8 @@
#include "xorgOptions.h" #include "xorgOptions.h"
#include "ksystemlogConfig.h" #include "ksystemlogConfig.h"
XorgOptions::XorgOptions(TQWidget *tqparent) : XorgOptions::XorgOptions(TQWidget *parent) :
TQWidget(tqparent) TQWidget(parent)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *tqlayout = new TQHBoxLayout(this);

@ -41,7 +41,7 @@ class XorgOptions : public TQWidget {
TQ_OBJECT TQ_OBJECT
public: public:
XorgOptions(TQWidget *tqparent = 0); XorgOptions(TQWidget *parent = 0);
~XorgOptions(); ~XorgOptions();
bool isValid(); bool isValid();

@ -32,8 +32,8 @@
#define PROBED_LOG_LEVEL_ICON "wizard" #define PROBED_LOG_LEVEL_ICON "wizard"
#define NOT_IMPLEMENTED_LOG_LEVEL_ICON "filenew" #define NOT_IMPLEMENTED_LOG_LEVEL_ICON "filenew"
XorgReader::XorgReader(TQObject *tqparent, const char *name) : XorgReader::XorgReader(TQObject *parent, const char *name) :
DefaultReader(tqparent, name), DefaultReader(parent, name),
newLineTime(), newLineTime(),
newLineDate(TQDate::tqcurrentDate()), newLineDate(TQDate::tqcurrentDate()),
lineCount(1) lineCount(1)

@ -43,7 +43,7 @@ class XorgReader : public DefaultReader {
TQ_OBJECT TQ_OBJECT
public: public:
XorgReader(TQObject *tqparent = 0, const char *name = 0); XorgReader(TQObject *parent = 0, const char *name = 0);
virtual ~XorgReader(); virtual ~XorgReader();

Loading…
Cancel
Save