]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiRef.cpp
Don't load bibtopic with Biblatex
[lyx.git] / src / frontends / qt4 / GuiRef.cpp
index 68263fe6616be54c5f7a11e6216446c831ecd9b1..58aa435efaa5ab4d039fe49522cce2e910a8db28 100644 (file)
@@ -110,6 +110,8 @@ GuiRef::GuiRef(GuiView & lv)
                this, SLOT(changed_adaptor()));
        connect(capsCB, SIGNAL(clicked()),
                this, SLOT(changed_adaptor()));
+       connect(noprefixCB, SIGNAL(clicked()),
+               this, SLOT(changed_adaptor()));
 
        enableBoxes();
 
@@ -137,9 +139,12 @@ void GuiRef::enableBoxes()
 {
        bool const isFormatted = 
            (InsetRef::getName(typeCO->currentIndex()) == "formatted");
+       bool const isLabelOnly = 
+           (InsetRef::getName(typeCO->currentIndex()) == "labelonly");
        bool const usingRefStyle = buffer().params().use_refstyle;
        pluralCB->setEnabled(isFormatted && usingRefStyle);
-       capsCB->setEnabled (isFormatted && usingRefStyle);
+       capsCB->setEnabled(isFormatted && usingRefStyle);
+       noprefixCB->setEnabled(isLabelOnly);
 }
 
 
@@ -301,6 +306,7 @@ void GuiRef::updateContents()
 
        pluralCB->setChecked(params_["plural"] == "true");
        capsCB->setChecked(params_["caps"] == "true");
+       noprefixCB->setChecked(params_["noprefix"] == "true");
 
        // insert buffer list
        bufferCO->clear();
@@ -342,6 +348,8 @@ void GuiRef::applyView()
              from_ascii("true") : from_ascii("false");
        params_["caps"] = capsCB->isChecked() ? 
              from_ascii("true") : from_ascii("false");
+       params_["noprefix"] = noprefixCB->isChecked() ? 
+             from_ascii("true") : from_ascii("false");
        restored_buffer_ = bufferCO->currentIndex();
 }