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]'> 
<[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
------------------------------------------------------------------------------ 
Monitor 25 network devices or servers for free with OpManager! OpManager is 
web-based network management software that monitors network devices and 
physical & virtual servers, alerts via email & sms for fault. Monitor 25 
devices for free with no restriction. Download now 
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o_______________________________________________
 mitk-users mailing list 
[email protected]<mailto:[email protected]> 
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
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

Reply via email to