]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToolbar.h
Use QMessageBox for toggleWarning if possible
[lyx.git] / src / frontends / qt4 / GuiToolbar.h
index 37ebd8c294a9ce08ebb85dbf6656b35ebfd70094..badd59930ab4d2d97fe12f99fabb7b1c1d3a09a1 100644 (file)
@@ -20,6 +20,8 @@
 #include <QToolBar>
 #include <QToolButton>
 
+class QSettings;
+
 namespace lyx {
 
 class DocumentClass;
@@ -67,8 +69,8 @@ class GuiToolbar : public QToolBar
 public:
        ///
        GuiToolbar(ToolbarInfo const &, GuiView &);
-       
-       /// Reimplemented from QToolbar to detect whether the 
+
+       /// Reimplemented from QToolbar to detect whether the
        /// toolbar is restored with MainWindow::restoreState().
        void setVisible(bool visible);
 
@@ -84,7 +86,7 @@ public:
         **/
        QString sessionKey() const;
        /// Save session settings.
-       void saveSession() const;
+       void saveSession(QSettings & settings) const;
        /// Restore session settings.
        void restoreSession();
 
@@ -92,12 +94,14 @@ public:
        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);
+       void update(int context = 0);
 
        ///
        void toggle();
 
+       /// toggles movability
+       void movable(bool silent = false);
+
        ///
        GuiCommandBuffer * commandBuffer() { return command_buffer_; }