]> Git Repo - VerusCoin.git/blob - src/qt/macdockiconhandler.h
Merge pull request #5286
[VerusCoin.git] / src / qt / macdockiconhandler.h
1 // Copyright (c) 2011-2013 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef BITCOIN_QT_MACDOCKICONHANDLER_H
6 #define BITCOIN_QT_MACDOCKICONHANDLER_H
7
8 #include <QMainWindow>
9 #include <QObject>
10
11 QT_BEGIN_NAMESPACE
12 class QIcon;
13 class QMenu;
14 class QWidget;
15 QT_END_NAMESPACE
16
17 #ifdef __OBJC__
18 @class DockIconClickEventHandler;
19 #else
20 class DockIconClickEventHandler;
21 #endif
22
23 /** Macintosh-specific dock icon handler.
24  */
25 class MacDockIconHandler : public QObject
26 {
27     Q_OBJECT
28
29 public:
30     ~MacDockIconHandler();
31
32     QMenu *dockMenu();
33     void setIcon(const QIcon &icon);
34     void setMainWindow(QMainWindow *window);
35     static MacDockIconHandler *instance();
36
37     void handleDockIconClickEvent();
38
39 signals:
40     void dockIconClicked();
41
42 private:
43     MacDockIconHandler();
44
45     DockIconClickEventHandler *m_dockIconClickEventHandler;
46     QWidget *m_dummyWidget;
47     QMenu *m_dockMenu;
48     QMainWindow *mainWindow;
49 };
50
51 #endif // BITCOIN_QT_MACDOCKICONHANDLER_H
This page took 0.024835 seconds and 4 git commands to generate.