Seamly2D
Code documentation
MainWindow Class Reference

The MainWindow class main windows. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:

Public Slots

void ProcessCMD ()
 
void penChanged (Pen pen)
 
virtual void ShowToolTip (const QString &toolTip) Q_DECL_OVERRIDE
 ShowTool highlight tool.Tip show tools tooltip. More...
 
virtual void updateGroups () Q_DECL_OVERRIDE
 triggers the update of the groups More...
 
virtual void zoomToSelected () Q_DECL_OVERRIDE
 
void showAllGroups ()
 
void hideAllGroups ()
 
void lockAllGroups ()
 
void unlockAllGroups ()
 
void addGroupToList ()
 
void deleteGroupFromList ()
 
void editGroup ()
 
void addSelectedItemsToGroup ()
 
- Public Slots inherited from MainWindowsNoGUI
void toolLayoutSettings (QToolButton *tButton, bool checked)
 
void PrintPreviewOrigin ()
 
void PrintPreviewTiled ()
 
void PrintOrigin ()
 
void PrintTiled ()
 
void refreshLabels ()
 refreshLabels call to recalculate piece labels. For example after changing a font. More...
 
void refreshGrainLines ()
 refreshGrainLines call to recalculate piece grainlines. For example after show / hide grainlines. More...
 
void refreshSeamAllowances ()
 refreshSeamAllowances call to show / hide seam allowances. More...
 
void exportSVG (const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene) const
 exportSVG save layout to svg file. More...
 
void exportPNG (const QString &name, QGraphicsScene *scene) const
 exportPNG save layout to png file. More...
 
void exportTIF (const QString &name, QGraphicsScene *scene) const
 exportTIF save layout to tif file. More...
 
void exportJPG (const QString &name, QGraphicsScene *scene) const
 exportJPG save layout to jpg file. More...
 
void exportBMP (const QString &name, QGraphicsScene *scene) const
 exportBMP save layout to bmp file. More...
 
void exportPPM (const QString &name, QGraphicsScene *scene) const
 exportPPM save layout to gif file. More...
 
void exportPDF (const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene, bool ignoreMargins, const QMarginsF &margins) const
 exportPDF save layout to pdf file. More...
 
void exportEPS (const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene, bool ignoreMargins, const QMarginsF &margins) const
 exportEPS( save layout to eps file. More...
 
void exportPS (const QString &name, QGraphicsRectItem *paper, QGraphicsScene *scene, bool ignoreMargins, const QMarginsF &margins) const
 exportPS save layout to ps file. More...
 
- Public Slots inherited from VAbstractMainWindow
virtual void ShowToolTip (const QString &toolTip)=0
 
virtual void updateGroups ()=0
 
virtual void zoomToSelected ()=0
 

Signals

void RefreshHistory ()
 
void EnableItemMove (bool move)
 
void ItemsSelection (SelectionType type) const
 
void EnableLabelSelection (bool enable) const
 
void EnablePointSelection (bool enable) const
 
void EnableLineSelection (bool enable) const
 
void EnableArcSelection (bool enable) const
 
void EnableElArcSelection (bool enable) const
 
void EnableSplineSelection (bool enable) const
 
void EnableSplinePathSelection (bool enable) const
 
void EnableNodeLabelSelection (bool enable) const
 
void EnableNodePointSelection (bool enable) const
 
void enablePieceSelection (bool enable) const
 
void EnableLabelHover (bool enable) const
 
void EnablePointHover (bool enable) const
 
void EnableLineHover (bool enable) const
 
void EnableArcHover (bool enable) const
 
void EnableElArcHover (bool enable) const
 
void EnableSplineHover (bool enable) const
 
void EnableSplinePathHover (bool enable) const
 
void EnableNodeLabelHover (bool enable) const
 
void EnableNodePointHover (bool enable) const
 
void enablePieceHover (bool enable) const
 
void signalZoomToAreaActive (bool enable) const
 
void signalZoomPanActive (bool enable) const
 

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 MainWindow constructor. More...
 
virtual ~MainWindow () Q_DECL_OVERRIDE
 
bool LoadPattern (const QString &fileName, const QString &customMeasureFile=QString())
 LoadPattern open pattern file. More...
 
- Public Member Functions inherited from MainWindowsNoGUI
 MainWindowsNoGUI (QWidget *parent=nullptr)
 
virtual ~MainWindowsNoGUI () Q_DECL_OVERRIDE
 
- Public Member Functions inherited from VAbstractMainWindow
 VAbstractMainWindow (QWidget *parent=nullptr)
 
virtual ~VAbstractMainWindow () Q_DECL_EQ_DEFAULT
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event) Q_DECL_OVERRIDE
 keyPressEvent handle key press events. More...
 
virtual void keyReleaseEvent (QKeyEvent *event) Q_DECL_OVERRIDE
 keyReleaseEvent handle key press events. More...
 
virtual void showEvent (QShowEvent *event) Q_DECL_OVERRIDE
 showEvent handle after show window. More...
 
virtual void changeEvent (QEvent *event) Q_DECL_OVERRIDE
 
virtual void closeEvent (QCloseEvent *event) Q_DECL_OVERRIDE
 closeEvent handle after close window. More...
 
virtual void customEvent (QEvent *event) Q_DECL_OVERRIDE
 
virtual void CleanLayout () Q_DECL_OVERRIDE
 
virtual void PrepareSceneList () Q_DECL_OVERRIDE
 
virtual void exportToCSVData (const QString &fileName, const DialogExportToCSV &dialog) Q_DECL_FINAL
 
void handleExportToCSV ()
 
- Protected Member Functions inherited from MainWindowsNoGUI
void ExportData (const QVector< VLayoutPiece > &pieceList, const ExportLayoutDialog &dialog)
 
void InitTempLayoutScene ()
 
QIcon ScenePreview (int i) const
 
bool LayoutSettings (VLayoutGenerator &lGenerator)
 
int ContinueIfLayoutStale ()
 
QString FileName () const
 
void SetSizeHeightForIndividualM () const
 
- Protected Member Functions inherited from VAbstractMainWindow
bool ContinueFormatRewrite (const QString &currentFormatVersion, const QString &maxFormatVersion)
 
void ToolBarStyle (QToolBar *bar)
 

Private Types

enum  { MaxRecentFiles = 5 }
 drawMode true if draft scene active. More...
 

Private Slots

void zoomScaleChanged (qreal scale)
 
void MouseMove (const QPointF &scenePos)
 mouseMove save mouse position and show user. More...
 
void Clear ()
 Clear reset to default window. More...
 
void PatternChangesWereSaved (bool saved)
 haveChange enable action save if we have unsaved change. More...
 
void LastUsedTool ()
 
void FullParseFile ()
 
void SetEnabledGUI (bool enabled)
 
void GlobalchangeDraftBlock (const QString &patternPiece)
 
void ToolBarStyles ()
 
void resetOrigins ()
 
void showLayoutPages (int index)
 
void Preferences ()
 
void exportLayoutAs ()
 
void exportPiecesAs ()
 
void exportDraftBlocksAs ()
 
void handleArrowTool (bool checked)
 handleArrowTool enable arrow tool. More...
 
void handlePointAtDistanceAngleTool (bool checked)
 handlePointAtDistanceAngleTool handler for handlePointAtDistanceAngle tool. More...
 
void handleAlongLineTool (bool checked)
 handleAlongLineTool handler for point along Line tools. More...
 
void handleMidpointTool (bool checked)
 
void handleShoulderPointTool (bool checked)
 handleShoulderPointTool handler for shoulderPoint tool. More...
 
void handleNormalTool (bool checked)
 handleNormalTool handler point on perpendicular tool. More...
 
void handleBisectorTool (bool checked)
 handleBisectorTool handler for bisector tool. More...
 
void handleHeightTool (bool checked)
 handleHeightTool handler tool height. More...
 
void handleTriangleTool (bool checked)
 handleTriangleTool handler Point - Intersect Axis and Triangle. More...
 
void handleLineIntersectAxisTool (bool checked)
 
void handlePointOfContactTool (bool checked)
 handlePointOfContactTool handler for pointOfContact tool. More...
 
void handlePointIntersectXYTool (bool checked)
 handlePointIntersectXYTool handler for pointOfIntersection tool. More...
 
void handleLineTool (bool checked)
 handleLineTool handler for line tool. More...
 
void handleLineIntersectTool (bool checked)
 handleLineIntersectTool handler for lineIntersect tool. More...
 
void handleCurveTool (bool checked)
 handleCurveTool handler for curve tool. More...
 
void handleSplineTool (bool checked)
 handleSplineTool handler for spline tool. More...
 
void handleCurveWithControlPointsTool (bool checked)
 
void handleSplineWithControlPointsTool (bool checked)
 
void handlePointAlongCurveTool (bool checked)
 handlePointAlongCurveTool handler for point along curve tool. More...
 
void handlePointAlongSplineTool (bool checked)
 handlePointAlongSplineTool handler for point along spline tool. More...
 
void handleCurveIntersectCurveTool (bool checked)
 
void handleCurveIntersectAxisTool (bool checked)
 
void handleArcTool (bool checked)
 handleArcTool handler for arc tool. More...
 
void handlePointAlongArcTool (bool checked)
 handlePointAlongArcTool handler for PointAlongArc tool. More...
 
