// -*- C++ -*- /** * \file GUI.h * Copyright 2001 The LyX Team. * See the file COPYING. * * \author Angus Leeming */ #ifndef GUI_H #define GUI_H #include "ButtonController.h" #include /** This class makes a whole out of the disparate parts of a dialog. */ template class GUI : public boost::noncopyable { public: /// GUI(LyXView & lv, Dialogs & d); /// Controller & controller() { return controller_; } /// Controller const & controller() const { return controller_; } private: /// Controller controller_; /// ButtonController bc_; /// GUIview view_; }; template GUI::GUI(LyXView & lv, Dialogs & d) : controller_(lv, d), view_() { controller_.setView(view_); controller_.setButtonController(bc_); view_.setController(controller_); } #endif // GUI_H