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 *);
55 void triggered(QAction *);
59 void showEvent(QShowEvent * event);
60 void hideEvent(QHideEvent * event);
61 void paintEvent(QPaintEvent * event);
65 virtual void clicked(QAction *);
68 QGridLayout * layout_;
69 QList<QAction *> actions_;
71 TearOff * tearoffwidget_;
76 * Popup menu for a toolbutton.
77 * We need this to keep track whether
78 * it is necessary to enable/disable
81 class ButtonMenu : public QMenu {
84 ButtonMenu(const QString & title, QWidget * parent);
91 QList<QAction *> actions_;
95 } // namespace frontend
98 #endif // ICONPALETTE_H