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.
27 class TearOff : public QWidget {
30 TearOff(QWidget * parent);
31 void enterEvent(QEvent *);
32 void leaveEvent(QEvent *);
33 void mouseReleaseEvent (QMouseEvent *);
37 void paintEvent(QPaintEvent *);
44 * For holding an arbitrary set of icons.
46 class IconPalette : public QWidget {
49 IconPalette(QWidget * parent);
50 void addButton(QAction *);
56 void triggered(QAction *);
60 void showEvent(QShowEvent * event);
61 void hideEvent(QHideEvent * event);
62 void paintEvent(QPaintEvent * event);
66 virtual void clicked(QAction *);
69 QGridLayout * layout_;
70 QList<QAction *> actions_;
72 TearOff * tearoffwidget_;
77 * Popup menu for a toolbutton.
78 * We need this to keep track whether
79 * it is necessary to enable/disable
82 class ButtonMenu : public QMenu {
85 ButtonMenu(const QString & title, QWidget * parent = 0 );
92 QList<QAction *> actions_;
96 } // namespace frontend
99 #endif // ICONPALETTE_H