X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetEditor.h;h=43d9c099b8421527768fa40848fba5a599d4ad7c;hb=ced1c42d80f02b1efa749ecdf35e620dcca4d9cc;hp=c992e60f9c406f9aed6fcb823c9f980c05449abc;hpb=72cb66f9c09b0f8fa224f6f8ab43548658015b49;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetEditor.h b/src/ModuleBase/ModuleBase_WidgetEditor.h index c992e60f9..43d9c099b 100644 --- a/src/ModuleBase/ModuleBase_WidgetEditor.h +++ b/src/ModuleBase/ModuleBase_WidgetEditor.h @@ -43,14 +43,15 @@ Q_OBJECT /// \return the state whether the widget can accept the focus virtual bool focusTo(); - /// Creates an editor for the real value and set the new value to the feature - /// \param theFeature the model feature - /// \param theAttribute the feature attribute - static void editFeatureValue(FeaturePtr theFeature, const std::string theAttribute); + /// 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); - private slots: - /// Shous popup window under cursor for data editing - void showPopupEditor(); + void setCursorPosition(const int theX, const int theY); + +private: + void editedValue(double& outValue, QString& outText); private: ///< the current widget feature @@ -58,6 +59,8 @@ Q_OBJECT ///< the kinds of possible features QStringList myFeatureKinds; + + int myXPosition, myYPosition; }; #endif