MCPcopy Create free account
hub / github.com/MITK/MITK / GetShell

Method GetShell

Plugins/org.blueberry.ui.qt/src/berryWindow.cpp:55–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55Shell::Pointer Window::DefaultModalParent::GetShell() const
56{
57 Shell::Pointer parent = Tweaklets::Get(GuiWidgetsTweaklet::KEY)->GetActiveShell();
58
59 // Make sure we don't pick a parent that has a modal child (this can lock the app)
60 if (parent == 0)
61 {
62 // If this is a top-level window, then there must not be any open modal windows.
63 parent = Window::GetModalChild(Tweaklets::Get(GuiWidgetsTweaklet::KEY)->GetShells());
64 }
65 else
66 {
67 // If we picked a parent with a modal child, use the modal child instead
68 Shell::Pointer modalChild = Window::GetModalChild(parent->GetShells());
69 if (modalChild != 0)
70 {
71 parent = modalChild;
72 }
73 }
74
75 return parent;
76}
77
78Shell::Pointer Window::GetModalChild(const QList<Shell::Pointer>& toSearch)
79{

Callers 13

GetParentShellMethod · 0.45
initMethod · 0.45
initMethod · 0.45
initMethod · 0.45
PostWindowCreateMethod · 0.45
onFullScreenMethod · 0.45
PostWindowCloseMethod · 0.45
initMethod · 0.45
handleIPCMessageMethod · 0.45
PostWindowCreateMethod · 0.45

Calls 3

GetFunction · 0.50
GetActiveShellMethod · 0.45
GetShellsMethod · 0.45

Tested by 1