-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlabelsizecontroller.h
45 lines (37 loc) · 945 Bytes
/
labelsizecontroller.h
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
38
39
40
41
42
43
44
45
/*
* File: labelsizecontroller.h
* Author: Rachel Bood
* Date: 2014/11/07 (?)
* Version: 1.2
*
* Purpose: Declare the node class.
*
* Modification history:
* Nov 13, 2019 (JD V1.1)
* (a) Rename setEdgeWeightSize() -> setEdgeLabelSize().
* (b) Fix incorrect #ifndef token name.
* June 9, 2020 (IC V1.2)
* (a) Changed QDoubleSpinBox to QSpinBox and Double to Int where applicable.
*/
#ifndef LABELSIZECONTROLLER_H
#define LABELSIZECONTROLLER_H
#include "edge.h"
#include "node.h"
#include <QSpinBox>
#include <QObject>
class LabelSizeController : public QObject
{
Q_OBJECT
public:
LabelSizeController(Edge * anEdge, QSpinBox * aBox);
LabelSizeController(Node * aNode, QSpinBox * aBox);
private slots:
void setEdgeLabelSize(int value);
void setNodeLabelSize(int value);
void deletedSpinBox();
private:
Edge * edge;
Node * node;
QSpinBox * box;
};
#endif // LABELSIZECONTROLLER_H