]> icculus.org git repositories - taylor/freespace2.git/blob - include/missionnotesdlg.h
Initial revision
[taylor/freespace2.git] / include / missionnotesdlg.h
1 /*
2  * $Logfile: /Freespace2/code/Fred2/MissionNotesDlg.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Mission notes editor dialog box handling code
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 5     8/23/99 6:21p Jefff
15  * added "no traitor" option to missions (and fred)
16  * 
17  * 4     8/23/99 5:04p Jefff
18  * Added new mission flag to disable built-in messages from playing.
19  * Added fred support as well.
20  * 
21  * 3     3/24/99 4:05p Dave
22  * Put in support for assigning the player to a specific squadron with a
23  * specific logo. Preliminary work for doing pos/orient checksumming in
24  * multiplayer to reduce bandwidth.
25  * 
26  * 2     10/07/98 6:28p Dave
27  * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
28  * Fred. Globalized mission and campaign file extensions. Removed Silent
29  * Threat specific code.
30  * 
31  * 1     10/07/98 3:01p Dave
32  * 
33  * 1     10/07/98 3:00p Dave
34  * 
35  * 16    6/17/98 2:47p Hoffoss
36  * Changed so missions are single, multi or training.  Not supporting
37  * combos of the above anymore (in Fred).
38  * 
39  * 15    5/05/98 11:05p Allender
40  * ability to flag mission as "no promotion" where promotions and badges
41  * are *not* granted even if they should be.  Slight fix to multiplayer
42  * problem where locking_subsys is wrong for players current target
43  * 
44  * 14    4/03/98 12:17a Allender
45  * new sexpression to detect departed or destroyed.  optionally disallow
46  * support ships.  Allow docking with escape pods 
47  * 
48  * 13    3/26/98 5:24p Allender
49  * put in respawn edit box into mission notes dialog.  Made loading of
50  * missions/campaign happen when first entering the game setup screen.
51  * 
52  * 12    3/16/98 8:27p Allender
53  * Fred support for two new AI flags -- kamikaze and no dynamic goals.
54  * 
55  * 11    3/09/98 4:30p Allender
56  * multiplayer secondary weapon changes.  red-alert and cargo-known-delay
57  * sexpressions.  Add time cargo revealed to ship structure
58  * 
59  * 10    2/04/98 4:32p Allender
60  * support for multiple briefings and debriefings.  Changes to mission
61  * type (now a bitfield).  Bitfield defs for multiplayer modes
62  * 
63  * 9     1/02/98 4:55p Hoffoss
64  * Added support for Mission_all_attack flag to Fred and loading/saving
65  * code.
66  * 
67  * 8     9/30/97 5:56p Hoffoss
68  * Added music selection combo boxes to Fred.
69  * 
70  * 7     8/11/97 3:19p Hoffoss
71  * Implemented mission description.
72  * 
73  * 6     6/11/97 2:14p Hoffoss
74  * Added game type (mission type) selection to Fred.
75  * 
76  * 5     5/20/97 2:28p Hoffoss
77  * Added message box queries for close window operation on all modal
78  * dialog boxes.
79  * 
80  * 4     4/17/97 2:01p Hoffoss
81  * All dialog box window states are saved between sessions now.
82  * 
83  * 3     2/17/97 5:28p Hoffoss
84  * Checked RCS headers, added them were missing, changing description to
85  * something better, etc where needed.
86  *
87  * $NoKeywords: $
88  */
89
90 /////////////////////////////////////////////////////////////////////////////
91 // CMissionNotesDlg dialog
92
93 class CMissionNotesDlg : public CDialog
94 {
95 // Construction
96 public:
97         int query_modified();
98         void OnCancel();
99         void OnOK();
100         int update_data();
101         int initialize_data();
102         CMissionNotesDlg(CWnd* pParent = NULL);   // standard constructor
103
104 // Dialog Data
105         //{{AFX_DATA(CMissionNotesDlg)
106         enum { IDD = IDD_MISSION_NOTES };
107         CSpinButtonCtrl m_respawn_spin;
108         CString m_created;
109         CString m_modified;
110         CString m_mission_notes;
111         CString m_designer_name;
112         CString m_mission_title;
113         CString m_mission_desc;
114         CString m_squad_filename;
115         CString m_squad_name;
116         int             m_music;
117         BOOL            m_full_war;
118         BOOL            m_red_alert;
119         BOOL            m_scramble;
120         UINT            m_num_respawns;
121         BOOL            m_disallow_support;
122         BOOL            m_no_promotion;
123         BOOL            m_no_builtin_msgs;
124         BOOL            m_no_traitor;
125         //}}AFX_DATA
126
127         CString m_mission_notes_orig;
128         CString m_designer_name_orig;
129         CString m_mission_title_orig;
130         CString m_mission_desc_orig;
131
132 // Overrides
133         // ClassWizard generated virtual function overrides
134         //{{AFX_VIRTUAL(CMissionNotesDlg)
135         protected:
136         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
137         //}}AFX_VIRTUAL
138
139 // Implementation
140 protected:
141         int m_type;
142         void set_types();
143
144         // Generated message map functions
145         //{{AFX_MSG(CMissionNotesDlg)
146         virtual BOOL OnInitDialog();
147         afx_msg void OnClose();
148         afx_msg void OnTraining();
149         afx_msg void OnMulti();
150         afx_msg void OnSingle();
151         afx_msg void OnSquadLogo();
152         //}}AFX_MSG
153         DECLARE_MESSAGE_MAP()
154 };
155