]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/GUI.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / GUI.h
index e7d01fe3847e07e2450553cbb19822098cebf06d..2a1e7ebc779afb2e5fcd095e96a1c6b2f9a16591 100644 (file)
@@ -4,7 +4,7 @@
  * 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
  */
@@ -12,7 +12,7 @@
 #ifndef GUI_H
 #define GUI_H
 
-#include "ButtonController.h"
+#include "BCView.h"
 
 #include <boost/utility.hpp>
 
@@ -28,13 +28,10 @@ public:
        Controller & controller() { return controller_; }
        ///
        Controller const & controller() const { return controller_; }
-
 private:
        ///
        Controller controller_;
        ///
-       ButtonController<Policy, GUIbc> bc_;
-       ///
        GUIview view_;
 };
 
@@ -46,8 +43,9 @@ GUI<Controller, GUIview, Policy, GUIbc>::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