64 #include <QStaticStringData>
65 #include <QStringData>
66 #include <QStringDataPtr>
68 #include "../vmisc/diagnostic.h"
73 const QString
AttrType = QStringLiteral(
"type");
74 const QString
AttrMx = QStringLiteral(
"mx");
75 const QString
AttrMy = QStringLiteral(
"my");
76 const QString
AttrName = QStringLiteral(
"name");
77 const QString
AttrMx1 = QStringLiteral(
"mx1");
78 const QString
AttrMy1 = QStringLiteral(
"my1");
80 const QString
AttrMx2 = QStringLiteral(
"mx2");
81 const QString
AttrMy2 = QStringLiteral(
"my2");
88 const QString
AttrX = QStringLiteral(
"x");
89 const QString
AttrY = QStringLiteral(
"y");
93 const QString
AttrCut = QStringLiteral(
"cut");
146 const QString
AttrArc = QStringLiteral(
"arc");
185 const QStringList lineTypes =
LineTypes();
186 switch (lineTypes.indexOf(lineType))
195 return Qt::DashDotLine;
197 return Qt::DashDotDotLine;
199 return Qt::SolidLine;
207 QT_WARNING_DISABLE_GCC(
"-Wswitch-default")
217 case Qt::DashDotLine:
219 case Qt::DashDotDotLine:
243 const QStringList lineTypeNames =
LineTypes();
244 for (
int i = 0; i < lineTypeNames.size(); ++i)
250 name = QObject::tr(
"Solidline");
253 name = QObject::tr(
"Dash");
256 name = QObject::tr(
"Dot");
259 name = QObject::tr(
"Dash Dot");
262 name = QObject::tr(
"Dash Dot Dot");
266 name = QObject::tr(
"No Pen");
270 map.insert(lineTypeNames.at(i), name);
280 const QStringList lineWeights = QStringList() <<
"0" <<
"0.05" <<
"0.09" <<
"0.13" <<
"0.15" <<
"0.18"
281 <<
"0.2" <<
"0.25" <<
"0.3" <<
"0.35" <<
"0.4" <<
"0.5"
282 <<
"0.53" <<
"0.6" <<
"0.7" <<
"0.8" <<
"0.9" <<
"1"
283 <<
"1.06" <<
"1.2" <<
"1.4" <<
"1.58" <<
"2" <<
"2.11";
285 for (
int i = 0; i < lineWeights.size(); ++i)
297 name =
"0.13mm (ISO)";
303 name =
"0.18mm (ISO)";
309 name =
"0.25mm (ISO)";
315 name =
"0.35mm (ISO)";
321 name =
"0.50mm (ISO)";
330 name =
"0.70mm (ISO)";
339 name =
"1.00mm (ISO)";
348 name =
"1.40mm (ISO)";
354 name =
"2.00mm (ISO)";
365 map.insert(lineWeights.at(i), name);
395 const QString
FillNone = QStringLiteral(
"nobrush");
396 const QString
FillSolid = QStringLiteral(
"solidpattern");
406 const QString
FillCross = QStringLiteral(
"crosspattern");
414 const QString
line_ = QStringLiteral(
"Line_");
419 const QString
splPath = QStringLiteral(
"SplPath");
440 const QString
seg_ = QStringLiteral(
"Seg_");
const QString ColorDarkRed
const QString ColorDarkGray
const QString AttrBasePoint
const QString ColorCornFlowerBlue
const QString CustomMSign
const QString AttrC1Radius
const QString LineTypeByGroup
const QString CustomIncrSign
const QString AttrDuplicate
const QString angle1ElArc_
const QString angle1SplPath
const QString ColorLightGray
const QString AttrPShoulder
const QString radius2ElArc_
const QString c1LengthSpl_
const QString AttrLineType
const QString AttrBaseLineP1
const QString AttrSecondPoint
const QString AttrC2Radius
const QString FilldDiagonalCross
const QString FillBackwardDiagonal
const QString LineTypeSolidLine
const QString AttrFirstPoint
const QString AttrLineWeight
const QString AttrP1Line1
const QString AttrPSpline
const QString ColorMediumSeaGreen
const QString AttrShowPointName2
const QString ColorYellow
const QString AttrPenStyle
const QString AttrSecondArc
const QString AttrShowPointName1
const QString LineTypeDashDotLine
const QString AttrFirstArc
const QString LineTypeDashDotDotLine
const QString AttrRadius2
const QString AttrShowPointName
const QString LineTypeDashLine
const QString FillHorizLines
const QString AttrAxisType
const QString ColorGoldenRod
const QString AttrC1Center
const QString ColorDarkBlue
QStringList LineTypes()
LineTypeList return list of all line types.
const QString ColorViolet
const QString AttrCrossPoint
QMap< QString, QString > lineTypeList()
const QString AttrTangent
const QString AttrLength2
const QString angle2ElArc_
QMap< QString, QString > curveLineTypeList()
const QString currentSeamAllowance
const QString angle2SplPath
const QString AttrPieceLocked
const QString ColorLightSalmon
const QString AttrRotationAngle
const QString AttrBaseLineP2
const QString LineTypeNone
const QString AttrRadius1
const QString AttrObjName
const QString AttrHCrossPoint
const QString AttrLength1
const QString AttrInLayout
const QString c1LengthSplPath
QString PenStyleToLineType(Qt::PenStyle penStyle)
const QString c2LengthSpl_
const QString AttrC2Center
const QString ColorDarkGreen
const QString AttrThirdPoint
const QString currentLength
const QStringList builInVariables
const QString AttrVCrossPoint
const QString ColorDeepPink
const QString AttrCRadius
const QString AttrLineColor
const QString c2LengthSplPath
const QString AttrPathPoint
const QString AttrP2Line2
const QString AttrP1Line2
const QString AttrIdObject
const QString AttrP2Line1
const QString AttrCCenter
const QString FillVertLines
const QString measurement_
Qt::PenStyle lineTypeToPenStyle(const QString &lineType)
LineStyle return pen style for current line style.
QMap< QString, QString > lineWeightList()
const QString ColorByGroup
const QString ColorOrange
const QString LineWeightByGroup
const QString radius1ElArc_
const QString ColorDeepSkyBlue
const QString ColorDarkViolet
const QString LineTypeDotLine
const QString FillForwardDiagonal