root/trunk/FileDMDPage.cpp

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

Initial ( and last :( ) commit

Line 
1 // FileDMDPage.cpp : implementation file
2 //
3
4 #include "stdafx.h"
5 #include "Elephant.h"
6 #include "FileDMDPage.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 // CFileDMDPage dialog
16
17
18 CFileDMDPage::CFileDMDPage(CWnd* pParent /*=NULL*/)
19    
20 {
21
22   string currentConfig = "file_dmd";
23         //AfxMessageBox(currentConfig.c_str());
24        
25   m_inline = Globals::settings->baseSettings->GetCache(currentConfig + "_inline") == "1";
26   m_optimize = Globals::settings->baseSettings->GetCache(currentConfig + "_optimize") == "1";
27   m_allowDeprecated = Globals::settings->baseSettings->GetCache(currentConfig + "_allowDeprecated") == "1";
28   m_warnings = Globals::settings->baseSettings->GetCache(currentConfig + "_warnings") == "1";
29   m_verbose = Globals::settings->baseSettings->GetCache(currentConfig + "_verbose") == "1";
30   m_release = Globals::settings->baseSettings->GetCache(currentConfig + "_release") == "1";
31   m_debug = Globals::settings->baseSettings->GetCache(currentConfig + "_debugG") == "1";
32   m_pHooks = Globals::settings->baseSettings->GetCache(currentConfig + "_pHooks") == "1";
33   m_unittest = Globals::settings->baseSettings->GetCache(currentConfig + "_unittest") == "1";
34 m_dontLink = Globals::settings->baseSettings->GetCache(currentConfig + "_dontLink") == "1";
35     //{{AFX_DATA_INIT(CFileDMDPage)
36 //  m_dontLink = FALSE;
37     //}}AFX_DATA_INIT
38 }
39
40
41 void CFileDMDPage::DoDataExchange(CDataExchange* pDX)
42 {
43     CDialog::DoDataExchange(pDX);
44     //{{AFX_DATA_MAP(CFileDMDPage)
45     DDX_Check(pDX, IDC_CHECK2, m_inline);
46     DDX_Check(pDX, IDC_CHECK1, m_release);
47     DDX_Check(pDX, IDC_CHECK24, m_optimize);
48     DDX_Check(pDX, IDC_CHECK3, m_debug);
49     DDX_Check(pDX, IDC_CHECK21, m_allowDeprecated);
50     DDX_Check(pDX, IDC_CHECK18, m_pHooks);
51     DDX_Check(pDX, IDC_CHECK23, m_warnings);
52     DDX_Check(pDX, IDC_CHECK22, m_unittest);
53     DDX_Check(pDX, IDC_CHECK4, m_verbose);
54     DDX_Check(pDX, IDC_CHECK6, m_dontLink);
55     //}}AFX_DATA_MAP
56 }
57
58
59 BEGIN_MESSAGE_MAP(CFileDMDPage, CRHGenericChildDialog)
60     //{{AFX_MSG_MAP(CFileDMDPage)
61         // NOTE: the ClassWizard will add message map macros here
62     //}}AFX_MSG_MAP
63 END_MESSAGE_MAP()
64
65 /////////////////////////////////////////////////////////////////////////////
66 // CFileDMDPage message handlers
67
68 void CFileDMDPage::Save ()
69 {
70
71   UpdateData();
72
73
74   string currentConfig = "file_dmd";
75
76   Globals::settings->baseSettings->SetCache(currentConfig + "_inline",m_inline);
77   Globals::settings->baseSettings->SetCache(currentConfig + "_optimize",m_optimize);
78   Globals::settings->baseSettings->SetCache(currentConfig + "_allowDeprecated",m_allowDeprecated);
79   Globals::settings->baseSettings->SetCache(currentConfig + "_warnings",m_warnings);
80   Globals::settings->baseSettings->SetCache(currentConfig + "_verbose",m_verbose);
81   Globals::settings->baseSettings->SetCache(currentConfig + "_release",m_release);
82   Globals::settings->baseSettings->SetCache(currentConfig + "_debugG",m_debug);
83   Globals::settings->baseSettings->SetCache(currentConfig + "_pHooks",m_pHooks);
84   Globals::settings->baseSettings->SetCache(currentConfig + "_unittest",m_unittest);
85     Globals::settings->baseSettings->SetCache(currentConfig + "_dontLink",m_dontLink);
86
87
88
89 }
Note: See TracBrowser for help on using the browser.