]> icculus.org git repositories - taylor/freespace2.git/blob - include/campaigntreewnd.h
Initial revision
[taylor/freespace2.git] / include / campaigntreewnd.h
1 /*
2  * $Logfile: /Freespace2/code/FRED2/CampaignTreeWnd.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Campaign display tree window code.  Works very closely with the Campaign editor dialog box.
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
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.
18  * 
19  * 1     10/07/98 3:01p Dave
20  * 
21  * 1     10/07/98 3:00p Dave
22  * 
23  * 12    12/18/97 5:11p Allender
24  * initial support for ship/weapon persistence
25  * 
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).
30  * 
31  * 10    8/13/97 5:49p Hoffoss
32  * Fixed bugs, made additions.
33  * 
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.
37  * 
38  * 8     5/15/97 12:45p Hoffoss
39  * Extensive changes to fix many little bugs.
40  * 
41  * 7     5/14/97 12:54p Hoffoss
42  * Added sexp tree for campaign branches, branch hilighting, and branch
43  * reordering.
44  * 
45  * 6     5/13/97 12:46p Hoffoss
46  * Added close campaign editor functions, changed global pointer to have
47  * capped first letter.
48  * 
49  * 5     5/13/97 11:13a Hoffoss
50  * Added remaining file menu options to campaign editor.
51  * 
52  * 4     5/13/97 10:52a Hoffoss
53  * Added campaign saving code.
54  * 
55  * 3     5/09/97 9:50a Hoffoss
56  * Routine code check in.
57  * 
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.
61  *
62  * $NoKeywords: $
63  */
64
65 /////////////////////////////////////////////////////////////////////////////
66 // campaign_tree_wnd window
67
68 class campaign_tree_wnd : public CFrameWnd
69 {
70         DECLARE_DYNCREATE(campaign_tree_wnd)
71
72 // Construction
73 public:
74         campaign_tree_wnd();
75
76 // Attributes
77 public:
78
79 // Operations
80 public:
81         int error_checker();
82         int fred_check_sexp(int sexp, int type, char *msg, ...);
83         int error(char *msg, ...);
84         int internal_error(char *msg, ...);
85         int save_modified();
86
87 // Overrides
88         // ClassWizard generated virtual function overrides
89         //{{AFX_VIRTUAL(campaign_tree_wnd)
90         //}}AFX_VIRTUAL
91
92 private:
93         int g_err;
94
95 // Implementation
96 public:
97         virtual ~campaign_tree_wnd();
98         virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
99
100         // Generated message map functions
101         CSplitterWnd m_splitter;
102
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();
115         //}}AFX_MSG
116         DECLARE_MESSAGE_MAP()
117 };
118
119 /////////////////////////////////////////////////////////////////////////////
120
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;
125