File: campaigneditordlg.h

package info (click to toggle)
freespace2 3.7.4%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: buster
  • size: 22,236 kB
  • sloc: cpp: 393,535; ansic: 4,106; makefile: 1,091; xml: 181; sh: 137
file content (117 lines) | stat: -rw-r--r-- 3,182 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
 * Copyright (C) Volition, Inc. 1999.  All rights reserved.
 *
 * All source code herein is the property of Volition, Inc. You may not sell 
 * or otherwise commercially exploit the source or things you created based on the 
 * source.
 *
*/

// CampaignEditorDlg.h : header file
//

#include "resource.h"
#include "Sexp_tree.h"
#include "CampaignFilelistBox.h"

/////////////////////////////////////////////////////////////////////////////
// campaign_editor form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class campaign_sexp_tree : public sexp_tree
{
};

class campaign_editor : public CFormView
{
private:
	int m_num_links;
	int m_last_mission;

protected:
	campaign_editor();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(campaign_editor)

// Form Data
public:
	void mission_selected(int num);
	void insert_handler(int old, int node);
	void swap_handler(int node1, int node2);
	void update();
	void load_tree(int save = 1);
	void save_tree(int clear = 1);
	int handler(int code, int node, char *str = NULL);
	void initialize( int init_files = 1 );
	void load_campaign();
	void update_loop_desc_window();
	void campaign_editor::save_loop_desc_window();
	//{{AFX_DATA(campaign_editor)
	enum { IDD = IDD_CAMPAIGN };
	campaign_sexp_tree	m_tree;
	campaign_filelist_box	m_filelist;
	CString	m_name;
	int		m_type;
	CString	m_num_players;
	CString	m_desc;
	CString	m_branch_desc;
	CString	m_branch_brief_anim;
	CString	m_branch_brief_sound;
	BOOL	m_custom_tech_db;
	//}}AFX_DATA

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(campaign_editor)
	public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~campaign_editor();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(campaign_editor)
	afx_msg void OnLoad();
	afx_msg void OnAlign();
	afx_msg void OnCpgnClose();
	afx_msg void OnRclickTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBeginlabeleditSexpTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnEndlabeleditSexpTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangedSexpTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnMoveUp();
	afx_msg void OnMoveDown();
	afx_msg void OnEndEdit();
	afx_msg void OnChangeBriefingCutscene();
	afx_msg void OnSelchangeType();
	afx_msg void OnToggleLoop();
	afx_msg void OnBrowseLoopAni();
	afx_msg void OnBrowseLoopSound();
	afx_msg void OnChangeMainHall();
	afx_msg void OnChangeDebriefingPersona();
	afx_msg void OnCustomTechDB();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

extern campaign_editor *Campaign_tree_formp;
extern int Cur_campaign_mission;
extern int Cur_campaign_link;