2 * $Logfile: /Freespace2/code/FRED2/ReinforcementEditorDlg.h $
7 * Reinforcements editor dialog handling code
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 2 10/07/98 6:28p Dave
15 * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
16 * Fred. Globalized mission and campaign file extensions. Removed Silent
17 * Threat specific code.
19 * 1 10/07/98 3:01p Dave
21 * 1 10/07/98 3:00p Dave
23 * 9 5/23/98 3:33p Hoffoss
24 * Removed unused code in reinforcements editor and make ships.tbl button
25 * in ship editor disappear in release build.
27 * 8 7/16/97 11:02p Allender
28 * added messaging for reinforcements. One (or one of several) can now
29 * play if reinforcement are not yet available, or when they are arriving
31 * 7 5/20/97 2:29p Hoffoss
32 * Added message box queries for close window operation on all modal
35 * 6 4/29/97 3:02p Hoffoss
36 * Reinforcement type is now automatically handled by Fred.
38 * 5 4/17/97 2:01p Hoffoss
39 * All dialog box window states are saved between sessions now.
41 * 4 2/17/97 5:28p Hoffoss
42 * Checked RCS headers, added them were missing, changing description to
43 * something better, etc where needed.
45 * 3 2/04/97 3:10p Hoffoss
46 * Reinforcements editor fully implemented.
48 * 2 2/03/97 1:32p Hoffoss
49 * Reinforcement editor functional, but still missing a few options.
50 * Checking in good code now prior to experimenting, so I can revert if
58 /////////////////////////////////////////////////////////////////////////////
59 // reinforcement_editor_dlg dialog
61 class reinforcement_editor_dlg : public CDialog
70 reinforcement_editor_dlg(CWnd* pParent = NULL); // standard constructor
73 //{{AFX_DATA(reinforcement_editor_dlg)
74 enum { IDD = IDD_REINFORCEMENT_EDITOR };
75 CSpinButtonCtrl m_delay_spin;
76 CSpinButtonCtrl m_uses_spin;
83 // ClassWizard generated virtual function overrides
84 //{{AFX_VIRTUAL(reinforcement_editor_dlg)
86 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
91 void remove_selected( CListBox *box );
92 void move_messages( CListBox *box );
94 // Generated message map functions
95 //{{AFX_MSG(reinforcement_editor_dlg)
96 virtual BOOL OnInitDialog();
97 afx_msg void OnSelchangeList();
99 afx_msg void OnDelete();
100 afx_msg void OnClose();
102 DECLARE_MESSAGE_MAP()
104 int m_num_reinforcements;
105 reinforcements m_reinforcements[MAX_REINFORCEMENTS];
109 /////////////////////////////////////////////////////////////////////////////
110 // reinforcement_select dialog
112 class reinforcement_select : public CDialog
117 char name[NAME_LENGTH];
118 reinforcement_select(CWnd* pParent = NULL); // standard constructor
123 //{{AFX_DATA(reinforcement_select)
124 enum { IDD = IDD_REINFORCEMENT_SELECT };
125 // NOTE: the ClassWizard will add data members here
130 // ClassWizard generated virtual function overrides
131 //{{AFX_VIRTUAL(reinforcement_select)
133 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
139 // Generated message map functions
140 //{{AFX_MSG(reinforcement_select)
141 virtual BOOL OnInitDialog();
142 afx_msg void OnSelchangeList();
145 DECLARE_MESSAGE_MAP()