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"
20 #include <boost/scoped_ptr.hpp>
37 class QLayoutBox : public QObject, public LayoutBox {
40 QLayoutBox(QToolBar *, GuiView &);
42 /// select the right layout in the combox.
43 void set(std::string const & layout);
44 /// Populate the layout combox.
46 /// Erase the layout list.
48 /// Display the layout list.
51 void setEnabled(bool);
54 void selected(const QString & str);
62 class QLToolbar : public QToolBar, public Toolbar {
65 QLToolbar(ToolbarInfo const &, GuiView &);
69 void add(ToolbarItem const & item);
72 bool isVisible() const;
73 void saveInfo(ToolbarSection::ToolbarInfo & info);
75 LayoutBox * layout() const { return layout_.get(); }
84 std::vector<Action *> ActionVector;
87 boost::scoped_ptr<QLayoutBox> layout_;
90 /// return a full path of an XPM for the given action
91 std::string const getIcon(FuncRequest const & f, bool unknown = true);
93 } // namespace frontend
96 #endif // NOT QLTOOLBAR_H