Seamly2D
Code documentation
VAbstractPattern Class Referenceabstract

#include <vabstractpattern.h>

Inheritance diagram for VAbstractPattern:
Collaboration diagram for VAbstractPattern:

Public Slots

virtual void LiteParseTree (const Document &parse)=0
 
void haveLiteChange ()
 haveLiteChange we have unsaved change. More...
 
void NeedFullParsing ()
 
void ClearScene ()
 
void updatePieceList (quint32 id)
 
void selectedPiece (quint32 id)
 

Signals

void activeDraftBlockChanged (const QString &newName)
 activeDraftBlockChanged change active draft block. More...
 
void ChangedCursor (quint32 id)
 ChangedCursor change cursor position. More...
 
void draftBlockNameChanged (const QString &oldName, const QString &newName)
 draftBlockNameChanged save new name draft block. More...
 
void FullUpdateFromFile ()
 FullUpdateFromFile update tool data form file. More...
 
void patternChanged (bool saved)
 patternChanged emit if we have unsaved change. More...
 
void UpdatePatternLabel ()
 
void ShowTool (quint32 id, bool enable)
 ShowTool highlight tool. More...
 
void ClearMainWindow ()
 
void UndoCommand ()
 
void SetEnabledGUI (bool enabled)
 
void CheckLayout ()
 
void UpdateInLayoutList (quint32 id)
 
void showPiece (quint32 id)
 
void setCurrentDraftBlock (const QString &patterPiece)
 
void patternHasGroups (bool value)
 
void updateGroups ()
 

Public Member Functions

 VAbstractPattern (QObject *parent=nullptr)
 
virtual ~VAbstractPattern () Q_DECL_EQ_DEFAULT
 
QStringList ListMeasurements () const
 
QVector< VFormulaFieldListExpressions () const
 
QVector< VFormulaFieldListIncrementExpressions () const
 
virtual void CreateEmptyFile ()=0
 
void changeActiveDraftBlock (const QString &name, const Document &parse=Document::FullParse)
 changeActiveDraftBlock set new active draft block name. More...
 
QString getActiveDraftBlockName () const
 getActiveDraftBlockName return current draft block name. More...
 
bool draftBlockNameExists (const QString &name) const
 draftBlockNameExists check if draft block with this name exists. More...
 
int draftBlockCount () const
 
QDomElement getDraftBlockElement (const QString &name)
 
bool renameDraftBlock (const QString &oldName, const QString &newName)
 renameDraftBlock change draft block name. More...
 
bool appendDraftBlock (const QString &name)
 appendDraftBlock add new draft block. More...
 
bool getActiveNodeElement (const QString &name, QDomElement &element) const
 getActiveNodeElement find element in current draft block by name. More...
 
quint32 getCursor () const
 
void setCursor (const quint32 &value)
 
void setDefaultPen (Pen pen)
 
QString getDefaultLineColor () const
 
qreal getDefaultLineWeight () const
 
QString getDefaultLineType () const
 
virtual void IncrementReferens (quint32 id) const =0
 
virtual void DecrementReferens (quint32 id) const =0
 
virtual QString GenerateLabel (const LabelType &type, const QString &reservedName=QString()) const =0
 
virtual QString GenerateSuffix (const QString &type) const =0
 
virtual void UpdateToolData (const quint32 &id, VContainer *data)=0
 
void AddToolOnRemove (VDataTool *tool)
 
QVector< VToolRecord > * getHistory ()
 getHistory return list with list of history records. More...
 
QVector< VToolRecordgetBlockHistory () const
 
QMap< quint32, ToolgetGroupObjHistory () const
 
QString MPath () const
 
void SetMPath (const QString &path)
 
quint32 SiblingNodeId (const quint32 &nodeId) const
 
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)
 
QString GetPatternName () const
 
void SetPatternName (const QString &qsName)
 
QString GetCompanyName () const
 
void SetCompanyName (const QString &qsName)
 
QString GetPatternNumber () const
 
void SetPatternNumber (const QString &qsNum)
 
QString GetCustomerName () const
 
void SetCustomerName (const QString &qsName)
 
QString GetLabelDateFormat () const
 
void SetLabelDateFormat (const QString &format)
 
QString GetLabelTimeFormat () const
 
void SetLabelTimeFormat (const QString &format)
 
void setPatternLabelTemplate (const QVector< VLabelTemplateLine > &lines)
 
QVector< VLabelTemplateLinegetPatternLabelTemplate () const
 
void SetPatternWasChanged (bool changed)
 
bool GetPatternWasChanged () const
 
QString GetImage () const
 
QString GetImageExtension () const
 
void SetImage (const QString &text, const QString &extension)
 
void DeleteImage ()
 
QString GetVersion () const
 
void SetVersion ()
 
QVector< quint32 > getOpItems (const quint32 &toolId, const QString &itemType)
 getOpItems get vector of operation tool obects. More...
 
QVector< quint32 > getDartItems (const quint32 &toolId)
 
bool IsModified () const
 
void SetModified (bool modified)
 
QDomElement getDraw (const QString &name) const
 
void parseGroups (const QDomElement &domElement)
 
QDomElement createGroups ()
 
QDomElement createGroup (quint32 id, const QString &name, const QString &color, const QString &type, const QString &weight, const QMap< quint32, quint32 > &groupData)
 
QDomElement addGroupItems (const QString &name, const QMap< quint32, quint32 > &groupData)
 
QString getGroupName (quint32 id)
 
void setGroupName (quint32 id, const QString &name)
 
QMap< quint32, GroupAttributesgetGroups ()
 
QStringList groupListByName ()
 
QDomElement getGroupByName (const QString &name)
 
quint32 getGroupIdByName (const QString &name)
 
QMap< quint32, QString > getGroupsContainingItem (quint32 toolId, quint32 objectId, bool containsItem)
 Returns the groups that contain or do not contain the item identified by the toolid and the objectid. More...
 
void deleteToolFromGroup (quint32 toolId)
 Deletes an item from the group containing the toolId. More...
 
void addToolToGroup (quint32 toolId, quint32 objectId, const QString &groupName)
 Adds an item to the given group with the given toolId and objectId. More...
 
QDomElement addGroupItem (quint32 toolId, quint32 objectId, quint32 groupId)
 Adds an item to the given group with the given toolId and objectId. More...
 
QDomElement removeGroupItem (quint32 toolId, quint32 objectId, quint32 groupId)
 Removes the item of given toolId and objectId from the group of given groupId. More...
 
bool isGroupEmpty (quint32 id)
 Returns true if the given group is empty. More...
 
bool getGroupVisibility (quint32 id)
 
void setGroupVisibility (quint32 id, bool visible)
 
bool getGroupLock (quint32 id)
 
void setGroupLock (quint32 id, bool locked)
 
QString getGroupColor (quint32 id)
 
void setGroupColor (quint32 id, QString color)
 
QString getGroupLineType (quint32 id)
 
void setGroupLineType (quint32 id, QString type)
 
QString getGroupLineWeight (quint32 id)
 
void setGroupLineWeight (quint32 id, QString weight)
 
bool groupNameExists (const QString &groupName)
 
QString useGroupColor (quint32 toolId, QString color)
 
QString useGroupLineType (quint32 toolId, QString type)
 
QString useGroupLineWeight (quint32 toolId, QString weight)
 
QPair< bool, QMap< quint32, quint32 > > parseItemElement (const QDomElement &domElement)
 
- Public Member Functions inherited from VDomDocument
 VDomDocument ()
 
virtual ~VDomDocument () Q_DECL_EQ_DEFAULT
 
QDomElement elementById (quint32 id, const QString &tagName=QString())
 
template<typename T >
void SetAttribute (QDomElement &domElement, const QString &name, const T &value) const
 SetAttribute set attribute in pattern file. Replace "," by ".". More...
 
Unit MUnit () const
 
virtual void setXMLContent (const QString &fileName)
 
virtual bool SaveDocument (const QString &fileName, QString &error)
 
QString Major () const
 
QString Minor () const
 
QString Patch () const
 
QDomNode ParentNodeById (const quint32 &nodeId)
 
QDomElement CloneNodeById (const quint32 &nodeId)
 
QDomElement NodeById (const quint32 &nodeId)
 
QVector< VLabelTemplateLineGetLabelTemplate (const QDomElement &element) const
 
