Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
macdockiconhandler.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef MACDOCKICONHANDLER_H
6 #define 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__
19 #else
21 #endif
22 
26 {
27  Q_OBJECT
28 
29 public:
31 
32  QMenu *dockMenu();
33  void setIcon(const QIcon &icon);
34  void setMainWindow(QMainWindow *window);
35  static MacDockIconHandler *instance();
36 
38 
39 signals:
40  void dockIconClicked();
41 
42 private:
44 
47  QMenu *m_dockMenu;
49 };
50 
51 #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