Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
10 QString pointShapeToString (PointShape pointShape)
11 {
12  QString rtn;
13 
14  switch (pointShape) {
15  case POINT_SHAPE_CIRCLE:
16  rtn = QObject::tr ("Circle");
17  break;
18 
19  case POINT_SHAPE_CROSS:
20  rtn = QObject::tr ("Cross");
21  break;
22 
24  rtn = QObject::tr ("Diamond");
25  break;
26 
28  rtn = QObject::tr ("Hourglass");
29  break;
30 
31  case POINT_SHAPE_SQUARE:
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 }
PointShape
Definition: PointShape.h:12
QString pointShapeToString(PointShape pointShape)
Definition: PointShape.cpp:10