void SetLabelTemplate (QDomElement &element, const QVector< VLabelTemplateLine > &lines)
 
template<>
void SetAttribute (QDomElement &domElement, const QString &name, const QString &value) const
 
template<>
void SetAttribute (QDomElement &domElement, const QString &name, const bool &value) const
 
template<>
void SetAttribute (QDomElement &domElement, const QString &name, const MeasurementsType &value) const
 

Static Public Member Functions

static VDataToolgetTool (quint32 id)
 getTool return tool from tool list. More...
 
static void AddTool (quint32 id, VDataTool *tool)
 AddTool add tool to list tools. More...
 
static void RemoveTool (quint32 id)
 
static VPiecePath ParsePieceNodes (const QDomElement &domElement)
 
static QVector< CustomSARecordParsePieceCSARecords (const QDomElement &domElement)
 
static QVector< quint32 > ParsePieceInternalPaths (const QDomElement &domElement)
 
static QVector< quint32 > ParsePieceAnchors (const QDomElement &domElement)
 
- Static Public Member Functions inherited from VDomDocument
static quint32 GetParametrUInt (const QDomElement &domElement, const QString &name, const QString &defValue)
 Returns the long long value of the given attribute. RENAME: GetParameterLongLong? More...
 
static bool getParameterBool (const QDomElement &domElement, const QString &name, const QString &defValue)
 
static NodeUsage GetParametrUsage (const QDomElement &domElement, const QString &name)
 
static void SetParametrUsage (QDomElement &domElement, const QString &name, const NodeUsage &value)
 
static QString GetParametrString (const QDomElement &domElement, const QString &name, const QString &defValue=QString())
 Returns the string value of the given attribute. RENAME: see above. More...
 
static QString GetParametrEmptyString (const QDomElement &domElement, const QString &name)
 
static qreal GetParametrDouble (const QDomElement &domElement, const QString &name, const QString &defValue)
 Returns the double value of the given attribute. More...
 
static quint32 getParameterId (const QDomElement &domElement)
 getParameterId return value id attribute. More...
 
static void ValidateXML (const QString &schema, const QString &fileName)
 ValidateXML validate xml file by xsd schema. More...
 
static QString UnitsHelpString ()
 
static void RemoveAllChildren (QDomElement &domElement)
 RemoveAllChildren remove all children from file. More...
 
static bool SafeCopy (const QString &source, const QString &destination, QString &error)
 

Static Public Attributes

static const QString TagPattern = QStringLiteral("pattern")
 
static const QString TagCalculation = QStringLiteral("calculation")
 
static const QString TagModeling = QStringLiteral("modeling")
 
static const QString TagPieces = QStringLiteral("pieces")
 
static const QString TagPiece = QStringLiteral("piece")
 
static const QString TagDescription = QStringLiteral("description")
 
static const QString TagImage = QStringLiteral("image")
 
static const QString TagNotes = QStringLiteral("notes")
 
static const QString TagMeasurements = QStringLiteral("measurements")
 
static const QString TagIncrements = QStringLiteral("increments")
 
static const QString TagIncrement = QStringLiteral("increment")
 
static const QString TagDraftBlock = QStringLiteral("draftBlock")
 
static const QString TagGroups = QStringLiteral("groups")
 
static const QString TagGroup = QStringLiteral("group")
 
static const QString TagGroupItem = QStringLiteral("item")
 
static const QString TagPoint = QStringLiteral("point")
 
static const QString TagSpline = QStringLiteral("spline")
 
static const QString TagArc = QStringLiteral("arc")
 
static const QString TagElArc = QStringLiteral("elArc")
 
static const QString TagTools = QStringLiteral("tools")
 
static const QString TagOperation = QStringLiteral("operation")
 
static const QString TagGradation = QStringLiteral("gradation")
 
static const QString TagHeights = QStringLiteral("heights")
 
static const QString TagSizes = QStringLiteral("sizes")
 
static const QString TagData = QStringLiteral("data")
 
static const QString TagPatternInfo = QStringLiteral("patternInfo")
 
static const QString TagPatternName = QStringLiteral("patternName")
 
static const QString TagPatternNum = QStringLiteral("patternNumber")
 
static const QString TagCompanyName = QStringLiteral("company")
 
static const QString TagCustomerName = QStringLiteral("customer")
 
static const QString TagPatternLabel = QStringLiteral("patternLabel")
 
static const QString TagGrainline = QStringLiteral("grainline")
 
static const QString TagPath = QStringLiteral("path")
 
static const QString TagNodes = QStringLiteral("nodes")
 
static const QString TagNode = QStringLiteral("node")
 
static const QString TagLine = QStringLiteral("line")
 
static const QString AttrName = QStringLiteral("name")
 
static const QString AttrVisible = QStringLiteral("visible")
 
static const QString AttrGroupLocked = QStringLiteral("locked")
 
static const QString AttrGroupColor = QStringLiteral("groupColor")
 
static const QString AttrObject = QStringLiteral("object")
 
static const QString AttrTool = QStringLiteral("tool")
 
static const QString AttrType = QStringLiteral("type")
 
static const QString AttrLetter = QStringLiteral("letter")
 
static const QString AttrAnnotation = QStringLiteral("annotation")
 
static const QString AttrOrientation = QStringLiteral("orientation")
 
static const QString AttrRotationWay = QStringLiteral("rotationWay")
 
static const QString AttrTilt = QStringLiteral("tilt")
 
static const QString AttrFoldPosition = QStringLiteral("foldPosition")
 
static const QString AttrQuantity = QStringLiteral("quantity")
 
static const QString AttrOnFold = QStringLiteral("onFold")
 
static const QString AttrDateFormat = QStringLiteral("dateFormat")
 
static const QString AttrTimeFormat = QStringLiteral("timeFormat")
 
static const QString AttrArrows = QStringLiteral("arrows")
 
static const QString AttrNodeReverse = QStringLiteral("reverse")
 
static const QString AttrNodeExcluded = QStringLiteral("excluded")
 
static const QString AttrNodeIsNotch = QStringLiteral("notch")
 
static const QString AttrNodeNotchType = QStringLiteral("notchType")
 
static const QString AttrNodeNotchSubType = QStringLiteral("notchSubtype")
 
static const QString AttrNodeShowNotch = QStringLiteral("showNotch")
 
static const QString AttrNodeShowSecondNotch = QStringLiteral("showSecondNotch")
 
static const QString AttrNodeNotchLength = QStringLiteral("notchLength")
 
static const QString AttrNodeNotchWidth = QStringLiteral("notchWidth")
 
static const QString AttrNodeNotchAngle = QStringLiteral("notchAngle")
 
static const QString AttrNodeNotchCount = QStringLiteral("notchCount")
 
static const QString AttrSABefore = QStringLiteral("before")
 
static const QString AttrSAAfter = QStringLiteral("after")
 
static const QString AttrStart = QStringLiteral("start")
 
static const QString AttrPath = QStringLiteral("path")
 
static const QString AttrEnd = QStringLiteral("end")
 
static const QString AttrIncludeAs = QStringLiteral("includeAs")
 
static const QString AttrWidth = QStringLiteral("width")
 
static const QString AttrRotation = QStringLiteral("rotation")
 
static const QString AttrAll = QStringLiteral("all")
 
static const QString AttrH50 = QStringLiteral("h50")
 
static const QString AttrH56 = QStringLiteral("h56")
 
static const QString AttrH62 = QStringLiteral("h62")
 
static const QString AttrH68 = QStringLiteral("h68")
 
static const QString AttrH74 = QStringLiteral("h74")
 
static const QString AttrH80 = QStringLiteral("h80")
 
static const QString AttrH86 = QStringLiteral("h86")
 
static const QString AttrH92 = QStringLiteral("h92")
 
static const QString AttrH98 = QStringLiteral("h98")
 
static const QString AttrH104 = QStringLiteral("h104")
 
static const QString AttrH110 = QStringLiteral("h110")
 
static const QString AttrH116 = QStringLiteral("h116")
 
static const QString AttrH122 = QStringLiteral("h122")
 
static const QString AttrH128 = QStringLiteral("h128")
 
static const QString AttrH134 = QStringLiteral("h134")
 
static const QString AttrH140 = QStringLiteral("h140")
 
static const QString AttrH146 = QStringLiteral("h146")
 