void handlePointFromArcAndTangentTool (bool checked)
 
void handleArcWithLengthTool (bool checked)
 
void handleArcIntersectAxisTool (bool checked)
 
void handlePointOfIntersectionArcsTool (bool checked)
 
void handlePointOfIntersectionCirclesTool (bool checked)
 
void handlePointFromCircleAndTangentTool (bool checked)
 
void handleEllipticalArcTool (bool checked)
 handleEllipticalArcTool handler for EllipticalArc tool. More...
 
void handleGroupTool (bool checked)
 
void handleRotationTool (bool checked)
 
void handleMirrorByLineTool (bool checked)
 
void handleMirrorByAxisTool (bool checked)
 
void handleMoveTool (bool checked)
 
void handleTrueDartTool (bool checked)
 
void handleInternalPathTool (bool checked)
 
void handleAnchorPointTool (bool checked)
 
void handleInsertNodesTool (bool checked)
 
void handlePatternPieceTool (bool checked)
 handlePatternPieceTool handler for pattern piece tool. More...
 
void handleUnionTool (bool checked)
 handleUnionTool handler for Union tool. More...
 
void handleNewLayout (bool checked)
 handleNewLayout handler for New Layout tool. More...
 
void showDraftMode (bool checked)
 showDraftMode show draw scene. More...
 
void showPieceMode (bool checked)
 showPieceMode show Piece scene. More...
 
void showLayoutMode (bool checked)
 showLayoutMode show layout scene. More...
 
void New ()
 NewPattern create new empty pattern. More...
 
bool SaveAs ()
 SaveAs save as pattern file. More...
 
bool Save ()
 Save save pattern file. More...
 
void Open ()
 Open ask user select pattern file. More...
 
void closeUnionDialog (int result)
 closeUnionDialog actions after closing Union tool dialog. More...
 
void ClosedEditGroupDialog (int result)
 
void ClosedDialogInternalPath (int result)
 
void ClosedDialogAnchorPoint (int result)
 
void ClosedInsertNodesDialog (int result)
 
void zoomToPrevious ()
 
void zoomToArea (bool checked)
 
void zoomPan (bool checked)
 
void zoomToPoint (const QString &pointName)
 zoomToPoint show dialog for choosing a point and update the graphics view to focus on it. More...
 
void showZoomToPointDialog ()
 zoomToPoint show dialog for choosing a point and update the graphics view to focus on it. More...
 
void LoadIndividual ()
 
void LoadMultisize ()
 
void UnloadMeasurements ()
 
void ShowMeasurements ()
 
void MeasurementsChanged (const QString &path)
 
void SyncMeasurements ()
 
void ChangedSize (int index)
 ChangedSize change new size value. More...
 
void ChangedHeight (int index)
 ChangedGrowth change new height value. More...
 

Private Member Functions

void SetDefaultHeight ()
 
void SetDefaultSize ()
 
void initStatusBar ()
 initStatusBar initialize horizontal bar for presenting status information More...
 
void initModesToolBar ()
 
void initDraftToolBar ()
 initDraftToolBar enable draw toolbar. More...
 
void initPointNameToolBar ()
 initPointNameToolBar enable Point Name toolbar. More...
 
void initToolsToolBar ()
 
void initToolBarVisibility ()
 
void initPenToolBar ()
 initPenToolBar enable default color, line wight & type toolbar. More...
 
void updateToolBarVisibility ()
 
void setToolBarVisibility (QToolBar *toolbar, bool visible)
 
void InitToolButtons ()
 
void handlePointsMenu ()
 
void handleLinesMenu ()
 
void handleArcsMenu ()
 
void handleCurvesMenu ()
 
void handleCirclesMenu ()
 
void handleOperationsMenu ()
 
void handlePatternPiecesMenu ()
 
void handlePieceMenu ()
 
void handleLayoutMenu ()
 
void handleImagesMenu ()
 
void CancelTool ()
 CancelTool cancel tool. More...
 
void SetEnableWidgets (bool enable)
 SetEnableWidgets enable action button. More...
 
void setEnableTools (bool enable)
 setEnableTools enable button. More...
 
void SetLayoutModeActions ()
 
void SaveCurrentScene ()
 SaveCurrentScene save scene options before set another. More...
 
void RestoreCurrentScene ()
 RestoreCurrentScene restore scene options after change. More...
 
void MinimumScrollBar ()
 MinimumScrollBar set scroll bar to minimum. More...
 
template<typename Dialog , typename Func >
void SetToolButton (bool checked, Tool t, const QString &cursor, const QString &toolTip, Func closeDialogSlot)
 SetToolButton set tool and show dialog. More...
 
template<typename Dialog , typename Func , typename Func2 >
void SetToolButtonWithApply (bool checked, Tool t, const QString &cursor, const QString &toolTip, Func closeDialogSlot, Func2 applyDialogSlot)
 SetToolButtonWithApply set tool and show dialog. More...
 
template<typename DrawTool >
void ClosedDialog (int result)
 ClosedDialog handle close dialog. More...
 
template<typename DrawTool >
void ClosedDialogWithApply (int result, VMainGraphicsScene *scene)
 ClosedDialogWithApply handle close dialog that has apply button. More...
 
template<typename DrawTool >
void ApplyDialog (VMainGraphicsScene *scene)
 ApplyDialog handle apply in dialog. More...
 
template<typename DrawTool >
void ClosedDrawDialogWithApply (int result)
 
template<typename DrawTool >
void ApplyDrawDialog ()
 
template<typename DrawTool >
void ClosedPiecesDialogWithApply (int result)
 
template<typename DrawTool >
void applyPiecesDialog ()
 
bool SavePattern (const QString &fileName, QString &error)
 SavePattern save pattern file. More...
 
void AutoSavePattern ()
 AutoSavePattern start safe saving. More...
 
void setCurrentFile (const QString &fileName)
 setCurrentFile the function is called to reset the state of a few variables when a file is loaded or saved, or when the user starts editing a new file (in which case fileName is empty). More...
 
void ReadSettings ()
 ReadSettings read setting for app. More...
 
void WriteSettings ()
 WriteSettings save setting for app. More...
 
bool MaybeSave ()
 MaybeSave The function is called to save pending changes. More...
 
void UpdateRecentFileActions ()
 
void CreateMenus ()
 
void CreateActions ()
 
void InitAutoSave ()
 
QString createDraftBlockName (const QString &text)
 
QString CheckPathToMeasurements (const QString &patternPath, const QString &path)
 
QComboBox * SetGradationList (QLabel *label, const QStringList &list)
 
void changeDraftBlock (int index, bool zoomBestFit=true)
 
void EndVisualization (bool click=false)
 EndVisualization try show dialog after and working with tool visualization. More...
 
void zoomFirstShow ()
 zoomFirstShow Fit scene size to best size for first show More...
 
void UpdateHeightsList (const QStringList &list)
 
void UpdateSizesList (const QStringList &list)
 
void AddDocks ()
 
void InitDocksContain ()
 
bool OpenNewSeamly2D (const QString &fileName=QString()) const
 
void FileClosedCorrect ()
 
QStringList GetUnlokedRestoreFileList () const
 
void addDraftBlock (const QString &blockName)
 
QPointF draftBlockStartPosition () const
 
void InitScenes ()
 
QSharedPointer< VMeasurementsOpenMeasurementFile (const QString &path)
 
bool LoadMeasurements (const QString &path)
 
bool UpdateMeasurements (const QString &path, int size, int height)
 
void CheckRequiredMeasurements (const VMeasurements *m)
 
void ReopenFilesAfterCrash (QStringList &args)
 
void DoExport (const VCommandLinePtr &expParams)
 
bool SetSize (const QString &text)
 
bool SetHeight (const QString &text)
 
QString GetPatternFileName ()
 
QString GetMeasurementFileName ()
 
void UpdateWindowTitle ()
 
void upDateScenes ()
 
void updateViewToolbar ()
 
void resetPanShortcuts ()
 
QStringList draftPointNamesList ()
 draftPointNamesList gets the list of points in draft mode. More...
 
void updateZoomToPointComboBox (QStringList namesList)
 updateZoomToPointComboBox updates the list of points included in the toolbar combobox. More...
 
bool IgnoreLocking (int error, const QString &path)
 
void ToolSelectPoint () const
 
void ToolSelectPointByPress () const
 
void ToolSelectPointByRelease () const
 
void ToolSelectSpline () const
 
void ToolSelectSplinePath () const
 
void ToolSelectArc () const
 
void ToolSelectPointArc () const
 
void ToolSelectCurve () const
 
void selectAllDraftObjectsTool () const
 
void ToolSelectOperationObjects () const
 
void ToolSelectGroupObjects () const
 
void selectPieceTool () const
 

Private Attributes

Ui::MainWindow * ui
 ui keeps information about user interface More...
 
QFileSystemWatcher * watcher
 
Tool currentTool
 tool current tool More...
 
Tool lastUsedTool
 tool last used tool More...
 
VMainGraphicsScenedraftScene
 draftScene draft block scene. More...
 
VMainGraphicsScenepieceScene
 pieceScene pattern piece scene. More...
 
QPointer< MouseCoordinatesmouseCoordinates
 mouseCoordinates pointer to label who show mouse coordinate. More...
 
