X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FGUI.h;h=ab4cfcd60c8ba4bc247139fa31b42ff819ac421d;hb=0705dae8a3a2bcdd6be55eb468547c1389e84d2c;hp=03f1a902e12acb7947975085a81e0efd9152156e;hpb=4ecb8d1f56545d234bac61ebbccd494cab859752;p=lyx.git diff --git a/src/frontends/controllers/GUI.h b/src/frontends/controllers/GUI.h index 03f1a902e1..ab4cfcd60c 100644 --- a/src/frontends/controllers/GUI.h +++ b/src/frontends/controllers/GUI.h @@ -1,24 +1,27 @@ // -*- C++ -*- /** * \file GUI.h - * Copyright 2001 The LyX Team. - * See the file COPYING. + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * \author Angus Leeming + * \author Angus Leeming + * + * Full author contact details are available in file CREDITS. */ #ifndef GUI_H #define GUI_H -#include "ButtonController.h" - #include +class LyXView; +class Dialogs; + /** This class makes a whole out of the disparate parts of a dialog. */ template -class GUI : public boost::noncopyable { +class GUI : boost::noncopyable { public: /// GUI(LyXView & lv, Dialogs & d); @@ -26,13 +29,10 @@ public: Controller & controller() { return controller_; } /// Controller const & controller() const { return controller_; } - private: /// Controller controller_; /// - ButtonController bc_; - /// GUIview view_; }; @@ -44,9 +44,9 @@ GUI::GUI(LyXView & lv, Dialogs & d) view_() { controller_.setView(view_); - controller_.setButtonController(bc_); view_.setController(controller_); + controller_.bc().view(new GUIbc(controller_.bc())); + controller_.bc().bp(new Policy); } - #endif // GUI_H