Salome HOME
Issue #1303 Re-ordering of Sketcher menus: Delete to be the last
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetBoolValue.h
index 47d574a14be67627cdf53f8b12f9d18dd0f53676..237460ec7fc38390a528b7fb942bdf717dae70ca 100644 (file)
@@ -25,22 +25,22 @@ Q_OBJECT
   /// Constructor
   /// \param theParent the parent object
   /// \param theData the widget configuation. The attribute of the model widget is obtained from
-  /// \param theParentId is Id of a parent of the current attribute
-  ModuleBase_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData,
-                             const std::string& theParentId);
+  ModuleBase_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData);
 
   virtual ~ModuleBase_WidgetBoolValue();
 
-  virtual bool restoreValue();
+  virtual bool canAcceptFocus() const { return false; };
 
   virtual QList<QWidget*> getControls() const;
 
-  QWidget* getControl() const;
+  virtual void setHighlighted(bool isHighlighted);
 
 protected:
   /// Saves the internal parameters to the given feature
   /// \return True in success
-  virtual bool storeValueCustom() const;
+  virtual bool storeValueCustom();
+
+  virtual bool restoreValueCustom();
 
  private:
    /// The check box