QPointer< QToolButton > infoToolButton
 
QLabel * helpLabel
 helpLabel help show tooltip. More...
 
bool isInitialized
 isInitialized true after first show window. More...
 
bool mChanges
 mChanges true if measurement file was changed. More...
 
bool mChangesAsked
 
bool patternReadOnly
 
QPointer< DialogVariablesdialogTable
 
QSharedPointer< DialogTooldialogTool
 
QPointer< HistoryDialoghistoryDialog
 
QFontComboBox * fontComboBox
 
QComboBox * fontSizeComboBox
 
QComboBox * draftBlockComboBox
 
QLabel * draftBlockLabel
 draftBlockComboBox stores names of draft blocks. More...
 
Draw mode
 
qint32 currentBlockIndex
 mode stores current draw mode. More...
 
qint32 currentToolBoxIndex
 currentBlockIndex current selected draft block. More...
 
bool isToolOptionsDockVisible
 currentToolBoxIndex current set of tools. More...
 
bool isGroupsDockVisible
 
bool isLayoutsDockVisible
 
bool isToolboxDockVisible
 
bool drawMode
 
QAction * recentFileActs [MaxRecentFiles]
 
QAction * separatorAct
 
QLabel * leftGoToStage
 
QLabel * rightGoToStage
 
QTimer * autoSaveTimer
 
bool guiEnabled
 
QPointer< QComboBox > gradationHeights
 
QPointer< QComboBox > gradationSizes
 
QPointer< QLabel > gradationHeightsLabel
 
QPointer< QLabel > gradationSizesLabel
 
VToolOptionsPropertyBrowsertoolProperties
 
GroupsWidgetgroupsWidget
 
PiecesWidgetpatternPiecesWidget
 
std::shared_ptr< VLockGuard< char > > lock
 
QDoubleSpinBox * zoomScaleSpinBox
 
PenToolBarm_penToolBar
 for selecting the current pen More...
 
PenToolBarm_penReset
 
QComboBox * m_zoomToPointComboBox
 

Additional Inherited Members

- Protected Slots inherited from VAbstractMainWindow
void WindowsLocale ()
 
void exportToCSV (QString &file)
 
- Static Protected Member Functions inherited from MainWindowsNoGUI
static QVector< VLayoutPiecepreparePiecesForLayout (const QHash< quint32, VPiece > &pieces)
 
- Protected Attributes inherited from MainWindowsNoGUI
QVector< VLayoutPiecepieceList
 
QGraphicsScene * currentScene
 
QGraphicsScene * tempSceneLayout
 currentScene pointer to current scene. More...
 
VContainerpattern
 pattern container with data (points, arcs, splines, spline paths, variables) More...
 
VPatterndoc
 pattern container with data (points, arcs, splines, spline paths, variables) More...
 
QList< QGraphicsItem * > papers
 doc dom document container More...
 
QList< QGraphicsItem * > shadows
 
QList< QGraphicsScene * > scenes
 
QList< QList< QGraphicsItem * > > pieces
 
QVector< QVector< VLayoutPiece > > piecesOnLayout
 
QAction * undoAction
 
QAction * redoAction
 
QAction * actionDockWidgetToolOptions
 
QAction * actionDockWidgetGroups
 
QAction * actionDockWidgetLayouts
 
QAction * actionDockWidgetToolbox
 
bool isNoScaling
 
bool isLayoutStale
 
bool ignoreMargins
 
QMarginsF margins
 
QSizeF paperSize
 
- Protected Attributes inherited from VAbstractMainWindow
int m_curFileFormatVersion
 
QString m_curFileFormatVersionStr
 

Detailed Description

The MainWindow class main windows.

Definition at line 86 of file mainwindow.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

drawMode true if draft scene active.

Enumerator
MaxRecentFiles 

Definition at line 313 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget *  parent = nullptr)
explicit

◆ ~MainWindow()

MainWindow::~MainWindow ( )
virtual

Definition at line 5985 of file mainwindow.cpp.

References CancelTool(), CleanLayout(), MainWindowsNoGUI::doc, and ui.

Member Function Documentation

◆ AddDocks()

◆ addDraftBlock()

◆ addGroupToList

void MainWindow::addGroupToList ( )
slot

Definition at line 1683 of file mainwindow.cpp.

References GroupsWidget::addGroupToList(), and groupsWidget.

◆ addSelectedItemsToGroup

void MainWindow::addSelectedItemsToGroup ( )
slot

Definition at line 1697 of file mainwindow.cpp.

◆ ApplyDialog()

template<typename DrawTool >
void MainWindow::ApplyDialog ( VMainGraphicsScene scene)
private

ApplyDialog handle apply in dialog.

Definition at line 780 of file mainwindow.cpp.

References dialogTool, MainWindowsNoGUI::doc, MainWindowsNoGUI::pattern, and SCASSERT.

◆ ApplyDrawDialog()

template<typename DrawTool >
void MainWindow::ApplyDrawDialog
private

Definition at line 808 of file mainwindow.cpp.

References draftScene.

◆ applyPiecesDialog()

template<typename DrawTool >
void MainWindow::applyPiecesDialog
private

Definition at line 831 of file mainwindow.cpp.

References pieceScene.

◆ AutoSavePattern()

void MainWindow::AutoSavePattern ( )
private

AutoSavePattern start safe saving.

Definition at line 4768 of file mainwindow.cpp.

References autosavePrefix, patternReadOnly, qApp, and SavePattern().

Referenced by InitAutoSave().

◆ CancelTool()

◆ ChangedHeight

void MainWindow::ChangedHeight ( int  index)
privateslot

◆ changeDraftBlock()

◆ ChangedSize

void MainWindow::ChangedSize ( int  index)
privateslot

◆ changeEvent()

void MainWindow::changeEvent ( QEvent *  event)
protectedvirtual

◆ CheckPathToMeasurements()

◆ CheckRequiredMeasurements()

void MainWindow::CheckRequiredMeasurements ( const VMeasurements m)
private

◆ CleanLayout()

void MainWindow::CleanLayout ( )
protectedvirtual

◆ Clear

◆ ClosedDialog()

template<typename DrawTool >
void MainWindow::ClosedDialog ( int  result)
private

ClosedDialog handle close dialog.

Parameters
resultresult working dialog.

Definition at line 726 of file mainwindow.cpp.

References MainWindowsNoGUI::currentScene, dialogTool, MainWindowsNoGUI::doc, handleArrowTool(), MainWindowsNoGUI::pattern, SCASSERT, and ui.

◆ ClosedDialogAnchorPoint

void MainWindow::ClosedDialogAnchorPoint ( int  result)
privateslot

◆ ClosedDialogInternalPath

void MainWindow::ClosedDialogInternalPath ( int  result)
privateslot

◆ ClosedDialogWithApply()

template<typename DrawTool >
void MainWindow::ClosedDialogWithApply ( int  result,
VMainGraphicsScene scene 
)
private

ClosedDialogWithApply handle close dialog that has apply button.

Parameters
resultresult working dialog.

Definition at line 747 of file mainwindow.cpp.

References dialogTool, MainWindowsNoGUI::doc, VAbstractPattern::getCursor(), handleArrowTool(), historyDialog, LiteParse, VPattern::LiteParseTree(), SCASSERT, ShowToolTip(), and ui.

◆ ClosedDrawDialogWithApply()

template<typename DrawTool >
void MainWindow::ClosedDrawDialogWithApply ( int  result)
private

Definition at line 801 of file mainwindow.cpp.

References draftScene.

◆ ClosedEditGroupDialog

void MainWindow::ClosedEditGroupDialog ( int  result)
privateslot

◆ ClosedInsertNodesDialog

void MainWindow::ClosedInsertNodesDialog ( int  result)
privateslot

◆ ClosedPiecesDialogWithApply()

template<typename DrawTool >
void MainWindow::ClosedPiecesDialogWithApply ( int  result)
private

Definition at line 815 of file mainwindow.cpp.

References VContainer::DataPieces(), MainWindowsNoGUI::pattern, pieceScene, and ui.

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
protectedvirtual

closeEvent handle after close window.

Parameters
eventclose event.

Definition at line 1749 of file mainwindow.cpp.

References FileClosedCorrect(), and MaybeSave().

◆ closeUnionDialog

void MainWindow::closeUnionDialog ( int  result)
privateslot

closeUnionDialog actions after closing Union tool dialog.

Parameters
resultresult of dialog working.

Definition at line 1627 of file mainwindow.cpp.

References MainWindowsNoGUI::doc, LiteParse, and VPattern::LiteParseTree().

Referenced by handleUnionTool().

◆ CreateActions()

void MainWindow::CreateActions ( )
private

connect(ui->toggleAnchorPoints_Action, &QAction::triggered, this, [this](bool checked) { qApp->Seamly2DSettings()->setShowAnchorPoints(checked); });

Definition at line 5305 of file mainwindow.cpp.

References New(), Open(), Save(), SaveAs(), and ui.

◆ createDraftBlockName()

QString MainWindow::createDraftBlockName ( const QString &  text)
private

Definition at line 5935 of file mainwindow.cpp.

References draftBlockComboBox.

◆ CreateMenus()

◆ customEvent()

