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