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