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
46 GuiLayoutBox(QToolBar *, GuiViewBase &);
48 /// select the right layout in the combox.
49 void set(docstring const & layout);
50 /// Populate the layout combox.
52 /// Erase the layout list.
54 /// Display the layout list.
57 void setEnabled(bool);
60 void selected(const QString & str);
68 class GuiToolbar : public QToolBar, public Toolbar
72 GuiToolbar(ToolbarInfo const &, GuiViewBase &);
76 void add(ToolbarItem const & item);
79 bool isVisible() const;
80 void saveInfo(ToolbarSection::ToolbarInfo & info);
82 LayoutBox * layout() const { return layout_.get(); }
84 void focusCommandBuffer();
90 GuiCommandBuffer * command_buffer_;
92 std::vector<Action *> ActionVector;
95 boost::scoped_ptr<GuiLayoutBox> layout_;
98 /// return a full path of an XPM for the given action
99 std::string const getIcon(FuncRequest const & f, bool unknown = true);
101 } // namespace frontend
104 #endif // GUITOOLBAR_H