]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiImplementation.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / GuiImplementation.h
index 31f23ad873533efe5d7924fee5db60dc9d9b1b48..312227dc0c0a8f71f0faf828812288b24dcb790f 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef GUI_IMPLEMENTATION_H
-#define GUI_IMPLEMENTATION_H
+#ifndef GUI_H
+#define GUI_H
 
 #include "frontends/Gui.h"
-#include "GuiClipboard.h"
 
 #include <boost/shared_ptr.hpp>
 
 #include <map>
 
+class LyXView;
+
 namespace lyx {
 namespace frontend {
 
 class GuiWorkArea;
-class QtView;
+class GuiView;
 
 /**
  * The GuiImplementation class is the interface to all Qt4 components.
@@ -32,27 +33,30 @@ class QtView;
 class GuiImplementation: public Gui
 {
 public:
-       GuiImplementation(QtView & owner);
+       GuiImplementation();
        virtual ~GuiImplementation() {}
 
-       Clipboard& clipboard();
-
+       int newView(unsigned int width, unsigned int height);
+       LyXView& view(int id);
+       void destroyView(int id);
+       int newWorkArea(unsigned int width, unsigned int height, int view_id);
        int newWorkArea(int w, int h);
        WorkArea& workArea(int id);
        void destroyWorkArea(int id);
 
+
 private:
        ///
-       GuiClipboard clipboard_;
+       std::map<int, boost::shared_ptr<GuiView> > views_;
        ///
        std::map<int, boost::shared_ptr<GuiWorkArea> > work_areas_;
        ///
-       QtView & owner_;
+       size_t max_view_id_;
        ///
-       size_t max_id_;
+       size_t max_wa_id_;
 };
 
 } // namespace frontend
 } // namespace lyx
 
-#endif // GUI_IMPLEMENTATION_H
+#endif // GUI_H