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.
26 class TearOff : public QWidget {
29 TearOff(QWidget * parent);
30 void enterEvent(QEvent *);
31 void leaveEvent(QEvent *);
32 void mouseReleaseEvent (QMouseEvent *);
36 void paintEvent(QPaintEvent *);
43 * For holding an arbitrary set of icons.
45 class IconPalette : public QWidget {
48 IconPalette(QWidget * parent);
49 void addButton(QAction *);
52 void triggered(QAction *);
56 void showEvent(QShowEvent * event);
57 void hideEvent(QHideEvent * event);
58 void paintEvent(QPaintEvent * event);
62 virtual void clicked(QAction *);
65 QGridLayout * layout_;
66 QList<QAction *> actions_;
68 TearOff * tearoffwidget_;
73 * Popup menu for a toolbutton.
74 * We need this to keep track whether
75 * it is necessary to enable/disable
78 class ButtonMenu : public QMenu {
81 ButtonMenu(const QString & title, QWidget * parent);
88 QList<QAction *> actions_;
92 } // namespace frontend
95 #endif // ICONPALETTE_H