]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Dialogs.C
fix math fonts with LyX/Mac
[lyx.git] / src / frontends / Dialogs.C
index 9990de1f41398983ff1b8ff919286bbdf4b0635a..0c222c045e5f72aa8972d83a18a3c8efc9eaae6e 100644 (file)
 
 #include "controllers/Dialog.h"
 
-#include <boost/signals/signal2.hpp>
+#include <boost/signal.hpp>
 #include <boost/bind.hpp>
 
 
 using std::string;
+using lyx::frontend::Dialog;
 
 
 // Note that static boost signals break some compilers, so this wrapper
@@ -43,16 +44,16 @@ private:
 };
 
 
-boost::signal0<void> & Dialogs::redrawGUI()
+boost::signal<void()> & Dialogs::redrawGUI()
 {
-       static BugfixSignal<boost::signal0<void> > thesignal;
+       static BugfixSignal<boost::signal<void()> > thesignal;
        return thesignal();
 }
 
 
 namespace {
 
-BugfixSignal<boost::signal2<void, string const &, InsetBase*> > hideSignal;
+BugfixSignal<boost::signal<void(string const &, InsetBase*)> > hideSignal;
 
 }
 
@@ -68,13 +69,6 @@ Dialogs::Dialogs(LyXView & lyxview)
 {
        // Connect signals
        redrawGUI().connect(boost::bind(&Dialogs::redraw, this));
-       hideSignal().connect(boost::bind(&Dialogs::hideSlot, this, _1, _2));
-
-       // All this is slated to go
-       init_pimpl();
-       // reduce the number of connections needed in
-       // dialogs by a simple connection here.
-       hideAllSignal.connect(hideBufferDependentSignal);
 }
 
 
@@ -89,7 +83,7 @@ Dialog * Dialogs::find_or_build(string const & name)
        if (it != dialogs_.end())
                return it->second.get();
 
-       dialogs_[name] = DialogPtr(build(name));
+       dialogs_[name] = build(name);
        return dialogs_[name].get();
 }
 
@@ -185,7 +179,6 @@ void Dialogs::hideAll() const
        for(; it != end; ++it) {
                it->second->hide();
        }
-       hideAllSignal();
 }
 
 
@@ -199,7 +192,6 @@ void Dialogs::hideBufferDependent() const
                if (dialog->controller().isBufferDependent())
                        dialog->hide();
        }
-       hideBufferDependentSignal();
 }
 
 
@@ -219,7 +211,6 @@ void Dialogs::updateBufferDependent(bool switched) const
                        dialog->RestoreButton();
                }
        }
-       updateBufferDependentSignal(switched);
 }