root/trunk/DebugSettingPage.cpp

Revision 5, 1.8 kB (checked in by qbert, 6 years ago)

Initial ( and last :( ) commit

Line 
1 // DebugSettingPage.cpp : implementation file
2 //
3
4 #include "stdafx.h"
5 #include "Elephant.h"
6 #include "DebugSettingPage.h"
7
8 #ifdef _DEBUG
9 #define new DEBUG_NEW
10 #undef THIS_FILE
11 static char THIS_FILE[] = __FILE__;
12 #endif
13
14 /////////////////////////////////////////////////////////////////////////////
15 // CDebugSettingPage dialog
16
17
18 CDebugSettingPage::CDebugSettingPage(CWnd* pParent /*=NULL*/)
19      
20 {
21     if ( Globals::currentProject )
22     {
23         m_g = Globals::currentProject->GetCache("g") == "1";
24         m_gt = Globals::currentProject->GetCache("debugPHooks") == "1";
25         m_unittest = Globals::currentProject->GetCache("unittest") == "1";
26         m_debug = Globals::currentProject->GetCache("debug") == "1";
27         m_debugLabels = Globals::currentProject->GetCache("debugIdentifiers") .c_str();
28     }
29     else {
30    
31     //{{AFX_DATA_INIT(CDebugSettingPage)
32     m_g = FALSE;
33     m_gt = FALSE;
34     m_unittest = FALSE;
35     m_debug = FALSE;
36     m_debugLabels = _T("");
37     //}}AFX_DATA_INIT
38     }
39 }
40
41
42 void CDebugSettingPage::DoDataExchange(CDataExchange* pDX)
43 {
44     CDialog::DoDataExchange(pDX);
45     //{{AFX_DATA_MAP(CDebugSettingPage)
46     DDX_Check(pDX, IDC_CHECK1, m_g);
47     DDX_Check(pDX, IDC_CHECK2, m_gt);
48     DDX_Check(pDX, IDC_CHECK3, m_unittest);
49     DDX_Check(pDX, IDC_CHECK4, m_debug);
50     DDX_Text(pDX, IDC_EDIT1, m_debugLabels);
51     //}}AFX_DATA_MAP
52 }
53
54
55 BEGIN_MESSAGE_MAP(CDebugSettingPage, CDialog)
56     //{{AFX_MSG_MAP(CDebugSettingPage)
57     //}}AFX_MSG_MAP
58 END_MESSAGE_MAP()
59
60 /////////////////////////////////////////////////////////////////////////////
61 // CDebugSettingPage message handlers
62
63 BOOL CDebugSettingPage::OnInitDialog()
64 {
65     CDialog::OnInitDialog();
66    
67
68    
69     return TRUE;  // return TRUE unless you set the focus to a control
70                   // EXCEPTION: OCX Property Pages should return FALSE
71 }
Note: See TracBrowser for help on using the browser.