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