]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QWorkArea.h
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / QWorkArea.h
index bdfb50bd43d8f33d5a2b4cbadcd835c338b4c8ce..92bd7f57c5d818ec32e82152eade9869aa008fe1 100644 (file)
@@ -117,16 +117,16 @@ public:
 
        ///
        virtual std::string const getClipboard() const;
-       
+
        ///
        virtual void putClipboard(std::string const &) const;
-       
+
        ///
        virtual void dragEnterEvent(QDragEnterEvent * event);
-       
+
        ///
        virtual void dropEvent(QDropEvent* event);
-       
+
        /// return the widget's painter
        virtual Painter & getPainter() { return (Painter &) painter_; }
 
@@ -145,6 +145,10 @@ public:
        */
        void drawScreen(int x, int y, QPixmap pixmap);
 
+        LyXView & view()
+        {
+                return view_;
+        }
 protected:
 
        /// repaint part of the widget
@@ -167,7 +171,7 @@ protected:
 #if USE_INPUT_METHODS
 protected:
        /// IM events
-       void QWorkArea::inputMethodEvent(QInputMethodEvent * e) 
+       void QWorkArea::inputMethodEvent(QInputMethodEvent * e)
 #endif
 
 public slots:
@@ -179,13 +183,15 @@ public slots:
        /// Adjust the LyX buffer view with the position of the scrollbar.
        /**
        * The action argument is not used in the the code, it is there
-       * only for the connection to the vertical srollbar signal which 
+       * only for the connection to the vertical srollbar signal which
        * emits an 'int' action.
        */
        void adjustViewWithScrollBar(int action = 0);
 
 private:
-
+        ///
+        LyXView & view_;
+        
        /// Buffer view width.
        int workWidth_;