X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetSketchLabel.h;h=0fa5c18f0372ca342b139a377c9a8ea5a94e4ffc;hb=b69a4c4ae0f7eb0e9c17d3db0229b04b1fe77ecf;hp=ac845c279ada0c1e8724e209691759fb05877e0f;hpb=537afa7e604c3b071def66b40f00a04cb74261de;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetSketchLabel.h b/src/PartSet/PartSet_WidgetSketchLabel.h index ac845c279..0fa5c18f0 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.h +++ b/src/PartSet/PartSet_WidgetSketchLabel.h @@ -24,8 +24,14 @@ class QTimer; class XGUI_OperationMgr; class XGUI_Workshop; +/// the plane edge width +#define SKETCH_WIDTH "4" + +/// face of the square-face displayed for selection of general plane +#define PLANE_SIZE "200" + /** -* \ingroup Module +* \ingroup Modules * A model widget implementation for a label which provides specific behaviour * for sketcher starting and launching operations */ @@ -42,11 +48,6 @@ Q_OBJECT virtual ~PartSet_WidgetSketchLabel(); - virtual bool storeValue() const - { - return true; - } - virtual bool restoreValue() { return true; @@ -58,9 +59,6 @@ Q_OBJECT QWidget* getControl() const; - /// The methiod called when widget is activated - virtual void activate(); - /// The methiod called when widget is deactivated virtual void deactivate(); @@ -78,6 +76,17 @@ signals: /// Signal on plane selection void planeSelected(const std::shared_ptr& thePln); +protected: + /// Saves the internal parameters to the given feature + /// \return True in success + virtual bool storeValue() const + { + return true; + } + + /// The methiod called when widget is activated + virtual void activateCustom(); + private slots: /// Slot on plane selection void onPlaneSelected();