-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode.h
More file actions
37 lines (29 loc) · 686 Bytes
/
node.h
File metadata and controls
37 lines (29 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef NODE_H
#define NODE_H
#include <QGraphicsObject>
#include <QGraphicsEllipseItem>
#include <QGraphicsSimpleTextItem>
#include <QPen>
#include <QFont>
#include <gvc.h>
#include <types.h>
#include "element.h"
class Graph;
class Node : public Element
{
Q_OBJECT
public:
explicit Node(Agnode_t *v, Graph* graph, QGraphicsItem *parent = 0);
~Node();
virtual void hide();
signals:
public slots:
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
private:
Agnode_t* _gv_node;
QGraphicsSimpleTextItem* _label;
friend class Graph;
};
#endif // NODE_H