Add increment's formula to the export list.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-09-16 08:16:27 +03:00
parent 7718b0748e
commit f722964c11
2 changed files with 24 additions and 0 deletions

View file

@ -1018,6 +1018,7 @@ QStringList VAbstractPattern::ListExpressions() const
list << ListPointExpressions();
list << ListArcExpressions();
list << ListSplineExpressions();
list << ListIncrementExpressions();
return list;
}
@ -1176,6 +1177,28 @@ QStringList VAbstractPattern::ListPathPointExpressions() const
return expressions;
}
//---------------------------------------------------------------------------------------------------------------------
QStringList VAbstractPattern::ListIncrementExpressions() const
{
QStringList expressions;
const QDomNodeList list = elementsByTagName(TagIncrement);
for (int i=0; i < list.size(); ++i)
{
const QDomElement dom = list.at(i).toElement();
try
{
expressions.append(GetParametrString(dom, IncrementFormula));
}
catch (VExceptionEmptyParameter &e)
{
Q_UNUSED(e)
}
}
return expressions;
}
//---------------------------------------------------------------------------------------------------------------------
bool VAbstractPattern::IsVariable(const QString &token) const
{

View file

@ -248,6 +248,7 @@ private:
QStringList ListArcExpressions() const;
QStringList ListSplineExpressions() const;
QStringList ListPathPointExpressions() const;
QStringList ListIncrementExpressions() const;
bool IsVariable(const QString& token) const;
bool IsPostfixOperator(const QString& token) const;