53 #ifndef PATTERN_PIECE_DIALOG
54 #define PATTERN_PIECE_DIALOG
56 #include "../dialogtool.h"
57 #include "../vpatterndb/vpiece.h"
58 #include "../vpatterndb/floatItemData/vgrainlinedata.h"
59 #include "../vpatterndb/floatItemData/vpatternlabeldata.h"
60 #include "../vpatterndb/floatItemData/vpiecelabeldata.h"
72 class AnchorPointsTab;
84 QWidget *parent =
nullptr);
89 void pageChanged(QListWidgetItem *current, QListWidgetItem *previous);
99 virtual void ShowDialog(
bool click) Q_DECL_OVERRIDE;
102 virtual void SaveData() Q_DECL_OVERRIDE;
104 virtual bool eventFilter(QObject *
object, QEvent *event) Q_DECL_OVERRIDE;
106 virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
107 virtual void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
108 virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
248 QString
getPathName(quint32 path,
bool reverse = false) const;
void updateNodeBeforeSeamAllowance(const QString &formula)
void expandPieceLabelHeight()
void notchLengthChanged(qreal value)
void expandPatternLabelWidth()
void setPieceLabelAngle(QString angleFormula)
virtual void CheckState() Q_DECL_FINAL
SaveData Put dialog data in local variables.
VPieceNode getLastNode() const
void initializePropertiesTab()
void setErrorText(TabOrder tab, QString text)
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
closeEvent handle when dialog cloded
void setSeamAllowanceWidthFormula(const QString &formula)
int m_patternLabelHeightBaseHeight
void showAnchorsContextMenu(const QPoint &pos)
void initAnchorPointComboboxes()
void editGrainlineFormula()
void setPatternLabelHeight(QString heightFormula)
void customSAEndPointChanged(int index)
void evaluateBeforeWidth()
void setPieceLock(const bool &state)
void editPieceLabelFormula()
void setPieceColor(const QString &value)
void notchCountChanged(int value)
void setPieceLabelWidth(QString widthFormula)
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
ChosenObject adds selected object of id and type to list of path items.
void customSAStartPointChanged(int index)
bool flagPatternLabelAnchor
QString getPathName(quint32 path, bool reverse=false) const
VPatternLabelData m_oldGeom
void setGrainlineLength(QString lengthFormula)
int m_pieceLabelWidthBaseHeight
void initAnchorPoint(QComboBox *box)
void defaultWidthChanged()
void notchTypeChanged(int id)
void expandGrainlineRotation()
QPointer< PieceAnchorPointVisual > m_anchorPoints
QPointer< DialogTool > m_dialog
QTimer * m_timerWidthBefore
QString getPieceColor() const
void initializeNotchesList()
void editDefaultSeamAllowanceWidth()
bool flagPatternLabelAngle
void setPatternLabelWidth(QString widthFormula)
virtual bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE
bool isMainPathClockwise() const
int m_patternLabelWidthBaseHeight
void updateNodeAfterSeamAllowance(const QString &formula)
void evaluateAfterWidth()
void initializeLabelsTab()
void setNotch(QListWidgetItem *rowItem, bool isNotch, NotchType notchType)
bool flagPieceLabelFormula
VPieceLabelData m_oldData
void expandWidthAfterFormulaTextEdit()
void enableApply(bool enable)
QVector< VLabelTemplateLine > m_pieceLabelLines
void expandPieceLabelWidth()
void enableBuiltIn(bool enable)
void setCurrentAfterSeamAllowance(const QString &formula)
void enableDefaultBeforeButton()
void setCurrentBeforeSeamAllowance(const QString &formula)
void patternLabelAnchorChanged()
void showCustomSAContextMenu(const QPoint &pos)
QString createPieceName() const
void customSeamAllowanceChanged(int row)
qreal getFormulaValue(QPlainTextEdit *text) const
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
void setPieceLabelHeight(QString heightFormula)
void duplicateNode(QListWidgetItem *rowItem)
bool flagPatternLabelFormula
Ui::PatternPieceDialog * ui
void enableSeamAllowance(bool enable)
void notchWidthChanged(qreal value)
void editPatternLabelFormula()
void setCurrentText(QComboBox *box, const QString &text) const
bool pointNodesExist() const
void initializeSeamAllowanceTab()
void initializeGrainlineTab()
void notchChanged(int index)
void editAfterSeamAllowanceWidth()
void expandWidthBeforeFormulaTextEdit()
void validateObjects(bool value)
bool flagPieceLabelAnchor
int m_patternLabelAngleBaseHeight
void beforeWidthChanged()
void showNotchChanged(int state)
int m_pieceLabelAngleBaseHeight
void initializeSAIncludeType()
void setPatternLabelAngle(QString angleFormula)
void setInLayout(const bool &state)
void initializeNotchesTab()
void clearErrorText(TabOrder tab, QString text)
VPiece CreatePiece() const
void updatePieceLabelValues()
void updateCurrentInternalPathRecord()
int m_pieceLabelHeightBaseHeight
void SetPiece(const VPiece &piece)
void newInternalPath(quint32 path)
QVector< VLabelTemplateLine > m_patternLabelLines
void newCustomSeamAllowance(const CustomSARecord &record)
QString getSeamAllowanceWidthFormula() const
void enabledPatternLabel()
void showInternalPathsContextMenu(const QPoint &pos)
void initializeInternalPathsTab()
void pieceLabelAnchorChanged()
void showSeamlineNotchChanged(int state)
void updateCurrentCustomSARecord()
void initializeCSAPoint(QComboBox *box)
PatternPieceDialog(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
void pathDialogClosed(int result)
void initializeNodesList()
void editBeforeSeamAllowanceWidth()
void newAnchorPoint(quint32 anchorPoint)
virtual void ShowDialog(bool click) Q_DECL_OVERRIDE
void notchSubTypeChanged(int id)
virtual ~PatternPieceDialog()
void expandPatternLabelAngle()
void newMainPathItem(const VPieceNode &node)
void grainlineAnchorChanged()
QListWidgetItem * getItemById(quint32 id)
void enableDefaultAfterButton()
void nodeAngleChanged(int index)
void resetLabelsWarning()
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE
showEvent handle when window show
QString getPieceFill() const
void updateGrainlineValues()
void expandWidthFormulaTextEdit()
void setPieceFill(const QString &value)
bool flagGrainlineFormula
void nodeChanged(int index)
void expandPieceLabelAngle()
void updatePatternLabelValues()
void reverseNode(QListWidgetItem *rowItem)
void pageChanged(QListWidgetItem *current, QListWidgetItem *previous)
void setGrainlineAngle(QString angleFormula)
quint32 getPreviousId() const
void evaluateDefaultWidth()
void excludeNode(QListWidgetItem *rowItem)
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE
bool getPieceLock() const
void initializeMainPathTab()
void resetGrainlineWarning()
void initializeAnchorsTab()
void expandPatternLabelHeight()
void showMainPathContextMenu(const QPoint &pos)
void customSAIncludeTypeChanged(int index)
bool isMainPathValid() const
void expandGrainlineLength()
QTimer * m_timerWidthAfter
void notchAngleChanged(qreal value)
VGrainlineData m_oldGrainline
The VContainer class container of all variables.
The VGrainlineData class holds information about a grainline like position, size, rotation and visibi...
The VPatternLabelData class holds the information about pattern info label geometry.
The VPieceLabelData class holds some information about a single piece like letter,...
The CustomSA struct contains record about custom seam allowanse (SA).