2 * \file frontends/Dialogs.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
5 * \author Angus Leeming
7 * Full author contact details are available in file CREDITS
9 * Common to all frontends' Dialogs
15 #pragma implementation
20 // Note that static boost signals break some compilers, so this wrapper
21 // initialises the signal dynamically when it is first invoked.
22 template<typename Signal>
25 Signal & operator()() { return thesignal(); }
26 Signal const & operator()() const { return thesignal(); }
29 Signal & thesignal() const
32 signal_.reset(new Signal);
36 mutable boost::scoped_ptr<Signal> signal_;
40 boost::signal0<void> & Dialogs::redrawGUI()
42 static BugfixSignal<boost::signal0<void> > thesignal;