void MainWindow::customEvent ( QEvent *  event)
protectedvirtual

Definition at line 1767 of file mainwindow.cpp.

References qApp, and UNDO_EVENT.

◆ deleteGroupFromList

void MainWindow::deleteGroupFromList ( )
slot

Definition at line 1687 of file mainwindow.cpp.

References GroupsWidget::deleteGroupFromList(), and groupsWidget.

◆ DoExport()

◆ draftBlockStartPosition()

QPointF MainWindow::draftBlockStartPosition ( ) const
private

◆ draftPointNamesList()

QStringList MainWindow::draftPointNamesList ( )
private

draftPointNamesList gets the list of points in draft mode.

Definition at line 7223 of file mainwindow.cpp.

References VContainer::DataGObjects(), MainWindowsNoGUI::pattern, and Point.

Referenced by LoadPattern(), and showZoomToPointDialog().

◆ editGroup

void MainWindow::editGroup ( )
slot

Definition at line 1692 of file mainwindow.cpp.

References GroupsWidget::editGroup(), and groupsWidget.

◆ EnableArcHover

◆ EnableArcSelection

◆ EnableElArcHover

◆ EnableElArcSelection

◆ EnableItemMove

void MainWindow::EnableItemMove ( bool  move)
signal

◆ EnableLabelHover

◆ EnableLabelSelection

◆ EnableLineHover

◆ EnableLineSelection

◆ EnableNodeLabelHover

void MainWindow::EnableNodeLabelHover ( bool  enable) const
signal

◆ EnableNodeLabelSelection

void MainWindow::EnableNodeLabelSelection ( bool  enable) const
signal

◆ EnableNodePointHover

void MainWindow::EnableNodePointHover ( bool  enable) const
signal

◆ EnableNodePointSelection

void MainWindow::EnableNodePointSelection ( bool  enable) const
signal

◆ enablePieceHover

void MainWindow::enablePieceHover ( bool  enable) const
signal

◆ enablePieceSelection

void MainWindow::enablePieceSelection ( bool  enable) const
signal

◆ EnablePointHover

◆ EnablePointSelection

◆ EnableSplineHover

◆ EnableSplinePathHover

◆ EnableSplinePathSelection

◆ EnableSplineSelection

◆ EndVisualization()

void MainWindow::EndVisualization ( bool  click = false)
private

EndVisualization try show dialog after and working with tool visualization.

Definition at line 6765 of file mainwindow.cpp.

References dialogTool.

Referenced by keyPressEvent().

◆ exportDraftBlocksAs

◆ exportLayoutAs

◆ exportPiecesAs

◆ exportToCSVData()

◆ FileClosedCorrect()

void MainWindow::FileClosedCorrect ( )
private

Definition at line 4034 of file mainwindow.cpp.

References autosavePrefix, qApp, and WriteSettings().

Referenced by closeEvent().

◆ FullParseFile

◆ GetMeasurementFileName()

QString MainWindow::GetMeasurementFileName ( )
private

◆ GetPatternFileName()

QString MainWindow::GetPatternFileName ( )
private

Definition at line 7033 of file mainwindow.cpp.

References qApp.

Referenced by UpdateWindowTitle().

◆ GetUnlokedRestoreFileList()

QStringList MainWindow::GetUnlokedRestoreFileList ( ) const
private

Definition at line 6168 of file mainwindow.cpp.

References VLockGuard< Guarded >::IsLocked(), and qApp.

Referenced by ReopenFilesAfterCrash().

◆ GlobalchangeDraftBlock

void MainWindow::GlobalchangeDraftBlock ( const QString &  patternPiece)
privateslot

◆ handleAlongLineTool

void MainWindow::handleAlongLineTool ( bool  checked)
privateslot

handleAlongLineTool handler for point along Line tools.

Parameters
checkedtrue - button checked.

Definition at line 877 of file mainwindow.cpp.

References AlongLine, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handleAnchorPointTool

void MainWindow::handleAnchorPointTool ( bool  checked)
privateslot

◆ handleArcIntersectAxisTool

void MainWindow::handleArcIntersectAxisTool ( bool  checked)
privateslot

Definition at line 1254 of file mainwindow.cpp.

References ArcIntersectAxis, and selectAllDraftObjectsTool().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handleArcsMenu()

◆ handleArcTool

void MainWindow::handleArcTool ( bool  checked)
privateslot

handleArcTool handler for arc tool.

Parameters
checkedtrue - button checked.

Definition at line 1220 of file mainwindow.cpp.

References Arc, and ToolSelectPointByRelease().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handleArcWithLengthTool

void MainWindow::handleArcWithLengthTool ( bool  checked)
privateslot

Definition at line 1332 of file mainwindow.cpp.

References ArcWithLength, and ToolSelectPointByRelease().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handleArrowTool

◆ handleBisectorTool

void MainWindow::handleBisectorTool ( bool  checked)
privateslot

handleBisectorTool handler for bisector tool.

Parameters
checkedtrue - button checked.

Definition at line 915 of file mainwindow.cpp.

References Bisector, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handleCirclesMenu()

void MainWindow::handleCirclesMenu ( )
private

Definition at line 2936 of file mainwindow.cpp.

◆ handleCurveIntersectAxisTool

void MainWindow::handleCurveIntersectAxisTool ( bool  checked)
privateslot

Definition at line 1200 of file mainwindow.cpp.

References CurveIntersectAxis, and selectAllDraftObjectsTool().

Referenced by handleCurvesMenu(), and InitToolButtons().

◆ handleCurveIntersectCurveTool

void MainWindow::handleCurveIntersectCurveTool ( bool  checked)
privateslot

Definition at line 1185 of file mainwindow.cpp.

References PointOfIntersectionCurves, and ToolSelectCurve().

Referenced by handleCurvesMenu(), and InitToolButtons().

◆ handleCurvesMenu()

◆ handleCurveTool

void MainWindow::handleCurveTool ( bool  checked)
privateslot

handleCurveTool handler for curve tool.

Parameters
checkedtrue - button checked.

Definition at line 1083 of file mainwindow.cpp.

References Spline, and ToolSelectPointByPress().

Referenced by handleCurvesMenu(), and InitToolButtons().

◆ handleCurveWithControlPointsTool

void MainWindow::handleCurveWithControlPointsTool ( bool  checked)
privateslot

Definition at line 1117 of file mainwindow.cpp.

References CubicBezier, and ToolSelectPointByRelease().

Referenced by handleCurvesMenu(), and InitToolButtons().

◆ handleEllipticalArcTool

void MainWindow::handleEllipticalArcTool ( bool  checked)
privateslot

handleEllipticalArcTool handler for EllipticalArc tool.

Parameters
checkedtrue - button checked.

Definition at line 1352 of file mainwindow.cpp.

References EllipticalArc, and ToolSelectPointByRelease().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handleExportToCSV()

void MainWindow::handleExportToCSV ( )
protected

Definition at line 1858 of file mainwindow.cpp.

References VAbstractMainWindow::exportToCSV(), and qApp.

◆ handleGroupTool

void MainWindow::handleGroupTool ( bool  checked)
privateslot

◆ handleHeightTool

void MainWindow::handleHeightTool ( bool  checked)
privateslot

handleHeightTool handler tool height.

Parameters
checkedtrue - button checked.

Definition at line 1009 of file mainwindow.cpp.

References Height, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handleImagesMenu()

void MainWindow::handleImagesMenu ( )
private

◆ handleInsertNodesTool

void MainWindow::handleInsertNodesTool ( bool  checked)
privateslot

◆ handleInternalPathTool

void MainWindow::handleInternalPathTool ( bool  checked)
privateslot

◆ handleLayoutMenu()

void MainWindow::handleLayoutMenu ( )
private

Definition at line 3075 of file mainwindow.cpp.

References exportLayoutAs(), handleNewLayout(), and ui.

◆ handleLineIntersectAxisTool

void MainWindow::handleLineIntersectAxisTool ( bool  checked)
privateslot

Definition at line 1024 of file mainwindow.cpp.

References LineIntersectAxis, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handleLineIntersectTool

void MainWindow::handleLineIntersectTool ( bool  checked)
privateslot

handleLineIntersectTool handler for lineIntersect tool.

Parameters
checkedtrue - button checked.

Definition at line 1063 of file mainwindow.cpp.

References LineIntersect, and ToolSelectPointByRelease().

Referenced by handleLinesMenu(), and InitToolButtons().

◆ handleLinesMenu()

void MainWindow::handleLinesMenu ( )
private

Definition at line 2761 of file mainwindow.cpp.

References handleLineIntersectTool(), handleLineTool(), and ui.

◆ handleLineTool

void MainWindow::handleLineTool ( bool  checked)
privateslot

handleLineTool handler for line tool.

Parameters
checkedtrue - button checked.

Definition at line 1044 of file mainwindow.cpp.

References Line, and ToolSelectPointByRelease().

Referenced by handleLinesMenu(), and InitToolButtons().

◆ handleMidpointTool

void MainWindow::handleMidpointTool ( bool  checked)
privateslot

Definition at line 838 of file mainwindow.cpp.

References Midpoint, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handleMirrorByAxisTool

void MainWindow::handleMirrorByAxisTool ( bool  checked)
privateslot

◆ handleMirrorByLineTool

