2015-06-16 10:30:25 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file vabstractpattern.h
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 15 6, 2015
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2015 Valentina project
|
|
|
|
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
|
|
|
|
**
|
|
|
|
** Valentina is free software: you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation, either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** Valentina is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with Valentina. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#ifndef VABSTRACTPATTERN_H
|
|
|
|
#define VABSTRACTPATTERN_H
|
|
|
|
|
2016-08-08 13:44:49 +02:00
|
|
|
#include <qcompilerdetection.h>
|
|
|
|
#include <QHash>
|
|
|
|
#include <QMap>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QPair>
|
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <QVector>
|
|
|
|
#include <QtGlobal>
|
|
|
|
|
|
|
|
#include "../vmisc/def.h"
|
2015-06-16 10:30:25 +02:00
|
|
|
#include "vdomdocument.h"
|
|
|
|
#include "vtoolrecord.h"
|
|
|
|
|
2016-08-08 13:44:49 +02:00
|
|
|
class QDomElement;
|
2017-01-16 10:59:02 +01:00
|
|
|
class VPiecePath;
|
|
|
|
class VPieceNode;
|
2015-06-16 10:30:25 +02:00
|
|
|
|
|
|
|
enum class Document : char { LiteParse, LitePPParse, FullParse };
|
2015-06-18 19:23:24 +02:00
|
|
|
enum class LabelType : char {NewPatternPiece, NewLabel};
|
2015-06-16 10:30:25 +02:00
|
|
|
|
2016-01-24 17:15:08 +01:00
|
|
|
// Don't touch values!!!. Same values stored in xml.
|
|
|
|
enum class CrossCirclesPoint : char {FirstPoint = 1, SecondPoint = 2};
|
|
|
|
enum class VCrossCurvesPoint : char {HighestPoint = 1, LowestPoint = 2};
|
2016-01-25 18:10:39 +01:00
|
|
|
enum class HCrossCurvesPoint : char {LeftmostPoint = 1, RightmostPoint = 2};
|
2016-09-17 11:10:03 +02:00
|
|
|
enum class AxisType : char {VerticalAxis = 1, HorizontalAxis = 2};
|
2016-01-24 17:15:08 +01:00
|
|
|
|
2015-06-18 19:23:24 +02:00
|
|
|
class VContainer;
|
2016-08-08 13:44:49 +02:00
|
|
|
class VDataTool;
|
2015-06-16 10:30:25 +02:00
|
|
|
|
|
|
|
class VAbstractPattern : public QObject, public VDomDocument
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2015-10-12 13:52:48 +02:00
|
|
|
explicit VAbstractPattern(QObject *parent = nullptr);
|
2017-04-01 16:27:55 +02:00
|
|
|
virtual ~VAbstractPattern() Q_DECL_EQ_DEFAULT;
|
2015-06-16 10:30:25 +02:00
|
|
|
|
2015-08-11 15:41:03 +02:00
|
|
|
QStringList ListMeasurements() const;
|
|
|
|
|
2015-08-16 17:56:06 +02:00
|
|
|
virtual void CreateEmptyFile()=0;
|
2015-06-16 10:30:25 +02:00
|
|
|
|
|
|
|
void ChangeActivPP(const QString& name, const Document &parse = Document::FullParse);
|
|
|
|
QString GetNameActivPP() const;
|
|
|
|
bool CheckExistNamePP(const QString& name) const;
|
|
|
|
int CountPP() const;
|
|
|
|
QDomElement GetPPElement(const QString &name);
|
|
|
|
bool ChangeNamePP(const QString& oldName, const QString &newName);
|
|
|
|
bool appendPP(const QString& name);
|
|
|
|
|
|
|
|
bool GetActivNodeElement(const QString& name, QDomElement& element) const;
|
|
|
|
|
|
|
|
quint32 getCursor() const;
|
|
|
|
void setCursor(const quint32 &value);
|
|
|
|
|
|
|
|
virtual void IncrementReferens(quint32 id) const=0;
|
|
|
|
virtual void DecrementReferens(quint32 id) const=0;
|
|
|
|
|
2015-06-19 13:58:13 +02:00
|
|
|
virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const=0;
|
2016-05-18 14:35:07 +02:00
|
|
|
virtual QString GenerateSuffix() const=0;
|
2015-06-18 19:23:24 +02:00
|
|
|
|
|
|
|
virtual void UpdateToolData(const quint32 &id, VContainer *data)=0;
|
|
|
|
|
2017-01-18 11:22:02 +01:00
|
|
|
static VDataTool* getTool(quint32 id);
|
|
|
|
static void AddTool(quint32 id, VDataTool *tool);
|
|
|
|
static void RemoveTool(quint32 id);
|
2015-06-16 10:30:25 +02:00
|
|
|
|
2017-01-16 16:37:15 +01:00
|
|
|
static VPiecePath ParsePieceNodes(const QDomElement &domElement);
|
|
|
|
static QVector<CustomSARecord> ParsePieceCSARecords(const QDomElement &domElement);
|
|
|
|
static QVector<quint32> ParsePieceInternalPaths(const QDomElement &domElement);
|
2017-01-31 17:09:18 +01:00
|
|
|
static QVector<quint32> ParsePiecePins(const QDomElement &domElement);
|
2017-01-16 10:59:02 +01:00
|
|
|
|
2016-02-10 17:45:49 +01:00
|
|
|
void AddToolOnRemove(VDataTool *tool);
|
|
|
|
|
2015-06-16 10:30:25 +02:00
|
|
|
QVector<VToolRecord> *getHistory();
|
|
|
|
QVector<VToolRecord> getLocalHistory() const;
|
|
|
|
|
|
|
|
QString MPath() const;
|
|
|
|
void SetPath(const QString &path);
|
|
|
|
|
|
|
|
quint32 SiblingNodeId(const quint32 &nodeId) const;
|
|
|
|
|
2015-06-16 11:04:48 +02:00
|
|
|
QStringList getPatternPieces() const;
|
|
|
|
|
|
|
|
QMap<GHeights, bool> GetGradationHeights() const;
|
|
|
|
void SetGradationHeights(const QMap<GHeights, bool> &options);
|
|
|
|
|
|
|
|
QMap<GSizes, bool> GetGradationSizes() const;
|
|
|
|
void SetGradationSizes(const QMap<GSizes, bool> &options);
|
|
|
|
|
|
|
|
QString GetDescription() const;
|
|
|
|
void SetDescription(const QString &text);
|
|
|
|
|
|
|
|
QString GetNotes() const;
|
|
|
|
void SetNotes(const QString &text);
|
|
|
|
|
2016-06-26 16:49:51 +02:00
|
|
|
QString GetPatternName() const;
|
2016-07-22 12:40:02 +02:00
|
|
|
void SetPatternName(const QString& qsName);
|
2016-06-26 16:49:51 +02:00
|
|
|
QString GetCompanyName() const;
|
2016-07-22 12:40:02 +02:00
|
|
|
void SetCompanyName(const QString& qsName);
|
2016-06-26 16:49:51 +02:00
|
|
|
QString GetPatternNumber() const;
|
2016-07-22 12:40:02 +02:00
|
|
|
void SetPatternNumber(const QString &qsNum);
|
2016-06-26 16:49:51 +02:00
|
|
|
QString GetCustomerName() const;
|
2016-07-22 12:40:02 +02:00
|
|
|
void SetCustomerName(const QString& qsName);
|
2016-07-16 01:12:51 +02:00
|
|
|
QString GetPatternSize() const;
|
2016-07-22 12:40:02 +02:00
|
|
|
void SetPatternSize(const QString &qsSize);
|
2016-07-16 01:12:51 +02:00
|
|
|
bool IsDateVisible() const;
|
|
|
|
void SetDateVisible(bool bVisible);
|
2016-07-24 12:30:10 +02:00
|
|
|
bool IsMeasurementsVisible() const;
|
|
|
|
void SetMesurementsVisible(bool bVisible);
|
2016-06-26 16:49:51 +02:00
|
|
|
|
2016-03-09 20:01:37 +01:00
|
|
|
QString GetImage() const;
|
2016-03-22 11:18:05 +01:00
|
|
|
QString GetImageExtension() const;
|
|
|
|
void SetImage(const QString &text, const QString &extension);
|
2016-03-15 19:32:52 +01:00
|
|
|
void DeleteImage();
|
2016-03-09 20:01:37 +01:00
|
|
|
|
2015-06-16 11:04:48 +02:00
|
|
|
QString GetVersion() const;
|
|
|
|
void SetVersion();
|
|
|
|
|
2015-12-18 12:57:03 +01:00
|
|
|
bool IsModified() const;
|
2016-01-22 11:45:18 +01:00
|
|
|
void SetModified(bool modified);
|
2015-12-18 12:57:03 +01:00
|
|
|
|
2016-01-07 17:43:08 +01:00
|
|
|
QDomElement GetDraw(const QString &name) const;
|
|
|
|
|
2016-04-07 16:57:53 +02:00
|
|
|
void ParseGroups(const QDomElement &domElement);
|
2016-04-05 19:53:49 +02:00
|
|
|
QDomElement CreateGroups();
|
2016-04-06 11:03:34 +02:00
|
|
|
QDomElement CreateGroup(quint32 id, const QString &name, const QMap<quint32, quint32> &groupData);
|
2016-04-07 16:57:53 +02:00
|
|
|
QString GetGroupName(quint32 id);
|
2016-04-06 11:36:33 +02:00
|
|
|
void SetGroupName(quint32 id, const QString &name);
|
2016-04-07 16:57:53 +02:00
|
|
|
QMap<quint32, QPair<QString, bool> > GetGroups();
|
|
|
|
bool GetGroupVisivility(quint32 id);
|
|
|
|
void SetGroupVisivility(quint32 id, bool visible);
|
2016-04-05 19:14:12 +02:00
|
|
|
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString TagPattern;
|
|
|
|
static const QString TagCalculation;
|
|
|
|
static const QString TagModeling;
|
|
|
|
static const QString TagDetails;
|
2016-05-16 19:59:04 +02:00
|
|
|
static const QString TagDetail;
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString TagAuthor;
|
|
|
|
static const QString TagDescription;
|
2016-03-09 20:01:37 +01:00
|
|
|
static const QString TagImage;
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString TagNotes;
|
|
|
|
static const QString TagMeasurements;
|
|
|
|
static const QString TagIncrements;
|
|
|
|
static const QString TagIncrement;
|
|
|
|
static const QString TagDraw;
|
2016-04-05 19:53:49 +02:00
|
|
|
static const QString TagGroups;
|
2016-04-06 11:03:34 +02:00
|
|
|
static const QString TagGroup;
|
|
|
|
static const QString TagGroupItem;
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString TagPoint;
|
|
|
|
static const QString TagLine;
|
|
|
|
static const QString TagSpline;
|
|
|
|
static const QString TagArc;
|
2016-12-17 02:53:47 +01:00
|
|
|
static const QString TagElArc;
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString TagTools;
|
2016-05-16 19:27:51 +02:00
|
|
|
static const QString TagOperation;
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString TagGradation;
|
|
|
|
static const QString TagHeights;
|
|
|
|
static const QString TagSizes;
|
2016-06-17 16:42:38 +02:00
|
|
|
static const QString TagData;
|
2016-07-02 01:49:38 +02:00
|
|
|
static const QString TagPatternInfo;
|
2016-06-21 00:49:22 +02:00
|
|
|
static const QString TagMCP;
|
2016-06-26 16:49:51 +02:00
|
|
|
static const QString TagPatternName;
|
|
|
|
static const QString TagPatternNum;
|
|
|
|
static const QString TagCompanyName;
|
|
|
|
static const QString TagCustomerName;
|
2016-07-21 16:49:26 +02:00
|
|
|
static const QString TagSize;
|
2016-07-16 01:12:51 +02:00
|
|
|
static const QString TagShowDate;
|
2016-07-24 12:30:10 +02:00
|
|
|
static const QString TagShowMeasurements;
|
2016-09-06 23:50:46 +02:00
|
|
|
static const QString TagGrainline;
|
2016-11-24 20:35:07 +01:00
|
|
|
static const QString TagPath;
|
|
|
|
static const QString TagNodes;
|
|
|
|
static const QString TagNode;
|
2015-06-16 10:30:25 +02:00
|
|
|
|
|
|
|
static const QString AttrName;
|
2016-04-05 19:53:49 +02:00
|
|
|
static const QString AttrVisible;
|
|
|
|
static const QString AttrObject;
|
|
|
|
static const QString AttrTool;
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString AttrType;
|
2016-06-17 16:42:38 +02:00
|
|
|
static const QString AttrLetter;
|
2016-06-21 00:49:22 +02:00
|
|
|
static const QString AttrMaterial;
|
|
|
|
static const QString AttrUserDefined;
|
|
|
|
static const QString AttrCutNumber;
|
|
|
|
static const QString AttrPlacement;
|
2016-10-25 23:00:42 +02:00
|
|
|
static const QString AttrArrows;
|
2016-11-24 20:35:07 +01:00
|
|
|
static const QString AttrNodeReverse;
|
2017-03-21 16:18:48 +01:00
|
|
|
static const QString AttrNodeExcluded;
|
2017-03-24 13:48:07 +01:00
|
|
|
static const QString AttrNodePassmark;
|
|
|
|
static const QString AttrNodePassmarkLine;
|
|
|
|
static const QString AttrNodePassmarkAngle;
|
2016-11-28 10:58:44 +01:00
|
|
|
static const QString AttrSABefore;
|
|
|
|
static const QString AttrSAAfter;
|
2017-01-16 16:37:15 +01:00
|
|
|
static const QString AttrStart;
|
|
|
|
static const QString AttrPath;
|
|
|
|
static const QString AttrEnd;
|
|
|
|
static const QString AttrIncludeAs;
|
2017-01-21 16:32:08 +01:00
|
|
|
static const QString AttrWidth;
|
|
|
|
static const QString AttrRotation;
|
2015-06-16 10:30:25 +02:00
|
|
|
|
|
|
|
static const QString AttrAll;
|
|
|
|
|
2016-10-26 13:49:09 +02:00
|
|
|
static const QString AttrH50;
|
|
|
|
static const QString AttrH56;
|
|
|
|
static const QString AttrH62;
|
|
|
|
static const QString AttrH68;
|
|
|
|
static const QString AttrH74;
|
|
|
|
static const QString AttrH80;
|
|
|
|
static const QString AttrH86;
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString AttrH92;
|
|
|
|
static const QString AttrH98;
|
|
|
|
static const QString AttrH104;
|
|
|
|
static const QString AttrH110;
|
|
|
|
static const QString AttrH116;
|
|
|
|
static const QString AttrH122;
|
|
|
|
static const QString AttrH128;
|
|
|
|
static const QString AttrH134;
|
|
|
|
static const QString AttrH140;
|
|
|
|
static const QString AttrH146;
|
|
|
|
static const QString AttrH152;
|
|
|
|
static const QString AttrH158;
|
|
|
|
static const QString AttrH164;
|
|
|
|
static const QString AttrH170;
|
|
|
|
static const QString AttrH176;
|
|
|
|
static const QString AttrH182;
|
|
|
|
static const QString AttrH188;
|
|
|
|
static const QString AttrH194;
|
2017-03-09 21:41:48 +01:00
|
|
|
static const QString AttrH200;
|
2015-06-16 10:30:25 +02:00
|
|
|
|
|
|
|
static const QString AttrS22;
|
|
|
|
static const QString AttrS24;
|
|
|
|
static const QString AttrS26;
|
|
|
|
static const QString AttrS28;
|
|
|
|
static const QString AttrS30;
|
|
|
|
static const QString AttrS32;
|
|
|
|
static const QString AttrS34;
|
|
|
|
static const QString AttrS36;
|
|
|
|
static const QString AttrS38;
|
|
|
|
static const QString AttrS40;
|
|
|
|
static const QString AttrS42;
|
|
|
|
static const QString AttrS44;
|
|
|
|
static const QString AttrS46;
|
|
|
|
static const QString AttrS48;
|
|
|
|
static const QString AttrS50;
|
|
|
|
static const QString AttrS52;
|
|
|
|
static const QString AttrS54;
|
|
|
|
static const QString AttrS56;
|
2017-02-22 06:54:42 +01:00
|
|
|
static const QString AttrS58;
|
|
|
|
static const QString AttrS60;
|
|
|
|
static const QString AttrS62;
|
|
|
|
static const QString AttrS64;
|
|
|
|
static const QString AttrS66;
|
|
|
|
static const QString AttrS68;
|
|
|
|
static const QString AttrS70;
|
|
|
|
static const QString AttrS72;
|
2015-12-11 15:19:11 +01:00
|
|
|
|
|
|
|
static const QString AttrCustom;
|
|
|
|
static const QString AttrDefHeight;
|
|
|
|
static const QString AttrDefSize;
|
2016-04-02 02:00:00 +02:00
|
|
|
static const QString AttrExtension;
|
2015-06-16 10:30:25 +02:00
|
|
|
|
|
|
|
static const QString IncrementName;
|
2015-08-25 12:35:50 +02:00
|
|
|
static const QString IncrementFormula;
|
2015-06-16 10:30:25 +02:00
|
|
|
static const QString IncrementDescription;
|
|
|
|
|
2016-11-24 20:35:07 +01:00
|
|
|
static const QString NodeArc;
|
2016-12-20 16:42:51 +01:00
|
|
|
static const QString NodeElArc;
|
2016-11-24 20:35:07 +01:00
|
|
|
static const QString NodePoint;
|
|
|
|
static const QString NodeSpline;
|
|
|
|
static const QString NodeSplinePath;
|
|
|
|
|
2015-06-16 10:30:25 +02:00
|
|
|
signals:
|
|
|
|
/**
|
2016-05-12 21:11:21 +02:00
|
|
|
* @brief ChangedActivPP change active pattern peace.
|
2015-06-16 10:30:25 +02:00
|
|
|
* @param newName new pattern peace name.
|
|
|
|
*/
|
|
|
|
void ChangedActivPP(const QString &newName);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief ChangedCursor change cursor position.
|
|
|
|
* @param id tool id.
|
|
|
|
*/
|
|
|
|
void ChangedCursor(quint32 id);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief ChangedNameDraw save new name pattern peace.
|
|
|
|
* @param oldName old name.
|
|
|
|
* @param newName new name.
|
|
|
|
*/
|
|
|
|
void ChangedNameDraw(const QString &oldName, const QString &newName);
|
|
|
|
/**
|
|
|
|
* @brief FullUpdateFromFile update tool data form file.
|
|
|
|
*/
|
|
|
|
void FullUpdateFromFile();
|
|
|
|
/**
|
|
|
|
* @brief patternChanged emit if we have unsaved change.
|
|
|
|
*/
|
|
|
|
void patternChanged(bool saved);
|
|
|
|
/**
|
|
|
|
* @brief ShowTool highlight tool.
|
|
|
|
* @param id tool id.
|
|
|
|
* @param enable enable or disable highlight.
|
|
|
|
*/
|
|
|
|
void ShowTool(quint32 id, bool enable);
|
|
|
|
void ClearMainWindow();
|
|
|
|
void UndoCommand();
|
|
|
|
void SetEnabledGUI(bool enabled);
|
|
|
|
void CheckLayout();
|
2016-10-14 19:41:37 +02:00
|
|
|
void UpdateInLayoutList();
|
2016-10-14 20:33:12 +02:00
|
|
|
void ShowDetail(quint32 id);
|
2015-06-16 10:30:25 +02:00
|
|
|
void SetCurrentPP(const QString &patterPiece);
|
|
|
|
|
2015-06-16 11:04:48 +02:00
|
|
|
public slots:
|
2015-06-16 17:01:17 +02:00
|
|
|
virtual void LiteParseTree(const Document &parse)=0;
|
2015-06-16 11:04:48 +02:00
|
|
|
void haveLiteChange();
|
2016-07-19 19:50:42 +02:00
|
|
|
void NeedFullParsing();
|
|
|
|
void ClearScene();
|
2016-10-14 19:41:37 +02:00
|
|
|
void CheckInLayoutList();
|
2016-10-14 20:33:12 +02:00
|
|
|
void SelectedDetail(quint32 id);
|
2015-06-16 11:04:48 +02:00
|
|
|
|
2015-06-16 10:30:25 +02:00
|
|
|
protected:
|
|
|
|
/** @brief nameActivDraw name current pattern peace. */
|
|
|
|
QString nameActivPP;
|
|
|
|
|
|
|
|
/** @brief cursor cursor keep id tool after which we will add new tool in file. */
|
|
|
|
quint32 cursor;
|
|
|
|
|
2016-02-10 17:45:49 +01:00
|
|
|
QVector<VDataTool*> toolsOnRemove;
|
|
|
|
|
2015-06-16 10:30:25 +02:00
|
|
|
/** @brief history history records. */
|
|
|
|
QVector<VToolRecord> history;
|
|
|
|
|
2015-06-16 11:04:48 +02:00
|
|
|
/** @brief patternPieces list of patern pieces names for combobox*/
|
|
|
|
QStringList patternPieces;
|
|
|
|
|
2015-12-18 12:57:03 +01:00
|
|
|
/** @brief modified keep state of the document for cases that do not cover QUndoStack*/
|
|
|
|
mutable bool modified;
|
|
|
|
|
2016-12-03 17:44:24 +01:00
|
|
|
/** @brief tools list with pointer on tools. */
|
|
|
|
static QHash<quint32, VDataTool*> tools;
|
|
|
|
|
2017-01-16 10:59:02 +01:00
|
|
|
static void ToolExists(const quint32 &id);
|
2017-01-21 16:32:08 +01:00
|
|
|
static VPiecePath ParsePathNodes(const QDomElement &domElement);
|
2017-01-16 10:59:02 +01:00
|
|
|
static VPieceNode ParseSANode(const QDomElement &domElement);
|
2015-06-16 10:30:25 +02:00
|
|
|
|
|
|
|
void SetActivPP(const QString& name);
|
|
|
|
|
2016-04-06 04:31:42 +02:00
|
|
|
QDomElement CheckTagExists(const QString &tag);
|
2016-04-02 10:37:37 +02:00
|
|
|
void InsertTag(const QStringList &tags, const QDomElement &element);
|
2015-06-16 11:04:48 +02:00
|
|
|
|
2016-06-27 01:17:27 +02:00
|
|
|
void SetChildTag(const QString& qsParent, const QString& qsChild, const QString& qsValue);
|
|
|
|
|
2016-11-23 17:38:08 +01:00
|
|
|
int GetIndexActivPP() const;
|
|
|
|
bool GetActivDrawElement(QDomElement &element) const;
|
2015-06-16 10:30:25 +02:00
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(VAbstractPattern)
|
2015-08-11 15:41:03 +02:00
|
|
|
|
|
|
|
QStringList ListIncrements() const;
|
|
|
|
QStringList ListExpressions() const;
|
|
|
|
QStringList ListPointExpressions() const;
|
|
|
|
QStringList ListArcExpressions() const;
|
2016-12-19 13:56:39 +01:00
|
|
|
QStringList ListElArcExpressions() const;
|
2015-08-11 15:41:03 +02:00
|
|
|
QStringList ListSplineExpressions() const;
|
|
|
|
QStringList ListPathPointExpressions() const;
|
2015-09-16 07:16:27 +02:00
|
|
|
QStringList ListIncrementExpressions() const;
|
2016-05-16 20:11:48 +02:00
|
|
|
QStringList ListOperationExpressions() const;
|
2017-01-21 16:32:08 +01:00
|
|
|
QStringList ListNodesExpressions(const QDomElement &nodes) const;
|
|
|
|
QStringList ListPathExpressions() const;
|
|
|
|
QStringList ListGrainlineExpressions(const QDomElement &element) const;
|
|
|
|
QStringList ListPieceExpressions() const;
|
2015-08-11 15:41:03 +02:00
|
|
|
|
|
|
|
bool IsVariable(const QString& token) const;
|
|
|
|
bool IsPostfixOperator(const QString& token) const;
|
|
|
|
bool IsFunction(const QString& token) const;
|
2016-04-06 11:03:34 +02:00
|
|
|
|
|
|
|
QPair<bool, QMap<quint32, quint32> > ParseItemElement(const QDomElement &domElement);
|
2016-11-23 17:38:08 +01:00
|
|
|
|
2015-06-16 10:30:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VABSTRACTPATTERN_H
|