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.
30 * For holding an arbitrary set of icons.
32 class IconPalette : public QWidget {
35 IconPalette(QWidget * parent);
38 void add(QPixmap const & pixmap, std::string name, std::string tooltip);
39 /// get required number of rows.
41 /// get number of Buttons
45 void button_clicked(const std::string &);
47 virtual void resizeEvent(QResizeEvent * e);
49 virtual void clicked();
55 QGridLayout * layout_;
57 typedef std::pair<QPushButton *, std::string> Button;
59 std::vector<Button> buttons_;
65 #endif // ICONPALETTE_H