FS2_Open
Open source remastering of the Freespace 2 engine
briefingeditordlg.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 #ifndef __BRIEFINGEDITORDLG_H__
13 #define __BRIEFINGEDITORDLG_H__
14 
15 #include "parse/sexp.h"
17 
19 // briefing_editor_dlg dialog
20 
21 class briefing_editor_dlg : public CDialog
22 {
23 // Construction
24 public:
25  void focus_sexp(int select_sexp_node);
27  void batch_render();
28  void save_editor_state();
29  void restore_editor_state();
30  void reset_icon_loop(int stage);
31  int get_next_icon(int id);
32  void OnOK();
33  void OnCancel();
34  int find_icon(int id, int stage);
35  void propagate_icon(int num);
36  void reset_editor();
37  int check_mouse_hit(int x, int y);
38  void delete_icon(int num);
39  void update_positions();
40  void icon_select(int num);
41  void draw_icon(object *objp);
42  void create();
43  void update_data(int update = 1);
44  briefing_editor_dlg(CWnd* pParent = NULL); // standard constructor
45 
46 // Dialog Data
47  //{{AFX_DATA(briefing_editor_dlg)
50  CButton m_lines;
53  CString m_icon_label;
54  CString m_stage_title;
55  CString m_text;
56  CString m_time;
57  CString m_voice;
58  CString m_icon_text;
62  int m_id;
71  //}}AFX_DATA
72 
73  CBitmap m_play_bm;
74 
75  // copy view variables
79 
80 // Overrides
81  // ClassWizard generated virtual function overrides
82  //{{AFX_VIRTUAL(briefing_editor_dlg)
83  public:
84  virtual BOOL DestroyWindow();
85  protected:
86  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
87  virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
88  //}}AFX_VIRTUAL
89 
90 // Implementation
91 protected:
102  int modified;
103 // int point_obj;
107 
108  void copy_stage(int from, int to);
109 
110  // Generated message map functions
111  //{{AFX_MSG(briefing_editor_dlg)
112  afx_msg void OnClose();
113  afx_msg void OnNext();
114  afx_msg void OnPrev();
115  afx_msg void OnBrowse();
116  afx_msg void OnAddStage();
117  afx_msg void OnDeleteStage();
118  afx_msg void OnInsertStage();
119  afx_msg void OnMakeIcon();
120  afx_msg void OnDeleteIcon();
121  afx_msg void OnGotoView();
122  afx_msg void OnSaveView();
123  afx_msg void OnSelchangeIconImage();
124  afx_msg void OnSelchangeTeam();
125  afx_msg void OnSelchangeShipType();
126  afx_msg void OnPropagateIcons();
127  afx_msg void OnInitMenu(CMenu* pMenu);
128  afx_msg void OnLines();
129  afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
130  afx_msg void OnBeginlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult);
131  afx_msg void OnEndlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult);
132  afx_msg void OnPlay();
133  afx_msg void OnCopyView();
134  afx_msg void OnPasteView();
135  afx_msg void OnFlipIcon();
136  afx_msg void OnWingIcon();
137  afx_msg void OnCargoIcon();
138  //}}AFX_MSG
139  DECLARE_MESSAGE_MAP()
140 private:
141 };
142 
143 #endif
virtual BOOL DestroyWindow()
afx_msg void OnEndlabeleditTree(NMHDR *pNMHDR, LRESULT *pResult)
void reset_icon_loop(int stage)
Definition: pstypes.h:88
afx_msg void OnBeginlabeleditTree(NMHDR *pNMHDR, LRESULT *pResult)
UINT WPARAM wParam
Definition: msacm.h:1064
UINT WPARAM LPARAM lParam
Definition: msacm.h:1064
#define MAX_STAGE_ICONS
object * objp
Definition: lua.cpp:3105
long LPARAM
Definition: config.h:101
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam)
afx_msg void OnSelchangeIconImage()
int check_mouse_hit(int x, int y)
afx_msg void OnPropagateIcons()
afx_msg void OnInsertStage()
int icon_marked[MAX_STAGE_ICONS]
briefing_editor_dlg(CWnd *pParent=NULL)
int icon_obj[MAX_STAGE_ICONS]
afx_msg void OnRclickTree(NMHDR *pNMHDR, LRESULT *pResult)
GLint GLint GLint GLint GLint x
Definition: Glext.h:5182
int find_icon(int id, int stage)
#define IDD_BRIEFING_EDITOR
Definition: resource.h:72
CString m_substitute_briefing_music
int BOOL
Definition: config.h:80
GLuint GLuint num
Definition: Glext.h:9089
#define MAX_BRIEF_STAGE_LINES
afx_msg void OnSelchangeShipType()
long LRESULT
Definition: config.h:100
afx_msg void OnSelchangeTeam()
afx_msg void OnInitMenu(CMenu *pMenu)
virtual void DoDataExchange(CDataExchange *pDX)
void update_data(int update=1)
void copy_stage(int from, int to)
afx_msg void OnDeleteStage()
void draw_icon(object *objp)
int line_marked[MAX_BRIEF_STAGE_LINES]
int calc_num_lines_for_icons(int num)
void focus_sexp(int select_sexp_node)
GLint y
Definition: Gl.h:1505