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.
24 * For holding an arbitrary set of icons.
26 class IconPalette : public QWidget {
29 IconPalette(QWidget * parent);
30 void addButton(QAction *);
36 void triggered(QAction *);
40 void showEvent(QShowEvent * event);
41 void hideEvent(QHideEvent * event);
42 void paintEvent(QPaintEvent * event);
45 virtual void clicked(QAction *);
48 QGridLayout * layout_;
49 QList<QAction *> actions_;
53 * Popup menu for a toolbutton.
54 * We need this to keep track whether
55 * it is necessary to enable/disable
58 class ButtonMenu : public QMenu {
61 ButtonMenu(const QString & title, QWidget * parent = 0 );
68 QList<QAction *> actions_;
72 } // namespace frontend
75 #endif // ICONPALETTE_H