]> icculus.org git repositories - taylor/freespace2.git/blob - include/reinforcementeditordlg.h
Initial revision
[taylor/freespace2.git] / include / reinforcementeditordlg.h
1 /*
2  * $Logfile: /Freespace2/code/FRED2/ReinforcementEditorDlg.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Reinforcements editor dialog handling code
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
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.
18  * 
19  * 1     10/07/98 3:01p Dave
20  * 
21  * 1     10/07/98 3:00p Dave
22  * 
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.
26  * 
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
30  * 
31  * 7     5/20/97 2:29p Hoffoss
32  * Added message box queries for close window operation on all modal
33  * dialog boxes.
34  * 
35  * 6     4/29/97 3:02p Hoffoss
36  * Reinforcement type is now automatically handled by Fred.
37  * 
38  * 5     4/17/97 2:01p Hoffoss
39  * All dialog box window states are saved between sessions now.
40  * 
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.
44  * 
45  * 3     2/04/97 3:10p Hoffoss
46  * Reinforcements editor fully implemented.
47  * 
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
51  * needed.
52  *
53  * $NoKeywords: $
54  */
55
56 #include "ship.h"
57
58 /////////////////////////////////////////////////////////////////////////////
59 // reinforcement_editor_dlg dialog
60
61 class reinforcement_editor_dlg : public CDialog
62 {
63 // Construction
64 public:
65         int query_modified();
66         void OnOK();
67         void OnCancel();
68         void save_data();
69         void update_data();
70         reinforcement_editor_dlg(CWnd* pParent = NULL);   // standard constructor
71
72 // Dialog Data
73         //{{AFX_DATA(reinforcement_editor_dlg)
74         enum { IDD = IDD_REINFORCEMENT_EDITOR };
75         CSpinButtonCtrl m_delay_spin;
76         CSpinButtonCtrl m_uses_spin;
77         int             m_uses;
78         int             m_delay;
79         //}}AFX_DATA
80
81
82 // Overrides
83         // ClassWizard generated virtual function overrides
84         //{{AFX_VIRTUAL(reinforcement_editor_dlg)
85         protected:
86         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
87         //}}AFX_VIRTUAL
88
89 // Implementation
90 protected:
91         void remove_selected( CListBox *box );
92         void move_messages( CListBox *box );
93
94         // Generated message map functions
95         //{{AFX_MSG(reinforcement_editor_dlg)
96         virtual BOOL OnInitDialog();
97         afx_msg void OnSelchangeList();
98         afx_msg void OnAdd();
99         afx_msg void OnDelete();
100         afx_msg void OnClose();
101         //}}AFX_MSG
102         DECLARE_MESSAGE_MAP()
103 private:
104         int m_num_reinforcements;
105         reinforcements m_reinforcements[MAX_REINFORCEMENTS];
106         int cur;
107 };
108
109 /////////////////////////////////////////////////////////////////////////////
110 // reinforcement_select dialog
111
112 class reinforcement_select : public CDialog
113 {
114 // Construction
115 public:
116         int cur;
117         char name[NAME_LENGTH];
118         reinforcement_select(CWnd* pParent = NULL);   // standard constructor
119         void OnOK();
120         void OnCancel();
121
122 // Dialog Data
123         //{{AFX_DATA(reinforcement_select)
124         enum { IDD = IDD_REINFORCEMENT_SELECT };
125                 // NOTE: the ClassWizard will add data members here
126         //}}AFX_DATA
127
128
129 // Overrides
130         // ClassWizard generated virtual function overrides
131         //{{AFX_VIRTUAL(reinforcement_select)
132         protected:
133         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
134         //}}AFX_VIRTUAL
135
136 // Implementation
137 protected:
138
139         // Generated message map functions
140         //{{AFX_MSG(reinforcement_select)
141         virtual BOOL OnInitDialog();
142         afx_msg void OnSelchangeList();
143         //}}AFX_MSG
144
145         DECLARE_MESSAGE_MAP()
146 };
147