| 1 |
#if !defined(AFX_NEWCOMPILERSETTINGSPAGE_H__2D3B6269_E537_4C6F_BB6B_C26C7C7ACDFF__INCLUDED_) |
|---|
| 2 |
#define AFX_NEWCOMPILERSETTINGSPAGE_H__2D3B6269_E537_4C6F_BB6B_C26C7C7ACDFF__INCLUDED_ |
|---|
| 3 |
|
|---|
| 4 |
#if _MSC_VER > 1000 |
|---|
| 5 |
#pragma once |
|---|
| 6 |
#endif // _MSC_VER > 1000 |
|---|
| 7 |
// NewCompilerSettingsPage.h : header file |
|---|
| 8 |
// |
|---|
| 9 |
|
|---|
| 10 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 11 |
// CNewCompilerSettingsPage dialog |
|---|
| 12 |
|
|---|
| 13 |
class CNewCompilerSettingsPage : public CRHGenericChildDialog |
|---|
| 14 |
{ |
|---|
| 15 |
// Construction |
|---|
| 16 |
public: |
|---|
| 17 |
CNewCompilerSettingsPage(CWnd* pParent = NULL); // standard constructor |
|---|
| 18 |
virtual int CRHGetDialogID() { return IDD; |
|---|
| 19 |
} |
|---|
| 20 |
// Dialog Data |
|---|
| 21 |
//{{AFX_DATA(CNewCompilerSettingsPage) |
|---|
| 22 |
enum { IDD = IDD_COMPILERSETTINGSFORREAL_PAGE }; |
|---|
| 23 |
CElephantEdit m_makefilePath; |
|---|
| 24 |
CXTButton m_b4; |
|---|
| 25 |
CElephantEdit m_rc_compilerPath; |
|---|
| 26 |
CElephantEdit m_c_compilerPath; |
|---|
| 27 |
CElephantEdit m_compilerPath; |
|---|
| 28 |
CXTButton m_b3; |
|---|
| 29 |
CXTButton m_b2; |
|---|
| 30 |
CXTButton m_b1; |
|---|
| 31 |
CString m_ccompilerPath; |
|---|
| 32 |
CString m_rcCompilerPath; |
|---|
| 33 |
CString m_dcompiler; |
|---|
| 34 |
CString m_csMakePath; |
|---|
| 35 |
//}}AFX_DATA |
|---|
| 36 |
|
|---|
| 37 |
void Save() { |
|---|
| 38 |
UpdateData(); |
|---|
| 39 |
|
|---|
| 40 |
Globals::settings->baseSettings->SetCache("dmdPath",m_dcompiler.GetBuffer(0)); |
|---|
| 41 |
Globals::settings->baseSettings->SetCache("dmcPath",m_ccompilerPath.GetBuffer(0)); |
|---|
| 42 |
Globals::settings->baseSettings->SetCache("rcPath",m_rcCompilerPath.GetBuffer(0)); |
|---|
| 43 |
Globals::settings->baseSettings->SetCache("makePath",m_csMakePath.GetBuffer(0)); |
|---|
| 44 |
|
|---|
| 45 |
Globals::proxyParser->SetLibraryPath(StripDirPath(m_dcompiler.GetBuffer(0))); |
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
} |
|---|
| 49 |
// Overrides |
|---|
| 50 |
// ClassWizard generated virtual function overrides |
|---|
| 51 |
//{{AFX_VIRTUAL(CNewCompilerSettingsPage) |
|---|
| 52 |
protected: |
|---|
| 53 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|---|
| 54 |
//}}AFX_VIRTUAL |
|---|
| 55 |
|
|---|
| 56 |
// Implementation |
|---|
| 57 |
protected: |
|---|
| 58 |
|
|---|
| 59 |
// Generated message map functions |
|---|
| 60 |
//{{AFX_MSG(CNewCompilerSettingsPage) |
|---|
| 61 |
virtual BOOL OnInitDialog(); |
|---|
| 62 |
afx_msg void OnDCompilerBrowse(); |
|---|
| 63 |
afx_msg void OnRCBrowse(); |
|---|
| 64 |
afx_msg void OnCCompiler(); |
|---|
| 65 |
afx_msg void OnButton12(); |
|---|
| 66 |
//}}AFX_MSG |
|---|
| 67 |
DECLARE_MESSAGE_MAP() |
|---|
| 68 |
}; |
|---|
| 69 |
|
|---|
| 70 |
//{{AFX_INSERT_LOCATION}} |
|---|
| 71 |
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 72 |
|
|---|
| 73 |
#endif // !defined(AFX_NEWCOMPILERSETTINGSPAGE_H__2D3B6269_E537_4C6F_BB6B_C26C7C7ACDFF__INCLUDED_) |
|---|