Thanks, works a treat. Just for anyone else interested, it's pqApplicationCore, 
and the following example works nicely for my first test.

  pqSettings *settings = pqApplicationCore::instance()->settings();
  settings->beginGroup("DSMManager");
  // servers
  settings->beginWriteArray("Servers");
  for (int i=0; i<this->UI->dsmServerName->model()->rowCount(); i++) {
     settings->setArrayIndex(i);
     settings->setValue("server", this->UI->dsmServerName->itemText(i));
  }
  settings->endArray();
  // active server
  settings->setValue("Selected", this->UI->dsmServerName->currentIndex());
  //
  settings->endGroup();


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

Reply via email to