pqApplication::instance()->settings() with provide you access to a QSettings subclass (pqSettings). You can add arbitrary key/value pairs to it. A plugin can be assured that the correct settings will be loaded and saved every time ParaView is started (unless it crashes of course).
Utkarsh On Mon, Jan 25, 2010 at 9:46 AM, Biddiscombe, John A. <[email protected]> wrote: > I've noticed that custom plugin panels now remember their position between > paraview sessions. By this I mean that if you dock one to the > right/bottom/top etc, the next time you run, it automatically re-docks > itself to the same place. > This is great, thanks for fixing that. > > Question : I'd like to save a number of custom dock panel settings so that > when paraview is restarted, the panel repopulates itself with the values > previously used. > > Is there a generic method to do this inside the paraview framework? Do we use > the usual Qt ini file mechanisms and just retrieve the master ini file from > paraview - or is there some other way? > > thanks > > JB > > -- > John Biddiscombe, email:biddisco @ cscs.ch > http://www.cscs.ch/ > CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07 > Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82 > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
