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 << ListPointExpressions();
list << ListArcExpressions(); list << ListArcExpressions();
list << ListSplineExpressions(); list << ListSplineExpressions();
list << ListIncrementExpressions();
return list; return list;
} }
@ -1176,6 +1177,28 @@ QStringList VAbstractPattern::ListPathPointExpressions() const
return expressions; 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 bool VAbstractPattern::IsVariable(const QString &token) const
{ {

View File

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