2 * $Logfile: /Freespace2/code/FRED2/CampaignTreeWnd.h $
7 * Campaign display tree window code. Works very closely with the Campaign editor dialog box.
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 2 10/07/98 6:28p Dave
15 * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
16 * Fred. Globalized mission and campaign file extensions. Removed Silent
17 * Threat specific code.
19 * 1 10/07/98 3:01p Dave
21 * 1 10/07/98 3:00p Dave
23 * 12 12/18/97 5:11p Allender
24 * initial support for ship/weapon persistence
26 * 11 8/14/97 11:54p Hoffoss
27 * Added more error checking to Campaign editor, and made exit from
28 * Campaign editor reload last mission in Fred (unless specifically
29 * loading another mission).
31 * 10 8/13/97 5:49p Hoffoss
32 * Fixed bugs, made additions.
34 * 9 8/13/97 12:46p Hoffoss
35 * Added campaign error checker, accelerator table, and mission goal data
36 * listings to sexp tree right click menu.
38 * 8 5/15/97 12:45p Hoffoss
39 * Extensive changes to fix many little bugs.
41 * 7 5/14/97 12:54p Hoffoss
42 * Added sexp tree for campaign branches, branch hilighting, and branch
45 * 6 5/13/97 12:46p Hoffoss
46 * Added close campaign editor functions, changed global pointer to have
47 * capped first letter.
49 * 5 5/13/97 11:13a Hoffoss
50 * Added remaining file menu options to campaign editor.
52 * 4 5/13/97 10:52a Hoffoss
53 * Added campaign saving code.
55 * 3 5/09/97 9:50a Hoffoss
56 * Routine code check in.
58 * 2 5/01/97 4:11p Hoffoss
59 * Started on Campaign editor stuff, being sidetracked with fixing bugs
60 * now, though, so checking it for now.
65 /////////////////////////////////////////////////////////////////////////////
66 // campaign_tree_wnd window
68 class campaign_tree_wnd : public CFrameWnd
70 DECLARE_DYNCREATE(campaign_tree_wnd)
82 int fred_check_sexp(int sexp, int type, char *msg, ...);
83 int error(char *msg, ...);
84 int internal_error(char *msg, ...);
88 // ClassWizard generated virtual function overrides
89 //{{AFX_VIRTUAL(campaign_tree_wnd)
97 virtual ~campaign_tree_wnd();
98 virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
100 // Generated message map functions
101 CSplitterWnd m_splitter;
103 //{{AFX_MSG(campaign_tree_wnd)
104 afx_msg void OnUpdateCpgnFileOpen(CCmdUI* pCmdUI);
105 afx_msg void OnCpgnFileOpen();
106 afx_msg void OnDestroy();
107 afx_msg void OnCpgnFileSave();
108 afx_msg void OnCpgnFileSaveAs();
109 afx_msg void OnCpgnFileNew();
110 afx_msg void OnClose2();
111 afx_msg void OnErrorChecker();
112 afx_msg void OnClose();
113 afx_msg void OnInitialShips();
114 afx_msg void OnInitialWeapons();
116 DECLARE_MESSAGE_MAP()
119 /////////////////////////////////////////////////////////////////////////////
121 extern int Mission_filename_cb_format;
122 extern int Campaign_modified;
123 extern int Bypass_clear_mission;
124 extern campaign_tree_wnd *Campaign_wnd;