]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPrintindex.cpp
Some improvements to the graphics dialog
[lyx.git] / src / frontends / qt4 / GuiPrintindex.cpp
index c667584aab5d88da13899ffa4b6e72ddcdff3019..be8c0cd9b621b5c75a497870b315df42a06c1d6a 100644 (file)
@@ -43,6 +43,7 @@ GuiPrintindex::GuiPrintindex(GuiView & lv)
        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);
@@ -78,6 +79,7 @@ void GuiPrintindex::updateContents()
        int const pos = indicesCO->findData(toqstr(cur_index));
        indicesCO->setCurrentIndex(pos);
        subindexCB->setChecked(params_.getCmdName() == "printsubindex");
+       literalCB->setChecked(params_["literal"] == "true");
 }
 
 
@@ -95,6 +97,8 @@ void GuiPrintindex::applyView()
                params_["type"] = docstring();
        else
                params_["type"] = qstring_to_ucs4(index);
+       params_["literal"] = literalCB->isChecked()
+                       ? from_ascii("true") : from_ascii("false");
 }
 
 
@@ -105,6 +109,7 @@ void GuiPrintindex::paramsToDialog(InsetCommandParams const & /*icp*/)
                indicesCO->findData(toqstr(params_["type"]));
        subindexCB->setChecked(params_.getCmdName() == "printsubindex");
        indicesCO->setCurrentIndex(pos);
+       literalCB->setChecked(params_["literal"] == "true");
        bc().setValid(isValid());
 }