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>
35 class QLayoutBox : public QObject, public LayoutBox {
38 QLayoutBox(QToolBar *, GuiView &);
40 /// select the right layout in the combox.
41 void set(std::string const & layout);
42 /// Populate the layout combox.
44 /// Erase the layout list.
46 /// Display the layout list.
49 void setEnabled(bool);
52 void selected(const QString & str);
60 class QLToolbar : public QToolBar, public Toolbar {
63 QLToolbar(ToolbarBackend::Toolbar const &, GuiView &);
67 void add(FuncRequest const & func, lyx::docstring const & tooltip);
71 LayoutBox * layout() const { return layout_.get(); }
80 std::vector<Action *> ActionVector;
83 boost::scoped_ptr<QLayoutBox> layout_;
86 } // namespace frontend
89 #endif // NOT QLTOOLBAR_H