summaryrefslogtreecommitdiffstats
path: root/languages/ada/problemreporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ada/problemreporter.cpp')
-rw-r--r--languages/ada/problemreporter.cpp108
1 files changed, 54 insertions, 54 deletions
diff --git a/languages/ada/problemreporter.cpp b/languages/ada/problemreporter.cpp
index 61109775..652d5a6b 100644
--- a/languages/ada/problemreporter.cpp
+++ b/languages/ada/problemreporter.cpp
@@ -24,7 +24,7 @@
#include "configproblemreporter.h"
#include "backgroundparser.h"
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include <kdeversion.h>
#include <kparts/part.h>
@@ -43,24 +43,24 @@
#include <kconfig.h>
-#include <qtimer.h>
-#include <qregexp.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
+#include <tqtimer.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
#include <kdialogbase.h>
class ProblemItem: public QListViewItem{
public:
- ProblemItem( QListView* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
- : QListViewItem( parent, level, problem, file, line, column ) {}
+ ProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
+ : TQListViewItem( parent, level, problem, file, line, column ) {}
- ProblemItem( QListViewItem* parent, const QString& level, const QString& problem,
- const QString& file, const QString& line, const QString& column )
- : QListViewItem( parent, level, problem, file, line, column ) {}
+ ProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ const TQString& file, const TQString& line, const TQString& column )
+ : TQListViewItem( parent, level, problem, file, line, column ) {}
- int compare( QListViewItem* item, int column, bool ascending ) const {
+ int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 3 || column == 4 ){
int a = text( column ).toInt();
int b = item->text( column ).toInt();
@@ -68,20 +68,20 @@ public:
return 0;
return( a > b ? -1 : 1 );
}
- return QListViewItem::compare( item, column, ascending );
+ return TQListViewItem::compare( item, column, ascending );
}
};
-ProblemReporter::ProblemReporter( AdaSupportPart* part, QWidget* parent, const char* name )
- : QListView( parent, name ),
+ProblemReporter::ProblemReporter( AdaSupportPart* part, TQWidget* parent, const char* name )
+ : TQListView( parent, name ),
m_adaSupport( part ),
m_editor( 0 ),
m_document( 0 ),
m_markIface( 0 ),
m_bgParser( 0 )
{
- QWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows errors reported by a language parser."));
+ TQWhatsThis::add(this, i18n("<b>Problem reporter</b><p>This window shows errors reported by a language parser."));
addColumn( i18n("Level") );
addColumn( i18n("Problem") );
@@ -90,21 +90,21 @@ ProblemReporter::ProblemReporter( AdaSupportPart* part, QWidget* parent, const c
//addColumn( i18n("Column") );
setAllColumnsShowFocus( TRUE );
- m_timer = new QTimer( this );
+ m_timer = new TQTimer( this );
- connect( part->partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partAdded(KParts::Part*)),
- this, SLOT(slotPartAdded(KParts::Part*)) );
- connect( part->partController(), SIGNAL(partRemoved(KParts::Part*)),
- this, SLOT(slotPartRemoved(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partAdded(KParts::Part*)),
+ this, TQT_SLOT(slotPartAdded(KParts::Part*)) );
+ connect( part->partController(), TQT_SIGNAL(partRemoved(KParts::Part*)),
+ this, TQT_SLOT(slotPartRemoved(KParts::Part*)) );
- connect( m_timer, SIGNAL(timeout()), this, SLOT(reparse()) );
+ connect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(reparse()) );
- connect( this, SIGNAL(doubleClicked(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
- connect( this, SIGNAL(returnPressed(QListViewItem*)),
- this, SLOT(slotSelected(QListViewItem*)) );
+ connect( this, TQT_SIGNAL(doubleClicked(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)),
+ this, TQT_SLOT(slotSelected(TQListViewItem*)) );
configure();
}
@@ -134,7 +134,7 @@ void ProblemReporter::slotActivePartChanged( KParts::Part* part )
m_editor = dynamic_cast<KTextEditor::EditInterface*>( part );
if( m_editor )
- connect( m_document, SIGNAL(textChanged()), this, SLOT(slotTextChanged()) );
+ connect( m_document, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotTextChanged()) );
m_markIface = dynamic_cast<KTextEditor::MarkInterface*>( part );
@@ -166,9 +166,9 @@ void ProblemReporter::reparse()
m_bgParser = 0;
}
- QListViewItem* current = firstChild();
+ TQListViewItem* current = firstChild();
while( current ){
- QListViewItem* i = current;
+ TQListViewItem* i = current;
current = current->nextSibling();
if( i->text(2) == m_filename )
@@ -176,8 +176,8 @@ void ProblemReporter::reparse()
}
if( m_markIface ){
- QPtrList<KTextEditor::Mark> marks = m_markIface->marks();
- QPtrListIterator<KTextEditor::Mark> it( marks );
+ TQPtrList<KTextEditor::Mark> marks = m_markIface->marks();
+ TQPtrListIterator<KTextEditor::Mark> it( marks );
while( it.current() ){
m_markIface->removeMark( it.current()->line, KTextEditor::MarkInterface::markType07 );
++it;
@@ -185,7 +185,7 @@ void ProblemReporter::reparse()
}
/* Temporarily deactivated (crashes)*/
- if (!m_adaSupport->fileExtensions ().contains (QFileInfo (m_filename).extension ()))
+ if (!m_adaSupport->fileExtensions ().contains (TQFileInfo (m_filename).extension ()))
{
m_bgParser = new BackgroundParser( this, m_editor->text(), m_filename );
m_bgParser->start();
@@ -193,7 +193,7 @@ void ProblemReporter::reparse()
/**/
}
-void ProblemReporter::slotSelected( QListViewItem* item )
+void ProblemReporter::slotSelected( TQListViewItem* item )
{
KURL url( item->text(2) );
int line = item->text( 3 ).toInt();
@@ -201,8 +201,8 @@ void ProblemReporter::slotSelected( QListViewItem* item )
m_adaSupport->partController()->editDocument( url, line-1 );
}
-void ProblemReporter::reportError( QString message,
- QString filename,
+void ProblemReporter::reportError( TQString message,
+ TQString filename,
int line, int column )
{
if( m_markIface ){
@@ -211,34 +211,34 @@ void ProblemReporter::reportError( QString message,
new ProblemItem( this,
"error",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
-void ProblemReporter::reportWarning( QString message,
- QString filename,
+void ProblemReporter::reportWarning( TQString message,
+ TQString filename,
int line, int column )
{
new ProblemItem( this,
"warning",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
-void ProblemReporter::reportMessage( QString message,
- QString filename,
+void ProblemReporter::reportMessage( TQString message,
+ TQString filename,
int line, int column )
{
- new QListViewItem( this,
+ new TQListViewItem( this,
"message",
- message.replace( QRegExp("\n"), "" ),
+ message.replace( TQRegExp("\n"), "" ),
filename,
- QString::number( line ),
- QString::number( column ) );
+ TQString::number( line ),
+ TQString::number( column ) );
}
void ProblemReporter::configure()
@@ -253,10 +253,10 @@ void ProblemReporter::configure()
void ProblemReporter::configWidget( KDialogBase* dlg )
{
kdDebug() << "ProblemReporter::configWidget()" << endl;
- QVBox *vbox = dlg->addVBoxPage(i18n("Ada Parsing"), i18n("Ada Parsing"), BarIcon( "source", KIcon::SizeMedium ));
+ TQVBox *vbox = dlg->addVBoxPage(i18n("Ada Parsing"), i18n("Ada Parsing"), BarIcon( "source", KIcon::SizeMedium ));
ConfigureProblemReporter* w = new ConfigureProblemReporter( vbox );
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
- connect(dlg, SIGNAL(okClicked()), this, SLOT(configure()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(configure()));
}
void ProblemReporter::slotPartAdded( KParts::Part* part )