Anoncoin  0.9.4
P2P Digital Currency
macdockiconhandler.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef MACDOCKICONHANDLER_H
7 #define MACDOCKICONHANDLER_H
8 
9 #include <QMainWindow>
10 #include <QObject>
11 
12 QT_BEGIN_NAMESPACE
13 class QIcon;
14 class QMenu;
15 class QWidget;
16 QT_END_NAMESPACE
17 
18 #ifdef __OBJC__
20 #else
22 #endif
23 
26 class MacDockIconHandler : public QObject
27 {
28  Q_OBJECT
29 
30 public:
32 
33  QMenu *dockMenu();
34  void setIcon(const QIcon &icon);
35  void setMainWindow(QMainWindow *window);
36  static MacDockIconHandler *instance();
37 
39 
40 signals:
41  void dockIconClicked();
42 
43 private:
45 
47  QWidget *m_dummyWidget;
48  QMenu *m_dockMenu;
49  QMainWindow *mainWindow;
50 };
51 
52 #endif // MACDOCKICONCLICKHANDLER_H
QMainWindow * mainWindow
Macintosh-specific dock icon handler.
void setIcon(const QIcon &icon)
static MacDockIconHandler * instance()
void setMainWindow(QMainWindow *window)
DockIconClickEventHandler * m_dockIconClickEventHandler