FS2_Open
Open source remastering of the Freespace 2 engine
modifyvariabledlg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
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 the
6  * source.
7  *
8 */
9 
10 #if !defined(AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_)
11 #define AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_
12 
13 #if _MSC_VER > 1000
14 #pragma once
15 #endif // _MSC_VER > 1000
16 // ModifyVariableDlg.h : header file
17 //
18 
19 #include "parse/sexp.h"
20 
22 // CModifyVariableDlg dialog
23 
24 class CModifyVariableDlg : public CDialog
25 {
26 // Construction
27 public:
28  CModifyVariableDlg(CWnd* pParent = NULL); // standard constructor
29 
30 // Dialog Data
31  //{{AFX_DATA(CModifyVariableDlg)
34  CString m_default_value;
35  CString m_old_var_name;
44  bool m_deleted;
50  int m_start_index; // index of sexp_variables which is right clicked to get this menu
52  //}}AFX_DATA
53 
54 
55 // Overrides
56  // ClassWizard generated virtual function overrides
57  //{{AFX_VIRTUAL(CModifyVariableDlg)
58  protected:
59  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
60  //}}AFX_VIRTUAL
61 
62 // Implementation
63 
64 private:
65  bool IsChangeSafe(char *message);
66 
67 protected:
68 
69  // Generated message map functions
70  //{{AFX_MSG(CModifyVariableDlg)
71  afx_msg void OnDeleteVariable();
72  afx_msg void OnTypeString();
73  afx_msg void OnTypeNumber();
74  afx_msg void OnTypePlayerPersistent();
75  afx_msg void OnTypeCampaignPersistent();
76  afx_msg void OnTypeNetworkVariable();
77  afx_msg void OnSelchangeModifyVariableName();
78  afx_msg void OnEditchangeModifyVariableName();
79  virtual BOOL OnInitDialog();
80  virtual void OnOK();
81  afx_msg void OnKillfocusModifyDefaultValue();
82  afx_msg void set_variable_type();
83  afx_msg void validate_data(CString &temp_data, int set_focus);
84  afx_msg void validate_var_name(int set_focus);
85  afx_msg int get_sexp_var_index();
86  afx_msg void OnDropdownModifyVariableName();
87  //}}AFX_MSG
88  DECLARE_MESSAGE_MAP()
89 };
90 
91 //{{AFX_INSERT_LOCATION}}
92 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
93 
94 #endif // !defined(AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_)
#define IDD_MODIFY_VARIABLE
Definition: resource.h:95
virtual BOOL OnInitDialog()
virtual void DoDataExchange(CDataExchange *pDX)
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: Glext.h:5156
int m_translate_combo_to_sexp[MAX_SEXP_VARIABLES]
afx_msg void OnTypePlayerPersistent()
afx_msg void OnSelchangeModifyVariableName()
afx_msg int get_sexp_var_index()
afx_msg void OnDropdownModifyVariableName()
afx_msg void validate_var_name(int set_focus)
afx_msg void OnTypeNetworkVariable()
afx_msg void OnEditchangeModifyVariableName()
afx_msg void OnKillfocusModifyDefaultValue()
int BOOL
Definition: config.h:80
sexp_tree * m_p_sexp_tree
afx_msg void OnDeleteVariable()
afx_msg void set_variable_type()
afx_msg void OnTypeNumber()
afx_msg void OnTypeString()
afx_msg void validate_data(CString &temp_data, int set_focus)
CModifyVariableDlg(CWnd *pParent=NULL)
#define MAX_SEXP_VARIABLES
Definition: sexp.h:23
afx_msg void OnTypeCampaignPersistent()