Engauge Digitizer 2
Loading...
Searching...
No Matches
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
10QString curveConnectAsToString (CurveConnectAs curveConnectAs)
11{
12 switch (curveConnectAs) {
13
14 case CONNECT_AS_FUNCTION_SMOOTH:
15 return QObject::tr ("FunctionSmooth");
16
17 case CONNECT_AS_FUNCTION_STRAIGHT:
18 return QObject::tr ("FunctionStraight");
19
20 case CONNECT_AS_RELATION_SMOOTH:
21 return QObject::tr ("RelationSmooth");
22
23 case CONNECT_AS_RELATION_STRAIGHT:
24 return QObject::tr ("RelationStraight");
25
26 case CONNECT_SKIP_FOR_AXIS_CURVE:
27 return QObject::tr ("ConnectSkipForAxisCurve");
28
29 default:
30 return QObject::tr ("Unknown");
31 }
32}