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
12 * Full author contact details are available in file CREDITS.
18 #include "frontends/Toolbars.h"
19 #include <boost/scoped_ptr.hpp>
35 class QLayoutBox : public QObject, public LayoutBox {
38 QLayoutBox(QWidget *, QtView &);
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 QObject, public Toolbar {
63 QLToolbar(ToolbarBackend::Toolbar const &, LyXView &);
64 void add(FuncRequest const & func, std::string const & tooltip);
68 LayoutBox * layout() const { return layout_.get(); }
74 typedef std::map<QToolButton *, FuncRequest> ButtonMap;
80 boost::scoped_ptr<QLayoutBox> layout_;
83 } // namespace frontend
86 #endif // NOT QLTOOLBAR_H