static const QString AttrH152 = QStringLiteral("h152")
 
static const QString AttrH158 = QStringLiteral("h158")
 
static const QString AttrH164 = QStringLiteral("h164")
 
static const QString AttrH170 = QStringLiteral("h170")
 
static const QString AttrH176 = QStringLiteral("h176")
 
static const QString AttrH182 = QStringLiteral("h182")
 
static const QString AttrH188 = QStringLiteral("h188")
 
static const QString AttrH194 = QStringLiteral("h194")
 
static const QString AttrH200 = QStringLiteral("h200")
 
static const QString AttrS22 = QStringLiteral("s22")
 
static const QString AttrS24 = QStringLiteral("s24")
 
static const QString AttrS26 = QStringLiteral("s26")
 
static const QString AttrS28 = QStringLiteral("s28")
 
static const QString AttrS30 = QStringLiteral("s30")
 
static const QString AttrS32 = QStringLiteral("s32")
 
static const QString AttrS34 = QStringLiteral("s34")
 
static const QString AttrS36 = QStringLiteral("s36")
 
static const QString AttrS38 = QStringLiteral("s38")
 
static const QString AttrS40 = QStringLiteral("s40")
 
static const QString AttrS42 = QStringLiteral("s42")
 
static const QString AttrS44 = QStringLiteral("s44")
 
static const QString AttrS46 = QStringLiteral("s46")
 
static const QString AttrS48 = QStringLiteral("s48")
 
static const QString AttrS50 = QStringLiteral("s50")
 
static const QString AttrS52 = QStringLiteral("s52")
 
static const QString AttrS54 = QStringLiteral("s54")
 
static const QString AttrS56 = QStringLiteral("s56")
 
static const QString AttrS58 = QStringLiteral("s58")
 
static const QString AttrS60 = QStringLiteral("s60")
 
static const QString AttrS62 = QStringLiteral("s62")
 
static const QString AttrS64 = QStringLiteral("s64")
 
static const QString AttrS66 = QStringLiteral("s66")
 
static const QString AttrS68 = QStringLiteral("s68")
 
static const QString AttrS70 = QStringLiteral("s70")
 
static const QString AttrS72 = QStringLiteral("s72")
 
static const QString AttrCustom = QStringLiteral("custom")
 
static const QString AttrDefHeight = QStringLiteral("defHeight")
 
static const QString AttrDefSize = QStringLiteral("defSize")
 
static const QString AttrExtension = QStringLiteral("extension")
 
static const QString IncrementName = QStringLiteral("name")
 
static const QString IncrementFormula = QStringLiteral("formula")
 
static const QString IncrementDescription = QStringLiteral("description")
 
static const QString NodeArc = QStringLiteral("NodeArc")
 
static const QString NodeElArc = QStringLiteral("NodeElArc")
 
static const QString NodePoint = QStringLiteral("NodePoint")
 
static const QString NodeSpline = QStringLiteral("NodeSpline")
 
static const QString NodeSplinePath = QStringLiteral("NodeSplinePath")
 
- Static Public Attributes inherited from VDomDocument
static const QString AttrId = QStringLiteral("id")
 
static const QString AttrText = QStringLiteral("text")
 
static const QString AttrBold = QStringLiteral("bold")
 
static const QString AttrItalic = QStringLiteral("italic")
 
static const QString AttrAlignment = QStringLiteral("alignment")
 
static const QString AttrFSIncrement = QStringLiteral("sfIncrement")
 
static const QString TagVersion = QStringLiteral("version")
 
static const QString TagUnit = QStringLiteral("unit")
 
static const QString TagLine = QStringLiteral("line")
 

Protected Member Functions

void setActiveDraftBlock (const QString &name)
 setActiveDraftBlock set current draft block. More...
 
QDomElement CheckTagExists (const QString &tag)
 
void InsertTag (const QStringList &tags, const QDomElement &element)
 
void SetChildTag (const QString &qsParent, const QString &qsChild, const QString &qsValue)
 
int getActiveDraftBlockIndex () const
 
bool getActiveDraftElement (QDomElement &element) const
 getActiveDraftElement return draftBlock element for current draft block. More...
 
bool hasGroupItem (const QDomElement &domElement, quint32 toolId, quint32 objectId)
 Checks if the given group has the item with the given toolId and objectId. More...
 
- Protected Member Functions inherited from VDomDocument
bool setTagText (const QString &tag, const QString &text)
 
bool setTagText (const QDomElement &domElement, const QString &text)
 
QString UniqueTagText (const QString &tagName, const QString &defVal=QString()) const
 
void TestUniqueId () const
 TestUniqueId test exist unique id in pattern file. Each id must be unique. More...
 
void CollectId (const QDomElement &node, QVector< quint32 > &vector) const
 

Static Protected Member Functions

static void ToolExists (const quint32 &id)
 
static VPiecePath ParsePathNodes (const QDomElement &domElement)
 
static VPieceNode ParseSANode (const QDomElement &domElement)
 

Protected Attributes

QString activeDraftBlock
 activeBlockName name current pattern peace. More...
 
QString m_DefaultLineColor
 
qreal m_DefaultLineWeight
 
QString m_DefaultLineType
 
QString lastSavedExportFormat
 
quint32 cursor
 cursor cursor keep id tool after which we will add new tool in file. More...
 
QVector< VDataTool * > toolsOnRemove
 
QVector< VToolRecordhistory
 history history records. More...
 
QStringList patternPieces
 patternPieces list of patern pieces names for combobox More...
 
bool modified
 modified keep state of the document for cases that do not cover QUndoStack More...
 

Static Protected Attributes

static QHash< quint32, VDataTool * > tools = QHash<quint32, VDataTool*>()
 tools list with pointer on tools. More...
 
static QVector< VLabelTemplateLinepatternLabelLines = QVector<VLabelTemplateLine>()
 patternLabelLines list to speed up reading a template by many pieces. More...
 
static bool patternLabelWasChanged = false
 

Private Member Functions

QStringList ListIncrements () const
 
QVector< VFormulaFieldListPointExpressions () const
 
QVector< VFormulaFieldListArcExpressions () const
 
QVector< VFormulaFieldListElArcExpressions () const
 
QVector< VFormulaFieldListSplineExpressions () const
 
QVector< VFormulaFieldListPathPointExpressions () const
 
QVector< VFormulaFieldListOperationExpressions () const
 
QVector< VFormulaFieldListNodesExpressions (const QDomElement &nodes) const
 
QVector< VFormulaFieldListPathExpressions () const
 
QVector< VFormulaFieldListGrainlineExpressions (const QDomElement &element) const
 
QVector< VFormulaFieldListPieceExpressions () const
 
bool IsVariable (const QString &token) const
 
bool IsPostfixOperator (const QString &token) const
 
bool IsFunction (const QString &token) const
 
QPair< bool, QMap< quint32, quint32 > > ParseItemElement (const QDomElement &domElement)
 

Detailed Description

Definition at line 112 of file vabstractpattern.h.

Constructor & Destructor Documentation

◆ VAbstractPattern()

VAbstractPattern::VAbstractPattern ( QObject *  parent = nullptr)
explicit

Definition at line 257 of file vabstractpattern.cpp.

◆ ~VAbstractPattern()

virtual VAbstractPattern::~VAbstractPattern ( )
virtual

Member Function Documentation

◆ activeDraftBlockChanged

void VAbstractPattern::activeDraftBlockChanged ( const QString &  newName)
signal

activeDraftBlockChanged change active draft block.

Parameters
newNamenew pattern peace name.

Referenced by changeActiveDraftBlock(), setActiveDraftBlock(), and VDrawTool::VDrawTool().

◆ addGroupItem()

QDomElement VAbstractPattern::addGroupItem ( quint32  toolId,
quint32  objectId,
quint32  groupId 
)

Adds an item to the given group with the given toolId and objectId.

Parameters
toolId
objectId
groupId

Definition at line 2687 of file vabstractpattern.cpp.

References AttrObject, AttrTool, createGroups(), VDomDocument::elementById(), getGroupLock(), modified, parseGroups(), patternChanged(), TagGroup, TagGroupItem, and updateGroups().

Referenced by addToolToGroup(), VDrawTool::ContextMenu(), and GroupsWidget::groupItemContextMenu().

◆ addGroupItems()

