]> icculus.org git repositories - taylor/freespace2.git/blob - include/messageeditordlg.h
Initial revision
[taylor/freespace2.git] / include / messageeditordlg.h
1 /*
2  * $Logfile: /Freespace2/code/FRED2/MessageEditorDlg.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Old message editor dialog box handling code.  This was designed a LONG time ago
8  * and because so much changed, I created a new one from scratch instead.  This is
9  * only around just in case it might be useful.
10  *
11  * $Log$
12  * Revision 1.1  2002/05/03 03:28:12  root
13  * Initial revision
14  *
15  * 
16  * 2     10/07/98 6:28p Dave
17  * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
18  * Fred. Globalized mission and campaign file extensions. Removed Silent
19  * Threat specific code.
20  * 
21  * 1     10/07/98 3:01p Dave
22  * 
23  * 1     10/07/98 3:00p Dave
24  * 
25  * 11    1/07/98 5:58p Hoffoss
26  * Combined message editor into event editor.
27  * 
28  * 10    1/06/98 4:19p Hoffoss
29  * Made message editor accept returns instead of closing dialog.
30  * 
31  * 9     10/13/97 11:37a Allender
32  * added personas to message editor in Fred
33  * 
34  * 8     10/08/97 4:41p Hoffoss
35  * Changed the way message editor works.  Each message is updated
36  * perminently when you switch messages (as if ok button was pressed).
37  * 
38  * 7     7/14/97 9:55p Hoffoss
39  * Making changes to message editor system.
40  * 
41  * 6     7/10/97 2:32p Hoffoss
42  * Made message editor dialog box modeless.
43  * 
44  * 5     7/02/97 5:09p Hoffoss
45  * Added browse buttons to message editor.
46  * 
47  * 4     5/20/97 2:28p Hoffoss
48  * Added message box queries for close window operation on all modal
49  * dialog boxes.
50  * 
51  * 3     3/11/97 2:19p Hoffoss
52  * New message structure support for Fred.
53  * 
54  * 2     2/17/97 5:28p Hoffoss
55  * Checked RCS headers, added them were missing, changing description to
56  * something better, etc where needed.
57  *
58  * $NoKeywords: $
59  */
60
61 #include "missionmessage.h"
62
63 /////////////////////////////////////////////////////////////////////////////
64 // CMessageEditorDlg dialog
65
66 class CMessageEditorDlg : public CDialog
67 {
68 // Construction
69 public:
70         int find_event();
71         int query_modified();
72         void OnCancel();
73         int update(int num);
74         void update_cur_message();
75         void OnOK();
76         CMessageEditorDlg(CWnd* pParent = NULL);   // standard constructor
77
78 // Dialog Data
79         //{{AFX_DATA(CMessageEditorDlg)
80         enum { IDD = IDD_MESSAGE_EDITOR };
81         sexp_tree       m_tree;
82         CString m_avi_filename;
83         CString m_wave_filename;
84         CString m_message_text;
85         CString m_message_name;
86         int             m_cur_msg;
87         int             m_priority;
88         int             m_sender;
89         int             m_persona;
90         //}}AFX_DATA
91
92
93 // Overrides
94         // ClassWizard generated virtual function overrides
95         //{{AFX_VIRTUAL(CMessageEditorDlg)
96         protected:
97         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
98         //}}AFX_VIRTUAL
99
100 // Implementation
101 protected:
102         int m_event_num;  // event index if existing event is being used for formula
103         int modified;
104
105         // Generated message map functions
106         //{{AFX_MSG(CMessageEditorDlg)
107         virtual BOOL OnInitDialog();
108         afx_msg void OnSelchangeMessageList();
109         afx_msg void OnUpdateName();
110         afx_msg void OnDelete();
111         afx_msg void OnNew();
112         afx_msg void OnClose();
113         afx_msg void OnBrowseAvi();
114         afx_msg void OnBrowseWave();
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 OnOk();
119         //}}AFX_MSG
120         DECLARE_MESSAGE_MAP()
121 };
122
123 extern CMessageEditorDlg *Message_editor_dlg;
124