Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetPoint2D.h
index 4e4dd152f28536057150fd7925ea9e75b890778f..cf92afd3a020d43749965c6d497521599519ae97 100644 (file)
@@ -11,6 +11,7 @@
 #include <QObject>
 
 class ModelAPI_Feature;
+class GeomAPI_Pnt2d;
 
 class QGroupBox;
 class QDoubleSpinBox;
@@ -31,6 +32,10 @@ public:
   /// Destructor
   virtual ~ModuleBase_WidgetPoint2D();
 
+  /// Fill the widget values by given point
+  /// \param thePoint the point
+  void setPoint(const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint);
+
   /// Saves the internal parameters to the given feature
   /// \param theFeature a model feature to be changed
   virtual bool storeValue(FeaturePtr theFeature) const;
@@ -45,6 +50,9 @@ public:
   /// \return a control list
   virtual QList<QWidget*> getControls() const;
 
+  /// Process key release envent on the widget spin box controls
+  /// \param theObject the object where the event happens
+  /// \param theEvent the processed event
   virtual bool eventFilter(QObject *theObject, QEvent *theEvent);
 
 private: