Engauge Digitizer  2
 All Classes Functions Variables Typedefs Enumerations Friends Pages
CurveConnectAs.cpp
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 "CurveConnectAs.h"
8 #include <QObject>
9 
10 QString curveConnectAsToString (CurveConnectAs curveConnectAs)
11 {
12  QString rtn;
13 
14  switch (curveConnectAs) {
15 
16  case CONNECT_AS_FUNCTION_SMOOTH:
17  rtn = QObject::tr ("FunctionSmooth");
18  break;
19 
20  case CONNECT_AS_FUNCTION_STRAIGHT:
21  rtn = QObject::tr ("FunctionStraight");
22  break;
23 
24  case CONNECT_AS_RELATION_SMOOTH:
25  rtn = QObject::tr ("RelationSmooth");
26  break;
27 
28  case CONNECT_AS_RELATION_STRAIGHT:
29  rtn = QObject::tr ("RelationStraight");
30  break;
31 
32  case CONNECT_SKIP_FOR_AXIS_CURVE:
33  rtn = QObject::tr ("ConnectSkipForAxisCurve");
34  break;
35  }
36 
37  return rtn;
38 }