graphicsedgeweight.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5  graphicsedgeweight.h - description
6  -------------------
7  copyright : (C) 2005-2023 by Dimitris B. Kalamaras
8  project site : https://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 #ifndef GRAPHICSEDGEWEIGHT_H
28 #define GRAPHICSEDGEWEIGHT_H
29 
30 
31 #include <QGraphicsTextItem>
32 class GraphicsEdge;
33 
34 static const int TypeEdgeWeight = QGraphicsItem::UserType+5;
35 static const int ZValueEdgeWeight = 80;
36 
37 class GraphicsEdgeWeight: public QGraphicsTextItem
38 {
39 public:
40  GraphicsEdgeWeight(GraphicsEdge * , int, QString);
41  void removeRefs();
42 
43  enum { Type = UserType + 5 };
44  int type() const { return Type; }
45 
47 private:
48 };
49 
50 #endif
Definition: graphicsedgeweight.h:38
~GraphicsEdgeWeight()
Definition: graphicsedgeweight.cpp:46
@ Type
Definition: graphicsedgeweight.h:43
GraphicsEdgeWeight(GraphicsEdge *, int, QString)
Definition: graphicsedgeweight.cpp:35
int type() const
Definition: graphicsedgeweight.h:44
Definition: graphicsedge.h:60
static const int ZValueEdgeWeight
Definition: graphicsedgeweight.h:35
static const int TypeEdgeWeight
Definition: graphicsedgeweight.h:34