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