3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
25 * For holding an arbitrary set of icons.
27 class IconPalette : public QWidget {
30 IconPalette(QWidget * parent, char const * name);
33 void add(QPixmap const & pixmap, string name, string tooltip);
36 void button_clicked(string);
39 virtual void resizeEvent(QResizeEvent * e);
42 virtual void clicked();
45 typedef std::map<QPushButton *, string> ButtonMap;
50 QGridLayout * layout_;
52 ButtonMap button_map_;
55 #endif // ICONPALETTE_H