]> icculus.org git repositories - taylor/freespace2.git/blob - include/messageeditordlg.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / messageeditordlg.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/MessageEditorDlg.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
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.
18  *
19  * $Log$
20  * Revision 1.2  2002/06/09 04:41:13  relnev
21  * added copyright header
22  *
23  * Revision 1.1.1.1  2002/05/03 03:28:12  root
24  * Initial import.
25  *
26  * 
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.
31  * 
32  * 1     10/07/98 3:01p Dave
33  * 
34  * 1     10/07/98 3:00p Dave
35  * 
36  * 11    1/07/98 5:58p Hoffoss
37  * Combined message editor into event editor.
38  * 
39  * 10    1/06/98 4:19p Hoffoss
40  * Made message editor accept returns instead of closing dialog.
41  * 
42  * 9     10/13/97 11:37a Allender
43  * added personas to message editor in Fred
44  * 
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).
48  * 
49  * 7     7/14/97 9:55p Hoffoss
50  * Making changes to message editor system.
51  * 
52  * 6     7/10/97 2:32p Hoffoss
53  * Made message editor dialog box modeless.
54  * 
55  * 5     7/02/97 5:09p Hoffoss
56  * Added browse buttons to message editor.
57  * 
58  * 4     5/20/97 2:28p Hoffoss
59  * Added message box queries for close window operation on all modal
60  * dialog boxes.
61  * 
62  * 3     3/11/97 2:19p Hoffoss
63  * New message structure support for Fred.
64  * 
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.
68  *
69  * $NoKeywords: $
70  */
71
72 #include "missionmessage.h"
73
74 /////////////////////////////////////////////////////////////////////////////
75 // CMessageEditorDlg dialog
76
77 class CMessageEditorDlg : public CDialog
78 {
79 // Construction
80 public:
81         int find_event();
82         int query_modified();
83         void OnCancel();
84         int update(int num);
85         void update_cur_message();
86         void OnOK();
87         CMessageEditorDlg(CWnd* pParent = NULL);   // standard constructor
88
89 // Dialog Data
90         //{{AFX_DATA(CMessageEditorDlg)
91         enum { IDD = IDD_MESSAGE_EDITOR };
92         sexp_tree       m_tree;
93         CString m_avi_filename;
94         CString m_wave_filename;
95         CString m_message_text;
96         CString m_message_name;
97         int             m_cur_msg;
98         int             m_priority;
99         int             m_sender;
100         int             m_persona;
101         //}}AFX_DATA
102
103
104 // Overrides
105         // ClassWizard generated virtual function overrides
106         //{{AFX_VIRTUAL(CMessageEditorDlg)
107         protected:
108         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
109         //}}AFX_VIRTUAL
110
111 // Implementation
112 protected:
113         int m_event_num;  // event index if existing event is being used for formula
114         int modified;
115
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);
129         afx_msg void OnOk();
130         //}}AFX_MSG
131         DECLARE_MESSAGE_MAP()
132 };
133
134 extern CMessageEditorDlg *Message_editor_dlg;
135