X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetPoint2dDistance.h;h=164e78bac87f7d8ecc7010f7c1562642b52b48b5;hb=853952fd4ddc93c0cd6a7122d37b618199864396;hp=a078b9b0c8f36d13733a153cc7a681351ed4f4f1;hpb=3c6beade1b4575994f2d028b2a42b43d68415fe6;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetPoint2dDistance.h b/src/ModuleBase/ModuleBase_WidgetPoint2dDistance.h index a078b9b0c..164e78bac 100644 --- a/src/ModuleBase/ModuleBase_WidgetPoint2dDistance.h +++ b/src/ModuleBase/ModuleBase_WidgetPoint2dDistance.h @@ -2,32 +2,38 @@ // Created: 23 June 2014 // Author: Vitaly Smetannikov - #ifndef ModuleBase_WidgetPoint2dDistance_H #define ModuleBase_WidgetPoint2dDistance_H #include "ModuleBase.h" #include "ModuleBase_WidgetDoubleValue.h" +class ModuleBase_WidgetValue; class GeomAPI_Pnt2d; -class MODULEBASE_EXPORT ModuleBase_WidgetPoint2dDistance: public ModuleBase_WidgetDoubleValue +class MODULEBASE_EXPORT ModuleBase_WidgetPoint2dDistance : public ModuleBase_WidgetDoubleValue { - Q_OBJECT -public: +Q_OBJECT + public: /// Constructor /// \theParent the parent object /// \theData the widget configuation. The attribute of the model widget is obtained from - ModuleBase_WidgetPoint2dDistance(QWidget* theParent, const Config_WidgetAPI* theData); + ModuleBase_WidgetPoint2dDistance(QWidget* theParent, const Config_WidgetAPI* theData, + const std::string& theParentId); virtual ~ModuleBase_WidgetPoint2dDistance(); + /// Set the given wrapped value to the current widget + /// This value should be processed in the widget according to the needs + /// \param theValue the wrapped widget value + virtual bool setValue(ModuleBase_WidgetValue* theValue); + + protected: /// Set the second point which defines a value in the widget as a distance with a first point defined by feature void setPoint(FeaturePtr theFeature, const boost::shared_ptr& thePnt); -private: + private: std::string myFirstPntName; }; - -#endif \ No newline at end of file +#endif