Added new local variable "CurrentSeamAllowance".

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-01-20 15:58:35 +02:00
parent 121f003e7c
commit 25a2717682
4 changed files with 29 additions and 23 deletions

View File

@ -190,6 +190,7 @@ const QString angle1SplPath = angle1_V + splPath;
const QString angle2SplPath = angle2_V + splPath; const QString angle2SplPath = angle2_V + splPath;
const QString seg_ = QStringLiteral("Seg_"); const QString seg_ = QStringLiteral("Seg_");
const QString currentLength = QStringLiteral("CurrentLength"); const QString currentLength = QStringLiteral("CurrentLength");
const QString currentSeamAllowance = QStringLiteral("CurrentSeamAllowance");
const QStringList builInVariables = QStringList() << line_ const QStringList builInVariables = QStringList() << line_
<< angleLine_ << angleLine_
@ -205,6 +206,7 @@ const QStringList builInVariables = QStringList() << line_
<< angle2SplPath << angle2SplPath
<< seg_ << seg_
<< currentLength << currentLength
<< currentSeamAllowance
<< c1LengthSpl_ << c1LengthSpl_
<< c2LengthSpl_ << c2LengthSpl_
<< c1LengthSplPath << c1LengthSplPath

View File

@ -197,6 +197,7 @@ extern const QString angle1SplPath;
extern const QString angle2SplPath; extern const QString angle2SplPath;
extern const QString seg_; extern const QString seg_;
extern const QString currentLength; extern const QString currentLength;
extern const QString currentSeamAllowance;
extern const QStringList builInVariables; extern const QStringList builInVariables;

View File

@ -388,6 +388,8 @@ void VTranslateVars::InitVariables()
"Do not add symbol _ to the end of the name")); "Do not add symbol _ to the end of the name"));
variables.insert(seg_, translate("VTranslateVars", "Seg_", "Segment. Left symbol _ in the name")); variables.insert(seg_, translate("VTranslateVars", "Seg_", "Segment. Left symbol _ in the name"));
variables.insert(currentLength, translate("VTranslateVars", "CurrentLength", "Do not add space between words")); variables.insert(currentLength, translate("VTranslateVars", "CurrentLength", "Do not add space between words"));
variables.insert(currentSeamAllowance, translate("VTranslateVars", "CurrentSeamAllowance",
"Do not add space between words"));
variables.insert(c1LengthSpl_, translate("VTranslateVars", "C1LengthSpl_", "Left symbol _ in the name")); variables.insert(c1LengthSpl_, translate("VTranslateVars", "C1LengthSpl_", "Left symbol _ in the name"));
variables.insert(c2LengthSpl_, translate("VTranslateVars", "C2LengthSpl_", "Left symbol _ in the name")); variables.insert(c2LengthSpl_, translate("VTranslateVars", "C2LengthSpl_", "Left symbol _ in the name"));
variables.insert(c1LengthSplPath, translate("VTranslateVars", "C1LengthSplPath", variables.insert(c1LengthSplPath, translate("VTranslateVars", "C1LengthSplPath",

View File

@ -138,6 +138,7 @@ void TST_BuitInRegExp::TestCheckUnderlineExists_data()
data.insert(angle2SplPath, false); data.insert(angle2SplPath, false);
data.insert(seg_, true); data.insert(seg_, true);
data.insert(currentLength, false); data.insert(currentLength, false);
data.insert(currentSeamAllowance, false);
data.insert(c1LengthSpl_, true); data.insert(c1LengthSpl_, true);
data.insert(c2LengthSpl_, true); data.insert(c2LengthSpl_, true);
data.insert(c1LengthSplPath, false); data.insert(c1LengthSplPath, false);