QDomElement VAbstractPattern::addGroupItems ( const QString &  name,
const QMap< quint32, quint32 > &  groupData 
)

◆ AddTool()

◆ AddToolOnRemove()

void VAbstractPattern::AddToolOnRemove ( VDataTool tool)

◆ addToolToGroup()

void VAbstractPattern::addToolToGroup ( quint32  toolId,
quint32  objectId,
const QString &  groupName 
)

Adds an item to the given group with the given toolId and objectId.

Parameters
toolId

Definition at line 2638 of file vabstractpattern.cpp.

References addGroupItem(), createGroups(), getGroupIdByName(), getGroupLock(), getGroupsContainingItem(), modified, parseGroups(), patternChanged(), removeGroupItem(), and updateGroups().

◆ appendDraftBlock()

bool VAbstractPattern::appendDraftBlock ( const QString &  name)

appendDraftBlock add new draft block.

Method check if not exist draft block with the same name and change name active draft block name, send signal about change draft block. Doen't add draft block to file structure. This task make SPoint tool.

Parameters
namedraft block name.
Returns
true if success.

Definition at line 585 of file vabstractpattern.cpp.

References draftBlockNameExists(), and setActiveDraftBlock().

Referenced by MainWindow::addDraftBlock().

◆ changeActiveDraftBlock()

void VAbstractPattern::changeActiveDraftBlock ( const QString &  name,
const Document parse = Document::FullParse 
)

◆ ChangedCursor

void VAbstractPattern::ChangedCursor ( quint32  id)
signal

ChangedCursor change cursor position.

Parameters
idtool id.

Referenced by HistoryDialog::HistoryDialog(), and setCursor().

◆ CheckLayout

◆ CheckTagExists()

◆ ClearMainWindow

void VAbstractPattern::ClearMainWindow ( )
signal

◆ ClearScene

void VAbstractPattern::ClearScene ( )
slot

Definition at line 1651 of file vabstractpattern.cpp.

References ClearMainWindow().

Referenced by VToolBasePoint::AddToFile().

◆ CreateEmptyFile()

virtual void VAbstractPattern::CreateEmptyFile ( )
pure virtual

Implemented in VLitePattern, and VPattern.

Referenced by AddDraftBlock::redo().

◆ createGroup()

QDomElement VAbstractPattern::createGroup ( quint32  id,
const QString &  name,
const QString &  color,
const QString &  type,
const QString &  weight,
const QMap< quint32, quint32 > &  groupData 
)

◆ createGroups()

◆ DecrementReferens()

◆ DeleteImage()

void VAbstractPattern::DeleteImage ( )

◆ deleteToolFromGroup()

void VAbstractPattern::deleteToolFromGroup ( quint32  toolId)

Deletes an item from the group containing the toolId.

Parameters
toolId

Definition at line 2618 of file vabstractpattern.cpp.

References getGroupLock(), getGroupsContainingItem(), and removeGroupItem().

◆ draftBlockCount()

int VAbstractPattern::draftBlockCount ( ) const

◆ draftBlockNameChanged

void VAbstractPattern::draftBlockNameChanged ( const QString &  oldName,
const QString &  newName 
)
signal

draftBlockNameChanged save new name draft block.

Parameters
oldNameold name.
newNamenew name.

Referenced by renameDraftBlock(), and VDrawTool::VDrawTool().

◆ draftBlockNameExists()

bool VAbstractPattern::draftBlockNameExists ( const QString &  name) const

draftBlockNameExists check if draft block with this name exists.

Parameters
namedraft block name.
Returns
true if exist.

Definition at line 391 of file vabstractpattern.cpp.

References AttrName, VDomDocument::GetParametrString(), and TagDraftBlock.

Referenced by appendDraftBlock(), changeActiveDraftBlock(), and renameDraftBlock().

◆ FullUpdateFromFile

void VAbstractPattern::FullUpdateFromFile ( )
signal

◆ GenerateLabel()

virtual QString VAbstractPattern::GenerateLabel ( const LabelType type,
const QString &  reservedName = QString() 
) const
pure virtual

Implemented in VLitePattern, and VPattern.

◆ GenerateSuffix()

virtual QString VAbstractPattern::GenerateSuffix ( const QString &  type) const
pure virtual

Implemented in VLitePattern, and VPattern.

◆ getActiveDraftBlockIndex()

int VAbstractPattern::getActiveDraftBlockIndex ( ) const
protected

◆ getActiveDraftBlockName()

QString VAbstractPattern::getActiveDraftBlockName ( ) const

getActiveDraftBlockName return current draft block name.

Returns
draft block name.

Definition at line 348 of file vabstractpattern.cpp.

References activeDraftBlock.

Referenced by VAbstractTool::AddRecord(), MainWindow::exportDraftBlocksAs(), getBlockHistory(), getGroupObjHistory(), RenameDraftBlock::RenameDraftBlock(), and MainWindow::SetEnableWidgets().

◆ getActiveDraftElement()

bool VAbstractPattern::getActiveDraftElement ( QDomElement &  element) const
protected

getActiveDraftElement return draftBlock element for current draft block.

Parameters
elementdraftBlock element.
Returns
true if found.

Definition at line 359 of file vabstractpattern.cpp.

References activeDraftBlock, AttrName, and TagDraftBlock.

Referenced by createGroups(), getActiveNodeElement(), VPattern::getActivePatternPieces(), and VPattern::parseCurrentDraftBlock().

◆ getActiveNodeElement()

bool VAbstractPattern::getActiveNodeElement ( const QString &  name,
QDomElement &  element 
) const

getActiveNodeElement find element in current draft block by name.

Parameters
namename tag.
elementelement.
Returns
true if found.

Definition at line 420 of file vabstractpattern.cpp.

References getActiveDraftElement().

Referenced by VPattern::getActiveBasePoint(), AddDetNode::GetModelingSection(), AddPiece::getPiecesElement(), AddToCalc::redo(), and AddToCalc::undo().

◆ getBlockHistory()

QVector< VToolRecord > VAbstractPattern::getBlockHistory ( ) const

◆ GetCompanyName()

◆ getCursor()

quint32 VAbstractPattern::getCursor ( ) const

◆ GetCustomerName()

◆ getDartItems()

QVector< quint32 > VAbstractPattern::getDartItems ( const quint32 &  toolId)

◆ getDefaultLineColor()

QString VAbstractPattern::getDefaultLineColor ( ) const

Definition at line 626 of file vabstractpattern.cpp.

References m_DefaultLineColor.

◆ getDefaultLineType()

QString VAbstractPattern::getDefaultLineType ( ) const

Definition at line 638 of file vabstractpattern.cpp.

References m_DefaultLineType.

◆ getDefaultLineWeight()

qreal VAbstractPattern::getDefaultLineWeight ( ) const

Definition at line 632 of file vabstractpattern.cpp.

References m_DefaultLineWeight.

◆ GetDescription()

QString VAbstractPattern::GetDescription ( ) const

◆ getDraftBlockElement()

◆ getDraw()

QDomElement VAbstractPattern::getDraw ( const QString &  name) const

◆ GetGradationHeights()

◆ GetGradationSizes()

◆ getGroupByName()

QDomElement VAbstractPattern::getGroupByName ( const QString &  name)

◆ getGroupColor()

QString VAbstractPattern::getGroupColor ( quint32  id)

◆ getGroupIdByName()

quint32 VAbstractPattern::getGroupIdByName ( const QString &  name)

◆ getGroupLineType()

QString VAbstractPattern::getGroupLineType ( quint32  id)

◆ getGroupLineWeight()

QString VAbstractPattern::getGroupLineWeight ( quint32  id)

◆ getGroupLock()

◆ getGroupName()

QString VAbstractPattern::getGroupName ( quint32  id)

◆ getGroupObjHistory()

QMap< quint32, Tool > VAbstractPattern::getGroupObjHistory ( ) const

◆ getGroups()

◆ getGroupsContainingItem()

QMap< quint32, QString > VAbstractPattern::getGroupsContainingItem ( quint32  toolId,
quint32  objectId,
bool  containsItem 
)

Returns the groups that contain or do not contain the item identified by the toolid and the objectid.

Parameters
toolId
objectId
containsItem|true if the groups contain the given item, false if they don't contain the item
Returns

Definition at line 2537 of file vabstractpattern.cpp.

