Hi all,

I am a newcomer in the MITK community and want to thank you for your
work. I started playing with the API and challenged myself to display
another logo in the QmitkStdMultiWidgetEditor, which I obviously
didn't achieve.

Basically, I did

1) Create a new application using the PluginGenerator
2) Copy the org.mitk.gui.qt.extapplication to the plugin folder of my
self-contained application and renamed it to something else, adjusting
the different configuration files
3) Exclude modules keeping only

set(_plugins
  org.commontk.configadmin
  org.commontk.eventadmin
  org.blueberry.osgi
  org.blueberry.compat
  org.blueberry.core.runtime
  org.blueberry.core.expressions
  org.blueberry.solstice.common
  org.blueberry.core.commands
  org.blueberry.ui
  org.blueberry.ui.qt
  org.mytest.myapp
  org.mitk.core.services
  org.mitk.core.ext
  org.mitk.gui.qt.application
  org.mitk.gui.qt.ext
  org.mitk.gui.common
  org.mitk.gui.qt.common
  org.mitk.gui.qt.stdmultiwidgeteditor
)

4) Add the following code (from another thread on the mailing list) to
the Initialize() method of QmitkExtAppWorkbenchAdvisor

  berry::IPreferencesService::Pointer prefService =
    berry::Platform::GetServiceRegistry()
      
.GetServiceById<berry::IPreferencesService>(berry::IPreferencesService::ID);

  Poco::Path logoPath(berry::Platform::GetInstancePath(), "logo.png");
  berry::IPreferences::Pointer logoPref =
    prefService->GetSystemPreferences()->Node("DepartmentLogo");
  logoPref->Put("DepartmentLogo", logoPath.toString().c_str());

5) Placed logo.png at the same location as the executable

Compilation went fine but the old logo is still displayed. I made
plenty of other tests without any luck.

Can anyone point me the right direction on how to achieve this?

Regards,
--
Félix C. Morency, M.Sc.
Plateforme d’analyse et de visualisation d’images
Centre Hospitalier Universitaire de Sherbrooke
Centre de recherche clinique Étienne-Le Bel
Local Z5-3031 | 819.346.1110 ext 16634

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to