]> icculus.org git repositories - taylor/freespace2.git/blob - include/debriefingeditordlg.h
re-add PXO sources to project files
[taylor/freespace2.git] / include / debriefingeditordlg.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/DebriefingEditorDlg.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Debriefing editor dialog.  Used to edit mission debriefings of course.
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:12  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     7/07/98 2:11p Hoffoss
35  * 
36  * 8     4/20/98 4:40p Hoffoss
37  * Added a button to 4 editors to play the chosen wave file.
38  * 
39  * 7     3/17/98 2:06p Hoffoss
40  * Made enter key not close the dialog box (default windows behavior, even
41  * when no ok button.  Talk about stupid. :)
42  * 
43  * 6     2/09/98 9:25p Allender
44  * team v team support.  multiple pools and breifings
45  * 
46  * 5     2/04/98 4:32p Allender
47  * support for multiple briefings and debriefings.  Changes to mission
48  * type (now a bitfield).  Bitfield defs for multiplayer modes
49  * 
50  * 4     11/10/97 11:58a Johnson
51  * Added support to debriefing editor for "press cancel to go to reference
52  * of sexp".
53  * 
54  * 3     10/14/97 12:06p Hoffoss
55  * Recoded debriefing editor to utilize new format.
56  * 
57  * 2     7/08/97 2:03p Hoffoss
58  * Debriefing editor coded and implemented.
59  *
60  * $NoKeywords: $
61  */
62
63 /////////////////////////////////////////////////////////////////////////////
64 // debriefing_editor_dlg dialog
65
66 class debriefing_editor_dlg : public CDialog
67 {
68 // Construction
69 public:
70         void OnOK();
71         void update_data(int update = 1);
72         debriefing_editor_dlg(CWnd* pParent = NULL);   // standard constructor
73         int select_sexp_node;
74
75 // Dialog Data
76         //{{AFX_DATA(debriefing_editor_dlg)
77         enum { IDD = IDD_DEBRIEFING_EDITOR };
78         sexp_tree       m_tree;
79         CString m_text;
80         CString m_voice;
81         CString m_stage_title;
82         CString m_rec_text;
83         int             m_current_debriefing;
84         //}}AFX_DATA
85
86         CBitmap m_play_bm;
87
88 // Overrides
89         // ClassWizard generated virtual function overrides
90         //{{AFX_VIRTUAL(debriefing_editor_dlg)
91         public:
92         virtual BOOL DestroyWindow();
93         protected:
94         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
95         virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
96         //}}AFX_VIRTUAL
97
98 // Implementation
99 protected:
100         int m_cur_stage;
101         int m_last_stage;
102         int modified;
103
104         void copy_stage(int from, int to, int clear_formula = 0);
105
106         // Generated message map functions
107         //{{AFX_MSG(debriefing_editor_dlg)
108         afx_msg void OnNext();
109         afx_msg void OnPrev();
110         afx_msg void OnBrowse();
111         afx_msg void OnAddStage();
112         afx_msg void OnDeleteStage();
113         afx_msg void OnInsertStage();
114         virtual BOOL OnInitDialog();
115         afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
116         afx_msg void OnBeginlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult);
117         afx_msg void OnEndlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult);
118         afx_msg void OnClose();
119         afx_msg void OnInitMenu(CMenu* pMenu);
120         afx_msg void OnPlay();
121         //}}AFX_MSG
122         DECLARE_MESSAGE_MAP()
123 private:
124 };
125