void MainWindow::handleMirrorByLineTool ( bool  checked)
privateslot

◆ handleMoveTool

void MainWindow::handleMoveTool ( bool  checked)
privateslot

Definition at line 1467 of file mainwindow.cpp.

References Move, strCtrl, strQShortcut, ToolSelectOperationObjects(), and translate.

Referenced by handleOperationsMenu(), and InitToolButtons().

◆ handleNewLayout

void MainWindow::handleNewLayout ( bool  checked)
privateslot

handleNewLayout handler for New Layout tool.

Parameters
tButton- toolbutton.
checkedtrue - button checked.

Definition at line 1639 of file mainwindow.cpp.

References MainWindowsNoGUI::toolLayoutSettings(), and ui.

Referenced by handleLayoutMenu(), and InitToolButtons().

◆ handleNormalTool

void MainWindow::handleNormalTool ( bool  checked)
privateslot

handleNormalTool handler point on perpendicular tool.

Parameters
checkedtrue - button checked.

Definition at line 896 of file mainwindow.cpp.

References Normal, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handleOperationsMenu()

void MainWindow::handleOperationsMenu ( )
private

◆ handlePatternPiecesMenu()

void MainWindow::handlePatternPiecesMenu ( )
private

Definition at line 3049 of file mainwindow.cpp.

References exportPiecesAs(), handleUnionTool(), and ui.

◆ handlePatternPieceTool

void MainWindow::handlePatternPieceTool ( bool  checked)
privateslot

handlePatternPieceTool handler for pattern piece tool.

Parameters
checkedtrue - button checked.

Definition at line 1506 of file mainwindow.cpp.

References Piece, and selectAllDraftObjectsTool().

Referenced by handlePieceMenu(), and InitToolButtons().

◆ handlePieceMenu()

◆ handlePointAlongArcTool

void MainWindow::handlePointAlongArcTool ( bool  checked)
privateslot

handlePointAlongArcTool handler for PointAlongArc tool.

Parameters
checkedtrue - button checked.

Definition at line 1239 of file mainwindow.cpp.

References CutArc, and ToolSelectArc().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handlePointAlongCurveTool

void MainWindow::handlePointAlongCurveTool ( bool  checked)
privateslot

handlePointAlongCurveTool handler for point along curve tool.

Parameters
checkedtrue - button is checked

Definition at line 1151 of file mainwindow.cpp.

References CutSpline, and ToolSelectSpline().

Referenced by handleCurvesMenu(), and InitToolButtons().

◆ handlePointAlongSplineTool

void MainWindow::handlePointAlongSplineTool ( bool  checked)
privateslot

handlePointAlongSplineTool handler for point along spline tool.

Parameters
checkedtrue - button is checked

Definition at line 1170 of file mainwindow.cpp.

References CutSplinePath, and ToolSelectSplinePath().

Referenced by handleCurvesMenu(), and InitToolButtons().

◆ handlePointAtDistanceAngleTool

void MainWindow::handlePointAtDistanceAngleTool ( bool  checked)
privateslot

handlePointAtDistanceAngleTool handler for handlePointAtDistanceAngle tool.

Parameters
checkedtrue - button checked.

Definition at line 858 of file mainwindow.cpp.

References EndLine, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handlePointFromArcAndTangentTool

void MainWindow::handlePointFromArcAndTangentTool ( bool  checked)
privateslot

Definition at line 1317 of file mainwindow.cpp.

References PointFromArcAndTangent, and ToolSelectPointArc().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handlePointFromCircleAndTangentTool

void MainWindow::handlePointFromCircleAndTangentTool ( bool  checked)
privateslot

Definition at line 1302 of file mainwindow.cpp.

References PointFromCircleAndTangent, and ToolSelectPointByRelease().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handlePointIntersectXYTool

void MainWindow::handlePointIntersectXYTool ( bool  checked)
privateslot

handlePointIntersectXYTool handler for pointOfIntersection tool.

Parameters
checkedtrue - button checked.

Definition at line 990 of file mainwindow.cpp.

References PointOfIntersection, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handlePointOfContactTool

void MainWindow::handlePointOfContactTool ( bool  checked)
privateslot

handlePointOfContactTool handler for pointOfContact tool.

Parameters
checkedtrue - button checked.

Definition at line 953 of file mainwindow.cpp.

References PointOfContact, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handlePointOfIntersectionArcsTool

void MainWindow::handlePointOfIntersectionArcsTool ( bool  checked)
privateslot

Definition at line 1270 of file mainwindow.cpp.

References PointOfIntersectionArcs, and ToolSelectArc().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handlePointOfIntersectionCirclesTool

void MainWindow::handlePointOfIntersectionCirclesTool ( bool  checked)
privateslot

Definition at line 1285 of file mainwindow.cpp.

References PointOfIntersectionCircles, and ToolSelectPointByRelease().

Referenced by handleArcsMenu(), and InitToolButtons().

◆ handlePointsMenu()

◆ handleRotationTool

void MainWindow::handleRotationTool ( bool  checked)
privateslot

◆ handleShoulderPointTool

void MainWindow::handleShoulderPointTool ( bool  checked)
privateslot

handleShoulderPointTool handler for shoulderPoint tool.

Parameters
checkedtrue - button checked.

Definition at line 934 of file mainwindow.cpp.

References ShoulderPoint, and ToolSelectPointByRelease().

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handleSplineTool

void MainWindow::handleSplineTool ( bool  checked)
privateslot

handleSplineTool handler for spline tool.

Parameters
checkedtrue - button checked.

Definition at line 1102 of file mainwindow.cpp.

References SplinePath, and ToolSelectPointByPress().

Referenced by handleCurvesMenu(), and InitToolButtons().

◆ handleSplineWithControlPointsTool

void MainWindow::handleSplineWithControlPointsTool ( bool  checked)
privateslot

Definition at line 1132 of file mainwindow.cpp.

References CubicBezierPath, and ToolSelectPointByRelease().

Referenced by handleCurvesMenu(), and InitToolButtons().

◆ handleTriangleTool

void MainWindow::handleTriangleTool ( bool  checked)
privateslot

handleTriangleTool handler Point - Intersect Axis and Triangle.

Parameters
checkedtrue - button checked.

Definition at line 971 of file mainwindow.cpp.

References ToolSelectPointByRelease(), and Triangle.

Referenced by handlePointsMenu(), and InitToolButtons().

◆ handleTrueDartTool

void MainWindow::handleTrueDartTool ( bool  checked)
privateslot

Definition at line 1487 of file mainwindow.cpp.

References ToolSelectPointByRelease(), and TrueDarts.

Referenced by handleOperationsMenu(), and InitToolButtons().

◆ handleUnionTool

void MainWindow::handleUnionTool ( bool  checked)
privateslot

handleUnionTool handler for Union tool.

Parameters
checkedtrue - button checked.

Definition at line 1609 of file mainwindow.cpp.

References closeUnionDialog(), selectPieceTool(), and Union.

Referenced by handlePatternPiecesMenu(), and InitToolButtons().

◆ hideAllGroups

void MainWindow::hideAllGroups ( )
slot

Definition at line 1668 of file mainwindow.cpp.

References groupsWidget, and GroupsWidget::hideAllGroups().

◆ IgnoreLocking()

bool MainWindow::IgnoreLocking ( int  error,
const QString &  path 
)
private

Definition at line 7153 of file mainwindow.cpp.

References Clear(), VApplication::IsGUIMode(), qApp, and V_EX_NOINPUT.

Referenced by LoadPattern().

◆ InitAutoSave()

void MainWindow::InitAutoSave ( )
private

Definition at line 5914 of file mainwindow.cpp.

References AutoSavePattern(), autoSaveTimer, and qApp.

Referenced by Preferences().

◆ InitDocksContain()

◆ initDraftToolBar()

void MainWindow::initDraftToolBar ( )
private

initDraftToolBar enable draw toolbar.

Definition at line 2276 of file mainwindow.cpp.

References changeDraftBlock(), MainWindowsNoGUI::doc, draftBlockComboBox, draftBlockLabel, qApp, and ui.

◆ initModesToolBar()

void MainWindow::initModesToolBar ( )
private

Definition at line 2195 of file mainwindow.cpp.

References leftGoToStage, rightGoToStage, and ui.

◆ initPenToolBar()

void MainWindow::initPenToolBar ( )
private

initPenToolBar enable default color, line wight & type toolbar.

Definition at line 2438 of file mainwindow.cpp.

References m_penToolBar, penChanged(), and PenToolBar::penChanged().

◆ initPointNameToolBar()

void MainWindow::initPointNameToolBar ( )
private

initPointNameToolBar enable Point Name toolbar.

Definition at line 2210 of file mainwindow.cpp.

References fontComboBox, fontSizeComboBox, qApp, ui, and upDateScenes().

◆ InitScenes()

void MainWindow::InitScenes ( )
private

Definition at line 374 of file mainwindow.cpp.

