File indexing completed on 2024-05-19 15:27:46

0001 /* This file is part of KGraphViewer.
0002    Copyright (C) 2005-2007 Gael de Chalendar <kleag@free.fr>
0003 
0004    KGraphViewer is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU General Public
0006    License as published by the Free Software Foundation, version 2.
0007 
0008    This program is distributed in the hope that it will be useful,
0009    but WITHOUT ANY WARRANTY; without even the implied warranty of
0010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0011    General Public License for more details.
0012 
0013    You should have received a copy of the GNU General Public License
0014    along with this program; if not, write to the Free Software
0015    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
0016    02110-1301, USA
0017 */
0018 
0019 /* This file was callgraphview.h, part of KCachegrind.
0020    Copyright (C) 2003 Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
0021 
0022    KCachegrind is free software; you can redistribute it and/or
0023    modify it under the terms of the GNU General Public
0024    License as published by the Free Software Foundation, version 2.
0025 */
0026 
0027 /*
0028  * Canvas Node (graph node view)
0029  */
0030 
0031 #ifndef CANVAS_NODE_H
0032 #define CANVAS_NODE_H
0033 
0034 #include "canvaselement.h"
0035 
0036 namespace KGraphViewer
0037 {
0038 class GraphNode;
0039 
0040 class CanvasNode : public CanvasElement
0041 {
0042     Q_OBJECT
0043 public:
0044     CanvasNode(DotGraphView *v, GraphNode *s, QGraphicsScene *c, QGraphicsItem *parent = nullptr);
0045 
0046     ~CanvasNode() override
0047     {
0048     }
0049 };
0050 
0051 // class CanvasHtmlNode: public KHTMLPart, public CanvasNode
0052 // {
0053 //   Q_OBJECT
0054 // public:
0055 //   CanvasHtmlNode(
0056 //                      DotGraphView* v,
0057 //                      GraphNode* n,
0058 //                      const DotRenderOp& dro,
0059 //                      const DotRenderOpVec& dros,
0060 //                      QGraphicsScene* c,
0061 //                      double scaleX, double scaleY, int xMargin, int yMargin, int gh,
0062 //                      int wdhcf, int hdvcf);
0063 //   virtual ~CanvasHtmlNode();
0064 //
0065 //   QRect rect() {return view()->contentsRect();}
0066 //
0067 // protected:
0068 // //   virtual void paint(QPainter&);
0069 //
0070 // public Q_SLOTS:
0071 //   void move(int x, int y);
0072 //   void zoomed(double factor);
0073 //
0074 // private:
0075 //   double m_zoomFactor;
0076 //   int m_xMovedTo, m_yMovedTo;
0077 // };
0078 
0079 }
0080 #endif