]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Dialogs.C
do not define boost::throw_exceptions if we are compiling with exceptions
[lyx.git] / src / frontends / Dialogs.C
index 5e5a42d4441cdad1acf2e7296658ec11966cdf96..5ea2ef5ad3347dea7fa529b244aa8345e074ac29 100644 (file)
@@ -69,6 +69,7 @@ Dialogs::Dialogs(LyXView & lyxview)
 {
        // Connect signals
        redrawGUI().connect(boost::bind(&Dialogs::redraw, this));
+       hideSignal().connect(boost::bind(&Dialogs::hideSlot, this, _1, _2));
 }
 
 
@@ -98,7 +99,7 @@ void Dialogs::show(string const & name, string const & data)
        if (dialog) {
                // FIXME! Should check that the dialog is NOT an inset dialog.
                dialog->show(data);
-       }       
+       }
        in_show_ = false;
 }
 
@@ -231,3 +232,16 @@ void Dialogs::redraw() const
                it->second->redraw();
        }
 }
+
+
+void Dialogs::checkStatus()
+{
+       std::map<string, DialogPtr>::const_iterator it  = dialogs_.begin();
+       std::map<string, DialogPtr>::const_iterator end = dialogs_.end();
+
+       for(; it != end; ++it) {
+               Dialog * const dialog = it->second.get();
+               if (dialog->isVisible())
+                       dialog->checkStatus();
+       }
+}