Engauge Digitizer  2
ExportPointsIntervalUnits.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 "ExportPointsIntervalUnits.h"
8 #include <QObject>
9 
10 QString exportPointsIntervalUnitsToString (ExportPointsIntervalUnits exportPointsIntervalUnits)
11 {
12  switch (exportPointsIntervalUnits) {
13  case EXPORT_POINTS_INTERVAL_UNITS_GRAPH:
14  return QObject::tr ("Graph Units");
15 
16  case EXPORT_POINTS_INTERVAL_UNITS_SCREEN:
17  return QObject::tr ("Pixels");
18 
19  default:
20  return QObject::tr ("Unknown");
21  }
22 }