]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QLToolbar.h
Transfer Text::drawSelection() from InsetText::drawSelection() to InsetText::draw...
[lyx.git] / src / frontends / qt4 / QLToolbar.h
index eb7db6b52026146fb0aade4ba9d1ca8b2f7e5ef3..f2f97ce74148c152a274650ebef8ed4716d7e2e0 100644 (file)
 #define QLTOOLBAR_H
 
 #include "frontends/Toolbars.h"
-#include <boost/scoped_ptr.hpp>
+#include "Session.h"
 
 #include <QToolBar>
+
+#include <boost/scoped_ptr.hpp>
+
 #include <vector>
-#include "Session.h"
 
 class QComboBox;
 
@@ -29,6 +31,7 @@ namespace lyx {
 class FuncRequest;
 namespace frontend {
 
+class QCommandBuffer;
 class QLayoutBox;
 class GuiView;
 class Action;
@@ -40,7 +43,7 @@ public:
        QLayoutBox(QToolBar *, GuiView &);
 
        /// select the right layout in the combox.
-       void set(std::string const & layout);
+       void set(docstring const & layout);
        /// Populate the layout combox.
        void update();
        /// Erase the layout list.
@@ -69,16 +72,18 @@ public:
        void add(ToolbarItem const & item);
        void hide(bool);
        void show(bool);
+       bool isVisible() const;
        void saveInfo(ToolbarSection::ToolbarInfo & info);
        void update();
        LayoutBox * layout() const { return layout_.get(); }
-
-
+       ///
+       void focusCommandBuffer();
 
 Q_SIGNALS:
        void updated();
 
 private:
+       QCommandBuffer * command_buffer_;
 
        std::vector<Action *> ActionVector;
        GuiView & owner_;