/// Constructor
/// \param theParent the parent object
/// \param theData the widget configuation. The attribute of the model widget is obtained from
- /// \param theParentId is Id of a parent of the current attribute
- ModuleBase_WidgetEditor(QWidget* theParent, const Config_WidgetAPI* theData,
- const std::string& theParentId);
+ ModuleBase_WidgetEditor(QWidget* theParent, const Config_WidgetAPI* theData);
/// Constructor
/// \param theParent the parent object
/// \param theAttribute The attribute of the model widget
/// 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);
+ /// \return true if the editor value is accepted
+ bool showPopupEditor(const bool theSendSignals = true);
void setCursorPosition(const int theX, const int theY);
-//protected slots:
- //void onEnterPressed();
-
private:
- void editedValue(double& outValue, QString& outText);
+ /// Show editor
+ /// \param theOutValue a result value
+ /// \param theOutText a result text
+ /// \return true if the editor value is accepted
+ bool editedValue(double& theOutValue, QString& theOutText);
private:
///< the current widget feature
///< the kinds of possible features
QStringList myFeatureKinds;
- //bool myIsEnterPressedEmitted;
-
int myXPosition, myYPosition;
};