Engauge Digitizer 2
Loading...
Searching...
No Matches
PointShape.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#include "PointShape.h"
8#include <QObject>
9
11{
13
14 switch (pointShape) {
16 rtn = QObject::tr ("Circle");
17 break;
18
20 rtn = QObject::tr ("Cross");
21 break;
22
24 rtn = QObject::tr ("Diamond");
25 break;
26
28 rtn = QObject::tr ("Hourglass");
29 break;
30
32 rtn = QObject::tr ("Square");
33 break;
34
36 rtn = QObject::tr ("Triangle");
37 break;
38
40 rtn = QObject::tr ("Triangle2");
41 break;
42
43 case POINT_SHAPE_X:
44 rtn = QObject::tr ("X");
45 break;
46 }
47
48 return rtn;
49}
const int INNER_RADIUS_MIN
QString pointShapeToString(PointShape pointShape)
PointShape
Definition PointShape.h:12
@ POINT_SHAPE_X
Definition PointShape.h:18
@ POINT_SHAPE_DIAMOND
Definition PointShape.h:15
@ POINT_SHAPE_CIRCLE
Definition PointShape.h:13
@ POINT_SHAPE_TRIANGLE
Definition PointShape.h:17
@ POINT_SHAPE_TRIANGLE2
Definition PointShape.h:20
@ POINT_SHAPE_HOURGLASS
Definition PointShape.h:19
@ POINT_SHAPE_CROSS
Definition PointShape.h:14
@ POINT_SHAPE_SQUARE
Definition PointShape.h:16