* \file Dialogs.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
+ *
* \author Allan Rae
+ * \author Angus Leeming
*
* Full author contact details are available in file CREDITS.
*/
#ifndef DIALOGS_H
#define DIALOGS_H
+#include <boost/signal.hpp>
#include <boost/utility.hpp>
-#include <boost/signals/signal0.hpp>
-class Dialog;
+#include <map>
+
class InsetBase;
class LyXView;
+namespace lyx {
+namespace frontend {
+class Dialog;
+} // namespace frontend
+} // namespace lyx
+
/** Container of all dialogs.
*/
-class Dialogs : boost::noncopyable
-{
+class Dialogs : boost::noncopyable {
public:
///
Dialogs(LyXView &);
* Note that static boost signals break some compilers, so we return a
* reference to some hidden magic ;-)
*/
- static boost::signal0<void> & redrawGUI();
+ static boost::signal<void()> & redrawGUI();
/// Toggle tooltips on/off in all dialogs.
static void toggleTooltips();
///
bool isValidName(std::string const & name) const;
///
- Dialog * find_or_build(std::string const & name);
+ lyx::frontend::Dialog * find_or_build(std::string const & name);
///
- typedef boost::shared_ptr<Dialog> DialogPtr;
+ typedef boost::shared_ptr<lyx::frontend::Dialog> DialogPtr;
///
DialogPtr build(std::string const & name);