]> icculus.org git repositories - taylor/freespace2.git/blob - include/modifyvariabledlg.h
fix issue with looping audio streams
[taylor/freespace2.git] / include / modifyvariabledlg.h
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
6  * the source.
7  */
8
9 #if !defined(AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_)
10 #define AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_
11
12 #if _MSC_VER > 1000
13 #pragma once
14 #endif // _MSC_VER > 1000
15 // ModifyVariableDlg.h : header file
16 //
17
18 /////////////////////////////////////////////////////////////////////////////
19 // CModifyVariableDlg dialog
20
21 class CModifyVariableDlg : public CDialog
22 {
23 // Construction
24 public:
25         CModifyVariableDlg(CWnd* pParent = NULL);   // standard constructor
26
27 // Dialog Data
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;
33         bool                    m_type_number;
34         bool                    m_modified_name;
35         bool                    m_modified_value;
36         bool                    m_modified_type;
37         bool                    m_deleted;
38         bool                    m_data_validated;
39         bool                    m_var_name_validated;
40         bool                    m_do_modify;
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;
45         //}}AFX_DATA
46
47
48 // Overrides
49         // ClassWizard generated virtual function overrides
50         //{{AFX_VIRTUAL(CModifyVariableDlg)
51         protected:
52         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
53         //}}AFX_VIRTUAL
54
55 // Implementation
56 protected:
57
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();
66         virtual void OnOK();
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();
73         //}}AFX_MSG
74         DECLARE_MESSAGE_MAP()
75 };
76
77 //{{AFX_INSERT_LOCATION}}
78 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
79
80 #endif // !defined(AFX_MODIFYVARIABLEDLG_H__710D45F1_ABBF_11D2_A89A_0060088FAE88__INCLUDED_)
81