]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToolbar.h
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiToolbar.h
index f00575cd9d34eabce8f78263af84f072afc6fae4..37ebd8c294a9ce08ebb85dbf6656b35ebfd70094 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef GUITOOLBAR_H
 #define GUITOOLBAR_H
 
-#include "Session.h"
-
 #include <QList>
 #include <QToolBar>
 #include <QToolButton>
@@ -69,6 +67,10 @@ class GuiToolbar : public QToolBar
 public:
        ///
        GuiToolbar(ToolbarInfo const &, GuiView &);
+       
+       /// Reimplemented from QToolbar to detect whether the 
+       /// toolbar is restored with MainWindow::restoreState().
+       void setVisible(bool visible);
 
        ///
        void setVisibility(int visibility);
@@ -86,6 +88,9 @@ public:
        /// Restore session settings.
        void restoreSession();
 
+       ///
+       bool isRestored() const;
+
        /// Refresh the contents of the bar.
        void update(bool in_math, bool in_table, bool review,
                bool in_mathmacrotemplate, bool in_ipa);
@@ -123,6 +128,8 @@ private:
        ToolbarInfo const & tbinfo_;
        ///
        bool filled_;
+       ///
+       bool restored_;
 };
 
 } // namespace frontend