#ifndef GUITOOLBAR_H
#define GUITOOLBAR_H
-#include "Session.h"
-
#include <QList>
#include <QToolBar>
#include <QToolButton>
+class QSettings;
+
namespace lyx {
class DocumentClass;
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);
**/
QString sessionKey() const;
/// Save session settings.
- void saveSession() const;
+ void saveSession(QSettings & settings) const;
/// 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);
+ void update(int context = 0);
///
void toggle();
+ /// toggles movability
+ void movable(bool silent = false);
+
///
GuiCommandBuffer * commandBuffer() { return command_buffer_; }