forked from FLAME-HPC/flame_visualiser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposition.h
More file actions
33 lines (26 loc) · 635 Bytes
/
position.h
File metadata and controls
33 lines (26 loc) · 635 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
/*!
* \file position.h
* \author Simon Coakley
* \date 2012
* \copyright Copyright (c) 2012 University of Sheffield
* \brief Header file for position
*/
#ifndef POSITION_H_
#define POSITION_H_
#include <QMetaType>
#include <QPainter>
class Position {
public:
enum EditMode { Editable, ReadOnly };
Position();
void paint(QPainter *painter, const QRect &rect,
const QPalette &palette, EditMode mode) const;
QString positionVariable;
QString op;
QString opVariable;
double opValue;
bool useOp;
bool useVariable;
};
Q_DECLARE_METATYPE(Position)
#endif // POSITION_H_