4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
18 #include <QWidgetItem>
29 class FlowLayout : public QLayout
32 FlowLayout(QWidget *parent);
35 void addItem(QLayoutItem *item);
36 Qt::Orientations expandingDirections() const;
37 bool hasHeightForWidth() const;
38 int heightForWidth(int) const;
39 QSize minimumSize() const;
40 void setGeometry(const QRect &rect);
41 QSize sizeHint() const;
42 QLayoutItem * takeAt(int index);
43 QLayoutItem * itemAt(int index) const;
47 int doLayout(const QRect &rect, bool testOnly) const;
48 QList<QLayoutItem *> itemList;
53 * For holding an arbitrary set of icons.
55 class IconPalette : public QWidget {
58 IconPalette(QWidget * parent, char const ** entries);
61 void button_clicked(const std::string &);
64 virtual void clicked();
67 typedef std::pair<QPushButton *, std::string> Button;
68 std::vector<Button> buttons_;
72 } // namespace frontend
75 #endif // ICONPALETTE_H