summaryrefslogtreecommitdiffstats
path: root/kcachegrind/kcachegrind/callgraphview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kcachegrind/kcachegrind/callgraphview.h
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcachegrind/kcachegrind/callgraphview.h')
-rw-r--r--kcachegrind/kcachegrind/callgraphview.h128
1 files changed, 64 insertions, 64 deletions
diff --git a/kcachegrind/kcachegrind/callgraphview.h b/kcachegrind/kcachegrind/callgraphview.h
index 8f154e6c..dcabc0ef 100644
--- a/kcachegrind/kcachegrind/callgraphview.h
+++ b/kcachegrind/kcachegrind/callgraphview.h
@@ -23,10 +23,10 @@
#ifndef CALLGRAPHVIEW_H
#define CALLGRAPHVIEW_H
-#include <qcanvas.h>
-#include <qwidget.h>
-#include <qmap.h>
-#include <qtimer.h>
+#include <tqcanvas.h>
+#include <tqwidget.h>
+#include <tqmap.h>
+#include <tqtimer.h>
#include "treemap.h" // for DrawParams
#include "tracedata.h"
@@ -42,7 +42,7 @@ class CallGraphView;
// sorts according start/end position of a call arc
// this depends on attached CanvasEdge's !
-class GraphEdgeList: public QPtrList<GraphEdge>
+class GraphEdgeList: public TQPtrList<GraphEdge>
{
public:
GraphEdgeList();
@@ -56,7 +56,7 @@ class GraphEdgeList: public QPtrList<GraphEdge>
};
-typedef QMap<GraphEdge*, int> GraphEdgeSet;
+typedef TQMap<GraphEdge*, int> GraphEdgeSet;
// temporary parts of call graph to be shown
class GraphNode
@@ -120,7 +120,7 @@ public:
TraceFunction* to() { return _to; }
// has special cases for collapsed edges
- QString prettyName();
+ TQString prettyName();
void setCaller(TraceFunction* f) { _from = f; }
void setCalling(TraceFunction* f) { _to = f; }
@@ -149,8 +149,8 @@ public:
};
-typedef QMap<TraceFunction*, GraphNode> GraphNodeMap;
-typedef QMap<QPair<TraceFunction*, TraceFunction*>, GraphEdge> GraphEdgeMap;
+typedef TQMap<TraceFunction*, GraphNode> GraphNodeMap;
+typedef TQMap<QPair<TraceFunction*, TraceFunction*>, GraphEdge> GraphEdgeMap;
/* Abstract Interface for graph options */
@@ -169,8 +169,8 @@ class GraphOptions
virtual int detailLevel() = 0;
virtual Layout layout() = 0;
- static QString layoutString(Layout);
- static Layout layout(QString);
+ static TQString layoutString(Layout);
+ static Layout layout(TQString);
};
/* Graph Options Storage */
@@ -220,13 +220,13 @@ class GraphExporter: public StorableGraphOptions
public:
GraphExporter();
GraphExporter(TraceData*, TraceFunction*, TraceCostType*,
- TraceItem::CostType, QString filename = QString::null);
+ TraceItem::CostType, TQString filename = TQString::null);
virtual ~GraphExporter();
void reset(TraceData*, TraceItem*, TraceCostType*,
- TraceItem::CostType, QString filename = QString::null);
+ TraceItem::CostType, TQString filename = TQString::null);
- QString filename() { return _dotName; }
+ TQString filename() { return _dotName; }
int edgeCount() { return _edgeMap.count(); }
int nodeCount() { return _nodeMap.count(); }
@@ -246,7 +246,7 @@ public:
* Don't use the returned pointer directly, but only with
* node() or edge(), because it could be a dangling pointer.
*/
- TraceFunction* toFunc(QString);
+ TraceFunction* toFunc(TQString);
GraphNode* node(TraceFunction*);
GraphEdge* edge(TraceFunction*, TraceFunction*);
@@ -259,7 +259,7 @@ public:
private:
void buildGraph(TraceFunction*, int, bool, double);
- QString _dotName;
+ TQString _dotName;
TraceItem* _item;
TraceCostType* _costType;
TraceItem::CostType _groupType;
@@ -286,23 +286,23 @@ class PannerView: public QCanvasView
Q_OBJECT
public:
- PannerView(QWidget * parent = 0, const char * name = 0);
+ PannerView(TQWidget * parent = 0, const char * name = 0);
- void setZoomRect(QRect r);
+ void setZoomRect(TQRect r);
signals:
void zoomRectMoved(int dx, int dy);
void zoomRectMoveFinished();
protected:
- void contentsMousePressEvent(QMouseEvent*);
- void contentsMouseMoveEvent(QMouseEvent*);
- void contentsMouseReleaseEvent(QMouseEvent*);
- void drawContents(QPainter * p, int clipx, int clipy, int clipw, int cliph);
+ void contentsMousePressEvent(TQMouseEvent*);
+ void contentsMouseMoveEvent(TQMouseEvent*);
+ void contentsMouseReleaseEvent(TQMouseEvent*);
+ void drawContents(TQPainter * p, int clipx, int clipy, int clipw, int cliph);
- QRect _zoomRect;
+ TQRect _zoomRect;
bool _movingZoomRect;
- QPoint _lastPos;
+ TQPoint _lastPos;
};
@@ -321,14 +321,14 @@ enum {
CANVAS_FRAME
};
-class CanvasNode: public QCanvasRectangle, public StoredDrawParams
+class CanvasNode: public TQCanvasRectangle, public StoredDrawParams
{
public:
- CanvasNode(CallGraphView*,GraphNode*, int, int, int, int, QCanvas*);
+ CanvasNode(CallGraphView*,GraphNode*, int, int, int, int, TQCanvas*);
void updateGroup();
void setSelected(bool);
- void drawShape(QPainter&);
+ void drawShape(TQPainter&);
GraphNode* node() { return _node; }
int rtti() const { return CANVAS_NODE; }
@@ -338,12 +338,12 @@ private:
CallGraphView* _view;
};
-class CanvasEdgeLabel: public QCanvasRectangle, public StoredDrawParams
+class CanvasEdgeLabel: public TQCanvasRectangle, public StoredDrawParams
{
public:
- CanvasEdgeLabel(CallGraphView*, CanvasEdge*, int, int, int, int, QCanvas*);
+ CanvasEdgeLabel(CallGraphView*, CanvasEdge*, int, int, int, int, TQCanvas*);
- void drawShape(QPainter&);
+ void drawShape(TQPainter&);
CanvasEdge* canvasEdge() { return _ce; }
int rtti() const { return CANVAS_EDGELABEL; }
@@ -356,9 +356,9 @@ private:
class CanvasEdgeArrow: public QCanvasPolygon
{
public:
- CanvasEdgeArrow(CanvasEdge*, QCanvas*);
+ CanvasEdgeArrow(CanvasEdge*, TQCanvas*);
- void drawShape(QPainter&);
+ void drawShape(TQPainter&);
CanvasEdge* canvasEdge() { return _ce; }
int rtti() const { return CANVAS_EDGEARROW; }
@@ -371,11 +371,11 @@ private:
class CanvasEdge: public QCanvasSpline
{
public:
- CanvasEdge(GraphEdge*, QCanvas*);
+ CanvasEdge(GraphEdge*, TQCanvas*);
void setSelected(bool);
- void drawShape(QPainter&);
- QPointArray areaPoints() const;
+ void drawShape(TQPainter&);
+ TQPointArray areaPoints() const;
CanvasEdgeLabel* label() { return _label; }
void setLabel(CanvasEdgeLabel* l) { _label = l; }
@@ -395,13 +395,13 @@ private:
class CanvasFrame: public QCanvasRectangle
{
public:
- CanvasFrame( CanvasNode*, QCanvas *canvas );
+ CanvasFrame( CanvasNode*, TQCanvas *canvas );
int rtti () const { return CANVAS_FRAME; }
- bool hit( const QPoint&) const { return false; }
+ bool hit( const TQPoint&) const { return false; }
protected:
- void drawShape( QPainter & );
+ void drawShape( TQPainter & );
private:
- static QPixmap* _p;
+ static TQPixmap* _p;
};
@@ -412,7 +412,7 @@ class CallGraphTip;
* and another zoomed out CanvasView in a border acting as
* a panner to select to visible part (only if needed)
*/
-class CallGraphView: public QCanvasView, public TraceItemView,
+class CallGraphView: public TQCanvasView, public TraceItemView,
public StorableGraphOptions
{
Q_OBJECT
@@ -421,18 +421,18 @@ public:
enum ZoomPosition { TopLeft, TopRight, BottomLeft, BottomRight, Auto };
CallGraphView(TraceItemView* parentView,
- QWidget* parent=0, const char* name=0);
+ TQWidget* parent=0, const char* name=0);
~CallGraphView();
- void readViewConfig(KConfig*, QString prefix, QString postfix, bool);
- void saveViewConfig(KConfig*, QString prefix, QString postfix, bool);
+ void readViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
+ void saveViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
- QWidget* widget() { return this; }
- QString whatsThis() const;
+ TQWidget* widget() { return this; }
+ TQString whatsThis() const;
ZoomPosition zoomPos() const { return _zoomPosition; }
- static ZoomPosition zoomPos(QString);
- static QString zoomPosString(ZoomPosition);
+ static ZoomPosition zoomPos(TQString);
+ static TQString zoomPosString(ZoomPosition);
public slots:
void contentsMovingSlot(int,int);
@@ -445,26 +445,26 @@ public slots:
void dotExited();
protected:
- void resizeEvent(QResizeEvent*);
- void contentsMousePressEvent(QMouseEvent*);
- void contentsMouseMoveEvent(QMouseEvent*);
- void contentsMouseReleaseEvent(QMouseEvent*);
- void contentsMouseDoubleClickEvent(QMouseEvent*);
- void contentsContextMenuEvent(QContextMenuEvent*);
- void keyPressEvent(QKeyEvent*);
- void focusInEvent(QFocusEvent*);
- void focusOutEvent(QFocusEvent*);
+ void resizeEvent(TQResizeEvent*);
+ void contentsMousePressEvent(TQMouseEvent*);
+ void contentsMouseMoveEvent(TQMouseEvent*);
+ void contentsMouseReleaseEvent(TQMouseEvent*);
+ void contentsMouseDoubleClickEvent(TQMouseEvent*);
+ void contentsContextMenuEvent(TQContextMenuEvent*);
+ void keyPressEvent(TQKeyEvent*);
+ void focusInEvent(TQFocusEvent*);
+ void focusOutEvent(TQFocusEvent*);
private:
- void updateSizes(QSize s = QSize(0,0));
+ void updateSizes(TQSize s = TQSize(0,0));
TraceItem* canShow(TraceItem*);
void doUpdate(int);
void refresh();
void makeFrame(CanvasNode*, bool active);
void clear();
- void showText(QString);
+ void showText(TQString);
- QCanvas *_canvas;
+ TQCanvas *_canvas;
int _xMargin, _yMargin;
PannerView *_completeView;
double _cvZoom;
@@ -472,7 +472,7 @@ private:
CallGraphTip* _tip;
bool _isMoving;
- QPoint _lastPos;
+ TQPoint _lastPos;
GraphExporter _exporter;
@@ -483,11 +483,11 @@ private:
ZoomPosition _zoomPosition, _lastAutoPosition;
// background rendering
- QProcess* _renderProcess;
- QTimer _renderTimer;
+ TQProcess* _renderProcess;
+ TQTimer _renderTimer;
GraphNode* _prevSelectedNode;
- QPoint _prevSelectedPos;
- QString _unparsedOutput;
+ TQPoint _prevSelectedPos;
+ TQString _unparsedOutput;
};