root/trunk/ReleaseSettingsPage.h

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

Initial ( and last :( ) commit

Line 
1 #if !defined(AFX_RELEASESETTINGSPAGE_H__6CD61CE7_DCC5_4C36_8E46_05D5AB428A7F__INCLUDED_)
2 #define AFX_RELEASESETTINGSPAGE_H__6CD61CE7_DCC5_4C36_8E46_05D5AB428A7F__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // ReleaseSettingsPage.h : header file
8 //
9 #include "GUIComponents/GenericChildDialog.h"
10 /////////////////////////////////////////////////////////////////////////////
11 // CReleaseSettingsPage dialog
12
13 class CReleaseSettingsPage : public CRHGenericChildDialog
14 {
15 // Construction
16 public:
17     CReleaseSettingsPage(CWnd* pParent = NULL);   // standard constructor
18 virtual int CRHGetDialogID() { return IDD;
19     }
20 // Dialog Data
21     //{{AFX_DATA(CReleaseSettingsPage)
22     enum { IDD = IDD_REALRELEASE_DLG };
23     BOOL    m_release;
24     BOOL    m_inline;
25     BOOL    m_O;
26     CString m_releaseSpecifiers;
27     //}}AFX_DATA
28     void Save() {
29        
30         UpdateData();
31
32         if ( Globals::currentProject )
33         {
34             Globals::currentProject->SetCache("release",m_release ? "1" : "0" );
35             Globals::currentProject->SetCache("inline",m_inline ? "1" : "0" );
36             Globals::currentProject->SetCache("O",m_O? "1" : "0" );
37             Globals::currentProject->SetCache("versionIdentifiers",m_releaseSpecifiers.GetBuffer(0) );
38
39         }
40    
41     }
42
43 // Overrides
44     // ClassWizard generated virtual function overrides
45     //{{AFX_VIRTUAL(CReleaseSettingsPage)
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(CReleaseSettingsPage)
55         // NOTE: the ClassWizard will add member functions here
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_RELEASESETTINGSPAGE_H__6CD61CE7_DCC5_4C36_8E46_05D5AB428A7F__INCLUDED_)
Note: See TracBrowser for help on using the browser.