| 1 |
#if !defined(AFX_BEHAVIORPAGE_H__EDD00AE7_9888_4940_B046_1455E9ED7DB9__INCLUDED_) |
|---|
| 2 |
#define AFX_BEHAVIORPAGE_H__EDD00AE7_9888_4940_B046_1455E9ED7DB9__INCLUDED_ |
|---|
| 3 |
|
|---|
| 4 |
#if _MSC_VER > 1000 |
|---|
| 5 |
#pragma once |
|---|
| 6 |
#endif // _MSC_VER > 1000 |
|---|
| 7 |
// BehaviorPage.h : header file |
|---|
| 8 |
// |
|---|
| 9 |
#include "GUIComponents/GenericChildDialog.h" |
|---|
| 10 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 11 |
// CBehaviorPage dialog |
|---|
| 12 |
|
|---|
| 13 |
class CBehaviorPage : public CRHGenericChildDialog |
|---|
| 14 |
{ |
|---|
| 15 |
// Construction |
|---|
| 16 |
public: |
|---|
| 17 |
CBehaviorPage(CWnd* pParent = NULL); // standard constructor |
|---|
| 18 |
virtual int CRHGetDialogID() { return IDD; |
|---|
| 19 |
} |
|---|
| 20 |
enum { IDD = IDD_BEHAVIOR_PAGE }; |
|---|
| 21 |
// Dialog Data |
|---|
| 22 |
//{{AFX_DATA(CBehaviorPage) |
|---|
| 23 |
|
|---|
| 24 |
CElephantEdit m_projectLocation; |
|---|
| 25 |
CStatic m_title2; |
|---|
| 26 |
CStatic m_title1; |
|---|
| 27 |
CXTButton m_b; |
|---|
| 28 |
CXTButton m_b2; |
|---|
| 29 |
BOOL m_useAC; |
|---|
| 30 |
BOOL m_restoreSessionFiles; |
|---|
| 31 |
BOOL m_showToolTips; |
|---|
| 32 |
BOOL m_showImportAC; |
|---|
| 33 |
BOOL m_showScopeTips ; |
|---|
| 34 |
BOOL m_closeAddonFiles; |
|---|
| 35 |
BOOL m_compilerAutoShow; |
|---|
| 36 |
BOOL m_useAbbreviations; |
|---|
| 37 |
CString m_fileTemplate; |
|---|
| 38 |
CString m_name; |
|---|
| 39 |
CString m_csProjectLocation; |
|---|
| 40 |
//}}AFX_DATA |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
void Save() |
|---|
| 44 |
{ |
|---|
| 45 |
UpdateData(); |
|---|
| 46 |
|
|---|
| 47 |
Globals::settings->baseSettings->SetCache("m_useAC",m_useAC ? "1" : "0"); |
|---|
| 48 |
Globals::settings->baseSettings->SetCache("m_restoreSessionFiles",m_restoreSessionFiles ? "1" : "0"); |
|---|
| 49 |
Globals::settings->baseSettings->SetCache("m_showToolTips",m_showToolTips ? "1" : "0"); |
|---|
| 50 |
Globals::settings->baseSettings->SetCache("m_showImportAC",m_showImportAC ? "1" : "0"); |
|---|
| 51 |
Globals::settings->baseSettings->SetCache("m_showScopeTips",m_showScopeTips ? "1" : "0"); |
|---|
| 52 |
|
|---|
| 53 |
Globals::settings->baseSettings->SetCache("m_compilerAutoShow",m_compilerAutoShow ? "1" : "0"); |
|---|
| 54 |
Globals::settings->baseSettings->SetCache("m_useAbbreviations",m_useAbbreviations ? "1" : "0"); |
|---|
| 55 |
|
|---|
| 56 |
Globals::settings->baseSettings->SetCache("fileTemplate",m_fileTemplate.GetBuffer(0) ); |
|---|
| 57 |
Globals::settings->baseSettings->SetCache("name",m_name .GetBuffer(0) ); |
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
Globals::settings->baseSettings->SetCache("m_projectLocation",m_csProjectLocation.GetBuffer(0) ); |
|---|
| 61 |
Globals::settings->baseSettings->SetCache("m_closeAddonFiles",m_closeAddonFiles ? "1" : "0" ); |
|---|
| 62 |
} |
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
// Overrides |
|---|
| 67 |
// ClassWizard generated virtual function overrides |
|---|
| 68 |
//{{AFX_VIRTUAL(CBehaviorPage) |
|---|
| 69 |
protected: |
|---|
| 70 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|---|
| 71 |
virtual BOOL OnInitDialog(); |
|---|
| 72 |
//}}AFX_VIRTUAL |
|---|
| 73 |
|
|---|
| 74 |
// Implementation |
|---|
| 75 |
protected: |
|---|
| 76 |
|
|---|
| 77 |
// Generated message map functions |
|---|
| 78 |
//{{AFX_MSG(CBehaviorPage) |
|---|
| 79 |
afx_msg void OnButton1(); |
|---|
| 80 |
afx_msg void OnBrowse2(); |
|---|
| 81 |
//}}AFX_MSG |
|---|
| 82 |
DECLARE_MESSAGE_MAP() |
|---|
| 83 |
}; |
|---|
| 84 |
|
|---|
| 85 |
//{{AFX_INSERT_LOCATION}} |
|---|
| 86 |
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 87 |
|
|---|
| 88 |
#endif // !defined(AFX_BEHAVIORPAGE_H__EDD00AE7_9888_4940_B046_1455E9ED7DB9__INCLUDED_) |
|---|