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
Issue #1383 Preview button: correction for the case: switch off auto_preview in extru...
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetEditor.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetEditor.h
b/src/ModuleBase/ModuleBase_WidgetEditor.h
index 063dd2b2b33d56ddf980e940fadcb8662f0ecb55..049188026867a320f4b08caff602ebfb513dbe02 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetEditor.h
+++ b/
src/ModuleBase/ModuleBase_WidgetEditor.h
@@
-27,9
+27,7
@@
Q_OBJECT
/// Constructor
/// \param theParent the parent object
/// \param theData the widget configuation. The attribute of the model widget is obtained from
/// 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
/// Constructor
/// \param theParent the parent object
/// \param theAttribute The attribute of the model widget
@@
-46,15
+44,17
@@
Q_OBJECT
/// 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
/// 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);
void setCursorPosition(const int theX, const int theY);
-//protected slots:
- //void onEnterPressed();
-
private:
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
private:
///< the current widget feature
@@
-63,8
+63,6
@@
private:
///< the kinds of possible features
QStringList myFeatureKinds;
///< the kinds of possible features
QStringList myFeatureKinds;
- //bool myIsEnterPressedEmitted;
-
int myXPosition, myYPosition;
};
int myXPosition, myYPosition;
};