Salome HOME
Issue #2218: Provide correct display of already shown object
[modules/shaper.git] / src / XGUI / XGUI_WorkshopListener.h
index 486d8f88903f36a150cfd084ab09c4e6abb2e336..aad3aa07a0024488f06f9e461e7129227b74236e 100755 (executable)
@@ -59,6 +59,13 @@ public:
   //! Redefinition of Events_Listener method
   virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
 
+  //! Returns state of blocking fitAll command
+  bool isFitAllBlocked() const { return myBlockFitAll; }
+
+  //! Sets state of blocking fitAll command
+  //! \param toBlock a new blocking state
+  void setFitAllBlocked(bool toBlock) { myBlockFitAll = toBlock; }
+
 signals:
   /// Emitted when error in applivation happens
   void errorOccurred(std::shared_ptr<Events_InfoMessage> theMsg);
@@ -114,6 +121,7 @@ private:
   ModuleBase_IWorkshop* myWorkshop; // the current workshop
 
   bool myUpdatePrefs;
+  bool myBlockFitAll;
 };
 
 #endif