Settings in ParaView-branded app


(David Thompson) #1

I’m trying to add some application settings to a ParaView-branded app; they’re exposed in the user preferences dialog now as a new panel (I create a new singleton class to hold settings and reference it in Server-Manager XML as a <SettingsProxy> in the “settings” ProxyGroup), but the settings are not persistent across restarts as they are never written to the preference files (Qt or JSON).

I see that the vtkInitializationHelper class is used to save data via vtkSMSettings, but don’t understand how values like AutoApply from vtkPVGeneralSettings.h are exposed to vtkSMSettings. What can I do to ensure that the singleton my SettingsProxy names gets included in the user preferences file?

Thanks!