References VDomDocument::AttrId, AttrName, createGroups(), VDomDocument::GetParametrString(), VDomDocument::GetParametrUInt(), hasGroupItem(), and TagGroup.

Referenced by addToolToGroup(), VDrawTool::ContextMenu(), deleteToolFromGroup(), GroupsWidget::groupItemContextMenu(), useGroupColor(), useGroupLineType(), useGroupLineWeight(), GroupsWidget::zoomToObject(), and MainWindow::zoomToPoint().

◆ getGroupVisibility()

bool VAbstractPattern::getGroupVisibility ( quint32  id)

◆ getHistory()

QVector< VToolRecord > * VAbstractPattern::getHistory ( )

getHistory return list with list of history records.

Returns
list of history records.

Definition at line 843 of file vabstractpattern.cpp.

References history.

Referenced by VAbstractTool::AddRecord(), and HistoryDialog::showTool().

◆ GetImage()

QString VAbstractPattern::GetImage ( ) const

◆ GetImageExtension()

QString VAbstractPattern::GetImageExtension ( ) const

◆ GetLabelDateFormat()

◆ GetLabelTimeFormat()

◆ GetNotes()

QString VAbstractPattern::GetNotes ( ) const

◆ getOpItems()

QVector< quint32 > VAbstractPattern::getOpItems ( const quint32 &  toolId,
const QString &  itemType 
)

getOpItems get vector of operation tool obects.

Parameters
toolIdoperation tool id.
itemTypetype of item - either source or destination.
Returns
vector of item element object ids.

Definition at line 1592 of file vabstractpattern.cpp.

References AttrIdObject, VDomDocument::elementById(), VDomDocument::GetParametrUInt(), and NULL_ID_STR.

◆ getPatternLabelTemplate()

QVector< VLabelTemplateLine > VAbstractPattern::getPatternLabelTemplate ( ) const

◆ GetPatternName()

◆ GetPatternNumber()

◆ getPatternPieces()

QStringList VAbstractPattern::getPatternPieces ( ) const

Definition at line 943 of file vabstractpattern.cpp.

References patternPieces.

Referenced by MainWindow::FullParseFile().

◆ GetPatternWasChanged()

bool VAbstractPattern::GetPatternWasChanged ( ) const

Definition at line 1517 of file vabstractpattern.cpp.

References patternLabelWasChanged.

Referenced by VTextManager::Update().

◆ getTool()

◆ GetVersion()

QString VAbstractPattern::GetVersion ( ) const

◆ groupListByName()

QStringList VAbstractPattern::groupListByName ( )

◆ groupNameExists()

bool VAbstractPattern::groupNameExists ( const QString &  groupName)

◆ hasGroupItem()

bool VAbstractPattern::hasGroupItem ( const QDomElement &  groupDomElement,
quint32  toolId,
quint32  objectId 
)
protected

Checks if the given group has the item with the given toolId and objectId.

Parameters
groupDomElement
toolId
objectId
Returns

Definition at line 2587 of file vabstractpattern.cpp.

References AttrObject, AttrTool, and VDomDocument::GetParametrUInt().

Referenced by getGroupsContainingItem(), useGroupColor(), useGroupLineType(), and useGroupLineWeight().

◆ haveLiteChange

◆ IncrementReferens()

◆ InsertTag()

void VAbstractPattern::InsertTag ( const QStringList &  tags,
const QDomElement &  element 
)
protected

Definition at line 1765 of file vabstractpattern.cpp.

References SetVersion().

Referenced by CheckTagExists().

◆ IsFunction()

bool VAbstractPattern::IsFunction ( const QString &  token) const
private

Definition at line 2112 of file vabstractpattern.cpp.

References builInFunctions.

Referenced by ListMeasurements().

◆ isGroupEmpty()

bool VAbstractPattern::isGroupEmpty ( quint32  id)

Returns true if the given group is empty.

Parameters
id
Returns

Definition at line 2805 of file vabstractpattern.cpp.

References VDomDocument::elementById(), and TagGroup.

Referenced by GroupsWidget::fillTable(), and GroupTableWidgetItem::operator<().

◆ IsModified()

bool VAbstractPattern::IsModified ( ) const

Definition at line 2168 of file vabstractpattern.cpp.

References modified.

Referenced by MainWindow::PatternChangesWereSaved(), and MainWindow::SaveAs().

◆ IsPostfixOperator()

bool VAbstractPattern::IsPostfixOperator ( const QString &  token) const
private

Definition at line 2098 of file vabstractpattern.cpp.

References builInPostfixOperators.

Referenced by ListMeasurements().

◆ IsVariable()

bool VAbstractPattern::IsVariable ( const QString &  token) const
private

Definition at line 2077 of file vabstractpattern.cpp.

References builInVariables, currentLength, and currentSeamAllowance.

Referenced by ListMeasurements().

◆ ListArcExpressions()

QVector< VFormulaField > VAbstractPattern::ListArcExpressions ( ) const
private

◆ ListElArcExpressions()

◆ ListExpressions()

◆ ListGrainlineExpressions()

QVector< VFormulaField > VAbstractPattern::ListGrainlineExpressions ( const QDomElement &  element) const
private

◆ ListIncrementExpressions()

QVector< VFormulaField > VAbstractPattern::ListIncrementExpressions ( ) const

◆ ListIncrements()

QStringList VAbstractPattern::ListIncrements ( ) const
private

Definition at line 1803 of file vabstractpattern.cpp.

References VDomDocument::GetParametrString(), IncrementName, and TagIncrement.

Referenced by ListMeasurements().

◆ ListMeasurements()

QStringList VAbstractPattern::ListMeasurements ( ) const

◆ ListNodesExpressions()

QVector< VFormulaField > VAbstractPattern::ListNodesExpressions ( const QDomElement &  nodes) const
private

◆ ListOperationExpressions()

QVector< VFormulaField > VAbstractPattern::ListOperationExpressions ( ) const
private

◆ ListPathExpressions()

QVector< VFormulaField > VAbstractPattern::ListPathExpressions ( ) const
private

Definition at line 2011 of file vabstractpattern.cpp.

References LAST_ONE_DO_NOT_USE, ListNodesExpressions(), TagNodes, and TagPath.

Referenced by ListExpressions().

◆ ListPathPointExpressions()

QVector< VFormulaField > VAbstractPattern::ListPathPointExpressions ( ) const
private

◆ ListPieceExpressions()

◆ ListPointExpressions()

◆ ListSplineExpressions()

QVector< VFormulaField > VAbstractPattern::ListSplineExpressions ( ) const
private

Definition at line 1920 of file vabstractpattern.cpp.

References ListPathPointExpressions().

Referenced by ListExpressions().

◆ LiteParseTree

◆ MPath()

◆ NeedFullParsing

◆ parseGroups()

◆ parseItemElement()

QPair< bool, QMap< quint32, quint32 > > VAbstractPattern::parseItemElement ( const QDomElement &  domElement)

◆ ParseItemElement()

QPair<bool, QMap<quint32, quint32> > VAbstractPattern::ParseItemElement ( const QDomElement &  domElement)
private

◆ ParsePathNodes()

VPiecePath VAbstractPattern::ParsePathNodes ( const QDomElement &  domElement)
staticprotected

◆ ParsePieceAnchors()

QVector< quint32 > VAbstractPattern::ParsePieceAnchors ( const QDomElement &  domElement)
static

Definition at line 735 of file vabstractpattern.cpp.

References NULL_ID.

Referenced by QT_WARNING_POP::GetPiece2Anchors(), and VPattern::parsePieceElement().

◆ ParsePieceCSARecords()

◆ ParsePieceInternalPaths()

QVector< quint32 > VAbstractPattern::ParsePieceInternalPaths ( const QDomElement &  domElement)
static

◆ ParsePieceNodes()

VPiecePath VAbstractPattern::ParsePieceNodes ( const QDomElement &  domElement)
static

◆ ParseSANode()

◆ patternChanged

◆ patternHasGroups

void VAbstractPattern::patternHasGroups ( bool  value)
signal

◆ removeGroupItem()

QDomElement VAbstractPattern::removeGroupItem ( quint32  toolId,
quint32  objectId,
quint32  groupId 
)

Removes the item of given toolId and objectId from the group of given groupId.

Parameters
toolId
objectId
groupId

