Salome HOME
Issue #1452 Fatal error when create Distance constraint on construction vertex
[modules/shaper.git] / src / ModuleBase / ModuleBase_ToolBox.h
index 1c2c1ef7d37df2cf6cc859207c2311589ccfe076..cab3a788d93399d0a0a5fd2777e24943c1ec8817 100644 (file)
@@ -14,6 +14,7 @@ class QButtonGroup;
 class QFrame;
 class QHBoxLayout;
 class QStackedWidget;
+class ModuleBase_ModelWidget;
 
 /**
  * \class ModuleBase_ToolBox
@@ -46,6 +47,12 @@ public:
   /// \param theIdx an index
   void setCurrentIndex( const int theIdx);
 
+  /// Found in the controls of the model widget parent in Stacked Widget
+  /// returns whether this controls are in the current widget of the stacked widgets
+  /// \param theWidget a model widget
+  /// \return boolean result
+  static bool isOffToolBoxParent(ModuleBase_ModelWidget* theWidget);
+
 signals:
   /// A signal which is emited on current item changed
   void currentChanged( int );