edgeweight.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.2
4  Written in Qt
5  edgeweight.h - description
6  -------------------
7  copyright : (C) 2005-2017 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 EDGEWEIGHT_H
30 #define EDGEWEIGHT_H
31 
32 
33 #include <QGraphicsTextItem>
34 class Edge;
35 
36 static const int TypeEdgeWeight = QGraphicsItem::UserType+5;
37 static const int ZValueEdgeWeight = 80;
38 
39 class EdgeWeight: public QGraphicsTextItem
40 {
41 public:
42  EdgeWeight(Edge * , int, QString);
43  void removeRefs();
44 
45  enum { Type = UserType + 5 };
46  int type() const { return Type; }
47 
48  ~EdgeWeight();
49 private:
50 };
51 
52 #endif
~EdgeWeight()
Definition: edgeweight.cpp:45
static const int TypeEdgeWeight
Definition: edgeweight.h:36
EdgeWeight(Edge *, int, QString)
Definition: edgeweight.cpp:34
Definition: edge.h:54
int type() const
Definition: edgeweight.h:46
Definition: edgeweight.h:45
static const int ZValueEdgeWeight
Definition: edgeweight.h:37
Definition: edgeweight.h:39
void removeRefs()