FS2_Open
Open source remastering of the Freespace 2 engine
campaigneditordlg.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 // CampaignEditorDlg.h : header file
11 //
12 
13 #include "resource.h"
14 #include "Sexp_tree.h"
15 #include "CampaignFilelistBox.h"
16 
18 // campaign_editor form view
19 
20 #ifndef __AFXEXT_H__
21 #include <afxext.h>
22 #endif
23 
25 {
26 };
27 
28 class campaign_editor : public CFormView
29 {
30 private:
31  int m_num_links;
32  int m_last_mission;
33 
34 protected:
35  campaign_editor(); // protected constructor used by dynamic creation
36  DECLARE_DYNCREATE(campaign_editor)
37 
38 // Form Data
39 public:
40  void mission_selected(int num);
41  void insert_handler(int old, int node);
42  void swap_handler(int node1, int node2);
43  void update();
44  void load_tree(int save = 1);
45  void save_tree(int clear = 1);
46  int handler(int code, int node, char *str = NULL);
47  void initialize( int init_files = 1 );
48  void load_campaign();
51  //{{AFX_DATA(campaign_editor)
52  enum { IDD = IDD_CAMPAIGN };
55  CString m_name;
56  int m_type;
57  CString m_num_players;
58  CString m_desc;
59  CString m_branch_desc;
63  //}}AFX_DATA
64 
65 // Attributes
66 public:
67 
68 // Operations
69 public:
70 
71 // Overrides
72  // ClassWizard generated virtual function overrides
73  //{{AFX_VIRTUAL(campaign_editor)
74  public:
75  virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
76  protected:
77  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
78  virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
79  //}}AFX_VIRTUAL
80 
81 // Implementation
82 protected:
83  virtual ~campaign_editor();
84 #ifdef _DEBUG
85  virtual void AssertValid() const;
86  virtual void Dump(CDumpContext& dc) const;
87 #endif
88 
89  // Generated message map functions
90  //{{AFX_MSG(campaign_editor)
91  afx_msg void OnLoad();
92  afx_msg void OnAlign();
93  afx_msg void OnCpgnClose();
94  afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
95  afx_msg void OnBeginlabeleditSexpTree(NMHDR* pNMHDR, LRESULT* pResult);
96  afx_msg void OnEndlabeleditSexpTree(NMHDR* pNMHDR, LRESULT* pResult);
97  afx_msg void OnSelchangedSexpTree(NMHDR* pNMHDR, LRESULT* pResult);
98  afx_msg void OnMoveUp();
99  afx_msg void OnMoveDown();
100  afx_msg void OnEndEdit();
101  afx_msg void OnChangeBriefingCutscene();
102  afx_msg void OnSelchangeType();
103  afx_msg void OnToggleLoop();
104  afx_msg void OnBrowseLoopAni();
105  afx_msg void OnBrowseLoopSound();
106  afx_msg void OnChangeMainHall();
107  afx_msg void OnChangeDebriefingPersona();
108  afx_msg void OnCustomTechDB();
109  //}}AFX_MSG
110  DECLARE_MESSAGE_MAP()
111 };
112 
114 
116 extern int Cur_campaign_mission;
117 extern int Cur_campaign_link;
int Cur_campaign_link
void swap_handler(int node1, int node2)
afx_msg void OnChangeMainHall()
virtual void OnUpdate(CView *pSender, LPARAM lHint, CObject *pHint)
campaign_editor * Campaign_tree_formp
afx_msg void OnBrowseLoopSound()
void save_tree(int clear=1)
virtual void DoDataExchange(CDataExchange *pDX)
void initialize(int init_files=1)
afx_msg void OnEndlabeleditSexpTree(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnAlign()
afx_msg void OnLoad()
afx_msg void OnCpgnClose()
unsigned int UINT
Definition: config.h:82
afx_msg void OnBeginlabeleditSexpTree(NMHDR *pNMHDR, LRESULT *pResult)
long LPARAM
Definition: config.h:101
HWND DWORD code
Definition: vddraw.h:425
void mission_selected(int num)
afx_msg void OnMoveDown()
afx_msg void OnToggleLoop()
afx_msg void OnCustomTechDB()
virtual ~campaign_editor()
campaign_sexp_tree m_tree
void insert_handler(int old, int node)
afx_msg void OnEndEdit()
afx_msg void OnMoveUp()
afx_msg void OnSelchangedSexpTree(NMHDR *pNMHDR, LRESULT *pResult)
unsigned long DWORD
Definition: config.h:90
CString m_branch_brief_anim
int handler(int code, int node, char *str=NULL)
int BOOL
Definition: config.h:80
#define IDD_CAMPAIGN
Definition: resource.h:68
GLuint GLuint num
Definition: Glext.h:9089
afx_msg void OnChangeDebriefingPersona()
afx_msg void OnChangeBriefingCutscene()
CString m_branch_brief_sound
long LRESULT
Definition: config.h:100
campaign_filelist_box m_filelist
afx_msg void OnRclickTree(NMHDR *pNMHDR, LRESULT *pResult)
int Cur_campaign_mission
afx_msg void OnBrowseLoopAni()
void load_tree(int save=1)
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID, CCreateContext *pContext=NULL)
afx_msg void OnSelchangeType()