diff options
Diffstat (limited to 'src/svnfrontend/graphtree/revgraphview.h')
-rw-r--r-- | src/svnfrontend/graphtree/revgraphview.h | 71 |
1 files changed, 36 insertions, 35 deletions
diff --git a/src/svnfrontend/graphtree/revgraphview.h b/src/svnfrontend/graphtree/revgraphview.h index 039bc4b..dcfc007 100644 --- a/src/svnfrontend/graphtree/revgraphview.h +++ b/src/svnfrontend/graphtree/revgraphview.h @@ -22,7 +22,7 @@ #include <svnqt/revision.hpp> -#include <qcanvas.h> +#include <tqcanvas.h> namespace svn { class LogEntry; @@ -41,18 +41,19 @@ class CContextListener; /** @author Rajko Albrecht <ral@alwins-world.de> */ -class RevGraphView : public QCanvasView +class RevGraphView : public TQCanvasView { Q_OBJECT + TQ_OBJECT public: enum ZoomPosition { TopLeft, TopRight, BottomLeft, BottomRight, Auto }; /* avoid large copy operations */ friend class RevisionTree; - RevGraphView(QObject*,svn::Client*,QWidget * parent = 0, const char * name = 0, WFlags f = 0); + RevGraphView(TQObject*,svn::Client*,TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0); virtual ~RevGraphView(); - void showText(const QString&s); + void showText(const TQString&s); void clear(); void beginInsert(); @@ -60,63 +61,63 @@ public: struct targetData { char Action; - QString key; - targetData(const QString&n,char _a) + TQString key; + targetData(const TQString&n,char _a) { key = n; Action = _a; } targetData(){Action=0;key="";} }; - typedef QValueList<targetData> tlist; + typedef TQValueList<targetData> tlist; struct keyData { - QString name,Author,Date,Message; + TQString name,Author,Date,Message; long rev; char Action; tlist targets; }; - typedef QMap<QString,keyData> trevTree; + typedef TQMap<TQString,keyData> trevTree; - QString toolTip(const QString&nodename,bool full=false)const; + TQString toolTip(const TQString&nodename,bool full=false)const; - void setBasePath(const QString&); + void setBasePath(const TQString&); void dumpRevtree(); signals: - void dispDetails(const QString&); - void makeCat(const svn::Revision&,const QString&,const QString&,const svn::Revision&,QWidget*); - void makeNorecDiff(const QString&,const svn::Revision&,const QString&,const svn::Revision&,QWidget*); - void makeRecDiff(const QString&,const svn::Revision&,const QString&,const svn::Revision&,QWidget*); + void dispDetails(const TQString&); + void makeCat(const svn::Revision&,const TQString&,const TQString&,const svn::Revision&,TQWidget*); + void makeNorecDiff(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&,TQWidget*); + void makeRecDiff(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&,TQWidget*); public slots: virtual void contentsMovingSlot(int,int); virtual void zoomRectMoved(int,int); virtual void zoomRectMoveFinished(); - virtual void slotClientException(const QString&what); + virtual void slotClientException(const TQString&what); protected slots: virtual void readDotOutput(KProcess * proc,char * buffer,int buflen); virtual void dotExit(KProcess*); protected: - QCanvas*m_Canvas; + TQCanvas*m_Canvas; GraphMark*m_Marker; svn::Client*m_Client; GraphTreeLabel*m_Selected; - QObject*m_Listener; + TQObject*m_Listener; KTempFile*dotTmpFile; - QString dotOutput; + TQString dotOutput; KProcess*renderProcess; trevTree m_Tree; - QColor getBgColor(const QString&nodeName)const; - bool isStart(const QString&nodeName)const; - char getAction(const QString&)const; - const QString&getLabelstring(const QString&nodeName); + TQColor getBgColor(const TQString&nodeName)const; + bool isStart(const TQString&nodeName)const; + char getAction(const TQString&)const; + const TQString&getLabelstring(const TQString&nodeName); - QMap<QString,GraphTreeLabel*> m_NodeList; - QMap<QString,QString> m_LabelMap; + TQMap<TQString,GraphTreeLabel*> m_NodeList; + TQMap<TQString,TQString> m_LabelMap; int _xMargin,_yMargin; GraphViewTip*m_Tip; @@ -124,26 +125,26 @@ protected: double _cvZoom; ZoomPosition m_LastAutoPosition; - virtual void resizeEvent(QResizeEvent*); - virtual void contentsMousePressEvent ( QMouseEvent * e ); - virtual void contentsMouseReleaseEvent ( QMouseEvent * e ); - virtual void contentsMouseMoveEvent ( QMouseEvent*e); - virtual void contentsContextMenuEvent(QContextMenuEvent*e); - virtual void contentsMouseDoubleClickEvent ( QMouseEvent * e ); + virtual void resizeEvent(TQResizeEvent*); + virtual void contentsMousePressEvent ( TQMouseEvent * e ); + virtual void contentsMouseReleaseEvent ( TQMouseEvent * e ); + virtual void contentsMouseMoveEvent ( TQMouseEvent*e); + virtual void contentsContextMenuEvent(TQContextMenuEvent*e); + virtual void contentsMouseDoubleClickEvent ( TQMouseEvent * e ); bool _isMoving; - QPoint _lastPos; + TQPoint _lastPos; bool _noUpdateZoomerPos; - QString _basePath; + TQString _basePath; private: - void updateSizes(QSize s = QSize(0,0)); + void updateSizes(TQSize s = TQSize(0,0)); void updateZoomerPos(); void setNewDirection(int dir); void makeDiffPrev(GraphTreeLabel*); - void makeDiff(const QString&,const QString&); + void makeDiff(const TQString&,const TQString&); void makeSelected(GraphTreeLabel*); void makeCat(GraphTreeLabel*_l); }; |