]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiView.h
Compil fix.
[lyx.git] / src / frontends / qt4 / GuiView.h
index 8aeefcf7085c4f380c85b9ed95b4b9286d6f24e3..c0530c78faaeaa0a06977dc549558525f9ba6a5e 100644 (file)
@@ -32,7 +32,6 @@ class QShowEvent;
 namespace lyx {
 
 class Cursor;
-class ToolbarInfo;
 
 namespace frontend {
 
@@ -41,6 +40,8 @@ class GuiLayoutBox;
 class GuiToolbar;
 class GuiWorkArea;
 class TabWorkArea;
+class TocModels;
+class ToolbarInfo;
 
 /**
  * GuiView - Qt4 implementation of LyXView
@@ -77,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);
 
        ///
@@ -106,6 +107,9 @@ public:
        void errors(std::string const &);
        void structureChanged();
        ///@}
+
+       ///
+       TocModels & tocModels();
        
        /// called on timeout
        void autoSave();
@@ -194,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
@@ -226,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);
@@ -242,6 +245,12 @@ public:
        void updateCompletion(Cursor & cur, bool start, bool keep);
 
 private:
+       ///
+       GuiToolbar * toolbar(std::string const & name);
+       ///
+       void constructToolbars();
+       ///
+       void initToolbars();
        ///
        void lfunUiToggle(FuncRequest const & cmd);