/** * \file iconpalette.h * Copyright 2001 the LyX Team * Read the file COPYING * * \author John Levon */ #ifndef ICONPALETTE_H #define ICONPALETTE_H #include #include "LString.h" #include #include class QPixmap; class QPushButton; class QGridLayout; /** * For holding an arbitrary set of icons. */ class IconPalette : public QWidget { Q_OBJECT public: IconPalette(QWidget * parent, char const * name); /// add a button void add(QPixmap const & pixmap, string name, string tooltip); signals: void button_clicked(string); protected slots: virtual void clicked(); private: typedef std::map ButtonMap; int crow_; int ccol_; QGridLayout * layout_; ButtonMap button_map_; }; #endif // ICONPALETTE_H