3 * Copyright 1995-2002 The LyX Team.
4 * See the file COPYING.
5 * \author Angus Leeming <leeming@lyx.org>
7 * Common to all frontends' Dialogs
13 #pragma implementation
18 // Note that static boost signals break some compilers, so this wrapper
19 // initialises the signal dynamically when it is first invoked.
20 template<typename Signal>
23 Signal & operator()() { return thesignal(); }
24 Signal const & operator()() const { return thesignal(); }
27 Signal & thesignal() const
30 signal_.reset(new Signal);
34 mutable boost::scoped_ptr<Signal> signal_;
38 boost::signal0<void> & Dialogs::redrawGUI()
40 static BugfixSignal<boost::signal0<void> > thesignal;