]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiView.h
Use QFontMetrics information for underlines (and friends) width and position
[lyx.git] / src / frontends / qt4 / GuiView.h
index 17e60df7ddc91a62d4c3d6dd2dad02c0a8b9781b..74aad81f83d0fd24f11567381b25e9cd699a6add 100644 (file)
@@ -51,7 +51,7 @@ class TocModels;
 class ToolbarInfo;
 
 /**
- * GuiView - Qt4 main LyX window
+ * GuiView - Qt main LyX window
  *
  * This class represents the main LyX window and provides
  * accessor functions to its content.
@@ -75,11 +75,17 @@ public:
        /// programmatically and not by the user clicking the x.
        bool closeScheduled();
 
+       /// Things that need to be done when the OSes session manager
+       /// requests a log out.
+       bool prepareAllBuffersForLogout();
+
        int id() const { return id_; }
 
        /// are we busy ?
        bool busy() const;
 
+       /// Signal that the any "auto" minibuffer can be closed now.
+       void resetCommandExecute();
 
        /// \name Generic accessor functions
        //@{
@@ -119,6 +125,7 @@ public:
 
        ///
        void setFocus();
+       bool hasFocus() const;
 
        ///
        void focusInEvent(QFocusEvent * e);
@@ -199,6 +206,9 @@ public:
        GuiWorkArea const * currentMainWorkArea() const;
        /// return the current document WorkArea (it may not have the focus).
        GuiWorkArea * currentMainWorkArea();
+       
+       /// Current ratio between physical pixels and device-independent pixels
+       double pixelRatio() const;
 
 Q_SIGNALS:
        void closing(int);
@@ -226,6 +236,8 @@ private Q_SLOTS:
        void smallSizedIcons();
        void normalSizedIcons();
        void bigSizedIcons();
+       void hugeSizedIcons();
+       void giantSizedIcons();
 
        /// For completion of autosave or export threads.
        void processingThreadStarted();
@@ -412,7 +424,7 @@ private:
                PREVBUFFER
        };
        ///
-       void gotoNextOrPreviousBuffer(NextOrPrevious np);
+       void gotoNextOrPreviousBuffer(NextOrPrevious np, bool const move);
 
        /// Is the dialog currently visible?
        bool isDialogVisible(std::string const & name) const;
@@ -440,6 +452,9 @@ private:
        /// functions that call setBusy;
        int busy_;
 
+       /// Request to open the command toolbar if it is "auto"
+       bool command_execute_;
+
 };
 
 } // namespace frontend