Engauge Digitizer 2
Loading...
Searching...
No Matches
PointShape.h File Reference
#include <QString>
Include dependency graph for PointShape.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  PointShape {
  POINT_SHAPE_CIRCLE , POINT_SHAPE_CROSS , POINT_SHAPE_DIAMOND , POINT_SHAPE_SQUARE ,
  POINT_SHAPE_TRIANGLE , POINT_SHAPE_X , POINT_SHAPE_HOURGLASS , POINT_SHAPE_TRIANGLE2
}

Functions

QString pointShapeToString (PointShape pointShape)

Enumeration Type Documentation

◆ PointShape

enum PointShape
Enumerator
POINT_SHAPE_CIRCLE 
POINT_SHAPE_CROSS 
POINT_SHAPE_DIAMOND 
POINT_SHAPE_SQUARE 
POINT_SHAPE_TRIANGLE 
POINT_SHAPE_X 
POINT_SHAPE_HOURGLASS 
POINT_SHAPE_TRIANGLE2 

Definition at line 12 of file PointShape.h.

12 {
21};
@ 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

Function Documentation

◆ pointShapeToString()

QString pointShapeToString ( PointShape pointShape)
extern

Definition at line 10 of file PointShape.cpp.

11{
12 QString rtn;
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}