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.
31 class GuiCommandBuffer;
36 class GuiLayoutBox : public QComboBox
40 GuiLayoutBox(GuiViewBase &);
42 /// select the right layout in the combobox.
43 void set(docstring const & layout);
44 /// Populate the layout combobox.
45 void updateContents();
48 void selected(const QString & str);
55 class GuiToolbar : public QToolBar
59 GuiToolbar(ToolbarInfo const &, GuiViewBase &);
61 /// Add a button to the bar.
62 void add(ToolbarItem const & item);
63 /** update toolbar information
64 * ToolbarInfo will then be saved by session
66 void saveInfo(ToolbarSection::ToolbarInfo & info);
67 /// Refresh the contents of the bar.
68 void updateContents();
69 GuiLayoutBox * layout() const { return layout_; }
71 GuiCommandBuffer * commandBuffer() { return command_buffer_; }
77 Action * addItem(ToolbarItem const & item);
79 QList<Action *> actions_;
82 GuiLayoutBox * layout_;
83 GuiCommandBuffer * command_buffer_;
86 } // namespace frontend
89 #endif // GUITOOLBAR_H