]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiWorkArea.h
* TabWorkArea: rename 'close tab' button to 'close buffer' and add a 'close tab'...
[lyx.git] / src / frontends / qt4 / GuiWorkArea.h
index 7e254a3448baaaa50c24f0070b2fb75eb2e689f2..b528bb478efee30d2349a87bfdb7a862f8171682 100644 (file)
 #include <QTabWidget>
 #include <QTimer>
 
-class QWidget;
+class QContextMenuEvent;
 class QDragEnterEvent;
 class QDropEvent;
 class QKeyEvent;
 class QWheelEvent;
 class QPaintEvent;
+class QWidget;
 
 #ifdef CursorShape
 #undef CursorShape
@@ -108,6 +109,8 @@ public:
        ///
        ~GuiWorkArea();
 
+       ///
+       void setFullScreen(bool full_screen);
        ///
        void scheduleRedraw() { schedule_redraw_ = true; }
        ///
@@ -131,18 +134,16 @@ Q_SIGNALS:
        void titleChanged(GuiWorkArea *);
 
 private Q_SLOTS:
-       /// Adjust the LyX buffer view with the position of the scrollbar.
+       /// Scroll the BufferView.
        /**
-       * The action argument is not used in the the code, it is there
-       * only for the connection to the vertical srollbar signal which
-       * emits an 'int' action.
+         * This is a slot for the valueChanged() signal of the vertical scrollbar.
+         * \p value value of the scrollbar.
        */
-       void adjustViewWithScrollBar(int action = 0);
+       void scrollTo(int value);
        /// timer to limit triple clicks
        void doubleClickTimeout();
        /// toggle the cursor's visibility
        void toggleCursor();
-
        /// close this work area.
        /// Slot for Buffer::closing signal.
        void close();
@@ -167,6 +168,8 @@ private:
        ///
        bool event(QEvent *);
        ///
+       void contextMenuEvent(QContextMenuEvent *);
+       ///
        void focusInEvent(QFocusEvent *);
        ///
        void focusOutEvent(QFocusEvent *);
@@ -236,6 +239,8 @@ class TabWorkArea : public QTabWidget
 public:
        TabWorkArea(QWidget * parent = 0);
 
+       ///
+       void setFullScreen(bool full_screen);
        void showBar(bool show);
        void closeAll();
        bool setCurrentWorkArea(GuiWorkArea *);
@@ -252,6 +257,8 @@ public Q_SLOTS:
        ///
        void on_currentTabChanged(int index);
        ///
+       void closeCurrentBuffer();
+       ///
        void closeCurrentTab();
        ///
        void updateTabText(GuiWorkArea *);