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"
33 class GuiCommandBuffer;
39 class GuiLayoutBox : public QObject, public LayoutBox
43 GuiLayoutBox(QToolBar *, GuiViewBase &);
45 /// select the right layout in the combobox.
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 GuiToolbar : public QToolBar, public Toolbar
69 GuiToolbar(ToolbarInfo const &, GuiViewBase &);
71 void add(ToolbarItem const & item);
74 bool isVisible() const;
75 void saveInfo(ToolbarSection::ToolbarInfo & info);
77 LayoutBox * layout() const { return layout_; }
79 void focusCommandBuffer();
85 Action * addItem(ToolbarItem const & item);
87 QList<Action *> actions_;
90 GuiLayoutBox * layout_;
91 GuiCommandBuffer * command_buffer_;
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 // GUITOOLBAR_H