[Paraview] saving plugin defaults

Biddiscombe, John A. biddisco at cscs.ch
Mon Jan 25 11:01:06 EST 2010


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


More information about the ParaView mailing list