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
29 * For holding an arbitrary set of icons.
31 class IconPalette : public QWidget {
34 IconPalette(QWidget * parent, char const * name = 0);
37 void add(QPixmap const & pixmap, string name, string tooltip);
40 void button_clicked(string);
43 virtual void resizeEvent(QResizeEvent * e);
46 virtual void clicked();
51 QGridLayout * layout_;
53 typedef std::pair<QPushButton *, string> Button;
55 std::vector<Button> buttons_;
58 #endif // ICONPALETTE_H