2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/FRED2/MessageEditorDlg.h $
15 * Old message editor dialog box handling code. This was designed a LONG time ago
16 * and because so much changed, I created a new one from scratch instead. This is
17 * only around just in case it might be useful.
20 * Revision 1.2 2002/06/09 04:41:13 relnev
21 * added copyright header
23 * Revision 1.1.1.1 2002/05/03 03:28:12 root
27 * 2 10/07/98 6:28p Dave
28 * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
29 * Fred. Globalized mission and campaign file extensions. Removed Silent
30 * Threat specific code.
32 * 1 10/07/98 3:01p Dave
34 * 1 10/07/98 3:00p Dave
36 * 11 1/07/98 5:58p Hoffoss
37 * Combined message editor into event editor.
39 * 10 1/06/98 4:19p Hoffoss
40 * Made message editor accept returns instead of closing dialog.
42 * 9 10/13/97 11:37a Allender
43 * added personas to message editor in Fred
45 * 8 10/08/97 4:41p Hoffoss
46 * Changed the way message editor works. Each message is updated
47 * perminently when you switch messages (as if ok button was pressed).
49 * 7 7/14/97 9:55p Hoffoss
50 * Making changes to message editor system.
52 * 6 7/10/97 2:32p Hoffoss
53 * Made message editor dialog box modeless.
55 * 5 7/02/97 5:09p Hoffoss
56 * Added browse buttons to message editor.
58 * 4 5/20/97 2:28p Hoffoss
59 * Added message box queries for close window operation on all modal
62 * 3 3/11/97 2:19p Hoffoss
63 * New message structure support for Fred.
65 * 2 2/17/97 5:28p Hoffoss
66 * Checked RCS headers, added them were missing, changing description to
67 * something better, etc where needed.
72 #include "missionmessage.h"
74 /////////////////////////////////////////////////////////////////////////////
75 // CMessageEditorDlg dialog
77 class CMessageEditorDlg : public CDialog
85 void update_cur_message();
87 CMessageEditorDlg(CWnd* pParent = NULL); // standard constructor
90 //{{AFX_DATA(CMessageEditorDlg)
91 enum { IDD = IDD_MESSAGE_EDITOR };
93 CString m_avi_filename;
94 CString m_wave_filename;
95 CString m_message_text;
96 CString m_message_name;
105 // ClassWizard generated virtual function overrides
106 //{{AFX_VIRTUAL(CMessageEditorDlg)
108 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
113 int m_event_num; // event index if existing event is being used for formula
116 // Generated message map functions
117 //{{AFX_MSG(CMessageEditorDlg)
118 virtual BOOL OnInitDialog();
119 afx_msg void OnSelchangeMessageList();
120 afx_msg void OnUpdateName();
121 afx_msg void OnDelete();
122 afx_msg void OnNew();
123 afx_msg void OnClose();
124 afx_msg void OnBrowseAvi();
125 afx_msg void OnBrowseWave();
126 afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
127 afx_msg void OnBeginlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult);
128 afx_msg void OnEndlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult);
131 DECLARE_MESSAGE_MAP()
134 extern CMessageEditorDlg *Message_editor_dlg;