Hi Sascha and Ingmar,
We will leave the 'X' as-is for now (we will code what Sascha suggests
later) but we realized that we must know when the user closes the editor
because we need to disable the vtkOrientationMarkerWidget or the
application crashes.
There's probably a was to access the editor object somewhere (blueberry
service/registry?) and plug a listener on it, but I don't know how do to
that. Any help would be appreciated.
Le 2014-10-21 19:34, Sascha Zelzer a écrit :
Hi,
yes, it is still not possible and will probably never be. The
stdmultiwidgeteditor is an "editor" and not a "view" (using the
application framework terminology). Editors are not closeable by design.
If you want a non-closeable render window for a special purpose
application, you could consider removing the "editor area" (can be
done with IPageLayout::SetEditorAreaVisible) and create a View
instead, which inherits from mitk::IRenderWindowPart and which
contains for example a QmitkStdMultiWidget instance. The view can be
made non-closeable and without a title bar.
Best,
Sascha
On 10/21/2014 04:50 PM, Nil Goyette wrote:
Thank you for your answer Ingmar. I just found this mail asking the
same question:
https://www.mail-archive.com/[email protected]/msg02604.html
which confirms that it isn't possible. Things have probably not
changed since january 2012.
/"You can certainly open up the view after detecting the view to be
closed/"
I can try that, but I'm not sure how to start. Is there any example
in mitk's source somewhere?
Le 2014-10-20 15:35, Wegner a écrit :
Hi Nil,
I also tried the same and I was told that osgi doesn't forsee a view
to be not closable.
You can certainly open up the view after detecting the view to be
closed but to remove the cross for closing isn't possible, I think.
Let's hope that things have changed and wait for an up-to-date answer.
Best,
Ingmar
Am 20.10.2014 19:30, schrieb Nil Goyette:
Hi all,
I'm trying to remove the 'X' on the 4views plugin, code named
"org.mitk.gui.qt.stdmultiwidgeteditor" I think. It doesn't make any
sense to close it for us. We usually put this code in our application
perspective in the method "CreateInitialLayout".
void
DefaultPerspective::CreateInitialLayout(berry::IPageLayout::Pointer
layout)
{
lo = layout->GetViewLayout("org.mitk.gui.qt.stdmultiwidgeteditor");
lo->SetCloseable(false);
It does nothing, as if the 4views wasn't defined yet or I had the
wrong
name.
Can it be done? If it's impossible to do without modifying mitk's
code,
please tell me anyway.
Thank
--
Logo Imeka <http://imeka.ca/> Nil Goyette, M.Sc.
www.imeka.ca <http://imeka.ca/>
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users