Open source remastering of the Freespace 2 engine
Go to the documentation of this file.
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 the
6  * source.
7  *
8 */
14 #include "FREDDoc.h"
18 #define SEXP_HELP_BOX_SIZE 170
20 typedef struct Marking_box {
21  int x1, y1, x2, y2;
22 } Marking_box;
24 typedef struct subsys_to_render
25 {
26  bool do_render;
27  object *ship_obj;
31 class CShipEditorDlg;
32 class CGrid;
34 class CFREDView : public CView
35 {
36 private:
37  CGrid* m_pGDlg;
38  int global_error_check_player_wings(int multi);
40 protected: // create from serialization only
41  CFREDView();
44 // Attributes
45 public:
48  int fred_check_sexp(int sexp, int type, const char *msg, ...);
49  int internal_error(const char *msg, ...);
50  int error(const char *msg, ...);
51  int global_error_check();
53  void cycle_constraint();
56  static CFREDView *GetView();
59 // LONG OnMenuPopupShips(CWnd *pWnd, CPoint point);
60 // LONG OnMenuPopupShips(UINT wParam, LONG lParam);
62  //BOOL m_ConfirmDeleting;
63  //BOOL m_ShowCapitalShips;
64  //BOOL m_ShowElevations;
65  //BOOL m_ShowFighters;
66  //BOOL m_ShowGrid;
67  //BOOL m_ShowMiscObjects;
68  //BOOL m_ShowPlanets;
69  //BOOL m_ShowWaypoints;
71  // Operations
72 public:
74 // Overrides
75  // ClassWizard generated virtual function overrides
77  public:
78  virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
79  virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
80  virtual void OnInitialUpdate();
81  virtual BOOL DestroyWindow();
82  protected:
83  virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
84  virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
85  virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
86  virtual void OnDraw(CDC* pDC);
91 // Implementation
92 public:
93  virtual ~CFREDView();
94 #ifdef _DEBUG
95  virtual void AssertValid() const;
96  virtual void Dump(CDumpContext& dc) const;
97 #endif
99 // virtual void SEDlg_destroy();
101 // Generated message map functions
102 protected:
103  //{{AFX_MSG(CFREDView)
104  afx_msg void OnViewGrid();
105  afx_msg void OnUpdateViewGrid(CCmdUI* pCmdUI);
106  afx_msg void OnViewWaypoints();
107  afx_msg void OnUpdateViewWaypoints(CCmdUI* pCmdUI);
108  afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
109  afx_msg void OnEditorsShips();
110  afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
111  afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
112  afx_msg void OnSetFocus(CWnd* pOldWnd);
113  afx_msg void OnKillFocus(CWnd* pNewWnd);
114  afx_msg void OnSize(UINT nType, int cx, int cy);
115  afx_msg void OnMouseMove(UINT nFlags, CPoint point);
116  afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
117  afx_msg void OnMiscstuffShowshipsasicons();
118  afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
119  afx_msg void OnEditPopupShowShipIcons();
120  afx_msg void OnUpdateEditPopupShowShipIcons(CCmdUI* pCmdUI);
121  afx_msg void OnEditPopupShowShipModels();
122  afx_msg void OnUpdateEditPopupShowShipModels(CCmdUI* pCmdUI);
123  afx_msg void OnMiscStatistics();
124  afx_msg void OnEditPopupShowCompass();
125  afx_msg void OnUpdateEditPopupShowCompass(CCmdUI* pCmdUI);
126  afx_msg void OnUpdateChangeViewpointExternal(CCmdUI* pCmdUI);
127  afx_msg void OnChangeViewpointExternal();
128  afx_msg void OnUpdateChangeViewpointFollow(CCmdUI* pCmdUI);
129  afx_msg void OnChangeViewpointFollow();
130  afx_msg void OnEditorsGoals();
131  afx_msg void OnSpeed1();
132  afx_msg void OnSpeed2();
133  afx_msg void OnSpeed5();
134  afx_msg void OnSpeed10();
135  afx_msg void OnUpdateSpeed1(CCmdUI* pCmdUI);
136  afx_msg void OnSpeed3();
137  afx_msg void OnSpeed8();
138  afx_msg void OnRot1();
139  afx_msg void OnRot2();
140  afx_msg void OnRot3();
141  afx_msg void OnRot4();
142  afx_msg void OnRot5();
143  afx_msg void OnUpdateSpeed2(CCmdUI* pCmdUI);
144  afx_msg void OnUpdateSpeed3(CCmdUI* pCmdUI);
145  afx_msg void OnUpdateSpeed5(CCmdUI* pCmdUI);
146  afx_msg void OnUpdateSpeed8(CCmdUI* pCmdUI);
147  afx_msg void OnUpdateSpeed10(CCmdUI* pCmdUI);
148  afx_msg void OnUpdateRot1(CCmdUI* pCmdUI);
149  afx_msg void OnUpdateRot2(CCmdUI* pCmdUI);
150  afx_msg void OnUpdateRot3(CCmdUI* pCmdUI);
151  afx_msg void OnUpdateRot4(CCmdUI* pCmdUI);
152  afx_msg void OnUpdateRot5(CCmdUI* pCmdUI);
153  afx_msg void OnControlModeCamera();
154  afx_msg void OnUpdateControlModeCamera(CCmdUI* pCmdUI);
155  afx_msg void OnControlModeShip();
156  afx_msg void OnUpdateControlModeShip(CCmdUI* pCmdUI);
157  afx_msg void OnShowGridPositions();
158  afx_msg void OnUpdateShowGridPositions(CCmdUI* pCmdUI);
159  afx_msg void OnShowCoordinates();
160  afx_msg void OnUpdateShowCoordinates(CCmdUI* pCmdUI);
161  afx_msg void OnSpeed50();
162  afx_msg void OnUpdateSpeed50(CCmdUI* pCmdUI);
163  afx_msg void OnSpeed100();
164  afx_msg void OnUpdateSpeed100(CCmdUI* pCmdUI);
165  afx_msg void OnSelect();
166  afx_msg void OnUpdateSelect(CCmdUI* pCmdUI);
167  afx_msg void OnSelectAndMove();
168  afx_msg void OnUpdateSelectAndMove(CCmdUI* pCmdUI);
169  afx_msg void OnSelectAndRotate();
170  afx_msg void OnUpdateSelectAndRotate(CCmdUI* pCmdUI);
171  afx_msg void OnConstrainX();
172  afx_msg void OnUpdateConstrainX(CCmdUI* pCmdUI);
173  afx_msg void OnConstrainY();
174  afx_msg void OnUpdateConstrainY(CCmdUI* pCmdUI);
175  afx_msg void OnConstrainZ();
176  afx_msg void OnUpdateConstrainZ(CCmdUI* pCmdUI);
177  afx_msg void OnConstrainXz();
178  afx_msg void OnUpdateConstrainXz(CCmdUI* pCmdUI);
179  afx_msg void OnSelectionLock();
180  afx_msg void OnUpdateSelectionLock(CCmdUI* pCmdUI);
181  afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
182  afx_msg void OnDoubleFineGridlines();
183  afx_msg void OnUpdateDoubleFineGridlines(CCmdUI* pCmdUI);
184  afx_msg void OnShowDistances();
185  afx_msg void OnUpdateShowDistances(CCmdUI* pCmdUI);
186  afx_msg void OnUniversalHeading();
187  afx_msg void OnUpdateUniversalHeading(CCmdUI* pCmdUI);
188  afx_msg void OnFlyingControls();
189  afx_msg void OnUpdateFlyingControls(CCmdUI* pCmdUI);
190  afx_msg void OnRotateLocally();
191  afx_msg void OnUpdateRotateLocally(CCmdUI* pCmdUI);
192  afx_msg void OnConstrainXy();
193  afx_msg void OnUpdateConstrainXy(CCmdUI* pCmdUI);
194  afx_msg void OnUpdateConstrainYz(CCmdUI* pCmdUI);
195  afx_msg void OnConstrainYz();
196  afx_msg void OnSelectList();
197  afx_msg void OnZoomExtents();
198  afx_msg void OnZoomSelected();
199  afx_msg void OnUpdateZoomSelected(CCmdUI* pCmdUI);
200  afx_msg void OnFormWing();
201  afx_msg void OnUpdateFormWing(CCmdUI* pCmdUI);
202  afx_msg void OnDisbandWing();
203  afx_msg void OnUpdateDisbandWing(CCmdUI* pCmdUI);
204  afx_msg void OnShowHorizon();
205  afx_msg void OnUpdateShowHorizon(CCmdUI* pCmdUI);
206  afx_msg void OnEditorsWing();
207  afx_msg void OnEditorsPlayer();
208  afx_msg void OnEditorsOrient();
209  afx_msg void OnEditorsEvents();
210  afx_msg void OnUpdateEditorsOrient(CCmdUI* pCmdUI);
211  afx_msg void OnEditorsMessage();
212  afx_msg void OnEditorsStarfield();
213  afx_msg void OnEditorsBgBitmaps();
214  afx_msg void OnEditorsReinforcement();
215  afx_msg void OnErrorChecker();
216  afx_msg void OnEditorsWaypoint();
217  afx_msg void OnViewOutlines();
218  afx_msg void OnUpdateViewOutlines(CCmdUI* pCmdUI);
219  afx_msg void OnUpdateNewShipType(CCmdUI* pCmdUI);
220  afx_msg void OnShowStarfield();
221  afx_msg void OnUpdateShowStarfield(CCmdUI* pCmdUI);
222  afx_msg void OnAsteroidEditor();
223  afx_msg void OnRunFreeSpace();
224  afx_msg void OnEditorCampaign();
225  afx_msg void OnShowShips();
226  afx_msg void OnUpdateShowShips(CCmdUI* pCmdUI);
227  afx_msg void OnShowStarts();
228  afx_msg void OnUpdateShowStarts(CCmdUI* pCmdUI);
229  afx_msg void OnShowIFF0();
230  afx_msg void OnUpdateShowIFF0(CCmdUI* pCmdUI);
231  afx_msg void OnShowIFF1();
232  afx_msg void OnUpdateShowIFF1(CCmdUI* pCmdUI);
233  afx_msg void OnShowIFF2();
234  afx_msg void OnUpdateShowIFF2(CCmdUI* pCmdUI);
235  afx_msg void OnShowIFF3();
236  afx_msg void OnUpdateShowIFF3(CCmdUI* pCmdUI);
237  afx_msg void OnShowIFF4();
238  afx_msg void OnUpdateShowIFF4(CCmdUI* pCmdUI);
239  afx_msg void OnShowIFF5();
240  afx_msg void OnUpdateShowIFF5(CCmdUI* pCmdUI);
241  afx_msg void OnShowIFF6();
242  afx_msg void OnUpdateShowIFF6(CCmdUI* pCmdUI);
243  afx_msg void OnShowIFF7();
244  afx_msg void OnUpdateShowIFF7(CCmdUI* pCmdUI);
245  afx_msg void OnShowIFF8();
246  afx_msg void OnUpdateShowIFF8(CCmdUI* pCmdUI);
247  afx_msg void OnShowIFF9();
248  afx_msg void OnUpdateShowIFF9(CCmdUI* pCmdUI);
249  afx_msg void OnToggleViewpoint();
250  afx_msg void OnRevert();
251  afx_msg void OnUpdateRevert(CCmdUI* pCmdUI);
252  afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
253  afx_msg void OnHideObjects();
254  afx_msg void OnShowHiddenObjects();
255  afx_msg void OnEditUndo();
256  afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
257  afx_msg void OnEditorsBriefing();
258  afx_msg void OnEditorsDebriefing();
259  afx_msg void OnSaveCamera();
260  afx_msg void OnRestoreCamera();
261  afx_msg void OnUpdateRestoreCamera(CCmdUI* pCmdUI);
262  afx_msg void OnShowSexpHelp();
263  afx_msg void OnUpdateShowSexpHelp(CCmdUI* pCmdUI);
264  afx_msg void OnLookatObj();
265  afx_msg void OnUpdateLookatObj(CCmdUI* pCmdUI);
266  afx_msg void OnEditorsAdjustGrid();
267  afx_msg void OnEditorsShieldSys();
268  afx_msg void OnLevelObj();
269  afx_msg void OnAlignObj();
270  afx_msg void OnControlObj();
271  afx_msg void OnNextObj();
272  afx_msg void OnPrevObj();
273  afx_msg void OnEditDeleteWing();
274  afx_msg void OnMarkWing();
275  afx_msg void OnUpdateControlObj(CCmdUI* pCmdUI);
276  afx_msg void OnEditDelete();
277  afx_msg void OnAaGridlines();
278  afx_msg void OnUpdateAaGridlines(CCmdUI* pCmdUI);
279  afx_msg void OnCmdBrief();
280  afx_msg void OnDisableUndo();
281  afx_msg void OnUpdateDisableUndo(CCmdUI* pCmdUI);
282  afx_msg void OnUpdateCmdBrief(CCmdUI* pCmdUI);
283  afx_msg void OnNextSubsys();
284  afx_msg void OnPrevSubsys();
285  afx_msg void OnCancelSubsys();
286  afx_msg void OnDumpStats();
287  afx_msg void OnShowPaths();
288  afx_msg void OnUpdateShowPaths(CCmdUI* pCmdUI);
289  afx_msg void OnShowDockPoints();
290  afx_msg void OnUpdateShowDockPoints(CCmdUI* pCmdUI);
291  afx_msg void OnFormatFs2Open();
292  afx_msg void OnUpdateFormatFs2Open(CCmdUI* pCmdUI);
293  afx_msg void OnFormatFs2OpenComp();
294  afx_msg void OnUpdateFormatFs2OpenComp(CCmdUI* pCmdUI);
295  afx_msg void OnFormatFs2Retail();
296  afx_msg void OnUpdateFormatFs2Retail(CCmdUI* pCmdUI);
297  afx_msg void OnFormatFs1Retail();
298  afx_msg void OnUpdateFormatFs1Retail(CCmdUI* pCmdUI);
299  afx_msg void OnEditorsSetGlobalShipFlags();
300  afx_msg void OnEditorsVoiceManager();
301  afx_msg void OnEditorsFiction();
302  afx_msg void OnDestroy();
303  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
304  afx_msg BOOL OnEraseBkgnd(CDC* pDC);
305  afx_msg void OnViewLighting();
306  afx_msg void OnUpdateViewLighting(CCmdUI* pCmdUI);
307  afx_msg void OnViewFullDetail();
308  afx_msg void OnUpdateViewFullDetail(CCmdUI *pCmdUI);
309  //}}AFX_MSG
310  afx_msg void OnGroup(UINT nID);
311  afx_msg void OnSetGroup(UINT nID);
313  void OnShowIFF(int iff);
314  void OnUpdateShowIFF(int iff, CCmdUI* pCmdUI);
316 // LONG OnMenuPopupShips(CWnd *pWnd, CPoint point);
317 LONG OnMenuPopupShips(UINT wParam, LONG lParam);
318 LONG OnMenuPopupEdit(UINT wParam, LONG lParam);
321 };
323 #ifndef _DEBUG // debug version in FREDView.cpp
325  { return (CFREDDoc*)m_pDocument; }
326 #endif
330 void cancel_drag();
331 char *error_check_initial_orders(ai_goal *goals, int ship, int wing);
332 extern void fred_check_message_personas();
334 extern int Autosave_disabled;
335 extern int Show_sexp_help;
336 extern int Show_ships;
337 extern int Show_starts;
338 extern int physics_speed;
339 extern int physics_rot;
340 extern int viewpoint;
341 extern int view_obj;
342 extern int box_marking; // Are we currently box marking? (i.e. draging out a box to mark)
343 extern int button_down; // Is the left mouse button down and we are handling it?
344 extern int Marked; // number of marked objects
345 extern int Show_compass;
346 extern int Show_ship_models;
347 extern int Show_ship_info;
348 extern int Show_dock_points;
349 extern int Lighting_on;
350 extern int FullDetail;
351 extern int Show_paths_fred;
352 extern int Selection_lock;
353 extern int Cursor_over;
354 extern int Cur_bitmap;
355 extern int Id_select_type_jump_node;
356 extern int Id_select_type_start;
357 extern int Id_select_type_waypoint;
358 extern int Hide_ship_cues, Hide_wing_cues;
359 extern Marking_box marking_box;
363 {
367 };
369 // Goober5000 (currently, FS1 retail not implemented)
370 extern int Format_fs2_open;
371 extern int Format_fs2_retail;
372 extern int Format_fs1_retail;
374 extern CFREDView *Fred_view_wnd;
376 #endif // if #ifndef STAMPER_PROGRAM
afx_msg void OnZoomExtents()
Definition: fredview.cpp:2173
SCP_string sexp
Definition: sexp.cpp:25556
afx_msg void OnUpdateFlyingControls(CCmdUI *pCmdUI)
Definition: fredview.cpp:2042
afx_msg void OnUpdateUniversalHeading(CCmdUI *pCmdUI)
Definition: fredview.cpp:2032
afx_msg void OnUpdateShowSexpHelp(CCmdUI *pCmdUI)
Definition: fredview.cpp:4051
afx_msg void OnUpdateViewWaypoints(CCmdUI *pCmdUI)
Definition: fredview.cpp:500
afx_msg void OnEditorsPlayer()
Definition: fredview.cpp:2331
afx_msg void OnSpeed2()
Definition: fredview.cpp:1689
afx_msg void OnSelectList()
Definition: fredview.cpp:2057
afx_msg void OnEditorsDebriefing()
Definition: fredview.cpp:4007
int fred_check_sexp(int sexp, int type, const char *msg,...)
Definition: fredview.cpp:3348
virtual void OnBeginPrinting(CDC *pDC, CPrintInfo *pInfo)
Definition: fredview.cpp:449
afx_msg void OnDisableUndo()
Definition: fredview.cpp:4386
afx_msg void OnEditorsVoiceManager()
Definition: fredview.cpp:4646
afx_msg void OnShowDistances()
Definition: fredview.cpp:2015
afx_msg void OnDestroy()
Definition: fredview.cpp:4660
afx_msg void OnShowIFF2()
Definition: fredview.cpp:4736
afx_msg void OnUpdateFormatFs2Open(CCmdUI *pCmdUI)
Definition: fredview.cpp:4589
char * error_check_initial_orders(ai_goal *goals, int ship, int wing)
Definition: fredview.cpp:3397
afx_msg void OnUpdateFormatFs2OpenComp(CCmdUI *pCmdUI)
Definition: fredview.cpp:4604
afx_msg void OnShowStarts()
Definition: fredview.cpp:3881
afx_msg void OnEditorsReinforcement()
Definition: fredview.cpp:2405
afx_msg void OnUpdateChangeViewpointFollow(CCmdUI *pCmdUI)
Definition: fredview.cpp:1664
Definition: fredview.h:362
int Cur_bitmap
Definition: fredview.cpp:109
afx_msg void OnUpdateShowHorizon(CCmdUI *pCmdUI)
Definition: fredview.cpp:2310
afx_msg void OnEditorCampaign()
Definition: fredview.cpp:3855
afx_msg void OnEditorsShips()
Definition: fredview.cpp:1136
afx_msg void OnRot3()
Definition: fredview.cpp:1743
afx_msg void OnUpdateRestoreCamera(CCmdUI *pCmdUI)
Definition: fredview.cpp:4027
afx_msg void OnUpdateCmdBrief(CCmdUI *pCmdUI)
Definition: fredview.cpp:4396
afx_msg void OnUpdateFormatFs2Retail(CCmdUI *pCmdUI)
Definition: fredview.cpp:4619
virtual void OnDraw(CDC *pDC)
Definition: fredview.cpp:430
afx_msg void OnSpeed8()
Definition: fredview.cpp:1707
afx_msg void OnGroup(UINT nID)
Definition: fredview.cpp:4078
int Format_fs1_retail
Definition: fredview.cpp:122
afx_msg void OnUpdateSpeed50(CCmdUI *pCmdUI)
Definition: fredview.cpp:1791
afx_msg void OnUpdateSelectAndMove(CCmdUI *pCmdUI)
Definition: fredview.cpp:1885
afx_msg void OnSelect()
Definition: fredview.cpp:1870
afx_msg void OnSaveCamera()
Definition: fredview.cpp:4014
afx_msg void OnRevert()
Definition: fredview.cpp:3918
afx_msg void OnViewOutlines()
Definition: fredview.cpp:3736
int Show_ship_info
Definition: fredview.cpp:90
int error(const char *msg,...)
Definition: fredview.cpp:3303
int Id_select_type_waypoint
Definition: fredview.cpp:112
afx_msg void OnShowIFF7()
Definition: fredview.cpp:4786
afx_msg void OnControlModeCamera()
Definition: fredview.cpp:1826
afx_msg void OnUpdateShowDistances(CCmdUI *pCmdUI)
Definition: fredview.cpp:2022
afx_msg void OnConstrainXz()
Definition: fredview.cpp:1936
afx_msg void OnConstrainXy()
Definition: fredview.cpp:1948
afx_msg void OnSetFocus(CWnd *pOldWnd)
Definition: fredview.cpp:1174
int Format_fs2_retail
Definition: fredview.cpp:121
Definition: pstypes.h:88
afx_msg void OnShowPaths()
Definition: fredview.cpp:4548
afx_msg void OnUpdateFormWing(CCmdUI *pCmdUI)
Definition: fredview.cpp:2230
afx_msg void OnHideObjects()
Definition: fredview.cpp:3948
int FullDetail
Definition: fredview.cpp:96
int button_down
Definition: fredview.cpp:100
afx_msg BOOL OnEraseBkgnd(CDC *pDC)
Definition: fredview.cpp:4683
afx_msg void OnErrorChecker()
Definition: fredview.cpp:2412
CFREDView * Fred_view_wnd
Definition: fredview.cpp:138
int Format_fs2_open
Definition: fredview.cpp:120
afx_msg void OnShowGridPositions()
Definition: fredview.cpp:1846
afx_msg void OnUpdateControlModeCamera(CCmdUI *pCmdUI)
Definition: fredview.cpp:1831
afx_msg void OnEditorsFiction()
Definition: fredview.cpp:4653
afx_msg void OnUpdateConstrainY(CCmdUI *pCmdUI)
Definition: fredview.cpp:1919
afx_msg void OnSpeed100()
Definition: fredview.cpp:1725
int viewpoint
Definition: fredview.cpp:98
static CFREDView * GetView()
Definition: fredview.cpp:1520
Definition: globals.h:83
afx_msg void OnDoubleFineGridlines()
Definition: fredview.cpp:2002
virtual void OnInitialUpdate()
Definition: fredview.cpp:4125
afx_msg void OnShowIFF0()
Definition: fredview.cpp:4716
Definition: msacm.h:1064
afx_msg void OnShowShips()
Definition: fredview.cpp:3869
afx_msg void OnUpdateSpeed3(CCmdUI *pCmdUI)
Definition: fredview.cpp:1771
afx_msg void OnUpdateEditPopupShowCompass(CCmdUI *pCmdUI)
Definition: fredview.cpp:1514
int Selection_lock
Definition: fredview.cpp:97
Definition: ship.h:1516
afx_msg void OnRunFreeSpace()
Definition: fredview.cpp:3787
afx_msg void OnUpdateRevert(CCmdUI *pCmdUI)
Definition: fredview.cpp:3927
afx_msg void OnRotateLocally()
Definition: fredview.cpp:2047
afx_msg void OnToggleViewpoint()
Definition: fredview.cpp:3905
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: Glext.h:5156
Definition: msacm.h:1064
unsigned int UINT
Definition: config.h:82
int Id_select_type_jump_node
Definition: fredview.cpp:110
afx_msg void OnUpdateViewOutlines(CCmdUI *pCmdUI)
Definition: fredview.cpp:3743
afx_msg void OnEditDelete()
Definition: fredview.cpp:4322
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)
Definition: fredview.cpp:900
void cancel_drag()
Definition: fredview.cpp:837
afx_msg void OnUpdateLookatObj(CCmdUI *pCmdUI)
Definition: fredview.cpp:4073
int Show_paths_fred
Definition: fredview.cpp:94
afx_msg void OnShowHiddenObjects()
Definition: fredview.cpp:3963
afx_msg void OnUpdateShowStarts(CCmdUI *pCmdUI)
Definition: fredview.cpp:3888
afx_msg void OnUpdateRot3(CCmdUI *pCmdUI)
Definition: fredview.cpp:1811
GLenum type
Definition: Gl.h:1492
afx_msg void OnShowIFF3()
Definition: fredview.cpp:4746
afx_msg void OnRot5()
Definition: fredview.cpp:1755
ship_subsys * cur_subsys
Definition: fredview.h:28
afx_msg void OnViewFullDetail()
Definition: fredview.cpp:4700
afx_msg void OnConstrainYz()
Definition: fredview.cpp:1960
afx_msg void OnUpdateViewGrid(CCmdUI *pCmdUI)
Definition: fredview.cpp:489
afx_msg void OnSpeed3()
Definition: fredview.cpp:1695
LONG OnMenuPopupShips(UINT wParam, LONG lParam)
Definition: fredview.cpp:1344
void OnUpdateShowIFF(int iff, CCmdUI *pCmdUI)
Definition: fredview.cpp:3900
LONG OnGoodbye(UINT wParam, LONG lParam)
Definition: fredview.cpp:1128
afx_msg void OnEditorsSetGlobalShipFlags()
Definition: fredview.cpp:4639
afx_msg void OnUpdateShowIFF8(CCmdUI *pCmdUI)
Definition: fredview.cpp:4801
void fred_check_message_personas()
Definition: fredview.cpp:3645
afx_msg void OnFlyingControls()
Definition: fredview.cpp:2037
afx_msg void OnUpdateAaGridlines(CCmdUI *pCmdUI)
Definition: fredview.cpp:4372
int Cursor_over
Definition: fredview.cpp:103
afx_msg void OnUpdateSpeed5(CCmdUI *pCmdUI)
Definition: fredview.cpp:1776
afx_msg void OnSpeed5()
Definition: fredview.cpp:1701
afx_msg void OnPrevSubsys()
Definition: fredview.cpp:4523
afx_msg void OnMouseMove(UINT nFlags, CPoint point)
Definition: fredview.cpp:989
afx_msg void OnEditorsGoals()
Definition: fredview.cpp:1676
afx_msg void OnSelectionLock()
Definition: fredview.cpp:1972
afx_msg void OnUpdateFormatFs1Retail(CCmdUI *pCmdUI)
Definition: fredview.cpp:4634
afx_msg void OnAaGridlines()
Definition: fredview.cpp:4367
afx_msg void OnMarkWing()
Definition: fredview.cpp:4347
afx_msg void OnUpdateConstrainXz(CCmdUI *pCmdUI)
Definition: fredview.cpp:1943
virtual BOOL OnPreparePrinting(CPrintInfo *pInfo)
Definition: fredview.cpp:443
afx_msg void OnUpdateDisbandWing(CCmdUI *pCmdUI)
Definition: fredview.cpp:2298
afx_msg void OnNextSubsys()
Definition: fredview.cpp:4482
afx_msg void OnShowHorizon()
Definition: fredview.cpp:2303
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)
Definition: fredview.cpp:4670
afx_msg void OnUpdateNewShipType(CCmdUI *pCmdUI)
Definition: fredview.cpp:3748
virtual BOOL OnCmdMsg(UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
Definition: fredview.cpp:1617
afx_msg void OnUpdateShowStarfield(CCmdUI *pCmdUI)
Definition: fredview.cpp:3775
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
Definition: fredview.cpp:1152
afx_msg void OnUpdateEditPopupShowShipIcons(CCmdUI *pCmdUI)
Definition: fredview.cpp:1490
afx_msg void OnUpdateShowIFF3(CCmdUI *pCmdUI)
Definition: fredview.cpp:4751
afx_msg void OnEditorsWaypoint()
Definition: fredview.cpp:3381
afx_msg void OnSetGroup(UINT nID)
Definition: fredview.cpp:4097
afx_msg void OnChangeViewpointFollow()
Definition: fredview.cpp:1669
int Show_starts
Definition: fredview.cpp:89
void OnShowIFF(int iff)
Definition: fredview.cpp:3893
afx_msg void OnUpdateEditPopupShowShipModels(CCmdUI *pCmdUI)
Definition: fredview.cpp:1502
afx_msg void OnUpdateShowPaths(CCmdUI *pCmdUI)
Definition: fredview.cpp:4555
afx_msg void OnNextObj()
Definition: fredview.cpp:4205
afx_msg void OnRot2()
Definition: fredview.cpp:1737
afx_msg void OnRot4()
Definition: fredview.cpp:1749
afx_msg void OnShowCoordinates()
Definition: fredview.cpp:1858
afx_msg void OnShowIFF5()
Definition: fredview.cpp:4766
virtual void OnEndPrinting(CDC *pDC, CPrintInfo *pInfo)
Definition: fredview.cpp:454
afx_msg void OnUpdateShowCoordinates(CCmdUI *pCmdUI)
Definition: fredview.cpp:1865
int global_error_check()
Definition: fredview.cpp:2427
afx_msg void OnMiscStatistics()
Definition: fredview.cpp:1640
afx_msg void OnUpdateSelect(CCmdUI *pCmdUI)
Definition: fredview.cpp:1875
afx_msg void OnUpdateShowIFF1(CCmdUI *pCmdUI)
Definition: fredview.cpp:4731
afx_msg void OnUpdateSelectionLock(CCmdUI *pCmdUI)
Definition: fredview.cpp:1977
Definition: ship.h:534
afx_msg void OnShowIFF8()
Definition: fredview.cpp:4796
struct subsys_to_render subsys_to_render
afx_msg void OnUpdateControlObj(CCmdUI *pCmdUI)
Definition: fredview.cpp:4362
afx_msg void OnEditPopupShowShipIcons()
Definition: fredview.cpp:1483
CFREDDoc * GetDocument()
Definition: fredview.h:324
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point)
Definition: fredview.cpp:1982
afx_msg void OnCmdBrief()
Definition: fredview.cpp:4378
afx_msg void OnSpeed50()
Definition: fredview.cpp:1719
afx_msg void OnUpdateRot5(CCmdUI *pCmdUI)
Definition: fredview.cpp:1821
afx_msg void OnEditUndo()
Definition: fredview.cpp:3976
afx_msg void OnShowIFF4()
Definition: fredview.cpp:4756
afx_msg void OnPrevObj()
Definition: fredview.cpp:4258
virtual BOOL PreCreateWindow(CREATESTRUCT &cs)
Definition: fredview.cpp:409
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
Definition: fredview.cpp:1163
afx_msg void OnUniversalHeading()
Definition: fredview.cpp:2027
afx_msg void OnConstrainY()
Definition: fredview.cpp:1912
afx_msg void OnUpdateSpeed2(CCmdUI *pCmdUI)
Definition: fredview.cpp:1766
afx_msg void OnLevelObj()
Definition: fredview.cpp:4188
afx_msg void OnUpdateConstrainX(CCmdUI *pCmdUI)
Definition: fredview.cpp:1907
afx_msg void OnRestoreCamera()
Definition: fredview.cpp:4020
long LONG
Definition: config.h:95
afx_msg void OnConstrainX()
Definition: fredview.cpp:1900
afx_msg void OnUpdateShowIFF9(CCmdUI *pCmdUI)
Definition: fredview.cpp:4811
afx_msg void OnShowIFF1()
Definition: fredview.cpp:4726
afx_msg void OnShowDockPoints()
Definition: fredview.cpp:4560
int physics_speed
Definition: fredview.cpp:105
int BOOL
Definition: config.h:80
object * ship_obj
Definition: fredview.h:27
afx_msg void OnSpeed10()
Definition: fredview.cpp:1713
afx_msg void OnShowStarfield()
Definition: fredview.cpp:3768
afx_msg void OnUpdateShowIFF7(CCmdUI *pCmdUI)
Definition: fredview.cpp:4791
int box_marking
Definition: fredview.cpp:107
afx_msg void OnZoomSelected()
Definition: fredview.cpp:2178
afx_msg void OnLookatObj()
Definition: fredview.cpp:4056
afx_msg void OnSize(UINT nType, int cx, int cy)
Definition: fredview.cpp:1240
afx_msg void OnDumpStats()
Definition: fredview.cpp:4572
afx_msg void OnEditorsWing()
Definition: fredview.cpp:2315
GLubyte GLubyte GLubyte GLubyte w
Definition: Glext.h:5679
afx_msg void OnUpdateShowIFF0(CCmdUI *pCmdUI)
Definition: fredview.cpp:4721
void cycle_constraint()
Definition: fredview.cpp:2153
int Lighting_on
Definition: fredview.cpp:95
int internal_error(const char *msg,...)
Definition: fredview.cpp:3320
Marking_box marking_box
Definition: fredview.cpp:116
afx_msg void OnShowIFF6()
Definition: fredview.cpp:4776
int Show_compass
Definition: fredview.cpp:92
afx_msg void OnUpdateRot4(CCmdUI *pCmdUI)
Definition: fredview.cpp:1816
afx_msg void OnUpdateConstrainYz(CCmdUI *pCmdUI)
Definition: fredview.cpp:1967
afx_msg void OnUpdateZoomSelected(CCmdUI *pCmdUI)
Definition: fredview.cpp:2190
afx_msg void OnShowSexpHelp()
Definition: fredview.cpp:4032
int view_obj
Definition: fredview.cpp:99
afx_msg void OnEditPopupShowCompass()
Definition: fredview.cpp:1507
afx_msg void OnViewLighting()
Definition: fredview.cpp:4689
afx_msg void OnUpdateShowIFF5(CCmdUI *pCmdUI)
Definition: fredview.cpp:4771
afx_msg void OnUpdateControlModeShip(CCmdUI *pCmdUI)
Definition: fredview.cpp:1841
afx_msg void OnViewWaypoints()
Definition: fredview.cpp:494
int Show_ship_models
Definition: fredview.cpp:91
afx_msg void OnUpdateShowDockPoints(CCmdUI *pCmdUI)
Definition: fredview.cpp:4567
afx_msg void OnUpdateSelectAndRotate(CCmdUI *pCmdUI)
Definition: fredview.cpp:1895
afx_msg void OnEditorsShieldSys()
Definition: fredview.cpp:4181
int Show_sexp_help
Definition: fredview.cpp:87
int Id_select_type_start
Definition: fredview.cpp:111
LONG OnMenuPopupEdit(UINT wParam, LONG lParam)
Definition: fredview.cpp:1360
int Hide_ship_cues
Definition: fredview.cpp:113
afx_msg void OnUpdateSpeed8(CCmdUI *pCmdUI)
Definition: fredview.cpp:1781
afx_msg void OnUpdateRotateLocally(CCmdUI *pCmdUI)
Definition: fredview.cpp:2052
struct Marking_box Marking_box
afx_msg void OnKillFocus(CWnd *pNewWnd)
Definition: fredview.cpp:1230
afx_msg void OnUpdateSpeed10(CCmdUI *pCmdUI)
Definition: fredview.cpp:1786
afx_msg void OnEditPopupShowShipModels()
Definition: fredview.cpp:1495
afx_msg void OnUpdateViewFullDetail(CCmdUI *pCmdUI)
Definition: fredview.cpp:4705
afx_msg void OnCancelSubsys()
Definition: fredview.cpp:4540
afx_msg void OnUpdateShowGridPositions(CCmdUI *pCmdUI)
Definition: fredview.cpp:1853
afx_msg void OnEditorsOrient()
Definition: fredview.cpp:2338
afx_msg void OnDisbandWing()
Definition: fredview.cpp:2288
int physics_rot
Definition: fredview.cpp:106
afx_msg void OnUpdateShowIFF6(CCmdUI *pCmdUI)
Definition: fredview.cpp:4781
afx_msg void OnUpdateRot1(CCmdUI *pCmdUI)
Definition: fredview.cpp:1801
afx_msg void OnViewGrid()
Definition: fredview.cpp:483
afx_msg void OnEditorsAdjustGrid()
Definition: fredview.cpp:4173
afx_msg void OnEditorsEvents()
Definition: fredview.cpp:2345
afx_msg void OnRot1()
Definition: fredview.cpp:1731
afx_msg void OnMiscstuffShowshipsasicons()
Definition: fredview.cpp:1378
object_orient_pos rotation_backup[MAX_OBJECTS]
Definition: fredview.cpp:117
afx_msg void OnSelectAndMove()
Definition: fredview.cpp:1880
Definition: grid.h:15
virtual ~CFREDView()
Definition: fredview.cpp:394
afx_msg void OnFormatFs2Retail()
Definition: fredview.cpp:4609
afx_msg void OnShowIFF9()
Definition: fredview.cpp:4806
int global_error_check_mixed_player_wing(int w)
Definition: fredview.cpp:3039
afx_msg void OnEditDeleteWing()
Definition: fredview.cpp:4332
afx_msg void OnChangeViewpointExternal()
Definition: fredview.cpp:1658
afx_msg void OnUpdateShowShips(CCmdUI *pCmdUI)
Definition: fredview.cpp:3876
Definition: ai.h:134
afx_msg void OnUpdateChangeViewpointExternal(CCmdUI *pCmdUI)
Definition: fredview.cpp:1653
afx_msg void OnUpdateConstrainZ(CCmdUI *pCmdUI)
Definition: fredview.cpp:1931
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
Definition: fredview.cpp:1032
int Autosave_disabled
Definition: fredview.cpp:86
afx_msg void OnFormatFs2Open()
Definition: fredview.cpp:4579
afx_msg void OnUpdateEditorsOrient(CCmdUI *pCmdUI)
Definition: fredview.cpp:2361
afx_msg void OnEditorsBriefing()
Definition: fredview.cpp:3995
afx_msg void OnConstrainZ()
Definition: fredview.cpp:1924
afx_msg BOOL OnSetCursor(CWnd *pWnd, UINT nHitTest, UINT message)
Definition: fredview.cpp:3932
afx_msg void OnUpdateRot2(CCmdUI *pCmdUI)
Definition: fredview.cpp:1806
int Marked
Definition: fredview.cpp:101
afx_msg void OnSpeed1()
Definition: fredview.cpp:1683
afx_msg void OnUpdateDoubleFineGridlines(CCmdUI *pCmdUI)
Definition: fredview.cpp:2010
afx_msg void OnAlignObj()
Definition: fredview.cpp:4194
afx_msg void OnEditorsBgBitmaps()
Definition: fredview.cpp:2393
int Show_ships
Definition: fredview.cpp:88
afx_msg void OnFormatFs1Retail()
Definition: fredview.cpp:4624
afx_msg void OnAsteroidEditor()
Definition: fredview.cpp:3780
afx_msg void OnUpdateEditUndo(CCmdUI *pCmdUI)
Definition: fredview.cpp:3990
void place_background_bitmap(vec3d v)
Definition: fredview.cpp:2389
afx_msg void OnFormatFs2OpenComp()
Definition: fredview.cpp:4594
afx_msg void OnContextMenu(CWnd *pWnd, CPoint point)
Definition: fredview.cpp:1388
afx_msg void OnUpdateShowIFF2(CCmdUI *pCmdUI)
Definition: fredview.cpp:4741
afx_msg void OnUpdateShowIFF4(CCmdUI *pCmdUI)
Definition: fredview.cpp:4761
afx_msg void OnUpdateConstrainXy(CCmdUI *pCmdUI)
Definition: fredview.cpp:1955
afx_msg void OnUpdateViewLighting(CCmdUI *pCmdUI)
Definition: fredview.cpp:4695
const GLdouble * v
Definition: Glext.h:5322
afx_msg void OnEditorsMessage()
Definition: fredview.cpp:2366
afx_msg void OnUpdateSpeed100(CCmdUI *pCmdUI)
Definition: fredview.cpp:1796
afx_msg void OnEditorsStarfield()
Definition: fredview.cpp:2382
afx_msg void OnControlObj()
Definition: fredview.cpp:4200
int Show_dock_points
Definition: fredview.cpp:93
int Hide_wing_cues
Definition: fredview.cpp:113
afx_msg void OnUpdateSpeed1(CCmdUI *pCmdUI)
Definition: fredview.cpp:1761
afx_msg void OnUpdateDisableUndo(CCmdUI *pCmdUI)
Definition: fredview.cpp:4391
virtual BOOL DestroyWindow()
Definition: fredview.cpp:4710
afx_msg void OnControlModeShip()
Definition: fredview.cpp:1836
afx_msg void OnFormWing()
Definition: fredview.cpp:2195
afx_msg void OnSelectAndRotate()
Definition: fredview.cpp:1890