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