Definition at line 2738 of file vabstractpattern.cpp.

References AttrObject, AttrTool, createGroups(), VDomDocument::elementById(), getGroupLock(), VDomDocument::GetParametrUInt(), modified, parseGroups(), patternChanged(), TagGroup, and updateGroups().

Referenced by addToolToGroup(), VDrawTool::ContextMenu(), deleteToolFromGroup(), and GroupsWidget::groupItemContextMenu().

◆ RemoveTool()

void VAbstractPattern::RemoveTool ( quint32  id)
static

Definition at line 669 of file vabstractpattern.cpp.

References tools.

Referenced by QT_WARNING_POP::createUnion().

◆ renameDraftBlock()

bool VAbstractPattern::renameDraftBlock ( const QString &  oldName,
const QString &  newName 
)

renameDraftBlock change draft block name.

Parameters
oldNameold draft block name.
newNamenew draft block name.
Returns
true if success.

Definition at line 540 of file vabstractpattern.cpp.

References activeDraftBlock, AttrName, draftBlockNameChanged(), draftBlockNameExists(), getDraftBlockElement(), and patternChanged().

Referenced by RenameDraftBlock::changeName().

◆ selectedPiece

void VAbstractPattern::selectedPiece ( quint32  id)
slot

Definition at line 1663 of file vabstractpattern.cpp.

References showPiece().

Referenced by PatternPieceTool::mousePressEvent().

◆ setActiveDraftBlock()

void VAbstractPattern::setActiveDraftBlock ( const QString &  name)
protected

setActiveDraftBlock set current draft block.

Parameters
namedraft block name.

Definition at line 1698 of file vabstractpattern.cpp.

References activeDraftBlock, and activeDraftBlockChanged().

Referenced by appendDraftBlock(), and VPattern::Parse().

◆ SetChildTag()

void VAbstractPattern::SetChildTag ( const QString &  qsParent,
const QString &  qsChild,
const QString &  qsValue 
)
protected

◆ SetCompanyName()

void VAbstractPattern::SetCompanyName ( const QString &  qsName)

◆ setCurrentDraftBlock

◆ setCursor()

void VAbstractPattern::setCursor ( const quint32 &  value)

Definition at line 607 of file vabstractpattern.cpp.

References ChangedCursor(), and cursor.

Referenced by HistoryDialog::cellClicked(), and AddToCalc::redo().

◆ SetCustomerName()

void VAbstractPattern::SetCustomerName ( const QString &  qsName)

◆ setDefaultPen()

void VAbstractPattern::setDefaultPen ( Pen  pen)

◆ SetDescription()

void VAbstractPattern::SetDescription ( const QString &  text)

◆ SetEnabledGUI

void VAbstractPattern::SetEnabledGUI ( bool  enabled)
signal

◆ SetGradationHeights()

◆ SetGradationSizes()

◆ setGroupColor()

void VAbstractPattern::setGroupColor ( quint32  id,
QString  color 
)

◆ setGroupLineType()

void VAbstractPattern::setGroupLineType ( quint32  id,
QString  type 
)

◆ setGroupLineWeight()

void VAbstractPattern::setGroupLineWeight ( quint32  id,
QString  weight 
)

◆ setGroupLock()

◆ setGroupName()

void VAbstractPattern::setGroupName ( quint32  id,
const QString &  name 
)

◆ setGroupVisibility()

void VAbstractPattern::setGroupVisibility ( quint32  id,
bool  visible 
)

◆ SetImage()

void VAbstractPattern::SetImage ( const QString &  text,
const QString &  extension 
)

◆ SetLabelDateFormat()

void VAbstractPattern::SetLabelDateFormat ( const QString &  format)

◆ SetLabelTimeFormat()

void VAbstractPattern::SetLabelTimeFormat ( const QString &  format)

◆ SetModified()

void VAbstractPattern::SetModified ( bool  modified)

◆ SetMPath()

◆ SetNotes()

void VAbstractPattern::SetNotes ( const QString &  text)

◆ setPatternLabelTemplate()

◆ SetPatternName()

void VAbstractPattern::SetPatternName ( const QString &  qsName)

◆ SetPatternNumber()

void VAbstractPattern::SetPatternNumber ( const QString &  qsNum)

◆ SetPatternWasChanged()

◆ SetVersion()

void VAbstractPattern::SetVersion ( )

◆ showPiece

void VAbstractPattern::showPiece ( quint32  id)
signal

◆ ShowTool

void VAbstractPattern::ShowTool ( quint32  id,
bool  enable 
)
signal

ShowTool highlight tool.

Parameters
idtool id.
enableenable or disable highlight.

Referenced by HistoryDialog::HistoryDialog(), and VDrawTool::VDrawTool().

◆ SiblingNodeId()

quint32 VAbstractPattern::SiblingNodeId ( const quint32 &  nodeId) const

◆ ToolExists()

void VAbstractPattern::ToolExists ( const quint32 &  id)
staticprotected

◆ UndoCommand

void VAbstractPattern::UndoCommand ( )
signal

◆ updateGroups

void VAbstractPattern::updateGroups ( )
signal

◆ UpdateInLayoutList

void VAbstractPattern::UpdateInLayoutList ( quint32  id)
signal

◆ UpdatePatternLabel

◆ updatePieceList

void VAbstractPattern::updatePieceList ( quint32  id)
slot

◆ UpdateToolData()

◆ useGroupColor()

QString VAbstractPattern::useGroupColor ( quint32  toolId,
QString  color 
)

◆ useGroupLineType()

QString VAbstractPattern::useGroupLineType ( quint32  toolId,
QString  type 
)

◆ useGroupLineWeight()

QString VAbstractPattern::useGroupLineWeight ( quint32  toolId,
QString  weight 
)

Member Data Documentation

◆ activeDraftBlock

◆ AttrAll

const QString VAbstractPattern::AttrAll = QStringLiteral("all")
static

◆ AttrAnnotation

const QString VAbstractPattern::AttrAnnotation = QStringLiteral("annotation")
static

◆ AttrArrows

const QString VAbstractPattern::AttrArrows = QStringLiteral("arrows")
static

◆ AttrCustom

const QString VAbstractPattern::AttrCustom = QStringLiteral("custom")
static

Definition at line 404 of file vabstractpattern.h.

Referenced by VPattern::IsDefCustom(), and VPattern::SetDefCustom().

◆ AttrDateFormat

const QString VAbstractPattern::AttrDateFormat = QStringLiteral("dateFormat")
static

Definition at line 325 of file vabstractpattern.h.

Referenced by GetLabelDateFormat(), and SetLabelDateFormat().

◆ AttrDefHeight

const QString VAbstractPattern::AttrDefHeight = QStringLiteral("defHeight")
static

◆ AttrDefSize

const QString VAbstractPattern::AttrDefSize = QStringLiteral("defSize")
static

Definition at line 406 of file vabstractpattern.h.

Referenced by VPattern::GetDefCustomSize(), and VPattern::SetDefCustomSize().

◆ AttrEnd

const QString VAbstractPattern::AttrEnd = QStringLiteral("end")
static

Definition at line 343 of file vabstractpattern.h.

Referenced by PatternPieceTool::AddCSARecord(), and ParsePieceCSARecords().

◆ AttrExtension

const QString VAbstractPattern::AttrExtension = QStringLiteral("extension")
static

Definition at line 407 of file vabstractpattern.h.

Referenced by GetImageExtension(), and SetImage().

◆ AttrFoldPosition

const QString VAbstractPattern::AttrFoldPosition = QStringLiteral("foldPosition")
static

◆ AttrGroupColor

const QString VAbstractPattern::AttrGroupColor = QStringLiteral("groupColor")
static

Definition at line 313 of file vabstractpattern.h.

Referenced by createGroup(), getGroupColor(), getGroups(), and setGroupColor().

◆ AttrGroupLocked

const QString VAbstractPattern::AttrGroupLocked = QStringLiteral("locked")
static

Definition at line 312 of file vabstractpattern.h.

Referenced by addGroupItems(), createGroup(), getGroupLock(), getGroups(), and setGroupLock().

◆ AttrH104

const QString VAbstractPattern::AttrH104 = QStringLiteral("h104")
static

Definition at line 359 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH110

const QString VAbstractPattern::AttrH110 = QStringLiteral("h110")
static

