summaryrefslogtreecommitdiffstats
path: root/languages/lib/debugger
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/lib/debugger
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/lib/debugger')
-rw-r--r--languages/lib/debugger/debugger.cpp24
-rw-r--r--languages/lib/debugger/debugger.h12
-rw-r--r--languages/lib/debugger/kdevdebugger.cpp24
-rw-r--r--languages/lib/debugger/kdevdebugger.h24
4 files changed, 42 insertions, 42 deletions
diff --git a/languages/lib/debugger/debugger.cpp b/languages/lib/debugger/debugger.cpp
index 92765efe..5d33ee8c 100644
--- a/languages/lib/debugger/debugger.cpp
+++ b/languages/lib/debugger/debugger.cpp
@@ -16,8 +16,8 @@ Debugger *Debugger::s_instance = 0;
Debugger::Debugger(KDevPartController *partController)
:m_partController(partController)
{
- connect( m_partController, SIGNAL(partAdded(KParts::Part*)),
- this, SLOT(partAdded(KParts::Part*)) );
+ connect( m_partController, TQT_SIGNAL(partAdded(KParts::Part*)),
+ this, TQT_SLOT(partAdded(KParts::Part*)) );
}
@@ -34,7 +34,7 @@ Debugger::~Debugger()
// }
-void Debugger::setBreakpoint(const QString &fileName, int lineNum, int id, bool enabled, bool pending)
+void Debugger::setBreakpoint(const TQString &fileName, int lineNum, int id, bool enabled, bool pending)
{
KParts::Part *part = m_partController->partForURL(KURL(fileName));
if( !part )
@@ -46,11 +46,11 @@ void Debugger::setBreakpoint(const QString &fileName, int lineNum, int id, bool
// Temporarily disconnect so we don't get confused by receiving extra
// marksChanged signals
- disconnect( part, SIGNAL(marksChanged()), this, SLOT(marksChanged()) );
+ disconnect( part, TQT_SIGNAL(marksChanged()), this, TQT_SLOT(marksChanged()) );
iface->removeMark( lineNum, Breakpoint | ActiveBreakpoint | ReachedBreakpoint | DisabledBreakpoint );
BPItem bpItem(fileName, lineNum);
- QValueList<BPItem>::Iterator it = BPList.find(bpItem);
+ TQValueList<BPItem>::Iterator it = BPList.find(bpItem);
if (it != BPList.end())
{
// kdDebug(9012) << "Removing BP=" << fileName << ":" << lineNum << endl;
@@ -71,21 +71,21 @@ void Debugger::setBreakpoint(const QString &fileName, int lineNum, int id, bool
BPList.append(BPItem(fileName, lineNum));
}
- connect( part, SIGNAL(marksChanged()), this, SLOT(marksChanged()) );
+ connect( part, TQT_SIGNAL(marksChanged()), this, TQT_SLOT(marksChanged()) );
}
void Debugger::clearExecutionPoint()
{
- QPtrListIterator<KParts::Part> it(*m_partController->parts());
+ TQPtrListIterator<KParts::Part> it(*m_partController->parts());
for ( ; it.current(); ++it)
{
MarkInterface *iface = dynamic_cast<MarkInterface*>(it.current());
if (!iface)
continue;
- QPtrList<Mark> list = iface->marks();
- QPtrListIterator<Mark> markIt(list);
+ TQPtrList<Mark> list = iface->marks();
+ TQPtrListIterator<Mark> markIt(list);
for( ; markIt.current(); ++markIt )
{
Mark* mark = markIt.current();
@@ -125,8 +125,8 @@ void Debugger::marksChanged()
return; // Probably means the document is being closed.
KTextEditor::Mark *m;
- QValueList<BPItem> oldBPList = BPList;
- QPtrList<KTextEditor::Mark> newMarks = iface->marks();
+ TQValueList<BPItem> oldBPList = BPList;
+ TQPtrList<KTextEditor::Mark> newMarks = iface->marks();
// Compare the oldBPlist to the new list from the editor.
//
@@ -203,7 +203,7 @@ void Debugger::partAdded( KParts::Part* part )
iface->setPixmap((MarkInterface::MarkTypes)ExecutionPoint, *executionPointPixmap());
iface->setMarksUserChangable( Bookmark | Breakpoint );
- connect( part, SIGNAL(marksChanged()), this, SLOT(marksChanged()) );
+ connect( part, TQT_SIGNAL(marksChanged()), this, TQT_SLOT(marksChanged()) );
}
#include "debugger.moc"
diff --git a/languages/lib/debugger/debugger.h b/languages/lib/debugger/debugger.h
index ed545f28..f1a48452 100644
--- a/languages/lib/debugger/debugger.h
+++ b/languages/lib/debugger/debugger.h
@@ -1,7 +1,7 @@
#ifndef __DEBUGGER_H__
#define __DEBUGGER_H__
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "kdevdebugger.h"
@@ -29,13 +29,13 @@ public:
BPItem() : m_fileName(""), m_lineNum(0)
{}
- BPItem( const QString& fileName, const uint lineNum)
+ BPItem( const TQString& fileName, const uint lineNum)
: m_fileName(fileName),
m_lineNum(lineNum)
{}
uint lineNum() const { return m_lineNum; }
- QString fileName() const { return m_fileName; }
+ TQString fileName() const { return m_fileName; }
bool operator==( const BPItem& rhs ) const
{
@@ -44,7 +44,7 @@ public:
}
private:
- QString m_fileName;
+ TQString m_fileName;
uint m_lineNum;
};
@@ -75,7 +75,7 @@ public:
* @param enabled The breakpoint could be enabled, disabled
* @param pending pending or active. Each state has a different icon.
*/
- void setBreakpoint(const QString &fileName, int lineNum,
+ void setBreakpoint(const TQString &fileName, int lineNum,
int id, bool enabled, bool pending);
/**
@@ -126,7 +126,7 @@ private:
static Debugger *s_instance;
KDevPartController *m_partController;
- QValueList<BPItem> BPList;
+ TQValueList<BPItem> BPList;
};
#endif
diff --git a/languages/lib/debugger/kdevdebugger.cpp b/languages/lib/debugger/kdevdebugger.cpp
index d5c4e3b5..b9ee4a05 100644
--- a/languages/lib/debugger/kdevdebugger.cpp
+++ b/languages/lib/debugger/kdevdebugger.cpp
@@ -19,8 +19,8 @@
*/
#include "kdevdebugger.h"
-KDevDebugger::KDevDebugger(QObject *parent, const char *name)
- : QObject(parent, name)
+KDevDebugger::KDevDebugger(TQObject *parent, const char *name)
+ : TQObject(parent, name)
{
}
@@ -29,7 +29,7 @@ KDevDebugger::~KDevDebugger()
{
}
-const QPixmap* KDevDebugger::inactiveBreakpointPixmap()
+const TQPixmap* KDevDebugger::inactiveBreakpointPixmap()
{
const char*breakpoint_gr_xpm[]={
"11 16 6 1",
@@ -55,11 +55,11 @@ const QPixmap* KDevDebugger::inactiveBreakpointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( breakpoint_gr_xpm );
+ static TQPixmap pixmap( breakpoint_gr_xpm );
return &pixmap;
}
-const QPixmap* KDevDebugger::activeBreakpointPixmap()
+const TQPixmap* KDevDebugger::activeBreakpointPixmap()
{
const char* breakpoint_xpm[]={
"11 16 6 1",
@@ -85,11 +85,11 @@ const QPixmap* KDevDebugger::activeBreakpointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( breakpoint_xpm );
+ static TQPixmap pixmap( breakpoint_xpm );
return &pixmap;
}
-const QPixmap* KDevDebugger::reachedBreakpointPixmap()
+const TQPixmap* KDevDebugger::reachedBreakpointPixmap()
{
const char*breakpoint_bl_xpm[]={
"11 16 7 1",
@@ -116,11 +116,11 @@ const QPixmap* KDevDebugger::reachedBreakpointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( breakpoint_bl_xpm );
+ static TQPixmap pixmap( breakpoint_bl_xpm );
return &pixmap;
}
-const QPixmap* KDevDebugger::disabledBreakpointPixmap()
+const TQPixmap* KDevDebugger::disabledBreakpointPixmap()
{
const char*breakpoint_wh_xpm[]={
"11 16 7 1",
@@ -147,11 +147,11 @@ const QPixmap* KDevDebugger::disabledBreakpointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( breakpoint_wh_xpm );
+ static TQPixmap pixmap( breakpoint_wh_xpm );
return &pixmap;
}
-const QPixmap* KDevDebugger::executionPointPixmap()
+const TQPixmap* KDevDebugger::executionPointPixmap()
{
const char*exec_xpm[]={
"11 16 4 1",
@@ -175,7 +175,7 @@ const QPixmap* KDevDebugger::executionPointPixmap()
"...........",
"...........",
"..........."};
- static QPixmap pixmap( exec_xpm );
+ static TQPixmap pixmap( exec_xpm );
return &pixmap;
}
diff --git a/languages/lib/debugger/kdevdebugger.h b/languages/lib/debugger/kdevdebugger.h
index d0b87721..288854e5 100644
--- a/languages/lib/debugger/kdevdebugger.h
+++ b/languages/lib/debugger/kdevdebugger.h
@@ -21,8 +21,8 @@
#define _KDEVDEBUGGER_H_
-#include <qobject.h>
-#include <qpixmap.h>
+#include <tqobject.h>
+#include <tqpixmap.h>
#include <kurl.h>
@@ -37,14 +37,14 @@ class KDevDebugger : public QObject
public:
- KDevDebugger(QObject *parent=0, const char *name=0);
+ KDevDebugger(TQObject *parent=0, const char *name=0);
~KDevDebugger();
/**
* Sets a breakpoint in the editor document belong to fileName.
* If id==-1, the breakpoint is deleted.
*/
- virtual void setBreakpoint(const QString &fileName, int lineNum,
+ virtual void setBreakpoint(const TQString &fileName, int lineNum,
int id, bool enabled, bool pending) = 0;
/**
@@ -59,28 +59,28 @@ public:
*/
virtual void clearExecutionPoint() = 0;
- static const QPixmap* inactiveBreakpointPixmap();
- static const QPixmap* activeBreakpointPixmap();
- static const QPixmap* reachedBreakpointPixmap();
- static const QPixmap* disabledBreakpointPixmap();
- static const QPixmap* executionPointPixmap();
+ static const TQPixmap* inactiveBreakpointPixmap();
+ static const TQPixmap* activeBreakpointPixmap();
+ static const TQPixmap* reachedBreakpointPixmap();
+ static const TQPixmap* disabledBreakpointPixmap();
+ static const TQPixmap* executionPointPixmap();
signals:
/**
* The user has toggled a breakpoint.
*/
- void toggledBreakpoint(const QString &fileName, int lineNum);
+ void toggledBreakpoint(const TQString &fileName, int lineNum);
/*
* The user wants to edit the properties of a breakpoint.
*/
- void editedBreakpoint(const QString &fileName, int lineNum);
+ void editedBreakpoint(const TQString &fileName, int lineNum);
/**
* The user wants to enable/disable a breakpoint.
*/
- void toggledBreakpointEnabled(const QString &fileName, int lineNum);
+ void toggledBreakpointEnabled(const TQString &fileName, int lineNum);
};