Hi community,
I am currently implementing a new perspective with which I want to strip down the GUI as much as possible; similar to a full screen mode.
So only to show a plugin X and the QmitkStdMultiWidget. The approptiate terms for BlueBerry application framework would be a view and an editor.
I have found the following explanation great: http://docs.mitk.org/2015.05/AddFunctionality.html
(Some code snippets on QmitkDicomExternalDataWidget are not shown in the webpage!)
I already have the additional perspective in place and when I activate it it shows my plugin X.
However when I restart the application it starts the perspective again but doesn't show the StdMultiWidget! It remains white, the space is reserved for it though.
I didn't find a way to hook into the loading process during a restart.
Any hints on that?
As I want to have a full screen I need a way to get back to regular perspective so I added a button to the plugin X with :
// Switch to default perspective.
QString perspective_id = "my.workbench.app.perspective";
berry::IWorkbenchWindow::Pointer window = this->GetSite()->GetWorkbenchWindow();
window->GetWorkbench()->ShowPerspective(perspective_id, berry::IWorkbenchWindow::Pointer(window));
mitk::RenderingManager::GetInstance()->RequestUpdateAll();
QString perspective_id = "my.workbench.app.perspective";
berry::IWorkbenchWindow::Pointer window = this->GetSite()->GetWorkbenchWindow();
window->GetWorkbench()->ShowPerspective(perspective_id, berry::IWorkbenchWindow::Pointer(window));
mitk::RenderingManager::GetInstance()->RequestUpdateAll();
This works great and with the latter RequestUpdateAll the perspective looks good again.
So maybe this is what is missing?
But I don't have a hook to call it! CreateInitialLayout is only called when the perspective is explicitly triggered, not loaded during startup because it was activated when the app was closed.
Then I have to hide the menu bar, status bar and so on. So whenever the perspective is activated I want to strip down the GUI.
Is there a way to recall PostWindowCreate() and to give it a different configurer with the parameters what to show?
I don't have a connection between perspective and the workbench window advisor, do I?
Ther once was a fullscreen mode but I didn't find it. Any one also requesting something similar?
;),
Ingmar
------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/
_______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
