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
Bugfix: duplicated commit on "Return" and crash on "Return" with no active operations
[modules/shaper.git]
/
src
/
PartSet
/
PartSet_WidgetSketchLabel.h
diff --git
a/src/PartSet/PartSet_WidgetSketchLabel.h
b/src/PartSet/PartSet_WidgetSketchLabel.h
index 1419cc6670cb1e7d5a4737f1064211fb27240b80..442f319074c52a5a8f34982b4a0a888897936bfb 100644
(file)
--- a/
src/PartSet/PartSet_WidgetSketchLabel.h
+++ b/
src/PartSet/PartSet_WidgetSketchLabel.h
@@
-10,21
+10,32
@@
#include <ModuleBase_ModelWidget.h>
class QLabel;
#include <ModuleBase_ModelWidget.h>
class QLabel;
-class XGUI_OperationMgr;
+class XGUI_OperationMgr;
+class PartSet_OperationSketch;
class PARTSET_EXPORT PartSet_WidgetSketchLabel : public ModuleBase_ModelWidget
{
class PARTSET_EXPORT PartSet_WidgetSketchLabel : public ModuleBase_ModelWidget
{
- Q_OBJECT
-public:
- PartSet_WidgetSketchLabel(QWidget* theParent, const Config_WidgetAPI* theData);
+Q_OBJECT
+ public:
+ PartSet_WidgetSketchLabel(QWidget* theParent, const Config_WidgetAPI* theData,
+ const std::string& theParentId);
- virtual ~PartSet_WidgetSketchLabel() {};
+ virtual ~PartSet_WidgetSketchLabel()
+ {
+ }
+ ;
/// Saves the internal parameters to the given feature
/// \param theFeature a model feature to be changed
/// Saves the internal parameters to the given feature
/// \param theFeature a model feature to be changed
- virtual bool storeValue(FeaturePtr theFeature) const { return true;}
+ virtual bool storeValue() const
+ {
+ return true;
+ }
- virtual bool restoreValue(FeaturePtr theFeature) { return true;}
+ virtual bool restoreValue()
+ {
+ return true;
+ }
/// Returns list of widget controls
/// \return a control list
/// Returns list of widget controls
/// \return a control list
@@
-34,13
+45,15
@@
public:
void setOperationsMgr(XGUI_OperationMgr* theMgr);
void setOperationsMgr(XGUI_OperationMgr* theMgr);
-private slots:
+
private slots:
void onPlaneSelected();
void onPlaneSelected();
-private:
+ private:
+ void updateLabel(PartSet_OperationSketch* theSketchOpe);
+
QLabel* myLabel;
QString myText;
QString myTooltip;
};
QLabel* myLabel;
QString myText;
QString myTooltip;
};
-#endif
\ No newline at end of file
+#endif