]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiImplementation.h
some remnaming
[lyx.git] / src / frontends / qt4 / GuiImplementation.h
index 0b30d572ca38ddff5842c45abb364adb47d1f9bc..b88c2f211e5325d6fed2f79c654677704a2714fd 100644 (file)
 
 #include <map>
 
-class LyXView;
-
 namespace lyx {
 namespace frontend {
 
-class GuiWorkArea;
-class GuiView;
+class GuiViewBase;
+class LyXView;
 
 /**
  * The GuiImplementation class is the interface to all Qt4 components.
  */
-class GuiImplementation: public QObject, public Gui
+class GuiImplementation : public QObject, public Gui
 {
        Q_OBJECT
 
@@ -38,16 +36,12 @@ public:
        GuiImplementation();
        virtual ~GuiImplementation() {}
 
-
        virtual LyXView& createRegisteredView();
        virtual bool closeAllViews();
        virtual bool unregisterView(int id);
 
        virtual LyXView& view(int id) const;
 
-       virtual int newWorkArea(unsigned int width, unsigned int height, int view_id);
-       virtual WorkArea& workArea(int id);
-
 private:
 
        /// Multiple views container.
@@ -56,23 +50,7 @@ private:
        * object is handled by Qt when the view is closed
        * \sa Qt::WA_DeleteOnClose attribute.
        */
-       std::map<int, GuiView *> views_;
-
-       /// Multiple workareas container.
-       /**
-       * Warning: This must not be a smart pointer as the destruction of the
-       * object is handled by Qt when its parent view is closed.
-       */
-       std::map<int, GuiWorkArea *> work_areas_;
-       ///
-
-       /// view of a buffer. Eventually there will be several.
-       std::map<int, boost::shared_ptr<BufferView> > buffer_views_;
-
-
-       std::vector<int> const & workAreaIds();
-
-       std::vector<int> work_area_ids_;
+       std::map<int, GuiViewBase *> views_;
 };
 
 } // namespace frontend