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 #ifndef EXPORT_DELIMITER_H
8 #define EXPORT_DELIMITER_H
9 
10 #include <QString>
11 
12 /// Delimiter values that may or may not be overridden by DOCUMENT_SERIALIZE_EXPORT_DELIMITER_OVERRIDE_CSV_TSV
13 /// for CSV and TSV files. EXPORT_DELIMITER_SEMICOLON is not in alphabetical order since it was added after the code was released
14 enum ExportDelimiter {
15   EXPORT_DELIMITER_COMMA,
16   EXPORT_DELIMITER_SPACE,
17   EXPORT_DELIMITER_TAB,
18   EXPORT_DELIMITER_SEMICOLON
19 };
20 
21 extern QString exportDelimiterToString (ExportDelimiter exportDelimiter); // Text appearing in logging/debugging
22 extern QString exportDelimiterToText (ExportDelimiter exportDelimiter,
23                                       bool isGnuplotDelimiter); // Text appearing in exported file
24 
25 #endif // EXPORT_DELIMITER_H
26