From 19eba9530f4f08c00db5926394f7c64808d83660 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 28 Sep 2017 11:48:12 +0300 Subject: [PATCH] refs #1331: access to methods for testing purposes --- src/CurveCreator/CurveCreator_Widget.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/CurveCreator/CurveCreator_Widget.h b/src/CurveCreator/CurveCreator_Widget.h index bcde2f6d6..d72d842e8 100644 --- a/src/CurveCreator/CurveCreator_Widget.h +++ b/src/CurveCreator/CurveCreator_Widget.h @@ -98,14 +98,15 @@ public: void setSelectedPoints( const CurveCreator_ICurve::SectionToPointList& = CurveCreator_ICurve::SectionToPointList() ); + void updateLocalPointView(); + void setLocalPointContext( const bool theOpen, const bool isUpdateTable = false ); + signals: void selectionChanged(); void subOperationStarted( QWidget*, bool ); void subOperationFinished( QWidget* ); public slots: - -protected slots: void onAdditionMode(bool checked); void onModificationMode(bool checked); void onDetectionMode(bool checked); @@ -165,13 +166,15 @@ protected: BRING_TOGETHER_ID }; +public: + QAction* getAction(ActionId theId); + QAction* getAction(ActionMode theMode); + private: OCCViewer_Viewer* getOCCViewer(); QAction* createAction( ActionId theId, const QString& theName, const QPixmap& theImage, const QString& theToolTip, const QKeySequence& theShortcut ); - QAction* getAction(ActionId theId); - QAction* getAction(ActionMode theMode); void updateActionsStates(); void updateUndoRedo(); @@ -182,8 +185,6 @@ private: void insertPointToSelectedSegment( const int theXPosition, const int theYPosition ); void moveSelectedPoints( const int theXPosition, const int theYPosition ); - void updateLocalPointView(); - void setLocalPointContext( const bool theOpen, const bool isUpdateTable = false ); void setDragStarted( const bool theState, const QPoint& thePoint = QPoint() ); -- 2.30.2