1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code ("Doom 3 Source Code").
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code.  If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code.  If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 
29 #if !defined(AFX_MAINFRM_H__330BBF0A_731C_11D1_B539_00AA00A410FC__INCLUDED_)
30 #define AFX_MAINFRM_H__330BBF0A_731C_11D1_B539_00AA00A410FC__INCLUDED_
31 
32 #if _MSC_VER >= 1000
33 #pragma once
34 #endif // _MSC_VER >= 1000
35 
36 #include "XYWnd.h"
37 #include "NewTexWnd.h"
38 #include "ZWnd.h"
39 #include "CamWnd.h"
40 #include "TextureBar.h"
41 
42 
43 const int RAD_SHIFT =   0x01;
44 const int RAD_ALT =     0x02;
45 const int RAD_CONTROL = 0x04;
46 const int RAD_PRESS   = 0x08;
47 
48 struct SCommandInfo
49 {
50 	char* m_strCommand;
51 	unsigned int   m_nKey;
52 	unsigned int   m_nModifiers;
53 	unsigned int m_nCommand;
54 };
55 
56 struct SKeyInfo
57 {
58 	char* m_strName;
59 	unsigned int m_nVKKey;
60 };
61 
62 
63 
64 
65 class CMainFrame : public CFrameWnd
66 {
67 	DECLARE_DYNAMIC(CMainFrame)
68 public:
69 	CMainFrame();
70 	void HandleKey(UINT nChar, UINT nRepCnt, UINT nFlags, bool bDown = true)
71 	{
72 		if (bDown)
73 			OnKeyDown(nChar, nRepCnt, nFlags);
74 		else
75 			OnKeyUp(nChar, nRepCnt, nFlags);
76 	};
77 
78 	// Attributes
79 public:
80 
81 	// Operations
82 public:
83 
84 	// Overrides
85 	// ClassWizard generated virtual function overrides
86 	//{{AFX_VIRTUAL(CMainFrame)
87 public:
88 	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
89 	virtual BOOL PreTranslateMessage(MSG* pMsg);
90 protected:
91 	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
92 	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
93 	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
94 	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
95 	//}}AFX_VIRTUAL
96 
97 	// Implementation
98 public:
99 	void UpdatePatchToolbarButtons();
100 	void NudgeSelection(int nDirection, float fAmount);
101 	void UpdateTextureBar();
102 	void SetButtonMenuStates();
103 	void SetTexValStatus();
104 	void SetGridStatus();
105 	void RoutineProcessing();
106 	CXYWnd* ActiveXY();
107 	void UpdateWindows(int nBits);
108 	void SetStatusText(int nPane, const char* pText);
109 	void UpdateStatusText();
110 	void SetWindowStyle(int nStyle);
GetNurbMode()111 	bool GetNurbMode() {
112 		return nurbMode;
113 	}
GetNurb()114 	idCurve_NURBS<idVec2> *GetNurb() {
115 		return &nurb;
116 	}
117 	void OnPrecisionCursorCycle();
118 
119 	virtual ~CMainFrame();
GetXYWnd()120 	CXYWnd* GetXYWnd() {return m_pXYWnd;};
GetXZWnd()121 	CXYWnd* GetXZWnd() {return m_pXZWnd;};
GetYZWnd()122 	CXYWnd* GetYZWnd() {return m_pYZWnd;};
GetCamera()123 	CCamWnd* GetCamera() {return m_pCamWnd;};
GetZWnd()124 	CZWnd* GetZWnd()	 {return m_pZWnd;};
125 
SetActiveXY(CXYWnd * p)126 	void SetActiveXY(CXYWnd* p)
127 	{
128 		if (m_pActiveXY)
129 			m_pActiveXY->SetActive(false);
130 		m_pActiveXY = p;
131 
132 		if (m_pActiveXY)
133 			m_pActiveXY->SetActive(true);
134 
135 	};
136 
137 #ifdef _DEBUG
138 	virtual void AssertValid() const;
139 	virtual void Dump(CDumpContext& dc) const;
140 #endif
141 
142 protected:  // control bar embedded members
143 	CStatusBar  m_wndStatusBar;
144 	CToolBar m_wndToolBar;
145 	CTextureBar m_wndTextureBar;
146 	CSplitterWnd m_wndSplit;
147 	CSplitterWnd m_wndSplit2;
148 	CSplitterWnd m_wndSplit3;
149 	CXYWnd* m_pXYWnd;
150 	CXYWnd* m_pYZWnd;
151 	CXYWnd* m_pXZWnd;
152 	CCamWnd* m_pCamWnd;
153 	CZWnd* m_pZWnd;
154 	CString m_strStatus[15];
155 	CXYWnd* m_pActiveXY;
156 	bool m_bCamPreview;
157 	bool busy;
158 	bool nurbMode;
159 	idCurve_NURBS<idVec2> nurb;
160 	// Generated message map functions
161 protected:
162 	bool m_bDoLoop;
163 	void CreateQEChildren();
164 	void LoadCommandMap();
165 	void SaveCommandMap();
166 	void ShowMenuItemKeyBindings(CMenu *pMenu);
167 	void SetEntityCheck();
168 	void SetGridChecks(int nID);
169 public:
170 	void Nudge(int nDim, float fNudge);
SetBusy(bool b)171 	void SetBusy(bool b) {
172 		busy = b;
173 	}
174 
175 
176 	// these are public so i can easily reflect messages
177 	// from child windows..
178 	//{{AFX_MSG(CMainFrame)
179 	afx_msg void OnBSPStatus(UINT wParam, long lParam);
180 	afx_msg void OnBSPDone(UINT wParam, long lParam);
181 	afx_msg void OnParentNotify(UINT message, LPARAM lParam);
182 	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
183 	afx_msg void OnTimer(UINT nIDEvent);
184 	afx_msg void OnDestroy();
185 	afx_msg void OnClose();
186 	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
187 	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
188 	afx_msg void OnSize(UINT nType, int cx, int cy);
189 	afx_msg void ToggleCamera();
190 	afx_msg void OnFileClose();
191 	afx_msg void OnFileExit();
192 	afx_msg void OnFileLoadproject();
193 	afx_msg void OnFileNew();
194 	afx_msg void OnFileOpen();
195 	afx_msg void OnFilePointfile();
196 	afx_msg void OnFilePrint();
197 	afx_msg void OnFilePrintPreview();
198 	afx_msg void OnFileSave();
199 	afx_msg void OnFileSaveas();
200 	afx_msg void OnFileSaveCopy();
201 
202 	/* Begin SS2 Changes */
203 	afx_msg void OnSetViewTop();
204 	afx_msg void OnSetViewSide();
205 	afx_msg void OnSetViewFront();
206 	/* end SS2 Changes */
207 
208 	afx_msg void OnViewShowModels();
209 	afx_msg void OnView100();
210 	afx_msg void OnViewCenter();
211 	afx_msg void OnViewConsole();
212 	afx_msg void OnViewDownfloor();
213 	afx_msg void OnViewEntity();
214 	afx_msg void OnViewMediaBrowser();
215 	afx_msg void OnViewFront();
216 	afx_msg void OnViewShowblocks();
217 	afx_msg void OnViewShowclip();
218 	afx_msg void OnViewShowTriggers();
219 	afx_msg void OnViewShowcoordinates();
220 	afx_msg void OnViewShowent();
221 	afx_msg void OnViewShowlights();
222 	afx_msg void OnViewShownames();
223 	afx_msg void OnViewShowpath();
224 	afx_msg void OnViewShowCombatNodes();
225 	afx_msg void OnViewShowwater();
226 	afx_msg void OnViewShowworld();
227 	afx_msg void OnViewTexture();
228 	afx_msg void OnViewUpfloor();
229 	afx_msg void OnViewXy();
230 	afx_msg void OnViewZ100();
231 	afx_msg void OnViewZoomin();
232 	afx_msg void OnViewZoomout();
233 	afx_msg void OnViewZzoomin();
234 	afx_msg void OnViewZzoomout();
235 	afx_msg void OnViewSide();
236 	afx_msg void OnTexturesShowinuse();
237 	afx_msg void OnTexturesInspector();
238 	afx_msg void OnMiscFindbrush();
239 	afx_msg void OnMiscGamma();
240 	afx_msg void OnMiscNextleakspot();
241 	afx_msg void OnMiscPreviousleakspot();
242 	afx_msg void OnMiscPrintxy();
243 	afx_msg void OnMiscSelectentitycolor();
244 	afx_msg void OnMiscFindOrReplaceEntity();
245 	afx_msg void OnMiscFindNextEntity();
246 	afx_msg void OnMiscSetViewPos();
247 	afx_msg void OnTexturebk();
248 	afx_msg void OnColorsMajor();
249 	afx_msg void OnColorsMinor();
250 	afx_msg void OnColorsXybk();
251 	afx_msg void OnBrush3sided();
252 	afx_msg void OnBrush4sided();
253 	afx_msg void OnBrush5sided();
254 	afx_msg void OnBrush6sided();
255 	afx_msg void OnBrush7sided();
256 	afx_msg void OnBrush8sided();
257 	afx_msg void OnBrush9sided();
258 	afx_msg void OnBrushArbitrarysided();
259 	afx_msg void OnBrushFlipx();
260 	afx_msg void OnBrushFlipy();
261 	afx_msg void OnBrushFlipz();
262 	afx_msg void OnBrushRotatex();
263 	afx_msg void OnBrushRotatey();
264 	afx_msg void OnBrushRotatez();
265 	afx_msg void OnRegionOff();
266 	afx_msg void OnRegionSetbrush();
267 	afx_msg void OnRegionSetselection();
268 	afx_msg void OnRegionSettallbrush();
269 	afx_msg void OnRegionSetxy();
270 	afx_msg void OnSelectionArbitraryrotation();
271 	afx_msg void OnSelectionClone();
272 	afx_msg void OnSelectionConnect();
273 	afx_msg void OnSelectionCsgsubtract();
274 	afx_msg void OnSelectionCsgmerge();
275 	afx_msg void OnSelectionDelete();
276 	afx_msg void OnSelectionDeselect();
277 	afx_msg void OnSelectionDragedges();
278 	afx_msg void OnSelectionDragvertecies();
279 	afx_msg void OnSelectionCenterOrigin();
280 	afx_msg void OnSelectionMakehollow();
281 	afx_msg void OnSelectionSelectcompletetall();
282 	afx_msg void OnSelectionSelectinside();
283 	afx_msg void OnSelectionSelectpartialtall();
284 	afx_msg void OnSelectionSelecttouching();
285 	afx_msg void OnSelectionUngroupentity();
286 	afx_msg	void OnSelectionWireFrameOn();
287 	afx_msg	void OnSelectionWireFrameOff();
288 	afx_msg void OnSelectionVisibleOn();
289 	afx_msg void OnSelectionVisibleOff();
290 	afx_msg void OnAutocaulk();
291 	afx_msg void OnUpdateAutocaulk(CCmdUI* pCmdUI);
292 
293 	afx_msg void OnTexturesPopup();
294 	afx_msg void OnSplinesPopup();
295 	afx_msg void OnSplinesEditPoints();
296 	afx_msg void OnSplinesAddPoints();
297 	afx_msg void OnSplinesDeletePoint();
298 	afx_msg void OnSplinesInsertPoint();
299 	afx_msg void OnPopupSelection();
300 	afx_msg void OnViewChange();
301 	afx_msg void OnViewCameraupdate();
302 	afx_msg void OnUpdateViewCameraupdate(CCmdUI* pCmdUI);
303 	afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
304 	afx_msg void OnHelpAbout();
305 	afx_msg void OnViewClipper();
306 	afx_msg void OnCameraAngledown();
307 	afx_msg void OnCameraAngleup();
308 	afx_msg void OnCameraBack();
309 	afx_msg void OnCameraDown();
310 	afx_msg void OnCameraForward();
311 	afx_msg void OnCameraLeft();
312 	afx_msg void OnCameraRight();
313 	afx_msg void OnCameraStrafeleft();
314 	afx_msg void OnCameraStraferight();
315 	afx_msg void OnCameraUp();
316 	afx_msg void OnGridToggle();
317 	afx_msg void OnPrefs();
318 	afx_msg void OnToggleToolbar();
319 	afx_msg void OnToggleTextureBar();
320 	afx_msg void OnTogglecamera();
321 	afx_msg void OnToggleview();
322 	afx_msg void OnTogglez();
323 	afx_msg void OnToggleLock();
324 	afx_msg void OnEditMapinfo();
325 	afx_msg void OnEditEntityinfo();
326 	afx_msg void OnViewNextview();
327 	afx_msg void OnHelpCommandlist();
328 	afx_msg void OnFileNewproject();
329 	afx_msg void OnFlipClip();
330 	afx_msg void OnClipSelected();
331 	afx_msg void OnSplitSelected();
332 	afx_msg void OnToggleviewXz();
333 	afx_msg void OnToggleviewYz();
334 	afx_msg void OnColorsBrush();
335 	afx_msg void OnColorsClipper();
336 	afx_msg void OnColorsGridtext();
337 	afx_msg void OnColorsSelectedbrush();
338 	afx_msg void OnColorsGridblock();
339 	afx_msg void OnColorsViewname();
340 	afx_msg void OnColorSetoriginal();
341 	afx_msg void OnColorSetqer();
342 	afx_msg void OnColorSetblack();
343 	afx_msg void OnColorSetSuperMal();
344 	afx_msg void OnColorSetMax();
345 	afx_msg void OnSnaptogrid();
346 	afx_msg void OnSelectScale();
347 	afx_msg void OnSelectMouserotate();
348 	afx_msg void OnEditCopybrush();
349 	afx_msg void OnEditPastebrush();
350 	afx_msg void OnEditUndo();
351 	afx_msg void OnEditRedo();
352 	afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
353 	afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);
354 	afx_msg void OnSelectionInvert();
355 	afx_msg void OnSelectionTextureDec();
356 	afx_msg void OnSelectionTextureFit();
357 	afx_msg void OnSelectionTextureInc();
358 	afx_msg void OnSelectionTextureRotateclock();
359 	afx_msg void OnSelectionTextureRotatecounter();
360 	afx_msg void OnSelectionTextureScaledown();
361 	afx_msg void OnSelectionTextureScaleup();
362 	afx_msg void OnSelectionTextureShiftdown();
363 	afx_msg void OnSelectionTextureShiftleft();
364 	afx_msg void OnSelectionTextureShiftright();
365 	afx_msg void OnSelectionTextureShiftup();
366 	afx_msg void OnGridNext();
367 	afx_msg void OnGridPrev();
368 	afx_msg void OnSelectionTextureScaleLeft();
369 	afx_msg void OnSelectionTextureScaleRight();
370 	afx_msg void OnTextureReplaceall();
371 	afx_msg void OnScalelockx();
372 	afx_msg void OnScalelocky();
373 	afx_msg void OnScalelockz();
374 	afx_msg void OnSelectMousescale();
375 	afx_msg void OnViewCubicclipping();
376 	afx_msg void OnFileImport();
377 	afx_msg void OnFileProjectsettings();
378 	afx_msg void OnUpdateFileImport(CCmdUI* pCmdUI);
379 	afx_msg void OnViewCubein();
380 	afx_msg void OnViewCubeout();
381 	afx_msg void OnFileSaveregion();
382 	afx_msg void OnUpdateFileSaveregion(CCmdUI* pCmdUI);
383 	afx_msg void OnSelectionMovedown();
384 	afx_msg void OnSelectionMoveup();
385 	afx_msg void OnToolbarMain();
386 	afx_msg void OnToolbarTexture();
387 	afx_msg void OnSelectionPrint();
388 	afx_msg void OnSelectionTogglesizepaint();
389 	afx_msg void OnBrushMakecone();
390 	afx_msg void OnTexturesLoad();
391 	afx_msg void OnToggleRotatelock();
392 	afx_msg void OnCurveBevel();
393 	afx_msg void OnCurveIncreaseVert();
394 	afx_msg void OnCurveDecreaseVert();
395 	afx_msg void OnCurveIncreaseHorz();
396 	afx_msg void OnCurveDecreaseHorz();
397 	afx_msg void OnCurveCylinder();
398 	afx_msg void OnCurveEighthsphere();
399 	afx_msg void OnCurveEndcap();
400 	afx_msg void OnCurveHemisphere();
401 	afx_msg void OnCurveInvertcurve();
402 	afx_msg void OnCurveQuarter();
403 	afx_msg void OnCurveSphere();
404 	afx_msg void OnFileImportmap();
405 	afx_msg void OnFileExportmap();
406 	afx_msg void OnEditLoadprefab();
407 	afx_msg void OnViewShowcurves();
408 	afx_msg void OnSelectionSelectNudgedown();
409 	afx_msg void OnSelectionSelectNudgeleft();
410 	afx_msg void OnSelectionSelectNudgeright();
411 	afx_msg void OnSelectionSelectNudgeup();
412 	afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
413 	afx_msg void OnTexturesLoadlist();
414 	afx_msg void OnDontselectcurve();
415 	afx_msg void OnDynamicLighting();
416 	afx_msg void OnCurveSimplepatchmesh();
417 	afx_msg void OnPatchToggleBox();
418 	afx_msg void OnPatchWireframe();
419 	afx_msg void OnCurvePatchcone();
420 	afx_msg void OnCurvePatchtube();
421 	afx_msg void OnPatchWeld();
422 	afx_msg void OnCurvePatchbevel();
423 	afx_msg void OnCurvePatchendcap();
424 	afx_msg void OnCurvePatchinvertedbevel();
425 	afx_msg void OnCurvePatchinvertedendcap();
426 	afx_msg void OnPatchDrilldown();
427 	afx_msg void OnCurveInsertcolumn();
428 	afx_msg void OnCurveInsertrow();
429 	afx_msg void OnCurveDeletecolumn();
430 	afx_msg void OnCurveDeleterow();
431 	afx_msg void OnCurveInsertAddcolumn();
432 	afx_msg void OnCurveInsertAddrow();
433 	afx_msg void OnCurveInsertInsertcolumn();
434 	afx_msg void OnCurveInsertInsertrow();
435 	afx_msg void OnCurveNegative();
436 	afx_msg void OnCurveNegativeTextureX();
437 	afx_msg void OnCurveNegativeTextureY();
438 	afx_msg void OnCurveDeleteFirstcolumn();
439 	afx_msg void OnCurveDeleteFirstrow();
440 	afx_msg void OnCurveDeleteLastcolumn();
441 	afx_msg void OnCurveDeleteLastrow();
442 	afx_msg void OnPatchBend();
443 	afx_msg void OnPatchInsdel();
444 	afx_msg void OnPatchEnter();
445 	afx_msg void OnPatchTab();
446 	afx_msg void OnCurvePatchdensetube();
447 	afx_msg void OnCurvePatchverydensetube();
448 	afx_msg void OnCurveCap();
449 	afx_msg void OnCurveCapInvertedbevel();
450 	afx_msg void OnCurveCapInvertedendcap();
451 	afx_msg void OnCurveRedisperseCols();
452 	afx_msg void OnCurveRedisperseRows();
453 	afx_msg void OnPatchNaturalize();
454 	afx_msg void OnPatchNaturalizeAlt();
455 	afx_msg void OnSnapToGrid();
456 	afx_msg void OnCurvePatchsquare();
457 	afx_msg void OnTexturesTexturewindowscale10();
458 	afx_msg void OnTexturesTexturewindowscale100();
459 	afx_msg void OnTexturesTexturewindowscale200();
460 	afx_msg void OnTexturesTexturewindowscale25();
461 	afx_msg void OnTexturesTexturewindowscale50();
462 	afx_msg void OnTexturesFlush();
463 	afx_msg void OnCurveOverlayClear();
464 	afx_msg void OnCurveOverlaySet();
465 	afx_msg void OnCurveThicken();
466 	afx_msg void OnCurveCyclecap();
467 	afx_msg void OnCurveCyclecapAlt();
468 	afx_msg void OnCurveMatrixTranspose();
469 	afx_msg void OnTexturesReloadshaders();
470 	afx_msg void OnShowEntities();
471 	afx_msg void OnViewEntitiesasBoundingbox();
472 	afx_msg void OnViewEntitiesasSelectedskinned();
473 	afx_msg void OnViewEntitiesasSelectedwireframe();
474 	afx_msg void OnViewEntitiesasSkinned();
475 	afx_msg void OnViewEntitiesasSkinnedandboxed();
476 	afx_msg void OnViewEntitiesasWireframe();
477 	afx_msg void OnViewShowhint();
478 	afx_msg void OnUpdateTexturesShowinuse(CCmdUI* pCmdUI);
479 	afx_msg void OnTexturesShowall();
480 	afx_msg void OnTexturesHideall();
481 	afx_msg void OnPatchInspector();
482 	afx_msg void OnViewOpengllighting();
483 	afx_msg void OnSelectAll();
484 	afx_msg void OnViewShowcaulk();
485 	afx_msg void OnCurveFreeze();
486 	afx_msg void OnCurveUnFreeze();
487 	afx_msg void OnCurveUnFreezeAll();
488 	afx_msg void OnSelectReselect();
489 	afx_msg void OnViewShowangles();
490 	afx_msg void OnEditSaveprefab();
491 	afx_msg void OnCurveMoreendcapsbevelsSquarebevel();
492 	afx_msg void OnCurveMoreendcapsbevelsSquareendcap();
493 	afx_msg void OnBrushPrimitivesSphere();
494 	afx_msg void OnViewCrosshair();
495 	afx_msg void OnViewHideshowHideselected();
496 	afx_msg void OnViewHideshowHideNotselected();
497 	afx_msg void OnViewHideshowShowhidden();
498 	afx_msg void OnTexturesShadersShow();
499 	afx_msg void OnTexturesFlushUnused();
500 	afx_msg void OnViewGroups();
501 	afx_msg void OnDropGroupAddtoWorld();
502 	afx_msg void OnDropGroupName();
503 	afx_msg void OnDropGroupNewgroup();
504 	afx_msg void OnDropGroupRemove();
505 	afx_msg void OnProjectedLight();
506 	afx_msg void OnShowLighttextures();
507 	afx_msg void OnShowLightvolumes();
508 	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
509 	afx_msg void OnSplinesMode();
510 	afx_msg void OnSplinesLoad();
511 	afx_msg void OnSplinesSave();
512 	afx_msg void OnSplinesEdit();
513 	afx_msg void OnSplineTest();
514 	afx_msg void OnSplinesTarget();
515 	afx_msg void OnSplinesTargetPoints();
516 	afx_msg void OnSplinesCameraPoints();
517 	afx_msg void OnPopupNewcameraInterpolated();
518 	afx_msg void OnPopupNewcameraSpline();
519 	afx_msg void OnPopupNewcameraFixed();
520 	afx_msg void OnSelectionMoveonly();
521 	afx_msg void OnSelectBrushesOnly();
522 	afx_msg void OnSelectByBoundingBrush();
523 	afx_msg void OnSelectBrushlight();
524 	afx_msg void OnSelectionCombine();
525 	afx_msg void OnPatchCombine();
526 	afx_msg void OnShowDoom();
527 	afx_msg void OnViewRendermode();
528 	afx_msg void OnViewRebuildrenderdata();
529 	afx_msg void OnViewRealtimerebuild();
530 	afx_msg void OnViewRenderentityoutlines();
531 	afx_msg void OnViewMaterialanimation();
532 	afx_msg void OnAxialTextureByWidth();
533 	afx_msg void OnAxialTextureByHeight();
534 	afx_msg void OnAxialTextureArbitrary();
535 	afx_msg void OnSelectionExportToobj();
536 	afx_msg void OnSelectionExportToCM();
537 	afx_msg void OnViewRenderselection();
538 	afx_msg void OnSelectNomodels();
539 	afx_msg void OnViewShowShowvisportals();
540 	afx_msg void OnViewShowNoDraw();
541 	afx_msg void OnViewRendersound();
542 	afx_msg void OnSoundShowsoundvolumes();
543 	afx_msg void OnSoundShowselectedsoundvolumes();
544 	afx_msg	void OnNurbEditor();
545 	afx_msg void OnSelectCompleteEntity();
546 	afx_msg void OnGenerateMaterialsList();
547 	afx_msg void OnMru(unsigned int nID);
548 	afx_msg void OnViewNearest(unsigned int nID);
549 	afx_msg void OnTextureWad(unsigned int nID);
550 	afx_msg void OnBspCommand(unsigned int nID);
551 	afx_msg void OnGrid1(unsigned int nID);
552 	afx_msg void OnDisplayChange(WPARAM wp, LPARAM lp);
553 	afx_msg void OnSelectAlltargets();
554 
555 	//}}AFX_MSG
556 	void CheckTextureScale(int id);
557 
558 	DECLARE_MESSAGE_MAP()
559 };
560 
561 /////////////////////////////////////////////////////////////////////////////
562 
563 //{{AFX_INSERT_LOCATION}}
564 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
565 
566 #endif // !defined(AFX_MAINFRM_H__330BBF0A_731C_11D1_B539_00AA00A410FC__INCLUDED_)
567