]> icculus.org git repositories - taylor/freespace2.git/blob - include/campaigntreewnd.h
embed standalone web in executable
[taylor/freespace2.git] / include / campaigntreewnd.h
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/FRED2/CampaignTreeWnd.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Campaign display tree window code.  Works very closely with the Campaign editor dialog box.
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:12  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
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.
29  * 
30  * 1     10/07/98 3:01p Dave
31  * 
32  * 1     10/07/98 3:00p Dave
33  * 
34  * 12    12/18/97 5:11p Allender
35  * initial support for ship/weapon persistence
36  * 
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).
41  * 
42  * 10    8/13/97 5:49p Hoffoss
43  * Fixed bugs, made additions.
44  * 
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.
48  * 
49  * 8     5/15/97 12:45p Hoffoss
50  * Extensive changes to fix many little bugs.
51  * 
52  * 7     5/14/97 12:54p Hoffoss
53  * Added sexp tree for campaign branches, branch hilighting, and branch
54  * reordering.
55  * 
56  * 6     5/13/97 12:46p Hoffoss
57  * Added close campaign editor functions, changed global pointer to have
58  * capped first letter.
59  * 
60  * 5     5/13/97 11:13a Hoffoss
61  * Added remaining file menu options to campaign editor.
62  * 
63  * 4     5/13/97 10:52a Hoffoss
64  * Added campaign saving code.
65  * 
66  * 3     5/09/97 9:50a Hoffoss
67  * Routine code check in.
68  * 
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.
72  *
73  * $NoKeywords: $
74  */
75
76 /////////////////////////////////////////////////////////////////////////////
77 // campaign_tree_wnd window
78
79 class campaign_tree_wnd : public CFrameWnd
80 {
81         DECLARE_DYNCREATE(campaign_tree_wnd)
82
83 // Construction
84 public:
85         campaign_tree_wnd();
86
87 // Attributes
88 public:
89
90 // Operations
91 public:
92         int error_checker();
93         int fred_check_sexp(int sexp, int type, char *msg, ...);
94         int error(char *msg, ...);
95         int internal_error(char *msg, ...);
96         int save_modified();
97
98 // Overrides
99         // ClassWizard generated virtual function overrides
100         //{{AFX_VIRTUAL(campaign_tree_wnd)
101         //}}AFX_VIRTUAL
102
103 private:
104         int g_err;
105
106 // Implementation
107 public:
108         virtual ~campaign_tree_wnd();
109         virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
110
111         // Generated message map functions
112         CSplitterWnd m_splitter;
113
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();
126         //}}AFX_MSG
127         DECLARE_MESSAGE_MAP()
128 };
129
130 /////////////////////////////////////////////////////////////////////////////
131
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;
136