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
updated copyright message
[modules/shaper.git]
/
src
/
PartSet
/
PartSet_WidgetSketchCreator.h
diff --git
a/src/PartSet/PartSet_WidgetSketchCreator.h
b/src/PartSet/PartSet_WidgetSketchCreator.h
index f4a880abf6a73a06673de76f797af8302c487f47..768e5677c99fd37ca3c0998269ef740fc3720de0 100644
(file)
--- a/
src/PartSet/PartSet_WidgetSketchCreator.h
+++ b/
src/PartSet/PartSet_WidgetSketchCreator.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-20
19 CEA/DEN, EDF R&D
+// Copyright (C) 2014-20
23 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-30,6
+30,7
@@
class PartSet_Module;
class ModuleBase_Operation;
class ModuleBase_IWorkshop;
class PartSet_PreviewPlanes;
class ModuleBase_Operation;
class ModuleBase_IWorkshop;
class PartSet_PreviewPlanes;
+class ModuleBase_ChoiceCtrl;
/**
* \ingroup Modules
/**
* \ingroup Modules
@@
-83,6
+84,9
@@
public:
/// \return a boolean value
virtual bool isValidSelection(const std::shared_ptr<ModuleBase_ViewerPrs>& theValue);
/// \return a boolean value
virtual bool isValidSelection(const std::shared_ptr<ModuleBase_ViewerPrs>& theValue);
+ /// Returns True in case if the widget contains useful information for inspection tool
+ virtual bool isInformative() const { return false; }
+
protected:
/// If there is no operation in current session, start operation for modify parameters
/// \return true if the operation was not opened
protected:
/// If there is no operation in current session, start operation for modify parameters
/// \return true if the operation was not opened
@@
-137,6
+141,9
@@
private:
private slots:
void onResumed(ModuleBase_Operation* theOp);
private slots:
void onResumed(ModuleBase_Operation* theOp);
+ /// Slot is called on selection type changed
+ void onSelectionTypeChanged();
+
private:
/// Append new Sketch, set the selected plane for the sketch and start Edit operation.
/// \param theValues a selection list
private:
/// Append new Sketch, set the selected plane for the sketch and start Edit operation.
/// \param theValues a selection list
@@
-176,6
+183,12
@@
private:
/// class to show/hide preview planes
PartSet_PreviewPlanes* myPreviewPlanes;
/// class to show/hide preview planes
PartSet_PreviewPlanes* myPreviewPlanes;
+
+ bool myIsUseChoice; ///< A flag to store use_choice parameter state
+
+ /// Control for types
+ ModuleBase_ChoiceCtrl* myTypeCtrl;
+ std::string myDefMode;
};
#endif
\ No newline at end of file
};
#endif
\ No newline at end of file