Definition at line 360 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH116

const QString VAbstractPattern::AttrH116 = QStringLiteral("h116")
static

Definition at line 361 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH122

const QString VAbstractPattern::AttrH122 = QStringLiteral("h122")
static

Definition at line 362 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH128

const QString VAbstractPattern::AttrH128 = QStringLiteral("h128")
static

Definition at line 363 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH134

const QString VAbstractPattern::AttrH134 = QStringLiteral("h134")
static

Definition at line 364 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH140

const QString VAbstractPattern::AttrH140 = QStringLiteral("h140")
static

Definition at line 365 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH146

const QString VAbstractPattern::AttrH146 = QStringLiteral("h146")
static

Definition at line 366 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH152

const QString VAbstractPattern::AttrH152 = QStringLiteral("h152")
static

Definition at line 367 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH158

const QString VAbstractPattern::AttrH158 = QStringLiteral("h158")
static

Definition at line 368 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH164

const QString VAbstractPattern::AttrH164 = QStringLiteral("h164")
static

Definition at line 369 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH170

const QString VAbstractPattern::AttrH170 = QStringLiteral("h170")
static

Definition at line 370 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH176

const QString VAbstractPattern::AttrH176 = QStringLiteral("h176")
static

Definition at line 371 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH182

const QString VAbstractPattern::AttrH182 = QStringLiteral("h182")
static

Definition at line 372 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH188

const QString VAbstractPattern::AttrH188 = QStringLiteral("h188")
static

Definition at line 373 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH194

const QString VAbstractPattern::AttrH194 = QStringLiteral("h194")
static

Definition at line 374 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH200

const QString VAbstractPattern::AttrH200 = QStringLiteral("h200")
static

Definition at line 375 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH50

const QString VAbstractPattern::AttrH50 = QStringLiteral("h50")
static

Definition at line 350 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH56

const QString VAbstractPattern::AttrH56 = QStringLiteral("h56")
static

Definition at line 351 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH62

const QString VAbstractPattern::AttrH62 = QStringLiteral("h62")
static

Definition at line 352 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH68

const QString VAbstractPattern::AttrH68 = QStringLiteral("h68")
static

Definition at line 353 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH74

const QString VAbstractPattern::AttrH74 = QStringLiteral("h74")
static

Definition at line 354 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH80

const QString VAbstractPattern::AttrH80 = QStringLiteral("h80")
static

Definition at line 355 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH86

const QString VAbstractPattern::AttrH86 = QStringLiteral("h86")
static

Definition at line 356 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH92

const QString VAbstractPattern::AttrH92 = QStringLiteral("h92")
static

Definition at line 357 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrH98

const QString VAbstractPattern::AttrH98 = QStringLiteral("h98")
static

Definition at line 358 of file vabstractpattern.h.

Referenced by GetGradationHeights(), and SetGradationHeights().

◆ AttrIncludeAs

const QString VAbstractPattern::AttrIncludeAs = QStringLiteral("includeAs")
static

Definition at line 344 of file vabstractpattern.h.

Referenced by PatternPieceTool::AddCSARecord(), and ParsePieceCSARecords().

◆ AttrLetter

const QString VAbstractPattern::AttrLetter = QStringLiteral("letter")
static

◆ AttrName

◆ AttrNodeExcluded

const QString VAbstractPattern::AttrNodeExcluded = QStringLiteral("excluded")
static

Definition at line 329 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeIsNotch

const QString VAbstractPattern::AttrNodeIsNotch = QStringLiteral("notch")
static

Definition at line 330 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeNotchAngle

const QString VAbstractPattern::AttrNodeNotchAngle = QStringLiteral("notchAngle")
static

Definition at line 337 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeNotchCount

const QString VAbstractPattern::AttrNodeNotchCount = QStringLiteral("notchCount")
static

Definition at line 338 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeNotchLength

const QString VAbstractPattern::AttrNodeNotchLength = QStringLiteral("notchLength")
static

Definition at line 335 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeNotchSubType

const QString VAbstractPattern::AttrNodeNotchSubType = QStringLiteral("notchSubtype")
static

Definition at line 332 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeNotchType

const QString VAbstractPattern::AttrNodeNotchType = QStringLiteral("notchType")
static

Definition at line 331 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeNotchWidth

const QString VAbstractPattern::AttrNodeNotchWidth = QStringLiteral("notchWidth")
static

Definition at line 336 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeReverse

const QString VAbstractPattern::AttrNodeReverse = QStringLiteral("reverse")
static

◆ AttrNodeShowNotch

const QString VAbstractPattern::AttrNodeShowNotch = QStringLiteral("showNotch")
static

Definition at line 333 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrNodeShowSecondNotch

const QString VAbstractPattern::AttrNodeShowSecondNotch = QStringLiteral("showSecondNotch")
static

Definition at line 334 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), and ParseSANode().

◆ AttrObject

const QString VAbstractPattern::AttrObject = QStringLiteral("object")
static

◆ AttrOnFold

const QString VAbstractPattern::AttrOnFold = QStringLiteral("onFold")
static

◆ AttrOrientation

const QString VAbstractPattern::AttrOrientation = QStringLiteral("orientation")
static

◆ AttrPath

const QString VAbstractPattern::AttrPath = QStringLiteral("path")
static

◆ AttrQuantity

const QString VAbstractPattern::AttrQuantity = QStringLiteral("quantity")
static

◆ AttrRotation

◆ AttrRotationWay

const QString VAbstractPattern::AttrRotationWay = QStringLiteral("rotationWay")
static

◆ AttrS22

const QString VAbstractPattern::AttrS22 = QStringLiteral("s22")
static

Definition at line 377 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS24

const QString VAbstractPattern::AttrS24 = QStringLiteral("s24")
static

Definition at line 378 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS26

const QString VAbstractPattern::AttrS26 = QStringLiteral("s26")
static

Definition at line 379 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS28

const QString VAbstractPattern::AttrS28 = QStringLiteral("s28")
static

Definition at line 380 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS30

const QString VAbstractPattern::AttrS30 = QStringLiteral("s30")
static

Definition at line 381 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS32

const QString VAbstractPattern::AttrS32 = QStringLiteral("s32")
static

Definition at line 382 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS34

const QString VAbstractPattern::AttrS34 = QStringLiteral("s34")
static

Definition at line 383 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS36

const QString VAbstractPattern::AttrS36 = QStringLiteral("s36")
static

Definition at line 384 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS38

const QString VAbstractPattern::AttrS38 = QStringLiteral("s38")
static

Definition at line 385 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS40

const QString VAbstractPattern::AttrS40 = QStringLiteral("s40")
static

Definition at line 386 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS42

const QString VAbstractPattern::AttrS42 = QStringLiteral("s42")
static

Definition at line 387 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS44

const QString VAbstractPattern::AttrS44 = QStringLiteral("s44")
static

Definition at line 388 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS46

const QString VAbstractPattern::AttrS46 = QStringLiteral("s46")
static

Definition at line 389 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS48

const QString VAbstractPattern::AttrS48 = QStringLiteral("s48")
static

Definition at line 390 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS50

const QString VAbstractPattern::AttrS50 = QStringLiteral("s50")
static

Definition at line 391 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS52

const QString VAbstractPattern::AttrS52 = QStringLiteral("s52")
static

Definition at line 392 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS54

const QString VAbstractPattern::AttrS54 = QStringLiteral("s54")
static

Definition at line 393 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS56

const QString VAbstractPattern::AttrS56 = QStringLiteral("s56")
static

Definition at line 394 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS58

const QString VAbstractPattern::AttrS58 = QStringLiteral("s58")
static

Definition at line 395 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS60

const QString VAbstractPattern::AttrS60 = QStringLiteral("s60")
static

Definition at line 396 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS62

const QString VAbstractPattern::AttrS62 = QStringLiteral("s62")
static

Definition at line 397 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS64

const QString VAbstractPattern::AttrS64 = QStringLiteral("s64")
static

Definition at line 398 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS66

const QString VAbstractPattern::AttrS66 = QStringLiteral("s66")
static

Definition at line 399 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS68

const QString VAbstractPattern::AttrS68 = QStringLiteral("s68")
static

Definition at line 400 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS70

const QString VAbstractPattern::AttrS70 = QStringLiteral("s70")
static

