Salome HOME
WidgetMultiSelector preparation to use ModelAPI_AttributeRefAttrList.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetEditor.h
index 8bdf6f9e1d3e43a6acd35f556265b72e22a458ce..063dd2b2b33d56ddf980e940fadcb8662f0ecb55 100644 (file)
@@ -43,9 +43,18 @@ Q_OBJECT
   /// \return the state whether the widget can accept the focus
   virtual bool focusTo();
 
- private slots:
-   /// Shous popup window under cursor for data editing
-   void showPopupEditor();
+  /// Shous popup window under cursor for data editing
+  /// \param theSendSignals a flag whether the signals should be sent or the value
+  /// is to be applyed directly
+  void showPopupEditor(const bool theSendSignals = true);
+
+  void setCursorPosition(const int theX, const int theY);
+
+//protected slots:
+  //void onEnterPressed();
+
+private:
+   void editedValue(double& outValue, QString& outText);
 
  private:
    ///< the current widget feature
@@ -53,6 +62,10 @@ Q_OBJECT
 
    ///< the kinds of possible features
    QStringList myFeatureKinds;  
+
+   //bool myIsEnterPressedEmitted;
+
+   int myXPosition, myYPosition;
 };
 
 #endif