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