References MainWindowsNoGUI::currentScene, draftScene, EnableArcHover(), EnableArcSelection(), EnableElArcHover(), EnableElArcSelection(), EnableItemMove(), VMainGraphicsScene::EnableItemMove(), EnableLabelHover(), EnableLabelSelection(), EnableLineHover(), EnableLineSelection(), EnableNodeLabelHover(), EnableNodeLabelSelection(), EnableNodePointHover(), EnableNodePointSelection(), enablePieceHover(), enablePieceSelection(), EnablePointHover(), EnablePointSelection(), EnableSplineHover(), EnableSplinePathHover(), EnableSplinePathSelection(), EnableSplineSelection(), VMainGraphicsScene::ItemsSelection(), ItemsSelection(), MouseMove(), VMainGraphicsScene::mouseMove(), VMainGraphicsView::mouseRelease(), pieceScene, qApp, VMainGraphicsScene::setCurrentTransform(), VMainGraphicsView::signalZoomScaleChanged(), VMainGraphicsScene::ToggleArcHover(), VMainGraphicsScene::ToggleArcSelection(), VMainGraphicsScene::ToggleElArcHover(), VMainGraphicsScene::ToggleElArcSelection(), VMainGraphicsScene::ToggleLabelHover(), VMainGraphicsScene::ToggleLabelSelection(), VMainGraphicsScene::ToggleLineHover(), VMainGraphicsScene::ToggleLineSelection(), VMainGraphicsScene::ToggleNodeLabelHover(), VMainGraphicsScene::ToggleNodeLabelSelection(), VMainGraphicsScene::ToggleNodePointHover(), VMainGraphicsScene::ToggleNodePointSelection(), VMainGraphicsScene::togglePieceHover(), VMainGraphicsScene::togglePieceSelection(), VMainGraphicsScene::TogglePointHover(), VMainGraphicsScene::TogglePointSelection(), VMainGraphicsScene::ToggleSplineHover(), VMainGraphicsScene::ToggleSplinePathHover(), VMainGraphicsScene::ToggleSplinePathSelection(), VMainGraphicsScene::ToggleSplineSelection(), ui, and zoomScaleChanged().

◆ initStatusBar()

◆ initToolBarVisibility()

void MainWindow::initToolBarVisibility ( )
private

Definition at line 2384 of file mainwindow.cpp.

References ui, and updateToolBarVisibility().

◆ InitToolButtons()

◆ initToolsToolBar()

◆ ItemsSelection

◆ keyPressEvent()

void MainWindow::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

keyPressEvent handle key press events.

Parameters
eventkey event.

Definition at line 3362 of file mainwindow.cpp.

References EndVisualization(), handleArrowTool(), qApp, and ui.

◆ keyReleaseEvent()

void MainWindow::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

keyReleaseEvent handle key press events.

Parameters
eventkey event.

Definition at line 3390 of file mainwindow.cpp.

References qApp, and ui.

◆ LastUsedTool

◆ LoadIndividual

◆ LoadMeasurements()

◆ LoadMultisize

◆ LoadPattern()

◆ lockAllGroups

void MainWindow::lockAllGroups ( )
slot

Definition at line 1673 of file mainwindow.cpp.

References groupsWidget, and GroupsWidget::lockAllGroups().

◆ MaybeSave()

bool MainWindow::MaybeSave ( )
private

MaybeSave The function is called to save pending changes.

Returns
returns true in all cases, except when the user clicks Cancel.

Definition at line 4871 of file mainwindow.cpp.

References guiEnabled, patternReadOnly, qApp, Save(), and SaveAs().

Referenced by closeEvent().

◆ MeasurementsChanged

void MainWindow::MeasurementsChanged ( const QString &  path)
privateslot

Definition at line 2045 of file mainwindow.cpp.

References mChanges, mChangesAsked, ui, and UpdateWindowTitle().

◆ MinimumScrollBar()

void MainWindow::MinimumScrollBar ( )
private

MinimumScrollBar set scroll bar to minimum.

Definition at line 4719 of file mainwindow.cpp.

References ui.

Referenced by showEvent().

◆ MouseMove

void MainWindow::MouseMove ( const QPointF &  scenePos)
privateslot

mouseMove save mouse position and show user.

Parameters
scenePosposition mouse.

Definition at line 3109 of file mainwindow.cpp.

References mouseCoordinates.

Referenced by InitScenes().

◆ New

◆ Open

void MainWindow::Open ( )
privateslot

Open ask user select pattern file.

Definition at line 3921 of file mainwindow.cpp.

References LoadPattern(), and qApp.

Referenced by CreateActions().

◆ OpenMeasurementFile()

◆ OpenNewSeamly2D()

bool MainWindow::OpenNewSeamly2D ( const QString &  fileName = QString()) const
private

Definition at line 5294 of file mainwindow.cpp.

References VApplication::NewSeamly2D(), and qApp.

Referenced by LoadPattern(), and New().

◆ PatternChangesWereSaved

void MainWindow::PatternChangesWereSaved ( bool  saved)
privateslot

◆ penChanged

void MainWindow::penChanged ( Pen  pen)
slot

Called when something changed in the pen tool bar (e.g. color, weight, or type).

Definition at line 2456 of file mainwindow.cpp.

References MainWindowsNoGUI::doc, and VAbstractPattern::setDefaultPen().

Referenced by initPenToolBar().

◆ Preferences

◆ PrepareSceneList()

void MainWindow::PrepareSceneList ( )
protectedvirtual

◆ ProcessCMD

◆ ReadSettings()

◆ RefreshHistory

void MainWindow::RefreshHistory ( )
signal

Referenced by changeDraftBlock().

◆ ReopenFilesAfterCrash()

void MainWindow::ReopenFilesAfterCrash ( QStringList &  args)
private

◆ resetOrigins

void MainWindow::resetOrigins ( )
privateslot

◆ resetPanShortcuts()

void MainWindow::resetPanShortcuts ( )
private

Definition at line 7140 of file mainwindow.cpp.

References qApp, and ui.

Referenced by initToolsToolBar(), and Preferences().

◆ RestoreCurrentScene()

void MainWindow::RestoreCurrentScene ( )
private

◆ Save

◆ SaveAs

◆ SaveCurrentScene()

void MainWindow::SaveCurrentScene ( )
private

◆ SavePattern()

bool MainWindow::SavePattern ( const QString &  fileName,
QString &  error 
)
private

SavePattern save pattern file.

Parameters
fileNamepattern file name.
Returns
true if all is good.

Definition at line 4733 of file mainwindow.cpp.

References AbsoluteMPath(), MainWindowsNoGUI::doc, helpLabel, VAbstractPattern::MPath(), PatternChangesWereSaved(), qApp, RelativeMPath(), VPattern::SaveDocument(), setCurrentFile(), VAbstractPattern::SetMPath(), and VAbstractPattern::UpdatePatternLabel().

Referenced by AutoSavePattern(), Save(), and SaveAs().

◆ selectAllDraftObjectsTool()

◆ selectPieceTool()

◆ setCurrentFile()

void MainWindow::setCurrentFile ( const QString &  fileName)
private

setCurrentFile the function is called to reset the state of a few variables when a file is loaded or saved, or when the user starts editing a new file (in which case fileName is empty).

Parameters
fileNamefile name.

Definition at line 4790 of file mainwindow.cpp.

References MainWindowsNoGUI::doc, VCommonSettings::GetRecentFileList(), VCommonSettings::GetRestoreFileList(), VApplication::IsGUIMode(), MaxRecentFiles, qApp, VAbstractPattern::SetPatternWasChanged(), VCommonSettings::SetRecentFileList(), VCommonSettings::SetRestoreFileList(), VAbstractPattern::UpdatePatternLabel(), UpdateRecentFileActions(), and UpdateWindowTitle().

Referenced by Clear(), LoadPattern(), and SavePattern().

◆ SetDefaultHeight()

void MainWindow::SetDefaultHeight ( )
private

◆ SetDefaultSize()

void MainWindow::SetDefaultSize ( )
private

◆ SetEnabledGUI

void MainWindow::SetEnabledGUI ( bool  enabled)
privateslot

◆ setEnableTools()

void MainWindow::setEnableTools ( bool  enable)
private

setEnableTools enable button.

Parameters
enableenable value.

Definition at line 4538 of file mainwindow.cpp.

References Calculation, VContainer::DataPieces(), LAST_ONE_DO_NOT_USE, Layout, mode, Modeling, MainWindowsNoGUI::pattern, and ui.

Referenced by addDraftBlock(), Clear(), FullParseFile(), SetEnabledGUI(), showDraftMode(), showLayoutMode(), and showPieceMode().

◆ SetEnableWidgets()

◆ SetGradationList()

QComboBox * MainWindow::SetGradationList ( QLabel *  label,
const QStringList &  list 
)
private

Definition at line 2184 of file mainwindow.cpp.

References ui.

Referenced by initStatusBar().

◆ SetHeight()

bool MainWindow::SetHeight ( const QString &  text)
private

◆ SetLayoutModeActions()

void MainWindow::SetLayoutModeActions ( )
private

Definition at line 4703 of file mainwindow.cpp.

References MainWindowsNoGUI::scenes, and ui.

Referenced by CleanLayout(), and PrepareSceneList().

◆ SetSize()

bool MainWindow::SetSize ( const QString &  text)
private

◆ setToolBarVisibility()

void MainWindow::setToolBarVisibility ( QToolBar *  toolbar,
bool  visible 
)
private

Definition at line 2474 of file mainwindow.cpp.

Referenced by updateToolBarVisibility().

◆ SetToolButton()

