]> icculus.org git repositories - taylor/freespace2.git/blob - include/asteroideditordlg.h
Initial revision
[taylor/freespace2.git] / include / asteroideditordlg.h
1 // AsteroidEditorDlg.h : header file
2 //
3
4 #include "starfield.h"
5 #include "asteroid.h"
6
7
8 /////////////////////////////////////////////////////////////////////////////
9 // asteroid_editor dialog
10
11 class asteroid_editor : public CDialog
12 {
13 // Construction
14 public:
15         void update_init();
16         int query_modified();
17         void OnCancel();
18         void OnOK();
19         void OnEnableField();
20         int validate_data();
21
22         asteroid_editor(CWnd* pParent = NULL);   // standard constructor
23
24 // Dialog Data
25         //{{AFX_DATA(asteroid_editor)
26         enum { IDD = IDD_ASTEROID_EDITOR };
27         CSpinButtonCtrl m_density_spin;
28         int                             m_avg_speed;
29         int                             m_density;
30         BOOL                            m_enable_asteroids;
31         CString                 m_max_x;
32         CString                 m_max_y;
33         CString                 m_max_z;
34         CString                 m_min_x;
35         CString                 m_min_y;
36         CString                 m_min_z;
37         BOOL                            m_enable_inner_bounds;
38         field_type              m_field_type;           // active or passive
39         debris_genre    m_debris_genre;         // ship or asteroid
40         int                             m_field_debris_type[3]; // species and size of ship debris
41         CString                 m_box_max_x;
42         CString                 m_box_max_y;
43         CString                 m_box_max_z;
44         CString                 m_box_min_x;
45         CString                 m_box_min_y;
46         CString                 m_box_min_z;
47         //}}AFX_DATA
48
49         int cur_field, last_field;
50         asteroid_field a_field[1 /*MAX_ASTEROID_FIELDS*/];
51
52 // Overrides
53         // ClassWizard generated virtual function overrides
54         //{{AFX_VIRTUAL(asteroid_editor)
55         protected:
56         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
57         virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
58         //}}AFX_VIRTUAL
59
60 // Implementation
61 protected:
62
63         // Generated message map functions
64         //{{AFX_MSG(asteroid_editor)
65         virtual BOOL OnInitDialog();
66         afx_msg void OnInitMenu(CMenu* pMenu);
67         afx_msg void OnEnableAsteroids();
68         afx_msg void OnClose();
69         afx_msg void OnEnableInnerBox();
70         afx_msg void OnPassiveField();
71         afx_msg void OnFieldShip();
72         afx_msg void OnActiveField();
73         afx_msg void OnFieldAsteroid();
74         //}}AFX_MSG
75         DECLARE_MESSAGE_MAP()
76 };
77