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, std::string name, std::string tooltip);
39 void button_clicked(const std::string &);
41 virtual void resizeEvent(QResizeEvent * e);
43 virtual void clicked();
47 QGridLayout * layout_;
49 typedef std::pair<QPushButton *, std::string> Button;
51 std::vector<Button> buttons_;
54 #endif // ICONPALETTE_H