Engauge Digitizer 2
Loading...
Searching...
No Matches
CurveConnectAs.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 "CurveConnectAs.h"
8#include <QObject>
9
10QString curveConnectAsToString (CurveConnectAs curveConnectAs)
11{
12 QString rtn;
13
14 switch (curveConnectAs) {
15
17 rtn = QObject::tr ("FunctionSmooth");
18 break;
19
21 rtn = QObject::tr ("FunctionStraight");
22 break;
23
25 rtn = QObject::tr ("RelationSmooth");
26 break;
27
29 rtn = QObject::tr ("RelationStraight");
30 break;
31
33 rtn = QObject::tr ("ConnectSkipForAxisCurve");
34 break;
35 }
36
37 return rtn;
38}
QString curveConnectAsToString(CurveConnectAs curveConnectAs)
CurveConnectAs
@ CONNECT_AS_FUNCTION_STRAIGHT
@ CONNECT_AS_RELATION_STRAIGHT
@ CONNECT_AS_RELATION_SMOOTH
@ CONNECT_SKIP_FOR_AXIS_CURVE
@ CONNECT_AS_FUNCTION_SMOOTH