]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDialog.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiDialog.cpp
index 7b08bef7b49420f45580fdc3384c654e63743504..7d4bf582116f11ddffcabfd8692db2870270ee27 100644 (file)
@@ -26,7 +26,8 @@ namespace lyx {
 namespace frontend {
 
 GuiDialog::GuiDialog(GuiView & lv, QString const & name, QString const & title)
-       : QDialog(&lv), Dialog(lv, name, "LyX: " + title), is_closing_(false)
+       : QDialog(&lv), Dialog(lv, name, "LyX: " + title), updating_(false), 
+         is_closing_(false)
 {}
 
 
@@ -50,6 +51,13 @@ void GuiDialog::slotApply()
 }
 
 
+void GuiDialog::slotAutoApply()
+{
+       apply();
+       bc().autoApply();
+}
+
+
 void GuiDialog::slotOK()
 {
        is_closing_ = true;
@@ -87,7 +95,10 @@ void GuiDialog::changed()
 
 void GuiDialog::enableView(bool enable)
 {
-       bc().setReadOnly(!enable);
+       if (!enable) {
+               bc().setReadOnly(true);
+               bc().setValid(false);
+       }
        Dialog::enableView(enable);
 }
 
@@ -110,4 +121,4 @@ void GuiDialog::updateView()
 } // namespace frontend
 } // namespace lyx
 
-#include "GuiDialog_moc.cpp"
+#include "moc_GuiDialog.cpp"