graphicsedgeweight.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.5
4  Written in Qt
5  graphicsedgeweight.h - description
6  -------------------
7  copyright : (C) 2005-2018 by Dimitris B. Kalamaras
8  project site : http://socnetv.org
9 
10  ***************************************************************************/
11 
12 /*******************************************************************************
13 * This program is free software: you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation, either version 3 of the License, or *
16 * (at your option) any later version. *
17 * *
18 * This program is distributed in the hope that it will be useful, *
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21 * GNU General Public License for more details. *
22 * *
23 * You should have received a copy of the GNU General Public License *
24 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
25 ********************************************************************************/
26 
27 
28 
29 #ifndef GRAPHICSEDGEWEIGHT_H
30 #define GRAPHICSEDGEWEIGHT_H
31 
32 
33 #include <QGraphicsTextItem>
34 class GraphicsEdge;
35 
36 static const int TypeEdgeWeight = QGraphicsItem::UserType+5;
37 static const int ZValueEdgeWeight = 80;
38 
39 class GraphicsEdgeWeight: public QGraphicsTextItem
40 {
41 public:
42  GraphicsEdgeWeight(GraphicsEdge * , int, QString);
43  void removeRefs();
44 
45  enum { Type = UserType + 5 };
46  int type() const { return Type; }
47 
49 private:
50 };
51 
52 #endif
GraphicsEdgeWeight(GraphicsEdge *, int, QString)
Definition: graphicsedgeweight.cpp:34
int type() const
Definition: graphicsedgeweight.h:46
static const int ZValueEdgeWeight
Definition: graphicsedgeweight.h:37
Definition: graphicsedge.h:58
Definition: graphicsedgeweight.h:45
~GraphicsEdgeWeight()
Definition: graphicsedgeweight.cpp:45
Definition: graphicsedgeweight.h:39
static const int TypeEdgeWeight
Definition: graphicsedgeweight.h:36