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
Make same planes cannot be used twice in partition tool
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_Tools.cpp
diff --git
a/src/XGUI/XGUI_Tools.cpp
b/src/XGUI/XGUI_Tools.cpp
index bc4637649c386b2013f4a842c57e4dc4c1ef1a15..9bb1dfa84d357c5c5c3cde1cbdad0019ebbab8ea 100644
(file)
--- a/
src/XGUI/XGUI_Tools.cpp
+++ b/
src/XGUI/XGUI_Tools.cpp
@@
-2,6
+2,11
@@
#include "XGUI_Tools.h"
#include "XGUI_Tools.h"
+#include "XGUI_ModuleConnector.h"
+#include "XGUI_Workshop.h"
+
+#include "ModuleBase_IWorkshop.h"
+
#include <TopoDS_Shape.hxx>
#include <ModelAPI_Object.h>
#include <ModelAPI_Result.h>
#include <TopoDS_Shape.hxx>
#include <ModelAPI_Object.h>
#include <ModelAPI_Result.h>
@@
-320,4
+325,10
@@
void refsDirectToFeatureInAllDocuments(const ObjectPtr& theSourceObject, const O
}
}
}
}
+XGUI_Workshop* workshop(ModuleBase_IWorkshop* theWorkshop)
+{
+ XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(theWorkshop);
+ return aConnector->workshop();
+}
+
}
}