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.
18 //#include <Q3GridLayout>
19 //#include <QResizeEvent>
32 * For holding an arbitrary set of icons.
34 class IconPalette : public QWidget {
37 IconPalette(QWidget * parent, char const * name = 0);
40 void add(QPixmap const & pixmap, std::string name, std::string tooltip);
42 void button_clicked(const std::string &);
44 virtual void resizeEvent(QResizeEvent * e);
46 virtual void clicked();
50 Q3GridLayout * layout_;
52 typedef std::pair<QPushButton *, std::string> Button;
54 std::vector<Button> buttons_;
57 #endif // ICONPALETTE_H