#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;
class FuncRequest;
namespace frontend {
+class QCommandBuffer;
class QLayoutBox;
class GuiView;
class Action;
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.
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_;
};
/// return a full path of an XPM for the given action
-std::string const getIcon(FuncRequest const & f);
+std::string const getIcon(FuncRequest const & f, bool unknown = true);
} // namespace frontend
} // namespace lyx