PrefsDlg.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #if !defined(AFX_PREFSDLG_H__DC829122_812D_11D1_B548_00AA00A410FC__INCLUDED_)
  19. #define AFX_PREFSDLG_H__DC829122_812D_11D1_B548_00AA00A410FC__INCLUDED_
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. // PrefsDlg.h : header file
  24. //
  25. #include "resource.h"
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CPrefsDlg dialog
  28. #define MAX_TEXTURE_QUALITY 3
  29. class CPrefsDlg : public CDialog
  30. {
  31. // Construction
  32. public:
  33. // these mirror what goes in the combo box
  34. enum {SHADER_NONE = 0, SHADER_COMMON, SHADER_ALL};
  35. void LoadPrefs();
  36. void SavePrefs();
  37. void SetGamePrefs();
  38. CPrefsDlg(CWnd* pParent = NULL); // standard constructor
  39. // Dialog Data
  40. //{{AFX_DATA(CPrefsDlg)
  41. enum { IDD = IDD_DLG_PREFS };
  42. CSpinButtonCtrl m_wndUndoSpin;
  43. CSpinButtonCtrl m_wndFontSpin;
  44. CSliderCtrl m_wndTexturequality;
  45. CComboBox m_wndWhatGame;
  46. CSliderCtrl m_wndCamSpeed;
  47. CSpinButtonCtrl m_wndSpin;
  48. CString m_strQuake2;
  49. int m_nMouse;
  50. int m_nView;
  51. BOOL m_bTextureLock;
  52. BOOL m_bLoadLast;
  53. BOOL m_bRunBefore;
  54. CString m_strLastProject;
  55. CString m_strLastMap;
  56. BOOL m_bFace;
  57. BOOL m_bInternalBSP;
  58. BOOL m_bRightClick;
  59. BOOL m_bRunQuake;
  60. BOOL m_bSetGame;
  61. BOOL m_bVertex;
  62. BOOL m_bAutoSave;
  63. BOOL m_bNewApplyHandling;
  64. CString m_strAutoSave;
  65. BOOL m_bPAK;
  66. BOOL m_bLoadLastMap;
  67. BOOL m_bGatewayHack;
  68. BOOL m_bTextureWindow;
  69. BOOL m_bSnapShots;
  70. float m_fTinySize;
  71. BOOL m_bCleanTiny;
  72. CString m_strPAKFile;
  73. int m_nStatusSize;
  74. BOOL m_bCamXYUpdate;
  75. BOOL m_bNewLightDraw;
  76. CString m_strPrefabPath;
  77. int m_nWhatGame;
  78. CString m_strWhatGame;
  79. BOOL m_bALTEdge;
  80. BOOL m_bTextureBar;
  81. BOOL m_bFaceColors;
  82. BOOL m_bQE4Painting;
  83. BOOL m_bSnapTToGrid;
  84. BOOL m_bXZVis;
  85. BOOL m_bYZVis;
  86. BOOL m_bZVis;
  87. BOOL m_bSizePaint;
  88. BOOL m_bDLLEntities;
  89. BOOL m_bRotateLock;
  90. BOOL m_bWideToolbar;
  91. BOOL m_bNoClamp;
  92. CString m_strUserPath;
  93. int m_nRotation;
  94. BOOL m_bSGIOpenGL;
  95. BOOL m_bBuggyICD;
  96. BOOL m_bHiColorTextures;
  97. BOOL m_bChaseMouse;
  98. BOOL m_bTextureScrollbar;
  99. BOOL m_bDisplayLists;
  100. BOOL m_bShowShaders;
  101. int m_nShader;
  102. BOOL m_bNoStipple;
  103. int m_nUndoLevels;
  104. //}}AFX_DATA
  105. int m_nMouseButtons;
  106. int m_nAngleSpeed;
  107. int m_nMoveSpeed;
  108. int m_nAutoSave;
  109. bool m_bCubicClipping;
  110. int m_nCubicScale;
  111. BOOL m_bSelectCurves;
  112. BOOL m_bSelectTerrain;
  113. int m_nEntityShowState;
  114. int m_nTextureScale;
  115. BOOL m_bNormalizeColors;
  116. BOOL m_bSwitchClip;
  117. BOOL m_bSelectWholeEntities;
  118. int m_nTextureQuality;
  119. BOOL m_bGLLighting;
  120. // brush primitive mode
  121. //++timo moved into g_qeglobals
  122. // BOOL m_bBrushPrimitMode;
  123. // Overrides
  124. // ClassWizard generated virtual function overrides
  125. //{{AFX_VIRTUAL(CPrefsDlg)
  126. protected:
  127. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  128. //}}AFX_VIRTUAL
  129. // Implementation
  130. protected:
  131. // Generated message map functions
  132. //{{AFX_MSG(CPrefsDlg)
  133. afx_msg void OnBtnBrowse();
  134. virtual BOOL OnInitDialog();
  135. virtual void OnOK();
  136. afx_msg void OnBtnBrowsepak();
  137. afx_msg void OnBtnBrowseprefab();
  138. afx_msg void OnBtnBrowseuserini();
  139. afx_msg void OnSelchangeComboWhatgame();
  140. //}}AFX_MSG
  141. DECLARE_MESSAGE_MAP()
  142. };
  143. //{{AFX_INSERT_LOCATION}}
  144. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  145. #endif // !defined(AFX_PREFSDLG_H__DC829122_812D_11D1_B548_00AA00A410FC__INCLUDED_)