Fix forward navigation control on Linux.
[dorian] / widgets / toolbuttonbox.h
1 #ifndef TOOLBUTTONBOX_H
2 #define TOOLBUTTONBOX_H
3
4 #include <QFrame>
5
6 class QString;
7 class QButtonGroup;
8
9 /** Frame with tool buttons. */
10 class ToolButtonBox: public QFrame
11 {
12     Q_OBJECT
13
14 public:
15     explicit ToolButtonBox(QWidget *parent = 0);
16     void addButton(int id, const QString &title, const QString &icon = "");
17     void addStretch();
18     void toggle(int id);
19     int checkedId() const;
20
21 signals:
22     void buttonClicked(int id);
23
24 public slots:
25
26 protected:
27     QButtonGroup *group;
28 };
29
30 #endif // TOOLBUTTONBOX_H