Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
macdockiconhandler.h
Go to the documentation of this file.
1 #ifndef MACDOCKICONHANDLER_H
2 #define MACDOCKICONHANDLER_H
3 
4 #include <QObject>
5 #include <QMainWindow>
6 
7 QT_BEGIN_NAMESPACE
8 class QMenu;
9 class QIcon;
10 class QWidget;
11 QT_END_NAMESPACE
12 
13 #ifdef __OBJC__
15 #else
17 #endif
18 
21 class MacDockIconHandler : public QObject
22 {
23  Q_OBJECT
24 
25 public:
27 
28  QMenu *dockMenu();
29  void setIcon(const QIcon &icon);
30  void setMainWindow(QMainWindow *window);
31  static MacDockIconHandler *instance();
32 
34 
35 signals:
36  void dockIconClicked();
37 
38 private:
40 
42  QWidget *m_dummyWidget;
43  QMenu *m_dockMenu;
44  QMainWindow *mainWindow;
45 };
46 
47 #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