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>
36 class GuiCommandBuffer;
42 class GuiLayoutBox : public QObject, public LayoutBox {
45 GuiLayoutBox(QToolBar *, GuiViewBase &);
47 /// select the right layout in the combox.
48 void set(docstring const & layout);
49 /// Populate the layout combox.
51 /// Erase the layout list.
53 /// Display the layout list.
56 void setEnabled(bool);
59 void selected(const QString & str);
67 class GuiToolbar : public QToolBar, public Toolbar {
70 GuiToolbar(ToolbarInfo const &, GuiViewBase &);
74 void add(ToolbarItem const & item);
77 bool isVisible() const;
78 void saveInfo(ToolbarSection::ToolbarInfo & info);
80 LayoutBox * layout() const { return layout_.get(); }
82 void focusCommandBuffer();
88 GuiCommandBuffer * command_buffer_;
90 std::vector<Action *> ActionVector;
93 boost::scoped_ptr<GuiLayoutBox> layout_;
96 /// return a full path of an XPM for the given action
97 std::string const getIcon(FuncRequest const & f, bool unknown = true);
99 } // namespace frontend
102 #endif // NOT QLTOOLBAR_H