Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetPoint2dDistance.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetPoint2dDistance.h
b/src/ModuleBase/ModuleBase_WidgetPoint2dDistance.h
index 3ab47c62c85e74e71c52f00799f72163c60919b5..164e78bac87f7d8ecc7010f7c1562642b52b48b5 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetPoint2dDistance.h
+++ b/
src/ModuleBase/ModuleBase_WidgetPoint2dDistance.h
@@
-2,7
+2,6
@@
// Created: 23 June 2014
// Author: Vitaly Smetannikov
// Created: 23 June 2014
// Author: Vitaly Smetannikov
-
#ifndef ModuleBase_WidgetPoint2dDistance_H
#define ModuleBase_WidgetPoint2dDistance_H
#ifndef ModuleBase_WidgetPoint2dDistance_H
#define ModuleBase_WidgetPoint2dDistance_H
@@
-12,14
+11,15
@@
class ModuleBase_WidgetValue;
class GeomAPI_Pnt2d;
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
/// 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, const std::string& theParentId);
+ ModuleBase_WidgetPoint2dDistance(QWidget* theParent, const Config_WidgetAPI* theData,
+ const std::string& theParentId);
virtual ~ModuleBase_WidgetPoint2dDistance();
virtual ~ModuleBase_WidgetPoint2dDistance();
@@
-28,13
+28,12
@@
public:
/// \param theValue the wrapped widget value
virtual bool setValue(ModuleBase_WidgetValue* theValue);
/// \param theValue the wrapped widget value
virtual bool setValue(ModuleBase_WidgetValue* theValue);
-protected:
+
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<GeomAPI_Pnt2d>& thePnt);
/// 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<GeomAPI_Pnt2d>& thePnt);
-private:
+
private:
std::string myFirstPntName;
};
std::string myFirstPntName;
};
-
-#endif
\ No newline at end of file
+#endif