2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/FRED2/ReinforcementEditorDlg.h $
15 * Reinforcements editor dialog handling code
18 * Revision 1.2 2002/06/09 04:41:14 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 2 10/07/98 6:28p Dave
26 * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
27 * Fred. Globalized mission and campaign file extensions. Removed Silent
28 * Threat specific code.
30 * 1 10/07/98 3:01p Dave
32 * 1 10/07/98 3:00p Dave
34 * 9 5/23/98 3:33p Hoffoss
35 * Removed unused code in reinforcements editor and make ships.tbl button
36 * in ship editor disappear in release build.
38 * 8 7/16/97 11:02p Allender
39 * added messaging for reinforcements. One (or one of several) can now
40 * play if reinforcement are not yet available, or when they are arriving
42 * 7 5/20/97 2:29p Hoffoss
43 * Added message box queries for close window operation on all modal
46 * 6 4/29/97 3:02p Hoffoss
47 * Reinforcement type is now automatically handled by Fred.
49 * 5 4/17/97 2:01p Hoffoss
50 * All dialog box window states are saved between sessions now.
52 * 4 2/17/97 5:28p Hoffoss
53 * Checked RCS headers, added them were missing, changing description to
54 * something better, etc where needed.
56 * 3 2/04/97 3:10p Hoffoss
57 * Reinforcements editor fully implemented.
59 * 2 2/03/97 1:32p Hoffoss
60 * Reinforcement editor functional, but still missing a few options.
61 * Checking in good code now prior to experimenting, so I can revert if
69 /////////////////////////////////////////////////////////////////////////////
70 // reinforcement_editor_dlg dialog
72 class reinforcement_editor_dlg : public CDialog
81 reinforcement_editor_dlg(CWnd* pParent = NULL); // standard constructor
84 //{{AFX_DATA(reinforcement_editor_dlg)
85 enum { IDD = IDD_REINFORCEMENT_EDITOR };
86 CSpinButtonCtrl m_delay_spin;
87 CSpinButtonCtrl m_uses_spin;
94 // ClassWizard generated virtual function overrides
95 //{{AFX_VIRTUAL(reinforcement_editor_dlg)
97 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
102 void remove_selected( CListBox *box );
103 void move_messages( CListBox *box );
105 // Generated message map functions
106 //{{AFX_MSG(reinforcement_editor_dlg)
107 virtual BOOL OnInitDialog();
108 afx_msg void OnSelchangeList();
109 afx_msg void OnAdd();
110 afx_msg void OnDelete();
111 afx_msg void OnClose();
113 DECLARE_MESSAGE_MAP()
115 int m_num_reinforcements;
116 reinforcements m_reinforcements[MAX_REINFORCEMENTS];
120 /////////////////////////////////////////////////////////////////////////////
121 // reinforcement_select dialog
123 class reinforcement_select : public CDialog
128 char name[NAME_LENGTH];
129 reinforcement_select(CWnd* pParent = NULL); // standard constructor
134 //{{AFX_DATA(reinforcement_select)
135 enum { IDD = IDD_REINFORCEMENT_SELECT };
136 // NOTE: the ClassWizard will add data members here
141 // ClassWizard generated virtual function overrides
142 //{{AFX_VIRTUAL(reinforcement_select)
144 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
150 // Generated message map functions
151 //{{AFX_MSG(reinforcement_select)
152 virtual BOOL OnInitDialog();
153 afx_msg void OnSelchangeList();
156 DECLARE_MESSAGE_MAP()