FS2_Open
Open source remastering of the Freespace 2 engine
messageeditordlg.h
Go to the documentation of this file.
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 the
6  * source.
7  *
8 */
9 
10 
11 
12 #include "mission/missionmessage.h"
13 
15 // CMessageEditorDlg dialog
16 
17 class CMessageEditorDlg : public CDialog
18 {
19 // Construction
20 public:
21  int find_event();
22  int query_modified();
23  void OnCancel();
24  int update(int num);
25  void update_cur_message();
26  void OnOK();
27  CMessageEditorDlg(CWnd* pParent = NULL); // standard constructor
28 
29 // Dialog Data
30  //{{AFX_DATA(CMessageEditorDlg)
31  enum { IDD = IDD_MESSAGE_EDITOR };
33  CString m_avi_filename;
34  CString m_wave_filename;
35  CString m_message_text;
36  CString m_message_name;
37  int m_cur_msg;
39  int m_sender;
40  int m_persona;
41  //}}AFX_DATA
42 
43 
44 // Overrides
45  // ClassWizard generated virtual function overrides
46  //{{AFX_VIRTUAL(CMessageEditorDlg)
47  protected:
48  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
49  //}}AFX_VIRTUAL
50 
51 // Implementation
52 protected:
53  int m_event_num; // event index if existing event is being used for formula
54  int modified;
55 
56  // Generated message map functions
57  //{{AFX_MSG(CMessageEditorDlg)
58  virtual BOOL OnInitDialog();
59  afx_msg void OnSelchangeMessageList();
60  afx_msg void OnUpdateName();
61  afx_msg void OnDelete();
62  afx_msg void OnNew();
63  afx_msg void OnClose();
64  afx_msg void OnBrowseAvi();
65  afx_msg void OnBrowseWave();
66  afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
67  afx_msg void OnBeginlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult);
68  afx_msg void OnEndlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult);
69  afx_msg void OnOk();
70  //}}AFX_MSG
71  DECLARE_MESSAGE_MAP()
72 };
73 
CMessageEditorDlg * Message_editor_dlg
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnClose()
afx_msg void OnBrowseAvi()
afx_msg void OnBrowseWave()
CMessageEditorDlg(CWnd *pParent=NULL)
afx_msg void OnBeginlabeleditTree(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnRclickTree(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnUpdateName()
afx_msg void OnSelchangeMessageList()
virtual BOOL OnInitDialog()
int BOOL
Definition: config.h:80
afx_msg void OnNew()
GLuint GLuint num
Definition: Glext.h:9089
long LRESULT
Definition: config.h:100
#define IDD_MESSAGE_EDITOR
Definition: resource.h:22
afx_msg void OnDelete()
afx_msg void OnEndlabeleditTree(NMHDR *pNMHDR, LRESULT *pResult)