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.
30 * For holding an arbitrary set of icons.
32 class IconPalette : public QWidget {
35 IconPalette(QWidget * parent);
38 void add(QPixmap const & pixmap, std::string name, std::string tooltip);
40 void button_clicked(const std::string &);
42 virtual void resizeEvent(QResizeEvent * e);
44 virtual void clicked();
48 QGridLayout * layout_;
50 typedef std::pair<QPushButton *, std::string> Button;
52 std::vector<Button> buttons_;
58 #endif // ICONPALETTE_H