Seamly2D
Code documentation
commandoptions.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * *
3  * Copyright (C) 2017 Seamly, LLC *
4  * *
5  * https://github.com/fashionfreedom/seamly2d *
6  * *
7  ***************************************************************************
8  **
9  ** Seamly2D is free software: you can redistribute it and/or modify
10  ** it under the terms of the GNU General Public License as published by
11  ** the Free Software Foundation, either version 3 of the License, or
12  ** (at your option) any later version.
13  **
14  ** Seamly2D is distributed in the hope that it will be useful,
15  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  ** GNU General Public License for more details.
18  **
19  ** You should have received a copy of the GNU General Public License
20  ** along with Seamly2D. If not, see <http://www.gnu.org/licenses/>.
21  **
22  **************************************************************************
23 
24  ************************************************************************
25  **
26  ** @file commandoptions.cpp
27  ** @author Roman Telezhynskyi <dismine(at)gmail.com>
28  ** @date 9 11, 2015
29  **
30  ** @brief
31  ** @copyright
32  ** This source code is part of the Valentine project, a pattern making
33  ** program, whose allow create and modeling patterns of clothing.
34  ** Copyright (C) 2015 Seamly2D project
35  ** <https://github.com/fashionfreedom/seamly2d> All Rights Reserved.
36  **
37  ** Seamly2D is free software: you can redistribute it and/or modify
38  ** it under the terms of the GNU General Public License as published by
39  ** the Free Software Foundation, either version 3 of the License, or
40  ** (at your option) any later version.
41  **
42  ** Seamly2D is distributed in the hope that it will be useful,
43  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
44  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45  ** GNU General Public License for more details.
46  **
47  ** You should have received a copy of the GNU General Public License
48  ** along with Seamly2D. If not, see <http://www.gnu.org/licenses/>.
49  **
50  *************************************************************************/
51 
52 #include "commandoptions.h"
53 #include "def.h"
54 
55 #include <QStaticStringData>
56 #include <QStringData>
57 #include <QStringDataPtr>
58 #include <QStringList>
59 
60 const QString LONG_OPTION_BASENAME = QStringLiteral("basename");
61 const QString SINGLE_OPTION_BASENAME = QStringLiteral("b");
62 
63 const QString LONG_OPTION_DESTINATION = QStringLiteral("destination");
64 const QString SINGLE_OPTION_DESTINATION = QStringLiteral("d");
65 
66 const QString LONG_OPTION_MEASUREFILE = QStringLiteral("mfile");
67 const QString SINGLE_OPTION_MEASUREFILE = QStringLiteral("m");
68 
69 const QString LONG_OPTION_PAGETEMPLATE = QStringLiteral("pageformat");
70 const QString SINGLE_OPTION_PAGETEMPLATE = QStringLiteral("p");
71 
72 const QString LONG_OPTION_EXP2FORMAT = QStringLiteral("format");
73 const QString SINGLE_OPTION_EXP2FORMAT = QStringLiteral("f");
74 
75 const QString LONG_OPTION_BINARYDXF = QStringLiteral("bdxf");
76 const QString LONG_OPTION_TEXT2PATHS = QStringLiteral("text2paths");
77 const QString LONG_OPTION_EXPORTONLYDETAILS = QStringLiteral("exportOnlyDetails");
78 
79 const QString LONG_OPTION_ROTATE = QStringLiteral("rotate");
80 const QString SINGLE_OPTION_ROTATE = QStringLiteral("r");
81 
82 const QString LONG_OPTION_CROP = QStringLiteral("crop");
83 const QString SINGLE_OPTION_CROP = QStringLiteral("c");
84 
85 const QString LONG_OPTION_UNITE = QStringLiteral("unite");
86 const QString SINGLE_OPTION_UNITE = QStringLiteral("u");
87 
88 const QString LONG_OPTION_PAGEW = QStringLiteral("pagew");
89 const QString SINGLE_OPTION_PAGEW = QStringLiteral("W");
90 
91 const QString LONG_OPTION_PAGEH = QStringLiteral("pageh");
92 const QString SINGLE_OPTION_PAGEH = QStringLiteral("H");
93 
94 const QString LONG_OPTION_PAGEUNITS = QStringLiteral("pageunits");
95 const QString SINGLE_OPTION_PAGEUNITS = QStringLiteral("U");
96 
97 const QString LONG_OPTION_SAVELENGTH = QStringLiteral("savelen");
98 const QString SINGLE_OPTION_SAVELENGTH = QStringLiteral("S");
99 
100 const QString LONG_OPTION_SHIFTLENGTH = QStringLiteral("shiftlen");
101 const QString SINGLE_OPTION_SHIFTLENGTH = QStringLiteral("s");
102 
103 const QString LONG_OPTION_SHIFTUNITS = QStringLiteral("layounits");
104 const QString SINGLE_OPTION_SHIFTUNITS = QStringLiteral("l");
105 
106 const QString LONG_OPTION_GAPWIDTH = QStringLiteral("gapwidth");
107 const QString SINGLE_OPTION_GAPWIDTH = QStringLiteral("G");
108 
109 const QString LONG_OPTION_GROUPPING = QStringLiteral("groups");
110 const QString SINGLE_OPTION_GROUPPING = QStringLiteral("g");
111 
112 const QString LONG_OPTION_TEST = QStringLiteral("test");
113 const QString SINGLE_OPTION_TEST = QStringLiteral("t");
114 
115 const QString LONG_OPTION_GRADATIONSIZE = QStringLiteral("gsize");
116 const QString SINGLE_OPTION_GRADATIONSIZE = QStringLiteral("x");
117 
118 const QString LONG_OPTION_GRADATIONHEIGHT = QStringLiteral("gheight");
119 const QString SINGLE_OPTION_GRADATIONHEIGHT = QStringLiteral("e");
120 
121 const QString LONG_OPTION_IGNORE_MARGINS = QStringLiteral("ignoremargins");
122 const QString SINGLE_OPTION_IGNORE_MARGINS = QStringLiteral("i");
123 
124 const QString LONG_OPTION_LEFT_MARGIN = QStringLiteral("lmargin");
125 const QString SINGLE_OPTION_LEFT_MARGIN = QStringLiteral("L");
126 
127 const QString LONG_OPTION_RIGHT_MARGIN = QStringLiteral("rmargin");
128 const QString SINGLE_OPTION_RIGHT_MARGIN = QStringLiteral("R");
129 
130 const QString LONG_OPTION_TOP_MARGIN = QStringLiteral("tmargin");
131 const QString SINGLE_OPTION_TOP_MARGIN = QStringLiteral("T");
132 
133 const QString LONG_OPTION_BOTTOM_MARGIN = QStringLiteral("bmargin");
134 const QString SINGLE_OPTION_BOTTOM_MARGIN = QStringLiteral("B");
135 
136 //---------------------------------------------------------------------------------------------------------------------
137 QStringList AllKeys()
138 {
139  QStringList list;
166 
167  return list;
168 }
const QString SINGLE_OPTION_LEFT_MARGIN
const QString LONG_OPTION_PAGEH
const QString LONG_OPTION_EXP2FORMAT
const QString LONG_OPTION_LEFT_MARGIN
const QString LONG_OPTION_RIGHT_MARGIN
const QString SINGLE_OPTION_ROTATE
const QString SINGLE_OPTION_BASENAME
const QString SINGLE_OPTION_GAPWIDTH
const QString SINGLE_OPTION_RIGHT_MARGIN
const QString LONG_OPTION_GROUPPING
const QString SINGLE_OPTION_EXP2FORMAT
const QString LONG_OPTION_SAVELENGTH
const QString SINGLE_OPTION_CROP
const QString SINGLE_OPTION_SAVELENGTH
const QString LONG_OPTION_TEST
const QString SINGLE_OPTION_PAGEH
const QString SINGLE_OPTION_SHIFTUNITS
const QString LONG_OPTION_BINARYDXF
const QString LONG_OPTION_TOP_MARGIN
const QString SINGLE_OPTION_PAGEW
const QString SINGLE_OPTION_BOTTOM_MARGIN
const QString SINGLE_OPTION_PAGETEMPLATE
const QString LONG_OPTION_BOTTOM_MARGIN
const QString LONG_OPTION_EXPORTONLYDETAILS
const QString LONG_OPTION_BASENAME
const QString LONG_OPTION_PAGETEMPLATE
const QString SINGLE_OPTION_TOP_MARGIN
const QString LONG_OPTION_CROP
const QString LONG_OPTION_PAGEUNITS
const QString LONG_OPTION_ROTATE
QStringList AllKeys()
const QString LONG_OPTION_SHIFTUNITS
const QString LONG_OPTION_GRADATIONSIZE
const QString LONG_OPTION_GAPWIDTH
const QString LONG_OPTION_SHIFTLENGTH
const QString SINGLE_OPTION_GROUPPING
const QString SINGLE_OPTION_UNITE
const QString LONG_OPTION_UNITE
const QString SINGLE_OPTION_IGNORE_MARGINS
const QString SINGLE_OPTION_TEST
const QString SINGLE_OPTION_PAGEUNITS
const QString LONG_OPTION_GRADATIONHEIGHT
const QString SINGLE_OPTION_GRADATIONHEIGHT
const QString LONG_OPTION_MEASUREFILE
const QString SINGLE_OPTION_DESTINATION
const QString LONG_OPTION_TEXT2PATHS
const QString LONG_OPTION_IGNORE_MARGINS
const QString SINGLE_OPTION_GRADATIONSIZE
const QString LONG_OPTION_DESTINATION
const QString SINGLE_OPTION_MEASUREFILE
const QString LONG_OPTION_PAGEW
const QString SINGLE_OPTION_SHIFTLENGTH
const QString LONG_OPTION_NO_HDPI_SCALING
Definition: def.cpp:535