]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiView.h
Add ability to use refstyle's plural and capitalization features.
[lyx.git] / src / frontends / qt4 / GuiView.h
index 74aad81f83d0fd24f11567381b25e9cd699a6add..a864f4b52a157bf4207b2bd8a071d5a88ceedbe1 100644 (file)
@@ -24,6 +24,7 @@
 class QCloseEvent;
 class QDragEnterEvent;
 class QDropEvent;
+class QLabel;
 class QMenu;
 class QShowEvent;
 
@@ -145,7 +146,6 @@ public:
        /// updates the possible layouts selectable
        void updateLayoutList();
        void updateToolbars();
-       QMenu * createPopupMenu();
 
        ///
        LayoutBox * getLayoutDialog() const;
@@ -213,6 +213,8 @@ public:
 Q_SIGNALS:
        void closing(int);
        void triggerShowDialog(QString const & qname, QString const & qdata, Inset * inset);
+       // emitted when the work area or its buffer view changed
+       void bufferViewChanged();
 
 public Q_SLOTS:
        ///
@@ -220,25 +222,20 @@ public Q_SLOTS:
        /// idle timeout.
        /// clear any temporary message and replace with current status.
        void clearMessage();
-
-private Q_SLOTS:
        ///
        void updateWindowTitle(GuiWorkArea * wa);
+
+private Q_SLOTS:
        ///
-       void resetWindowTitleAndIconText();
+       void resetWindowTitle();
 
        ///
        void on_currentWorkAreaChanged(GuiWorkArea *);
        ///
+       void onBufferViewChanged();
+       ///
        void on_lastWorkAreaRemoved();
 
-       /// slots to change the icon size
-       void smallSizedIcons();
-       void normalSizedIcons();
-       void bigSizedIcons();
-       void hugeSizedIcons();
-       void giantSizedIcons();
-
        /// For completion of autosave or export threads.
        void processingThreadStarted();
        void processingThreadFinished();
@@ -252,6 +249,9 @@ private Q_SLOTS:
        void updateStatusBarMessage(QString const & str);
        void clearMessageText();
 
+       ///
+       void toolBarPopup(const QPoint &pos);
+
 private:
        /// Open given child document in current buffer directory.
        void openChildDocument(std::string const & filename);
@@ -287,7 +287,7 @@ private:
        bool goToFileRow(std::string const & argument);
 
        ///
-       struct GuiViewPrivate;
+       class GuiViewPrivate;
        GuiViewPrivate & d;
 
 public:
@@ -364,8 +364,6 @@ private:
        ///
        void insertLyXFile(docstring const & fname);
        ///
-       void insertPlaintextFile(docstring const & fname,
-               bool asParagraph);
        /// Open Export As ... dialog. \p iformat is the format the
        /// filter is initially set to.
        bool exportBufferAs(Buffer & b, docstring const & iformat);
@@ -454,6 +452,16 @@ private:
 
        /// Request to open the command toolbar if it is "auto"
        bool command_execute_;
+       /// Request to give focus to minibuffer
+       bool minibuffer_focus_;
+
+       /// Statusbar widget that shows read-only status
+       QLabel * read_only_;
+       /// Statusbar widget that shows version control status
+       QLabel * version_control_;
+
+       /// Minimum zoom percentage
+       static unsigned int const zoom_min_ = 10;
 
 };