2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/FRED2/CampaignTreeWnd.h $
15 * Campaign display tree window code. Works very closely with the Campaign editor dialog box.
18 * Revision 1.2 2002/06/09 04:41:12 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 2 10/07/98 6:28p Dave
26 * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
27 * Fred. Globalized mission and campaign file extensions. Removed Silent
28 * Threat specific code.
30 * 1 10/07/98 3:01p Dave
32 * 1 10/07/98 3:00p Dave
34 * 12 12/18/97 5:11p Allender
35 * initial support for ship/weapon persistence
37 * 11 8/14/97 11:54p Hoffoss
38 * Added more error checking to Campaign editor, and made exit from
39 * Campaign editor reload last mission in Fred (unless specifically
40 * loading another mission).
42 * 10 8/13/97 5:49p Hoffoss
43 * Fixed bugs, made additions.
45 * 9 8/13/97 12:46p Hoffoss
46 * Added campaign error checker, accelerator table, and mission goal data
47 * listings to sexp tree right click menu.
49 * 8 5/15/97 12:45p Hoffoss
50 * Extensive changes to fix many little bugs.
52 * 7 5/14/97 12:54p Hoffoss
53 * Added sexp tree for campaign branches, branch hilighting, and branch
56 * 6 5/13/97 12:46p Hoffoss
57 * Added close campaign editor functions, changed global pointer to have
58 * capped first letter.
60 * 5 5/13/97 11:13a Hoffoss
61 * Added remaining file menu options to campaign editor.
63 * 4 5/13/97 10:52a Hoffoss
64 * Added campaign saving code.
66 * 3 5/09/97 9:50a Hoffoss
67 * Routine code check in.
69 * 2 5/01/97 4:11p Hoffoss
70 * Started on Campaign editor stuff, being sidetracked with fixing bugs
71 * now, though, so checking it for now.
76 /////////////////////////////////////////////////////////////////////////////
77 // campaign_tree_wnd window
79 class campaign_tree_wnd : public CFrameWnd
81 DECLARE_DYNCREATE(campaign_tree_wnd)
93 int fred_check_sexp(int sexp, int type, char *msg, ...);
94 int error(char *msg, ...);
95 int internal_error(char *msg, ...);
99 // ClassWizard generated virtual function overrides
100 //{{AFX_VIRTUAL(campaign_tree_wnd)
108 virtual ~campaign_tree_wnd();
109 virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
111 // Generated message map functions
112 CSplitterWnd m_splitter;
114 //{{AFX_MSG(campaign_tree_wnd)
115 afx_msg void OnUpdateCpgnFileOpen(CCmdUI* pCmdUI);
116 afx_msg void OnCpgnFileOpen();
117 afx_msg void OnDestroy();
118 afx_msg void OnCpgnFileSave();
119 afx_msg void OnCpgnFileSaveAs();
120 afx_msg void OnCpgnFileNew();
121 afx_msg void OnClose2();
122 afx_msg void OnErrorChecker();
123 afx_msg void OnClose();
124 afx_msg void OnInitialShips();
125 afx_msg void OnInitialWeapons();
127 DECLARE_MESSAGE_MAP()
130 /////////////////////////////////////////////////////////////////////////////
132 extern int Mission_filename_cb_format;
133 extern int Campaign_modified;
134 extern int Bypass_clear_mission;
135 extern campaign_tree_wnd *Campaign_wnd;