]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiView.h
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / GuiView.h
index ad95e4d677b4248d0d4b159b5b902e92f0382076..efada9f6a5de288b6fd821aa5edd0355763ff857 100644 (file)
@@ -32,7 +32,6 @@ class QShowEvent;
 namespace lyx {
 
 class Cursor;
-class ToolbarInfo;
 
 namespace frontend {
 
@@ -42,6 +41,7 @@ class GuiToolbar;
 class GuiWorkArea;
 class TabWorkArea;
 class TocModels;
+class ToolbarInfo;
 
 /**
  * GuiView - Qt4 implementation of LyXView
@@ -78,7 +78,7 @@ public:
        void updateLayoutList();
        void updateToolbars();
        QMenu * createPopupMenu();
-       FuncStatus getStatus(FuncRequest const & cmd);
+       bool getStatus(FuncRequest const & cmd, FuncStatus & flag);
        bool dispatch(FuncRequest const & cmd);
 
        ///
@@ -198,19 +198,18 @@ public:
        ///
        void resetDialogs();
 
-       /** Check the status of all visible dialogs and disable or reenable
+       /// Hide all visible dialogs
+       void hideAll() const;
+
+       /// Update all visible dialogs.
+       /** 
+        *  Check the status of all visible dialogs and disable or reenable
         *  them as appropriate.
         *
         *  Disabling is needed for example when a dialog is open and the
         *  cursor moves to a position where the corresponding inset is not
         *  allowed.
         */
-       void checkStatus();
-
-       /// Hide all visible dialogs
-       void hideAll() const;
-
-       // Update all visible dialogs.
        void updateDialogs();
 
        /** \param name == "bibtex", "citation" etc; an identifier used to
@@ -230,7 +229,7 @@ public:
                std::string const & data, Inset * inset = 0);
 
        /** \param name == "citation", "bibtex" etc; an identifier used
-           to update the contents of a particular dialog with \param data.
+           to reset the contents of a particular dialog with \param data.
            See the comments to 'show', above.
        */
        void updateDialog(std::string const & name, std::string const & data);
@@ -246,9 +245,20 @@ public:
        void updateCompletion(Cursor & cur, bool start, bool keep);
 
 private:
+       ///
+       void saveLayout() const;
+       ///
+       void restoreLayout();
+       ///
+       GuiToolbar * toolbar(std::string const & name);
+       ///
+       void constructToolbars();
+       ///
+       void initToolbars();
        ///
        void lfunUiToggle(FuncRequest const & cmd);
-
+       ///
+       void toggleFullScreen();
        ///
        void insertLyXFile(docstring const & fname);
        ///