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>
36 class QLayoutBox : public QObject, public LayoutBox {
39 QLayoutBox(QToolBar *, GuiView &);
41 /// select the right layout in the combox.
42 void set(std::string const & layout);
43 /// Populate the layout combox.
45 /// Erase the layout list.
47 /// Display the layout list.
50 void setEnabled(bool);
53 void selected(const QString & str);
61 class QLToolbar : public QObject, public Toolbar {
64 QLToolbar(ToolbarBackend::Toolbar const &, LyXView &);
68 void add(FuncRequest const & func, std::string const & tooltip);
72 LayoutBox * layout() const { return layout_.get(); }
79 std::vector<Action *> ActionVector;
83 boost::scoped_ptr<QLayoutBox> layout_;
88 } // namespace frontend
91 #endif // NOT QLTOOLBAR_H