1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #if !defined(AFX_MAINFRM_H__EF1B6999_B132_462C_A105_98AFE714DB42__INCLUDED_)
18 #define AFX_MAINFRM_H__EF1B6999_B132_462C_A105_98AFE714DB42__INCLUDED_
22 #endif // _MSC_VER > 1000
24 #include "cool_dialog_bar.h"
25 #include "file_browser_dialog.h"
26 #include "output_console_dlg.h"
27 #include "displayer.h"
29 class CMainFrame
: public CMDIFrameWnd
31 DECLARE_DYNAMIC(CMainFrame
)
40 bool dataToClipboard (UINT format
, void *data
, uint len
);
41 bool dataFromClipboard (UINT format
, void *data
);
42 bool clipboardSize (UINT format
, uint
&size
);
44 sint createX
, createY
, createCX
, createCY
;
46 void outputConsoleString (const char *message
);
48 void showOutputConsole (bool show
= true);
51 // ClassWizard generated virtual function overrides
52 //{{AFX_VIRTUAL(CMainFrame)
54 virtual BOOL
PreCreateWindow(CREATESTRUCT
& cs
);
55 virtual BOOL
PreTranslateMessage(MSG
* pMsg
);
60 virtual ~CMainFrame();
62 virtual void AssertValid() const;
63 virtual void Dump(CDumpContext
& dc
) const;
67 // control bar embedded members
68 CStatusBar m_wndStatusBar
;
69 CToolBar m_wndToolBar
;
71 CDialogBar m_wndDlgBar
;
72 CCoolDialogBar FileBrowser
;
73 CFileBrowserDialog FileBrowserDlg
;
74 CCoolDialogBar OutputConsole
;
75 COutputConsoleDlg OutputConsoleDlg
;
76 CGeorgesDisplayer Displayer
;
79 bool BrowserSortedByType
;
81 // Generated message map functions
83 //{{AFX_MSG(CMainFrame)
84 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct
);
85 afx_msg
void OnSettings();
86 afx_msg
void OnClose();
87 afx_msg
void OnViewDockingdialogbar();
88 afx_msg
void OnUpdateViewDockingdialogbar(CCmdUI
* pCmdUI
);
89 afx_msg
void OnSize(UINT nType
, int cx
, int cy
);
90 afx_msg
void OnViewOutputConsole();
91 afx_msg
void OnUpdateViewOutputConsole(CCmdUI
* pCmdUI
);
92 afx_msg
void OnViewGotoFileBrowser();
93 afx_msg
void OnViewGotoOutputConsole();
94 afx_msg
void OnModules0();
95 afx_msg
void OnUpdateModules0(CCmdUI
* pCmdUI
);
96 afx_msg
void OnModules1();
97 afx_msg
void OnUpdateModules1(CCmdUI
* pCmdUI
);
98 afx_msg
void OnModules2();
99 afx_msg
void OnUpdateModules2(CCmdUI
* pCmdUI
);
100 afx_msg
void OnModules3();
101 afx_msg
void OnUpdateModules3(CCmdUI
* pCmdUI
);
102 afx_msg
void OnUpdateViewSettings(CCmdUI
* pCmdUI
);
103 afx_msg
void OnBrowserSortedByType();
104 afx_msg
void OnUpdateBrowserSortedByType(CCmdUI
* pCmdUI
);
106 DECLARE_MESSAGE_MAP()
109 /////////////////////////////////////////////////////////////////////////////
111 //{{AFX_INSERT_LOCATION}}
112 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
114 #endif // !defined(AFX_MAINFRM_H__EF1B6999_B132_462C_A105_98AFE714DB42__INCLUDED_)