| 1 |
#if !defined(AFX_DEBUGSETTINGPAGE_H__45EFA4DA_B5B8_4C84_BA7F_368D50CE4979__INCLUDED_) |
|---|
| 2 |
#define AFX_DEBUGSETTINGPAGE_H__45EFA4DA_B5B8_4C84_BA7F_368D50CE4979__INCLUDED_ |
|---|
| 3 |
|
|---|
| 4 |
#if _MSC_VER > 1000 |
|---|
| 5 |
#pragma once |
|---|
| 6 |
#endif // _MSC_VER > 1000 |
|---|
| 7 |
// DebugSettingPage.h : header file |
|---|
| 8 |
// |
|---|
| 9 |
#include "GUIComponents/GenericChildDialog.h" |
|---|
| 10 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 11 |
// CDebugSettingPage dialog |
|---|
| 12 |
|
|---|
| 13 |
class CDebugSettingPage : public CRHGenericChildDialog |
|---|
| 14 |
{ |
|---|
| 15 |
// Construction |
|---|
| 16 |
public: |
|---|
| 17 |
CDebugSettingPage(CWnd* pParent = NULL); // standard constructor |
|---|
| 18 |
virtual int CRHGetDialogID() { return IDD; |
|---|
| 19 |
} |
|---|
| 20 |
// Dialog Data |
|---|
| 21 |
//{{AFX_DATA(CDebugSettingPage) |
|---|
| 22 |
enum { IDD = IDD_RELEASESETTINGS_DLG }; |
|---|
| 23 |
BOOL m_g; |
|---|
| 24 |
BOOL m_gt; |
|---|
| 25 |
BOOL m_unittest; |
|---|
| 26 |
BOOL m_debug; |
|---|
| 27 |
CString m_debugLabels; |
|---|
| 28 |
//}}AFX_DATA |
|---|
| 29 |
|
|---|
| 30 |
void Save() { |
|---|
| 31 |
UpdateData(); |
|---|
| 32 |
|
|---|
| 33 |
if ( Globals::currentProject ) |
|---|
| 34 |
{ |
|---|
| 35 |
Globals::currentProject->SetCache("g",m_g ); |
|---|
| 36 |
Globals::currentProject->SetCache("debugPHooks",m_gt ); |
|---|
| 37 |
Globals::currentProject->SetCache("debug",m_debug ); |
|---|
| 38 |
Globals::currentProject->SetCache("unittest",m_unittest ); |
|---|
| 39 |
Globals::currentProject->SetCache("debugIdentifiers",m_debugLabels.GetBuffer(0)); |
|---|
| 40 |
} |
|---|
| 41 |
|
|---|
| 42 |
} |
|---|
| 43 |
// Overrides |
|---|
| 44 |
// ClassWizard generated virtual function overrides |
|---|
| 45 |
//{{AFX_VIRTUAL(CDebugSettingPage) |
|---|
| 46 |
protected: |
|---|
| 47 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|---|
| 48 |
//}}AFX_VIRTUAL |
|---|
| 49 |
|
|---|
| 50 |
// Implementation |
|---|
| 51 |
protected: |
|---|
| 52 |
|
|---|
| 53 |
// Generated message map functions |
|---|
| 54 |
//{{AFX_MSG(CDebugSettingPage) |
|---|
| 55 |
virtual BOOL OnInitDialog(); |
|---|
| 56 |
//}}AFX_MSG |
|---|
| 57 |
DECLARE_MESSAGE_MAP() |
|---|
| 58 |
}; |
|---|
| 59 |
|
|---|
| 60 |
//{{AFX_INSERT_LOCATION}} |
|---|
| 61 |
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 62 |
|
|---|
| 63 |
#endif // !defined(AFX_DEBUGSETTINGPAGE_H__45EFA4DA_B5B8_4C84_BA7F_368D50CE4979__INCLUDED_) |
|---|