3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
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);
37 void button_clicked(string);
40 virtual void resizeEvent(QResizeEvent * e);
43 virtual void clicked();
48 QGridLayout * layout_;
50 typedef std::pair<QPushButton *, string> Button;
52 std::vector<Button> buttons_;
55 #endif // ICONPALETTE_H