-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFrameMain.h
126 lines (99 loc) · 2.83 KB
/
FrameMain.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#pragma once
class CGnucleusApp;
class CGnucleusDoc;
class CAutCore;
class CAutPrefs;
class CAutCache;
class CAutNetwork;
class CAutShare;
class CFrameConnect;
class CFrameBrowser;
class CViewSearch;
class CBuildMap;
class CChatControl;
class CPrefsEx;
#include "WindowListDlg.h"
#include "SearchToolbar.h"
class CFrameMain : public CMDIFrameWnd
{
DECLARE_DYNAMIC(CFrameMain)
public:
CFrameMain(CGnucleusDoc* pDoc);
virtual ~CFrameMain();
CFrameBrowser* OpenBrowser(CString);
void SearchFromConnect();
CViewSearch* CreateSearchWindow();
void BrowseHost(CString Host, int Port);
CGnucleusApp* m_pApp;
CGnucleusDoc* m_pDoc;
CAutCore* m_autCore;
CAutPrefs* m_autPrefs;
CAutCache* m_autCache;
CAutNetwork* m_autNetwork;
CAutShare* m_autShare;
CWindowListDlg m_wndWindowListDlgBar;
CSearchToolbar m_SearchToolbar;
CBuildMap* m_pBuildDlg;
CChatControl* m_pChat;
CPrefsEx* m_pPrefsEx;
//{{AFX_VIRTUAL(CFrameMain)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
protected:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
BOOL CreateTrayIcon(CWnd*, UINT, LPCTSTR, HICON, UINT);
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CReBar m_wndReBar;
int m_GlobalTimerID;
int m_VersionTimerID;
int m_ChatTimerID;
NOTIFYICONDATA m_tnd;
int m_TrayIconOn;
int m_TrayIconOff;
bool m_GnucInTray;
bool m_AlertSignal;
UINT m_suTaskbarRestart; // Registered message ID for "TaskbarCreated"
//{{AFX_MSG(CFrameMain)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFileAutoconnect();
afx_msg void OnViewConnections();
afx_msg void OnFileDisconnect();
afx_msg void OnViewPreferences();
afx_msg void OnViewStatistics();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg LRESULT OnTrayNotification(WPARAM, LPARAM);
afx_msg void OnFileLoadConfig();
afx_msg void OnFileLoadNodes();
afx_msg void OnViewShare();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnViewTransfers();
afx_msg void OnButtonSearch();
afx_msg void OnHelpVersioncheck();
afx_msg void OnHelpBug();
afx_msg void OnHelpChangelog();
afx_msg void OnClose();
afx_msg void OnUpdateFileDisconnect(CCmdUI* pCmdUI);
afx_msg void OnViewChat();
afx_msg void OnFileMap();
afx_msg void OnGotoSearch();
afx_msg void OnViewWindowlist();
afx_msg void OnUpdateViewWindowlist(CCmdUI* pCmdUI);
afx_msg void OnDestroy();
afx_msg void OnViewBrowser();
afx_msg void OnToolsBrowsenetwork();
afx_msg void OnToolsScheduler();
afx_msg void OnHelpReportgnucache();
afx_msg void OnToolsMetaSearch();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnToolsBrowsehost();
};