Definition at line 401 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrS72

const QString VAbstractPattern::AttrS72 = QStringLiteral("s72")
static

Definition at line 402 of file vabstractpattern.h.

Referenced by GetGradationSizes(), and SetGradationSizes().

◆ AttrSAAfter

const QString VAbstractPattern::AttrSAAfter = QStringLiteral("after")
static

Definition at line 340 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), ListNodesExpressions(), and ParseSANode().

◆ AttrSABefore

const QString VAbstractPattern::AttrSABefore = QStringLiteral("before")
static

Definition at line 339 of file vabstractpattern.h.

Referenced by VAbstractTool::AddSANode(), ListNodesExpressions(), and ParseSANode().

◆ AttrStart

const QString VAbstractPattern::AttrStart = QStringLiteral("start")
static

Definition at line 341 of file vabstractpattern.h.

Referenced by PatternPieceTool::AddCSARecord(), and ParsePieceCSARecords().

◆ AttrTilt

const QString VAbstractPattern::AttrTilt = QStringLiteral("tilt")
static

◆ AttrTimeFormat

const QString VAbstractPattern::AttrTimeFormat = QStringLiteral("timeFormat")
static

Definition at line 326 of file vabstractpattern.h.

Referenced by GetLabelTimeFormat(), and SetLabelTimeFormat().

◆ AttrTool

const QString VAbstractPattern::AttrTool = QStringLiteral("tool")
static

◆ AttrType

const QString VAbstractPattern::AttrType = QStringLiteral("type")
static

◆ AttrVisible

◆ AttrWidth

◆ cursor

quint32 VAbstractPattern::cursor
protected

cursor cursor keep id tool after which we will add new tool in file.

Definition at line 482 of file vabstractpattern.h.

Referenced by getCursor(), VPattern::PrepareForParse(), and setCursor().

◆ history

QVector<VToolRecord> VAbstractPattern::history
protected

◆ IncrementDescription

const QString VAbstractPattern::IncrementDescription = QStringLiteral("description")
static

◆ IncrementFormula

const QString VAbstractPattern::IncrementFormula = QStringLiteral("formula")
static

◆ IncrementName

const QString VAbstractPattern::IncrementName = QStringLiteral("name")
static

◆ lastSavedExportFormat

QString VAbstractPattern::lastSavedExportFormat
protected

Definition at line 479 of file vabstractpattern.h.

◆ m_DefaultLineColor

QString VAbstractPattern::m_DefaultLineColor
protected

Definition at line 475 of file vabstractpattern.h.

Referenced by getDefaultLineColor(), and setDefaultPen().

◆ m_DefaultLineType

QString VAbstractPattern::m_DefaultLineType
protected

Definition at line 477 of file vabstractpattern.h.

Referenced by getDefaultLineType(), and setDefaultPen().

◆ m_DefaultLineWeight

qreal VAbstractPattern::m_DefaultLineWeight
protected

Definition at line 476 of file vabstractpattern.h.

Referenced by getDefaultLineWeight(), and setDefaultPen().

◆ modified

bool VAbstractPattern::modified
mutableprotected

◆ NodeArc

const QString VAbstractPattern::NodeArc = QStringLiteral("NodeArc")
static

◆ NodeElArc

const QString VAbstractPattern::NodeElArc = QStringLiteral("NodeElArc")
static

◆ NodePoint

const QString VAbstractPattern::NodePoint = QStringLiteral("NodePoint")
static

◆ NodeSpline

const QString VAbstractPattern::NodeSpline = QStringLiteral("NodeSpline")
static

◆ NodeSplinePath

const QString VAbstractPattern::NodeSplinePath = QStringLiteral("NodeSplinePath")
static

◆ patternLabelLines

QVector< VLabelTemplateLine > VAbstractPattern::patternLabelLines = QVector<VLabelTemplateLine>()
staticprotected

patternLabelLines list to speed up reading a template by many pieces.

Definition at line 498 of file vabstractpattern.h.

Referenced by getPatternLabelTemplate(), and setPatternLabelTemplate().

◆ patternLabelWasChanged

bool VAbstractPattern::patternLabelWasChanged = false
staticprotected

◆ patternPieces

QStringList VAbstractPattern::patternPieces
protected

patternPieces list of patern pieces names for combobox

Definition at line 490 of file vabstractpattern.h.

Referenced by getPatternPieces(), VPattern::Parse(), and VPattern::PrepareForParse().

◆ TagArc

const QString VAbstractPattern::TagArc = QStringLiteral("arc")
static

◆ TagCalculation

const QString VAbstractPattern::TagCalculation = QStringLiteral("calculation")
static

◆ TagCompanyName

const QString VAbstractPattern::TagCompanyName = QStringLiteral("company")
static

◆ TagCustomerName

const QString VAbstractPattern::TagCustomerName = QStringLiteral("customer")
static

◆ TagData

const QString VAbstractPattern::TagData = QStringLiteral("data")
static

◆ TagDescription

const QString VAbstractPattern::TagDescription = QStringLiteral("description")
static

◆ TagDraftBlock

◆ TagElArc

const QString VAbstractPattern::TagElArc = QStringLiteral("elArc")
static

◆ TagGradation

◆ TagGrainline

const QString VAbstractPattern::TagGrainline = QStringLiteral("grainline")
static

◆ TagGroup

◆ TagGroupItem

const QString VAbstractPattern::TagGroupItem = QStringLiteral("item")
static

Definition at line 287 of file vabstractpattern.h.

Referenced by addGroupItem(), addGroupItems(), createGroup(), and parseItemElement().

◆ TagGroups

const QString VAbstractPattern::TagGroups = QStringLiteral("groups")
static

Definition at line 285 of file vabstractpattern.h.

Referenced by createGroups(), and VPattern::parseDraftBlockElement().

◆ TagHeights

const QString VAbstractPattern::TagHeights = QStringLiteral("heights")
static

◆ TagImage

const QString VAbstractPattern::TagImage = QStringLiteral("image")
static

◆ TagIncrement

const QString VAbstractPattern::TagIncrement = QStringLiteral("increment")
static

◆ TagIncrements

◆ TagLine

const QString VAbstractPattern::TagLine = QStringLiteral("line")
static

◆ TagMeasurements

const QString VAbstractPattern::TagMeasurements = QStringLiteral("measurements")
static

Definition at line 281 of file vabstractpattern.h.

Referenced by VPattern::CreateEmptyFile(), MPath(), VPattern::Parse(), and SetMPath().

◆ TagModeling

const QString VAbstractPattern::TagModeling = QStringLiteral("modeling")
static

◆ TagNode

const QString VAbstractPattern::TagNode = QStringLiteral("node")
static

◆ TagNodes

◆ TagNotes

const QString VAbstractPattern::TagNotes = QStringLiteral("notes")
static

◆ TagOperation

const QString VAbstractPattern::TagOperation = QStringLiteral("operation")
static

◆ TagPath

const QString VAbstractPattern::TagPath = QStringLiteral("path")
static

◆ TagPattern

const QString VAbstractPattern::TagPattern = QStringLiteral("pattern")
static

Definition at line 273 of file vabstractpattern.h.

Referenced by VPattern::CreateEmptyFile().

◆ TagPatternInfo

const QString VAbstractPattern::TagPatternInfo = QStringLiteral("patternInfo")
static

◆ TagPatternLabel

const QString VAbstractPattern::TagPatternLabel = QStringLiteral("patternLabel")
static

◆ TagPatternName

const QString VAbstractPattern::TagPatternName = QStringLiteral("patternName")
static

◆ TagPatternNum

const QString VAbstractPattern::TagPatternNum = QStringLiteral("patternNumber")
static

◆ TagPiece

◆ TagPieces

const QString VAbstractPattern::TagPieces = QStringLiteral("pieces")
static

◆ TagPoint

◆ TagSizes

const QString VAbstractPattern::TagSizes = QStringLiteral("sizes")
static

◆ TagSpline

const QString VAbstractPattern::TagSpline = QStringLiteral("spline")
static

◆ TagTools

◆ tools

◆ toolsOnRemove

QVector<VDataTool*> VAbstractPattern::toolsOnRemove
protected

Definition at line 484 of file vabstractpattern.h.

Referenced by AddToolOnRemove(), and VPattern::PrepareForParse().


The documentation for this class was generated from the following files: