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

Method ConfigureShell

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

Source from the content-addressed store, hash-verified

163}
164
165void Window::ConfigureShell(Shell::Pointer newShell)
166{
167
168 // The single image version of this code had a comment related to bug
169 // 46624,
170 // and some code that did nothing if the stored image was already
171 // disposed.
172 // The equivalent in the multi-image version seems to be to remove the
173 // disposed images from the array passed to the shell.
174 if (defaultImages.size() > 0)
175 {
176// ArrayList nonDisposedImages = new ArrayList(defaultImages.length);
177// for (int i = 0; i < defaultImages.length; ++i)
178// {
179// if (defaultImages[i] != null && !defaultImages[i].isDisposed())
180// {
181// nonDisposedImages.add(defaultImages[i]);
182// }
183// }
184//
185// if (nonDisposedImages.size() <= 0)
186// {
187// System.err.println("Window.configureShell: images disposed"); //$NON-NLS-1$
188// }
189// else
190// {
191// //Image[] array = new Image[nonDisposedImages.size()];
192// nonDisposedImages.toArray(array);
193 newShell->SetImages(defaultImages);
194// }
195 }
196
197// Layout layout = getLayout();
198// if (layout != null)
199// {
200// newShell.setLayout(layout);
201// }
202 CreateTrimWidgets(newShell);
203}
204
205//voidWindow::ConstrainShellSize()
206//{

Callers 1

CreateShellMethod · 0.95

Calls 2

sizeMethod · 0.45
SetImagesMethod · 0.45

Tested by

no test coverage detected