4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * \author Jean-Marc Lasgouttes
10 * \author Angus Leeming
11 * \author Abdelrazak Younes
13 * Full author contact details are available in file CREDITS.
19 #include "frontends/Toolbars.h"
24 #include <boost/scoped_ptr.hpp>
40 class QLayoutBox : public QObject, public LayoutBox {
43 QLayoutBox(QToolBar *, GuiView &);
45 /// select the right layout in the combox.
46 void set(docstring const & layout);
47 /// Populate the layout combox.
49 /// Erase the layout list.
51 /// Display the layout list.
54 void setEnabled(bool);
57 void selected(const QString & str);
65 class QLToolbar : public QToolBar, public Toolbar {
68 QLToolbar(ToolbarInfo const &, GuiView &);
72 void add(ToolbarItem const & item);
75 bool isVisible() const;
76 void saveInfo(ToolbarSection::ToolbarInfo & info);
78 LayoutBox * layout() const { return layout_.get(); }
80 void focusCommandBuffer();
86 QCommandBuffer * command_buffer_;
88 std::vector<Action *> ActionVector;
91 boost::scoped_ptr<QLayoutBox> layout_;
94 /// return a full path of an XPM for the given action
95 std::string const getIcon(FuncRequest const & f, bool unknown = true);
97 } // namespace frontend
100 #endif // NOT QLTOOLBAR_H