Hi MITK Community! ;)
 
I have a similar problem as Miklos once had. I want to enable "PACS like mouse interaction" in my own PluginActivator class but my code:
 
____________________
berry::IPreferencesService::Pointer prefService =
        berry::Platform::GetServiceRegistry()
        .GetServiceById<berry::IPreferencesService>(berry::IPreferencesService::ID);
 
berry::IPreferences::Pointer pref =
        prefService->GetSystemPreferences()->Node("org.mitk.gui.qt.stdmultiwidgeteditor");
pref->PutBool("PACS like mouse interaction", true);
____________________
 
has no effect.
 
I looked up the mitkWorkbenchUtil::SetDepartmentLogoPreference(...) method and tried a modification of this but this also didn't work.
I think I am missing to set the right preference section.
Note: The preference "PACS like mouse interaction" is fetched in QmitkStdMultiWidgetEditor::OnPreferencesChanged(...).
 
Best Regards,
Ingmar
 
 
 
--------------------------------------------------------------
From: Miklos Espak <espakm@...>
Subject: How to change default preferences?
Newsgroups: gmane.comp.lib.mitk.user
Date: 2011-09-06 15:24:12 GMT (1 year, 31 weeks, 4 days, 14 hours and 31 minutes ago)
Hi,

Recently a new preference has been added to the datamanager view that
enables showing nodes that do not contain data. I want to turn it on
in my application.

I added this into the Start function of my application:

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

  berry::IPreferences::Pointer prefNodesWithNoData =
prefService->GetSystemPreferences()->Node("org.mitk.views.datamanager");
  prefNodesWithNoData->PutBool("Show nodes containing no data", true);

But the code has no effect. How to turn this option on?

Thanks,
Miklos

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to