]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiImplementation.h
Whitespace cleanup
[features.git] / src / frontends / qt4 / GuiImplementation.h
index e73af83132f588b7c84cce0df8d11be38b68c11d..0b30d572ca38ddff5842c45abb364adb47d1f9bc 100644 (file)
@@ -38,23 +38,22 @@ public:
        GuiImplementation();
        virtual ~GuiImplementation() {}
 
-       int newView();
-       LyXView& view(int id);
-       int newWorkArea(unsigned int width, unsigned int height, int view_id);
-       WorkArea& workArea(int id);
 
-private Q_SLOTS:
-       ///
-       void cleanupViews(QObject * view);
+       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:
-       ///
-       void buildViewIds();
 
        /// Multiple views container.
        /**
        * Warning: This must not be a smart pointer as the destruction of the
-       * object is handled by Qt when the view is closed 
+       * object is handled by Qt when the view is closed
        * \sa Qt::WA_DeleteOnClose attribute.
        */
        std::map<int, GuiView *> views_;
@@ -66,9 +65,14 @@ private:
        */
        std::map<int, GuiWorkArea *> work_areas_;
        ///
-       size_t max_view_id_;
-       ///
-       size_t max_wa_id_;
+
+       /// 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_;
 };
 
 } // namespace frontend