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.
27 * For holding an arbitrary set of icons.
29 class IconPalette : public QWidget {
32 IconPalette(QWidget * parent, char const * name = 0);
35 void add(QPixmap const & pixmap, std::string name, std::string tooltip);
37 void button_clicked(const std::string &);
39 virtual void resizeEvent(QResizeEvent * e);
41 virtual void clicked();
45 QGridLayout * layout_;
47 typedef std::pair<QPushButton *, std::string> Button;
49 std::vector<Button> buttons_;
52 #endif // ICONPALETTE_H