diff options
Diffstat (limited to 'src/frontend/displaywindow/bttoolbarpopupaction.h')
-rw-r--r-- | src/frontend/displaywindow/bttoolbarpopupaction.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/frontend/displaywindow/bttoolbarpopupaction.h b/src/frontend/displaywindow/bttoolbarpopupaction.h new file mode 100644 index 0000000..63ed491 --- /dev/null +++ b/src/frontend/displaywindow/bttoolbarpopupaction.h @@ -0,0 +1,45 @@ +/********* +* +* This file is part of BibleTime's source code, http://www.bibletime.info/. +* +* Copyright 1999-2009 by the BibleTime developers. +* The BibleTime source code is licensed under the GNU General Public License version 2.0. +* +**********/ +#ifndef BT_TOOLBAR_POPUP_ACTION_H +#define BT_TOOLBAR_POPUP_ACTION_H + +#include <QWidgetAction> + +class QMenu; +class QString; +class QIcon; +class QToolButton; + +// This class manages the toolbar display for going forward and backward in history. +class BtToolBarPopupAction : public QWidgetAction +{ + Q_OBJECT +public: + + BtToolBarPopupAction(const QIcon& icon, const QString& text, QObject* parent); + ~BtToolBarPopupAction(); + QMenu* popupMenu() const; + +signals: + void triggered(); + +protected: + QWidget* createWidget(QWidget* parent); + +private slots: + void buttonPressed(); + +private: + QMenu* m_menu; + QToolButton* m_button; + QIcon m_icon; + QString m_text; +}; + +#endif |