MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / execStackBottom

Function execStackBottom

src/Mod/TechDraw/Gui/CommandStack.cpp:264–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void execStackBottom(Gui::Command* cmd)
265{
266 TechDraw::DrawPage* page = DrawGuiUtil::findPage(cmd);
267 if (!page) {
268 return;
269 }
270
271 std::vector<App::DocumentObject*> views = cmd->getSelection().getObjectsOfType(TechDraw::DrawView::getClassTypeId());
272 if (!views.empty()) {
273 for (auto& v: views) {
274 TechDraw::DrawView* dv = static_cast<TechDraw::DrawView*>(v);
275 Gui::ViewProvider* vp = Gui::Application::Instance->getDocument(
276 cmd->getDocument())->getViewProvider(dv);
277 ViewProviderDrawingView* vpdv = static_cast<ViewProviderDrawingView*>(vp);
278 if (vpdv) {
279 vpdv->stackBottom();
280 }
281 }
282 }
283}
284
285//===========================================================================
286// TechDraw_StackUp

Callers 1

activatedMethod · 0.85

Calls 6

stackBottomMethod · 0.80
getObjectsOfTypeMethod · 0.45
getSelectionMethod · 0.45
emptyMethod · 0.45
getViewProviderMethod · 0.45
getDocumentMethod · 0.45

Tested by

no test coverage detected