X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetSketchCreator.h;h=11c40dcc5680b1f838daec290219bdca63762f10;hb=1e06d55e5ca7dd930512a9ae565497f81ddb6b72;hp=7b22939970b686979d0b0c9166a33a088b978e65;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetSketchCreator.h b/src/PartSet/PartSet_WidgetSketchCreator.h index 7b2293997..11c40dcc5 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.h +++ b/src/PartSet/PartSet_WidgetSketchCreator.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,9 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef PartSet_WidgetSketchCreator_H @@ -30,6 +30,7 @@ class PartSet_Module; class ModuleBase_Operation; class ModuleBase_IWorkshop; class PartSet_PreviewPlanes; +class ModuleBase_ChoiceCtrl; /** * \ingroup Modules @@ -83,6 +84,9 @@ public: /// \return a boolean value virtual bool isValidSelection(const std::shared_ptr& theValue); + /// Returns True in case if the widget contains useful information for inspection tool + virtual bool isInformative() const { return false; } + protected: /// If there is no operation in current session, start operation for modify parameters /// \return true if the operation was not opened @@ -120,9 +124,9 @@ protected: /// \param theDone a state whether the selection is set void updateOnSelectionChanged(const bool theDone); -protected slots: - /// Slot which is called on selection event - virtual void onSelectionChanged(); +protected: + /// Returns true if envent is processed. + virtual bool processSelection(); private: /// Returns true if the selection mode is active. This is when composition feature has no @@ -137,6 +141,9 @@ private: private slots: void onResumed(ModuleBase_Operation* theOp); + /// Slot is called on selection type changed + void onSelectionTypeChanged(); + private: /// Append new Sketch, set the selected plane for the sketch and start Edit operation. /// \param theValues a selection list @@ -176,6 +183,12 @@ private: /// class to show/hide preview planes PartSet_PreviewPlanes* myPreviewPlanes; + + bool myIsUseChoice; ///< A flag to store use_choice parameter state + + /// Control for types + ModuleBase_ChoiceCtrl* myTypeCtrl; + std::string myDefMode; }; #endif \ No newline at end of file