template<typename Dialog , typename Func >
void MainWindow::SetToolButton ( bool  checked,
Tool  t,
const QString &  cursor,
const QString &  toolTip,
Func  closeDialogSlot 
)
private

SetToolButton set tool and show dialog.

Parameters
checkedtrue if tool button checked.
ttool type.
cursorpath tool cursor icon.
toolTipfirst tooltipe.
closeDialogSlotfunction what handle after close dialog.

Definition at line 632 of file mainwindow.cpp.

References AnchorPoint, ArcIntersectAxis, CancelTool(), DialogTool::ChosenObject(), VMainGraphicsScene::ChosenObject(), MainWindowsNoGUI::currentScene, currentTool, DialogTool::DialogClosed(), dialogTool, MainWindowsNoGUI::doc, EnableItemMove(), VPattern::getActivePatternPieces(), helpLabel, InsertNodes, InternalPath, lastUsedTool, Midpoint, MainWindowsNoGUI::pattern, qApp, SCASSERT, DialogTool::SelectedObject(), VMainGraphicsScene::SelectedObject(), ShowToolTip(), DialogTool::ToolTip(), and ui.

◆ SetToolButtonWithApply()

template<typename Dialog , typename Func , typename Func2 >
void MainWindow::SetToolButtonWithApply ( bool  checked,
Tool  t,
const QString &  cursor,
const QString &  toolTip,
Func  closeDialogSlot,
Func2  applyDialogSlot 
)
private

SetToolButtonWithApply set tool and show dialog.

Parameters
checkedtrue if tool button checked.
ttool type.
cursorpath tool cursor icon.
toolTipfirst tooltipe.
closeDialogSlotfunction to handle close of dialog.
applyDialogSlotfunction to handle apply in dialog.

Definition at line 703 of file mainwindow.cpp.

References DialogTool::DialogApplied(), and dialogTool.

◆ showAllGroups

void MainWindow::showAllGroups ( )
slot

Definition at line 1663 of file mainwindow.cpp.

References groupsWidget, and GroupsWidget::showAllGroups().

◆ showDraftMode

◆ showEvent()

void MainWindow::showEvent ( QShowEvent *  event)
protectedvirtual

showEvent handle after show window.

Parameters
eventshow event.

Definition at line 1707 of file mainwindow.cpp.

References isInitialized, and MinimumScrollBar().

◆ showLayoutMode

◆ showLayoutPages

void MainWindow::showLayoutPages ( int  index)
privateslot

Definition at line 6229 of file mainwindow.cpp.

References MainWindowsNoGUI::scenes, MainWindowsNoGUI::tempSceneLayout, and ui.

Referenced by showLayoutMode().

◆ ShowMeasurements

◆ showPieceMode

◆ ShowToolTip

void MainWindow::ShowToolTip ( const QString &  toolTip)
virtualslot

ShowTool highlight tool.Tip show tools tooltip.

Parameters
toolTiptooltip text.

Definition at line 1649 of file mainwindow.cpp.

References helpLabel.

Referenced by ClosedDialogWithApply(), and SetToolButton().

◆ showZoomToPointDialog

void MainWindow::showZoomToPointDialog ( )
privateslot

zoomToPoint show dialog for choosing a point and update the graphics view to focus on it.

Definition at line 2547 of file mainwindow.cpp.

References draftPointNamesList(), and zoomToPoint().

Referenced by initToolsToolBar().

◆ signalZoomPanActive

void MainWindow::signalZoomPanActive ( bool  enable) const
signal

◆ signalZoomToAreaActive

void MainWindow::signalZoomToAreaActive ( bool  enable) const
signal

◆ SyncMeasurements

◆ ToolBarStyles

void MainWindow::ToolBarStyles ( )
privateslot

Definition at line 6207 of file mainwindow.cpp.

References fontComboBox, fontSizeComboBox, qApp, VAbstractMainWindow::ToolBarStyle(), and ui.

Referenced by Preferences(), and ReadSettings().

◆ ToolSelectArc()

◆ ToolSelectCurve()

◆ ToolSelectGroupObjects()

void MainWindow::ToolSelectGroupObjects ( ) const
private

Definition at line 7471 of file mainwindow.cpp.

References EnableLineHover(), EnableLineSelection(), and ToolSelectOperationObjects().

Referenced by handleGroupTool().

◆ ToolSelectOperationObjects()

◆ ToolSelectPoint()

◆ ToolSelectPointArc()

◆ ToolSelectPointByPress()

void MainWindow::ToolSelectPointByPress ( ) const
private

Definition at line 7282 of file mainwindow.cpp.

References ByMousePress, ItemsSelection(), and ToolSelectPoint().

Referenced by handleCurveTool(), and handleSplineTool().

◆ ToolSelectPointByRelease()

◆ ToolSelectSpline()

◆ ToolSelectSplinePath()

◆ UnloadMeasurements

◆ unlockAllGroups

void MainWindow::unlockAllGroups ( )
slot

Definition at line 1678 of file mainwindow.cpp.

References groupsWidget, and GroupsWidget::unlockAllGroups().

◆ updateGroups

void MainWindow::updateGroups ( )
virtualslot

triggers the update of the groups

Definition at line 1658 of file mainwindow.cpp.

References groupsWidget, and GroupsWidget::updateGroups().

Referenced by InitDocksContain().

◆ UpdateHeightsList()

void MainWindow::UpdateHeightsList ( const QStringList &  list)
private

Definition at line 4323 of file mainwindow.cpp.

References ChangedHeight(), and gradationHeights.

◆ UpdateMeasurements()

◆ UpdateRecentFileActions()

void MainWindow::UpdateRecentFileActions ( )
private

Definition at line 4914 of file mainwindow.cpp.

References MaxRecentFiles, qApp, recentFileActs, separatorAct, and strippedName().

Referenced by CreateMenus(), and setCurrentFile().

◆ upDateScenes()

void MainWindow::upDateScenes ( )
private

Definition at line 7117 of file mainwindow.cpp.

References draftScene, and pieceScene.

Referenced by initPointNameToolBar(), and Preferences().

◆ UpdateSizesList()

void MainWindow::UpdateSizesList ( const QStringList &  list)
private

Definition at line 4348 of file mainwindow.cpp.

References ChangedSize(), and gradationSizes.

◆ updateToolBarVisibility()

void MainWindow::updateToolBarVisibility ( )
private

Definition at line 2461 of file mainwindow.cpp.

References qApp, setToolBarVisibility(), and ui.

Referenced by initToolBarVisibility(), and Preferences().

◆ updateViewToolbar()

void MainWindow::updateViewToolbar ( )
private

Definition at line 7130 of file mainwindow.cpp.

References qApp, and ui.

Referenced by Preferences(), showDraftMode(), and showPieceMode().

◆ UpdateWindowTitle()

◆ updateZoomToPointComboBox()

void MainWindow::updateZoomToPointComboBox ( QStringList  namesList)
private

updateZoomToPointComboBox updates the list of points included in the toolbar combobox.

Definition at line 7242 of file mainwindow.cpp.

References m_zoomToPointComboBox.

Referenced by LoadPattern().

◆ WriteSettings()

void MainWindow::WriteSettings ( )
private

WriteSettings save setting for app.

Definition at line 4856 of file mainwindow.cpp.

References APP_VERSION, qApp, VCommonSettings::SetGeometry(), VCommonSettings::SetToolbarsState(), VCommonSettings::SetWindowState(), and showDraftMode().

Referenced by FileClosedCorrect().

◆ zoomFirstShow()

void MainWindow::zoomFirstShow ( )
private

zoomFirstShow Fit scene size to best size for first show

Definition at line 6777 of file mainwindow.cpp.

References VContainer::DataPieces(), draftScene, VMainGraphicsView::NewSceneRect(), MainWindowsNoGUI::pattern, pieceScene, showDraftMode(), showPieceMode(), ui, and zoomToSelected().

Referenced by LoadPattern().

◆ zoomPan

void MainWindow::zoomPan ( bool  checked)
privateslot

Definition at line 2534 of file mainwindow.cpp.

References ui.

Referenced by initToolsToolBar().

◆ zoomScaleChanged

void MainWindow::zoomScaleChanged ( qreal  scale)
privateslot

◆ zoomToArea

void MainWindow::zoomToArea ( bool  checked)
privateslot

Definition at line 2523 of file mainwindow.cpp.

References ui.

Referenced by initToolsToolBar().

◆ zoomToPoint

void MainWindow::zoomToPoint ( const QString &  pointName)
privateslot

zoomToPoint show dialog for choosing a point and update the graphics view to focus on it.

Parameters
pointNamename of to zoom into.

Definition at line 2564 of file mainwindow.cpp.

References VContainer::DataGObjects(), MainWindowsNoGUI::doc, VAbstractPattern::getGroupsContainingItem(), VGObject::getIdObject(), VGObject::getIdTool(), VAbstractPattern::getTool(), groupsWidget, m_zoomToPointComboBox, NULL_ID, MainWindowsNoGUI::pattern, GroupsWidget::showGroups(), VPointF::toQPointF(), and ui.

Referenced by initToolsToolBar(), and showZoomToPointDialog().

◆ zoomToPrevious

void MainWindow::zoomToPrevious ( )
privateslot

◆ zoomToSelected

