4 * Copyright 2001 The LyX Team.
5 * See the file COPYING.
7 * \author Angus Leeming <a.leeming@ic.ac.uk>
13 #include "ButtonController.h"
15 #include <boost/utility.hpp>
17 /** This class makes a whole out of the disparate parts of a dialog.
19 template <typename Controller, typename GUIview,
20 typename Policy, typename GUIbc>
21 class GUI : boost::noncopyable {
24 GUI(LyXView & lv, Dialogs & d);
26 Controller & controller() { return controller_; }
28 Controller const & controller() const { return controller_; }
32 Controller controller_;
34 ButtonController<Policy, GUIbc> bc_;
40 template <typename Controller, typename GUIview,
41 typename Policy, typename GUIbc>
42 GUI<Controller, GUIview, Policy, GUIbc>::GUI(LyXView & lv, Dialogs & d)
46 controller_.setView(view_);
47 controller_.setButtonController(bc_);
48 view_.setController(controller_);