Hi Stefan,
I cherry-picked your 2 commits into MITK2015.05 and it works. If it's
not working, delete all temp files. and start the application with
/BlueBerry.clean
Thank you for the fix.
Nil
Le 2015-07-08 09:24, Kislinskiy, Stefan a écrit :
Hi guys,
I think I fixed the problem during our bugsquashing party today. The
goal was to successfully change the logo using
WorkbenchUtil::SetDepartmentLogo(). There were two major issues:
(1)The Qt resource wasn’t written to disk properly (a file was created
but its size was 0), as a flush was missing after the async write call
(2)The search routine of QmitkStdMultiWidgetEditor simply failed in
searching for the DepartmentLogo pref key in parent nodes
I fixed both issues/bugs (see bug #19164) and will push the fixes into
the master this evening (awaiting green dashboard first ;-)).
Best regards,
Stefan
*From:*Sascha Zelzer [mailto:[email protected]]
*Sent:* Dienstag, 7. Juli 2015 19:38
*To:* Nil Goyette; [email protected]
*Subject:* Re: [mitk-users] Disable / change Department Logo; LogoOverlay
Hi,
the preference value needs to contain an absolute file system path
(relative paths might work, depending on your current working directory).
In order to use a Qt resource, the mentioned
WorkbenchUtil::SetDepartmentLogoPreference method can be used, which
internally writes the embedded Qt resource to a file on the disk. Why
this stopped working with 2015.05, I don't know.
Best,
Sascha
On 07/01/2015 08:23 PM, Nil Goyette wrote:
Hi all,
I can't get it to work either. In fact, it did work, using the
full path:
berry::Platform::GetPreferencesService()->GetSystemPreferences()->Node("org.mitk.editors.stdmultiwidget")->Put(
"DepartmentLogo", "C:\\Users\\Nil\\.........png");
but it never works using a Qt ressource. I followed the execution
in mitk::LogoOverlay::UpdateVtkOverlay and it actually tries to
open (fopen) the file, which is a Qt ressource path, so it fails.
It's supposed to use a Qt class somewhere to work with ressources.
Le 2015-07-01 10:10, Fitze Thomas (fitz) a écrit :
Hey all
I moved our codebase to 2015.05 and the department logo
replacement stopped working. I can disable it with Christophs
aproach, but trying to set it to something else does not work
anymore. This used to work under 2014.10:
mitk::WorkbenchUtil::SetDepartmentLogoPreference(":/PluginResources/logo.png",context);
But it does not seem to do anything in 2015.05.
Regards,
Thomas
On 29.06.2015, at 16:36, Christoph Kolb
<[email protected]
<mailto:[email protected]>> wrote:
Hello Ingmar,
I think that
mitk::WorkbenchUtil::SetDepartmentLogoPreference does not
work because it checks if the image path is valid. I will
look into this eventually.
However, there are two other ways to disable / change the
logo:
1. You can set it in the preferences of the respective editor
berry::Platform::GetPreferencesService()->GetSystemPreferences()
->Node(QmitkStdMultiWidgetEditor::EDITOR_ID)->Put("DepartmentLogo",
"");
Or, if you do not want the dependency to
QmitkStdMultiWidgetEditor, just pass the correct Id:
berry::Platform::GetPreferencesService()->GetSystemPreferences()
->Node("org.mitk.editors.stdmultiwidget")->Put("DepartmentLogo",
"");
2. The other way is to disable the logo decoration in the
RenderWindowPart. This can be done in a view (deriving
from QmitkAbstractView)
QStringList decorations;
decorations << mitk::IRenderWindowPart::DECORATION_LOGO;
this->GetRenderWindowPart()->EnableDecorations(false,decorations);
Regards,
Christoph
On 06/24/2015 02:24 PM, Ingmar Wegner wrote:
In addition to that
there is a utility method in mitkWorkbenchUtil
mitk::WorkbenchUtil::SetDepartmentLogoPreference("",
context);
but that doesn't work either because there the
approach with the preferences service is used. This is
outdated I guess.
Miklos, did you disable the logo? You originally
opened the bug [1].
Best Regards,
Ingmar
[1] http://bugs.mitk.org/show_bug.cgi?id=18594
*Gesendet:* Mittwoch, 24. Juni 2015 um 12:59 Uhr
*Von:* "Ingmar Wegner" <[email protected]>
<mailto:[email protected]>
*An:* "'[email protected]'"
<mailto:%[email protected]%27>
<[email protected]>
<mailto:[email protected]>
*Betreff:* [mitk-users] Disable / change Department
Logo; LogoOverlay
Hi all,
I am facing problems to access the mitkLogoOverlay to
disable the DepartmentLogo.
According to [1] it is fixed in the latest release.
The logo is hidden if an empty path is set.
But I don't see how I can set the path. It can't be
set by preference service as before because the
overlays use their own properties (equal to
mitk::DataNode does).
In [2] I get how the overlay works in general. The
OverlayManager can be received via the BaseRenderer.
But how to access the special overlay? In [3] I don't
see a GetOverlay() method or so.
Could anyone give me another highly appreciated hint?
Or do I have to access it via the StdMultiWidget?
mitk::WorkbenchUtil::SetDepartmentLogoPreference("",
context);
doesn't work...
Best,
Ingmar
[1] http://bugs.mitk.org/show_bug.cgi?id=18594
[2] http://docs.mitk.org/2015.05/OverlaysPage.html
[3]
http://docs.mitk.org/2015.05/classmitk_1_1OverlayManager.html
------------------------------------------------------------------------------
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