FS2_Open
Open source remastering of the Freespace 2 engine
reinforcementeditordlg.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 
11 
12 #include "ship/ship.h"
13 
15 // reinforcement_editor_dlg dialog
16 
17 class reinforcement_editor_dlg : public CDialog
18 {
19 // Construction
20 public:
21  int query_modified();
22  void OnOK();
23  void OnCancel();
24  void save_data();
25  void update_data();
26  reinforcement_editor_dlg(CWnd* pParent = NULL); // standard constructor
27 
28 // Dialog Data
29  //{{AFX_DATA(reinforcement_editor_dlg)
31  CSpinButtonCtrl m_delay_spin;
32  CSpinButtonCtrl m_uses_spin;
33  int m_uses;
34  int m_delay;
35  //}}AFX_DATA
36 
37 
38 // Overrides
39  // ClassWizard generated virtual function overrides
40  //{{AFX_VIRTUAL(reinforcement_editor_dlg)
41  protected:
42  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
43  //}}AFX_VIRTUAL
44 
45 // Implementation
46 protected:
47  void remove_selected( CListBox *box );
48  void move_messages( CListBox *box );
49 
50  // Generated message map functions
51  //{{AFX_MSG(reinforcement_editor_dlg)
52  virtual BOOL OnInitDialog();
53  afx_msg void OnSelchangeList();
54  afx_msg void OnAdd();
55  afx_msg void OnDelete();
56  afx_msg void OnClose();
57  //}}AFX_MSG
58  DECLARE_MESSAGE_MAP()
59 private:
60  int m_num_reinforcements;
61  reinforcements m_reinforcements[MAX_REINFORCEMENTS];
62  int cur;
63 };
64 
66 // reinforcement_select dialog
67 
68 class reinforcement_select : public CDialog
69 {
70 // Construction
71 public:
72  int cur;
74  reinforcement_select(CWnd* pParent = NULL); // standard constructor
75  void OnOK();
76  void OnCancel();
77 
78 // Dialog Data
79  //{{AFX_DATA(reinforcement_select)
81  // NOTE: the ClassWizard will add data members here
82  //}}AFX_DATA
83 
84 
85 // Overrides
86  // ClassWizard generated virtual function overrides
87  //{{AFX_VIRTUAL(reinforcement_select)
88  protected:
89  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
90  //}}AFX_VIRTUAL
91 
92 // Implementation
93 protected:
94 
95  // Generated message map functions
96  //{{AFX_MSG(reinforcement_select)
97  virtual BOOL OnInitDialog();
98  afx_msg void OnSelchangeList();
99  //}}AFX_MSG
100 
101  DECLARE_MESSAGE_MAP()
102 };
#define IDD_REINFORCEMENT_SELECT
Definition: resource.h:62
virtual void DoDataExchange(CDataExchange *pDX)
void remove_selected(CListBox *box)
GLuint const GLchar * name
Definition: Glext.h:5608
int BOOL
Definition: config.h:80
#define NAME_LENGTH
Definition: globals.h:15
#define MAX_REINFORCEMENTS
Definition: ship.h:58
reinforcement_editor_dlg(CWnd *pParent=NULL)
void move_messages(CListBox *box)
#define IDD_REINFORCEMENT_EDITOR
Definition: resource.h:61