connect(cancelPB, SIGNAL(clicked()), this, SLOT(slotClose()));
connect(indicesCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(subindexCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
+ connect(literalCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy);
bc().setOK(okPB);
indicesCO->clear();
- indicesCO->addItem(qt_("<All indices>"),
+ indicesCO->addItem(qt_("<All indexes>"),
QVariant(QString("printall")));
const_iterator const begin = indiceslist.begin();
int const pos = indicesCO->findData(toqstr(cur_index));
indicesCO->setCurrentIndex(pos);
subindexCB->setChecked(params_.getCmdName() == "printsubindex");
+ literalCB->setChecked(params_["literal"] == "true");
}
params_["type"] = docstring();
else
params_["type"] = qstring_to_ucs4(index);
+ params_["literal"] = literalCB->isChecked()
+ ? from_ascii("true") : from_ascii("false");
}
indicesCO->findData(toqstr(params_["type"]));
subindexCB->setChecked(params_.getCmdName() == "printsubindex");
indicesCO->setCurrentIndex(pos);
+ literalCB->setChecked(params_["literal"] == "true");
bc().setValid(isValid());
}
{
// The name passed with LFUN_INSET_APPLY is also the name
// used to identify the mailer.
- InsetCommand::string2params("index_print", data, params_);
+ InsetCommand::string2params(data, params_);
+ paramsToDialog(params_);
return true;
}
void GuiPrintindex::dispatchParams()
{
- std::string const lfun = InsetCommand::params2string("index_print", params_);
+ std::string const lfun = InsetCommand::params2string(params_);
dispatch(FuncRequest(getLfun(), lfun));
}