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.
32 class GuiCommandBuffer;
37 class GuiLayoutBox : public QComboBox
41 GuiLayoutBox(GuiView &);
43 /// select the right layout in the combobox.
44 void set(docstring const & layout);
45 /// Populate the layout combobox.
46 void updateContents(bool reset);
47 /// Add Item to Layout box according to sorting settings from preferences
48 void addItemSort(QString const & item, bool sorted);
51 void selected(const QString & str);
55 TextClass const * text_class_;
59 class GuiToolbar : public QToolBar
63 GuiToolbar(ToolbarInfo const &, GuiView &);
65 /// Add a button to the bar.
66 void add(ToolbarItem const & item);
67 /** update toolbar information
68 * ToolbarInfo will then be saved by session
70 void saveInfo(ToolbarSection::ToolbarInfo & info);
71 /// Refresh the contents of the bar.
72 void updateContents();
74 GuiCommandBuffer * commandBuffer() { return command_buffer_; }
80 Action * addItem(ToolbarItem const & item);
82 QList<Action *> actions_;
85 GuiLayoutBox * layout_;
86 GuiCommandBuffer * command_buffer_;
89 } // namespace frontend
92 #endif // GUITOOLBAR_H