]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiERT.cpp
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / GuiERT.cpp
index cc9f984b9d182278a1af61fdfc00785b03650e68..fece83ea766d73907ccb34416a6b6d6e16aa14cd 100644 (file)
@@ -40,8 +40,8 @@ GuiERT::GuiERT(QWidget * parent) : InsetParamsWidget(parent)
 
 docstring GuiERT::dialogToParams() const
 {
-       InsetCollapsable::CollapseStatus const status = openRB->isChecked()
-               ? InsetCollapsable::Open : InsetCollapsable::Collapsed;
+       InsetCollapsible::CollapseStatus const status = openRB->isChecked()
+               ? InsetCollapsible::Open : InsetCollapsible::Collapsed;
        return from_ascii(InsetERT::params2string(status));
 }
 
@@ -51,13 +51,21 @@ void GuiERT::paramsToDialog(Inset const * inset)
        InsetERT const * ert = static_cast<InsetERT const *>(inset);
        // FIXME: This dialog has absolutely no value...
        BufferView const * bv = guiApp->currentView()->currentBufferView();
-       InsetCollapsable::CollapseStatus status = ert->status(*bv);
+       InsetCollapsible::CollapseStatus status = ert->status(*bv);
        switch (status) {
-               case InsetCollapsable::Open: openRB->setChecked(true); break;
-               case InsetCollapsable::Collapsed: collapsedRB->setChecked(true); break;
+               case InsetCollapsible::Open: openRB->setChecked(true); break;
+               case InsetCollapsible::Collapsed: collapsedRB->setChecked(true); break;
        }
 }
 
+
+bool GuiERT::checkWidgets(bool readonly) const
+{
+       ertBG->setEnabled(!readonly);
+       return InsetParamsWidget::checkWidgets();
+}
+
+
 } // namespace frontend
 } // namespace lyx