]> icculus.org git repositories - taylor/freespace2.git/blob - include/cmdbrief.h
Initial revision
[taylor/freespace2.git] / include / cmdbrief.h
1 /*
2  * $Logfile: /Freespace2/code/FRED2/CmdBrief.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Command Briefing Editor
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:11  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  * 4     4/20/98 4:40p Hoffoss
24  * Added a button to 4 editors to play the chosen wave file.
25  * 
26  * 3     3/19/98 4:24p Hoffoss
27  * Added remaining support for command brief screen (ANI and WAVE file
28  * playing).
29  * 
30  * 2     3/05/98 3:59p Hoffoss
31  * Added a bunch of new command brief stuff, and asteroid initialization
32  * to Fred.
33  *
34  * $NoKeywords: $
35  */
36
37 #include "missioncmdbrief.h"
38
39 /////////////////////////////////////////////////////////////////////////////
40 // cmd_brief_dlg dialog
41
42 class cmd_brief_dlg : public CDialog
43 {
44 // Construction
45 public:
46         cmd_brief_dlg(CWnd* pParent = NULL);   // standard constructor
47         void update_data(int update = 1);
48         void OnOK();
49
50 // Dialog Data
51         //{{AFX_DATA(cmd_brief_dlg)
52         enum { IDD = IDD_CMD_BRIEF };
53         CString m_ani_filename;
54         CString m_text;
55         CString m_stage_title;
56         CString m_wave_filename;
57         //}}AFX_DATA
58
59         CBitmap m_play_bm;
60
61 // Overrides
62         // ClassWizard generated virtual function overrides
63         //{{AFX_VIRTUAL(cmd_brief_dlg)
64         public:
65         virtual BOOL DestroyWindow();
66         protected:
67         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
68         //}}AFX_VIRTUAL
69
70 // Implementation
71 protected:
72         int m_cur_stage;
73         int m_last_stage;
74         cmd_brief *last_cmd_brief;
75
76         void copy_stage(int from, int to);
77
78         // Generated message map functions
79         //{{AFX_MSG(cmd_brief_dlg)
80         virtual BOOL OnInitDialog();
81         afx_msg void OnNext();
82         afx_msg void OnPrev();
83         afx_msg void OnAddStage();
84         afx_msg void OnInsertStage();
85         afx_msg void OnDeleteStage();
86         afx_msg void OnBrowseAni();
87         afx_msg void OnBrowseWave();
88         afx_msg void OnPlay();
89         //}}AFX_MSG
90         DECLARE_MESSAGE_MAP()
91 };
92