2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
9 #if !defined(AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_)
10 #define AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_
14 #endif // _MSC_VER > 1000
15 // ModifyVariableDlg.h : header file
18 /////////////////////////////////////////////////////////////////////////////
19 // CModifyVariableDlg dialog
21 class CModifyVariableDlg : public CDialog
25 CModifyVariableDlg(CWnd* pParent = NULL); // standard constructor
28 //{{AFX_DATA(CModifyVariableDlg)
29 enum { IDD = IDD_MODIFY_VARIABLE };
30 CString m_cur_variable_name;
31 CString m_default_value;
32 CString m_old_var_name;
35 bool m_modified_value;
38 bool m_data_validated;
39 bool m_var_name_validated;
41 int m_combo_last_modified_index;
42 int m_traslate_combo_to_sexp[MAX_SEXP_VARIABLES];
43 int m_start_index; // index of sexp_variables which is right clicked to get this menu
44 sexp_tree *m_p_sexp_tree;
49 // ClassWizard generated virtual function overrides
50 //{{AFX_VIRTUAL(CModifyVariableDlg)
52 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
58 // Generated message map functions
59 //{{AFX_MSG(CModifyVariableDlg)
60 afx_msg void OnDeleteVariable();
61 afx_msg void OnTypeString();
62 afx_msg void OnTypeNumber();
63 afx_msg void OnSelchangeModifyVariableName();
64 afx_msg void OnEditchangeModifyVariableName();
65 virtual BOOL OnInitDialog();
67 afx_msg void OnKillfocusModifyDefaultValue();
68 afx_msg void set_variable_type();
69 afx_msg void validate_data(CString &temp_data, int set_focus);
70 afx_msg void validate_var_name(int set_focus);
71 afx_msg int get_sexp_var_index();
72 afx_msg void OnDropdownModifyVariableName();
77 //{{AFX_INSERT_LOCATION}}
78 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
80 #endif // !defined(AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_)