void MainWindow::zoomToSelected ( )
virtualslot

Member Data Documentation

◆ autoSaveTimer

QTimer* MainWindow::autoSaveTimer
private

Definition at line 319 of file mainwindow.h.

Referenced by InitAutoSave().

◆ currentBlockIndex

qint32 MainWindow::currentBlockIndex
private

mode stores current draw mode.

Definition at line 305 of file mainwindow.h.

Referenced by showDraftMode(), showLayoutMode(), and showPieceMode().

◆ currentTool

Tool MainWindow::currentTool
private

tool current tool

Definition at line 268 of file mainwindow.h.

Referenced by handleArrowTool(), and SetToolButton().

◆ currentToolBoxIndex

qint32 MainWindow::currentToolBoxIndex
private

currentBlockIndex current selected draft block.

Definition at line 306 of file mainwindow.h.

Referenced by showDraftMode(), showLayoutMode(), and showPieceMode().

◆ dialogTable

QPointer<DialogVariables> MainWindow::dialogTable
private

Definition at line 296 of file mainwindow.h.

◆ dialogTool

◆ draftBlockComboBox

◆ draftBlockLabel

QLabel* MainWindow::draftBlockLabel
private

draftBlockComboBox stores names of draft blocks.

Definition at line 303 of file mainwindow.h.

Referenced by changeEvent(), and initDraftToolBar().

◆ draftScene

◆ drawMode

bool MainWindow::drawMode
private

◆ fontComboBox

QFontComboBox* MainWindow::fontComboBox
private

Definition at line 300 of file mainwindow.h.

Referenced by initPointNameToolBar(), and ToolBarStyles().

◆ fontSizeComboBox

QComboBox* MainWindow::fontSizeComboBox
private

Definition at line 301 of file mainwindow.h.

Referenced by initPointNameToolBar(), and ToolBarStyles().

◆ gradationHeights

QPointer<QComboBox> MainWindow::gradationHeights
private

◆ gradationHeightsLabel

QPointer<QLabel> MainWindow::gradationHeightsLabel
private

Definition at line 323 of file mainwindow.h.

Referenced by initStatusBar(), showDraftMode(), showLayoutMode(), and showPieceMode().

◆ gradationSizes

QPointer<QComboBox> MainWindow::gradationSizes
private

◆ gradationSizesLabel

QPointer<QLabel> MainWindow::gradationSizesLabel
private

Definition at line 324 of file mainwindow.h.

Referenced by initStatusBar(), showDraftMode(), showLayoutMode(), and showPieceMode().

◆ groupsWidget

◆ guiEnabled

bool MainWindow::guiEnabled
private

Definition at line 320 of file mainwindow.h.

Referenced by LoadPattern(), MaybeSave(), PatternChangesWereSaved(), and SetEnabledGUI().

◆ helpLabel

◆ historyDialog

QPointer<HistoryDialog> MainWindow::historyDialog
private

Definition at line 298 of file mainwindow.h.

Referenced by ClosedDialogWithApply().

◆ infoToolButton

QPointer<QToolButton> MainWindow::infoToolButton
private

Definition at line 282 of file mainwindow.h.

Referenced by initStatusBar().

◆ isGroupsDockVisible

bool MainWindow::isGroupsDockVisible
private

Definition at line 308 of file mainwindow.h.

Referenced by ReadSettings().

◆ isInitialized

bool MainWindow::isInitialized
private

isInitialized true after first show window.

Definition at line 288 of file mainwindow.h.

Referenced by showEvent().

◆ isLayoutsDockVisible

bool MainWindow::isLayoutsDockVisible
private

Definition at line 309 of file mainwindow.h.

Referenced by ReadSettings().

◆ isToolboxDockVisible

bool MainWindow::isToolboxDockVisible
private

Definition at line 310 of file mainwindow.h.

Referenced by ReadSettings().

◆ isToolOptionsDockVisible

bool MainWindow::isToolOptionsDockVisible
private

currentToolBoxIndex current set of tools.

Definition at line 307 of file mainwindow.h.

Referenced by ReadSettings().

◆ lastUsedTool

Tool MainWindow::lastUsedTool
private

tool last used tool

Definition at line 271 of file mainwindow.h.

Referenced by SetToolButton().

◆ leftGoToStage

QLabel* MainWindow::leftGoToStage
private

Definition at line 317 of file mainwindow.h.

Referenced by initModesToolBar(), showDraftMode(), showLayoutMode(), and showPieceMode().

◆ lock

std::shared_ptr<VLockGuard<char> > MainWindow::lock
private

Definition at line 328 of file mainwindow.h.

Referenced by Clear(), LoadPattern(), and SaveAs().

◆ m_penReset

PenToolBar* MainWindow::m_penReset
private

Definition at line 332 of file mainwindow.h.

◆ m_penToolBar

PenToolBar* MainWindow::m_penToolBar
private

for selecting the current pen

Definition at line 331 of file mainwindow.h.

Referenced by initPenToolBar().

◆ m_zoomToPointComboBox

QComboBox* MainWindow::m_zoomToPointComboBox
private

◆ mChanges

bool MainWindow::mChanges
private

mChanges true if measurement file was changed.

Definition at line 291 of file mainwindow.h.

Referenced by GetMeasurementFileName(), MeasurementsChanged(), and SyncMeasurements().

◆ mChangesAsked

bool MainWindow::mChangesAsked
private

Definition at line 292 of file mainwindow.h.

Referenced by MeasurementsChanged(), and SyncMeasurements().

◆ mode

Draw MainWindow::mode
private

◆ mouseCoordinates

QPointer<MouseCoordinates> MainWindow::mouseCoordinates
private

mouseCoordinates pointer to label who show mouse coordinate.

Definition at line 280 of file mainwindow.h.

Referenced by initStatusBar(), MouseMove(), New(), and showLayoutMode().

◆ patternPiecesWidget

PiecesWidget* MainWindow::patternPiecesWidget
private

Definition at line 327 of file mainwindow.h.

Referenced by FullParseFile(), InitDocksContain(), and showPieceMode().

◆ patternReadOnly

bool MainWindow::patternReadOnly
private

◆ pieceScene

◆ recentFileActs

QAction* MainWindow::recentFileActs[MaxRecentFiles]
private

Definition at line 314 of file mainwindow.h.

Referenced by CreateMenus(), and UpdateRecentFileActions().

◆ rightGoToStage

QLabel* MainWindow::rightGoToStage
private

Definition at line 318 of file mainwindow.h.

Referenced by initModesToolBar(), showDraftMode(), showLayoutMode(), and showPieceMode().

◆ separatorAct

QAction* MainWindow::separatorAct
private

Definition at line 315 of file mainwindow.h.

Referenced by CreateMenus(), and UpdateRecentFileActions().

◆ toolProperties

VToolOptionsPropertyBrowser* MainWindow::toolProperties
private

◆ ui

Ui::MainWindow* MainWindow::ui
private

ui keeps information about user interface

Definition at line 263 of file mainwindow.h.

Referenced by AddDocks(), addDraftBlock(), changeEvent(), CleanLayout(), Clear(), ClosedDialog(), ClosedDialogWithApply(), ClosedPiecesDialogWithApply(), CreateActions(), CreateMenus(), exportDraftBlocksAs(), exportLayoutAs(), exportPiecesAs(), FullParseFile(), handleArcsMenu(), handleArrowTool(), handleCurvesMenu(), handleLayoutMenu(), handleLinesMenu(), handleNewLayout(), handleOperationsMenu(), handlePatternPiecesMenu(), handlePieceMenu(), handlePointsMenu(), InitDocksContain(), initDraftToolBar(), initModesToolBar(), initPointNameToolBar(), InitScenes(), initStatusBar(), initToolBarVisibility(), InitToolButtons(), initToolsToolBar(), keyPressEvent(), keyReleaseEvent(), LoadIndividual(), LoadMultisize(), LoadPattern(), MeasurementsChanged(), MinimumScrollBar(), New(), PatternChangesWereSaved(), Preferences(), PrepareSceneList(), ReadSettings(), resetPanShortcuts(), RestoreCurrentScene(), SaveCurrentScene(), selectAllDraftObjectsTool(), selectPieceTool(), SetEnabledGUI(), setEnableTools(), SetEnableWidgets(), SetGradationList(), SetLayoutModeActions(), SetToolButton(), showDraftMode(), showLayoutMode(), showLayoutPages(), ShowMeasurements(), showPieceMode(), SyncMeasurements(), ToolBarStyles(), ToolSelectArc(), ToolSelectCurve(), ToolSelectOperationObjects(), ToolSelectPoint(), ToolSelectPointArc(), ToolSelectSpline(), ToolSelectSplinePath(), UnloadMeasurements(), updateToolBarVisibility(), updateViewToolbar(), zoomFirstShow(), zoomPan(), zoomToArea(), zoomToPoint(), zoomToPrevious(), zoomToSelected(), and ~MainWindow().

◆ watcher

QFileSystemWatcher* MainWindow::watcher
private

◆ zoomScaleSpinBox

QDoubleSpinBox* MainWindow::zoomScaleSpinBox
private

Definition at line 330 of file mainwindow.h.

Referenced by Clear(), initToolsToolBar(), SetEnableWidgets(), and zoomScaleChanged().


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