doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PrefsDlg.cpp
Go to the documentation of this file.
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 #include "../../idlib/precompiled.h"
30 #pragma hdrstop
31 
32 #include "qe3.h"
33 #include "shlobj.h"
34 
35 #ifdef _DEBUG
36 #define new DEBUG_NEW
37 #undef THIS_FILE
38 static char THIS_FILE[] = __FILE__;
39 #endif
40 
41 #define MOUSE_KEY "radiant_MouseButtons"
42 #define TLOCK_KEY "radiant_TextureLock"
43 #define RLOCK_KEY "radiant_RotateLock"
44 #define LOADLAST_KEY "radiant_LoadLast"
45 #define LOADLASTMAP_KEY "radiant_LoadLastMap"
46 #define LASTPROJ_KEY "radiant_LastProject"
47 #define LASTMAP_KEY "radiant_LastMap"
48 #define RUN_KEY "radiant_RunBefore"
49 #define FACE_KEY "radiant_NewFaceGrab"
50 #define BSP_KEY "radiant_InternalBSP"
51 #define RCLICK_KEY "radiant_NewRightClick"
52 #define VERTEX_KEY "radiant_NewVertex"
53 #define AUTOSAVE_KEY "radiant_Autosave"
54 #define AUTOSAVETIME_KEY "radiant_AutosaveMinutes"
55 #define PAK_KEY "radiant_UsePAK"
56 #define NEWAPPLY_KEY "radiant_ApplyDismissesSurface"
57 #define HACK_KEY "radiant_Gatewayescapehack"
58 #define TEXTURE_KEY "radiant_NewTextureWindowStuff"
59 #define TINYBRUSH_KEY "radiant_CleanTinyBrushes"
60 #define TINYSIZE_KEY "radiant_CleanTinyBrusheSize"
61 #define SNAPSHOT_KEY "radiant_Snapshots"
62 #define PAKFILE_KEY "radiant_PAKFile"
63 #define STATUS_KEY "radiant_StatusPointSize"
64 #define MOVESPEED_KEY "radiant_MoveSpeed"
65 #define ANGLESPEED_KEY "radiant_AngleSpeed"
66 #define SETGAME_KEY "radiant_UseSetGame"
67 #define CAMXYUPDATE_KEY "radiant_CamXYUpdate"
68 #define LIGHTDRAW_KEY "radiant_NewLightStyle"
69 #define WHATGAME_KEY "radiant_WhichGame"
70 #define CUBICCLIP_KEY "radiant_CubicClipping"
71 #define CUBICSCALE_KEY "radiant_CubicScale"
72 #define ALTEDGE_KEY "radiant_ALTEdgeDrag"
73 #define FACECOLORS_KEY "radiant_FaceColors"
74 #define QE4PAINT_KEY "radiant_QE4Paint"
75 #define SNAPT_KEY "radiant_SnapT"
76 #define XZVIS_KEY "radiant_XZVIS"
77 #define YZVIS_KEY "radiant_YZVIS"
78 #define ZVIS_KEY "radiant_ZVIS"
79 #define SIZEPAINT_KEY "radiant_SizePainting"
80 #define DLLENTITIES_KEY "radiant_DLLEntities"
81 #define WIDETOOLBAR_KEY "radiant_WideToolBar"
82 #define NOCLAMP_KEY "radiant_NoClamp"
83 #define PREFAB_KEY "radiant_PrefabPath"
84 #define USERINI_KEY "radiant_UserINIPath"
85 #define ROTATION_KEY "radiant_Rotation"
86 #define SGIOPENGL_KEY "radiant_SGIOpenGL"
87 #define BUGGYICD_KEY "radiant_BuggyICD"
88 #define HICOLOR_KEY "radiant_HiColorTextures"
89 #define CHASEMOUSE_KEY "radiant_ChaseMouse"
90 #define ENTITYSHOW_KEY "radiant_EntityShow"
91 #define TEXTURESCALE_KEY "radiant_TextureScale"
92 #define TEXTURESCROLLBAR_KEY "radiant_TextureScrollbar"
93 #define DISPLAYLISTS_KEY "radiant_UseDisplayLists"
94 #define NORMALIZECOLORS_KEY "radiant_NormalizeColors"
95 #define SHADERS_KEY "radiant_UseShaders"
96 #define SWITCHCLIP_KEY "radiant_SwitchClipKey"
97 #define SELWHOLEENTS_KEY "radiant_SelectWholeEntitiesKey"
98 #define TEXTURESUBSET_KEY "radiant_UseTextureSubsetLoading"
99 #define TEXTUREQUALITY_KEY "radiant_TextureQuality"
100 #define SHOWSHADERS_KEY "radiant_ShowShaders"
101 #define SHADERTEST_KEY "radiant_ShaderTest"
102 #define GLLIGHTING_KEY "radiant_UseGLLighting"
103 #define NOSTIPPLE_KEY "radiant_NoStipple"
104 #define UNDOLEVELS_KEY "radiant_UndoLevels"
105 #define MAPS_KEY "radiant_RadiantMapPath"
106 #define MODELS_KEY "radiant_ModelPath"
107 #define NEWMAPFORMAT_KEY "radiant_NewMapFormat"
108 
109 #define WINDOW_DEF 0
110 #define TLOCK_DEF 1
111 #define LOADLAST_DEF 1
112 #define RUN_DEF 0
113 
115 // CPrefsDlg dialog
116 
117 
118 CPrefsDlg::CPrefsDlg(CWnd* pParent /*=NULL*/)
119  : CDialog(CPrefsDlg::IDD, pParent)
120 {
121  //{{AFX_DATA_INIT(CPrefsDlg)
122  m_bLoadLast = FALSE;
123  m_bFace = FALSE;
125  m_bVertex = FALSE;
126  m_bAutoSave = TRUE;
128  m_strAutoSave = _T("5");
132  m_fTinySize = 0.5;
134  m_nStatusSize = 10;
137  m_bALTEdge = FALSE;
140  m_bXZVis = FALSE;
141  m_bYZVis = FALSE;
142  m_bZVis = FALSE;
145  m_bNoClamp = FALSE;
146  m_nRotation = 0;
152  m_strMaps = _T("");
153  m_strModels = _T("");
155  //}}AFX_DATA_INIT
156  //LoadPrefs();
160  m_nEntityShowState = 0;
161  m_nTextureScale = 2;
164  m_nTextureQuality = 3;
166  m_nUndoLevels = 63;
167 }
168 
169 void CPrefsDlg::DoDataExchange(CDataExchange* pDX)
170 {
171  CDialog::DoDataExchange(pDX);
172  //{{AFX_DATA_MAP(CPrefsDlg)
173  DDX_Control(pDX, IDC_SPIN_UNDO, m_wndUndoSpin);
174  DDX_Control(pDX, IDC_SPIN_POINTSIZE, m_wndFontSpin);
176  DDX_Control(pDX, IDC_SLIDER_CAMSPEED, m_wndCamSpeed);
177  DDX_Control(pDX, IDC_SPIN_AUTOSAVE, m_wndSpin);
178  DDX_Check(pDX, IDC_CHECK_LOADLAST, m_bLoadLast);
179  DDX_Check(pDX, IDC_CHECK_FACE, m_bFace);
180  DDX_Check(pDX, IDC_CHECK_RIGHTCLICK, m_bRightClick);
181  DDX_Check(pDX, IDC_CHECK_AUTOSAVE, m_bAutoSave);
182  DDX_Text(pDX, IDC_EDIT_AUTOSAVE, m_strAutoSave);
183  DDX_Check(pDX, IDC_CHECK_LOADLASTMAP, m_bLoadLastMap);
184  DDX_Check(pDX, IDC_CHECK_TEXTUREWINDOW, m_bTextureWindow);
185  DDX_Check(pDX, IDC_CHECK_SNAPSHOTS, m_bSnapShots);
186  DDX_Text(pDX, IDC_EDIT_STATUSPOINTSIZE, m_nStatusSize);
187  DDV_MinMaxInt(pDX, m_nStatusSize, 2, 14);
188  DDX_Check(pDX, IDC_CHECK_CAMXYUPDATE, m_bCamXYUpdate);
189  DDX_Check(pDX, IDC_CHECK_LIGHTDRAW, m_bNewLightDraw);
190  DDX_Check(pDX, IDC_CHECK_ALTDRAG, m_bALTEdge);
191  DDX_Check(pDX, IDC_CHECK_QE4PAINTING, m_bQE4Painting);
192  DDX_Check(pDX, IDC_CHECK_SNAPT, m_bSnapTToGrid);
193  DDX_Check(pDX, IDC_CHECK_SIZEPAINT, m_bSizePaint);
194  DDX_Check(pDX, IDC_CHECK_WIDETOOLBAR, m_bWideToolbar);
195  DDX_Check(pDX, IDC_CHECK_NOCLAMP, m_bNoClamp);
196  DDX_Text(pDX, IDC_EDIT_ROTATION, m_nRotation);
197  DDX_Check(pDX, IDC_CHECK_HICOLOR, m_bHiColorTextures);
198  DDX_Check(pDX, IDC_CHECK_MOUSECHASE, m_bChaseMouse);
200  DDX_Check(pDX, IDC_CHECK_DISPLAYLISTS, m_bDisplayLists);
201  DDX_Check(pDX, IDC_CHECK_NOSTIPPLE, m_bNoStipple);
202  DDX_Text(pDX, IDC_EDIT_UNDOLEVELS, m_nUndoLevels);
203  DDV_MinMaxInt(pDX, m_nUndoLevels, 1, 64);
204  DDX_Text(pDX, IDC_EDIT_MAPS, m_strMaps);
205  DDX_Check(pDX, IDC_CHECK_NEWMAPFORMAT, m_bNewMapFormat);
206  //}}AFX_DATA_MAP
207 }
208 
209 
210 BEGIN_MESSAGE_MAP(CPrefsDlg, CDialog)
211  //{{AFX_MSG_MAP(CPrefsDlg)
212  //}}AFX_MSG_MAP
213 END_MESSAGE_MAP()
214 
216 // CPrefsDlg message handlers
217 
218 BOOL CPrefsDlg::OnInitDialog()
219 {
220  CDialog::OnInitDialog();
221  m_wndSpin.SetRange(1,60);
222  m_wndCamSpeed.SetRange(10, 5000);
223  m_wndCamSpeed.SetPos(m_nMoveSpeed);
224 
225  this->m_wndTexturequality.SetRange(0, 3);
226  this->m_wndTexturequality.SetPos(m_nTextureQuality);
227 
228  m_wndFontSpin.SetRange(4,24);
229  m_wndUndoSpin.SetRange(1,64);
230 
231  GetDlgItem(IDC_CHECK_HICOLOR)->EnableWindow(TRUE);
232  GetDlgItem(IDC_CHECK_NOCLAMP)->EnableWindow(TRUE);
233 
234  //GetDlgItem(IDC_CHECK_NOCLAMP)->EnableWindow(FALSE);
235 
236  return TRUE; // return TRUE unless you set the focus to a control
237  // EXCEPTION: OCX Property Pages should return FALSE
238 }
239 
241 {
242  m_nMoveSpeed = m_wndCamSpeed.GetPos();
243  m_nAngleSpeed = (float)m_nMoveSpeed * 0.50;
244  this->m_nTextureQuality = m_wndTexturequality.GetPos();
245  SavePrefs();
246 
247  if ( g_pParentWnd ) {
249  }
250  Sys_UpdateWindows(W_ALL);
252  CDialog::OnOK();
253 }
254 
255 int GetCvarInt(const char *name, const int def) {
256  idCVar *cvar = cvarSystem->Find( name );
257  if ( cvar ) {
258  return cvar->GetInteger();
259  } else {
260  return def;
261  }
262 }
263 
264 const char *GetCvarString( const char *name, const char *def ) {
265  idCVar *cvar = cvarSystem->Find( name );
266  if ( cvar ) {
267  return cvar->GetString();
268  } else {
269  return def;
270  }
271 }
272 
273 static const char hexDigits[] = "0123456789ABCDEF";
274 
275 void SetCvarInt( const char *name, const int value ) {
276  cvarSystem->SetCVarInteger( name, value, CVAR_TOOL );
277 }
278 
279 void SetCvarString( const char *name, const char *value ) {
280  cvarSystem->SetCVarString( name, value, CVAR_TOOL );
281 }
282 
283 void SetCvarBinary(const char *name, void *pv, int size) {
284  unsigned char *in = new unsigned char[size];
285  idStr s;
286  memset( in, 0, size );
287  memcpy( in, pv, size );
288  for ( int i = 0; i < size; i++ ) {
289  s += hexDigits[in[i] >> 4];
290  s += hexDigits[in[i] & 0x0f];
291  }
292  delete []in;
293  SetCvarString(name, s);
294 }
295 
296 bool GetCvarBinary( const char *name, void *pv, int size ) {
297  bool ret = false;
298  unsigned char *out = new unsigned char[size];
299  idStr s = GetCvarString( name, "" );
300  if ( s.Length() / 2 == size ) {
301  int j = 0;
302  for ( int i = 0; i < s.Length(); i += 2 ) {
303  char c;
304  if (s[i] > '9') {
305  c = s[i] - 'A' + 0x0a;
306  } else {
307  c = s[i] - 0x30;
308  }
309  c <<= 4;
310  if (s[i+1] > '9') {
311  c |= s[i+1] - 'A' + 0x0a;
312  } else {
313  c |= s[i+1] - 0x30;
314  }
315  out[j++] = c;
316  }
317  memcpy(pv, out, size);
318  ret = true;
319  }
320  delete []out;
321  return ret;
322 }
323 
325  CString strBuff;
326  CString strPrefab = g_strAppPath;
327  AddSlash(strPrefab);
328  strPrefab += "Prefabs\\";
329 
330  m_nMouseButtons = 3;
331 
338  m_bFace = GetCvarInt( FACE_KEY, 1 );
347  strBuff = GetCvarString( TINYSIZE_KEY, "0.5" );
348  m_fTinySize = atof(strBuff );
350  if ( m_nAutoSave <= 0 ) { m_nAutoSave = 1; }
351  m_strAutoSave.Format("%i", m_nAutoSave );
358  m_bCubicClipping = ( GetCvarInt( CUBICCLIP_KEY, 1) != 0 );
363  m_bXZVis = GetCvarInt( XZVIS_KEY, 0 );
364  m_bYZVis = GetCvarInt( YZVIS_KEY, 0 );
365  m_bZVis = GetCvarInt( ZVIS_KEY, 1 );
385 
386  if ( m_bRunBefore == FALSE ) {
387  SetGamePrefs();
388  }
389 }
390 
392  if ( GetSafeHwnd() ) {
393  UpdateData(TRUE);
394  }
395 
396  m_nMouseButtons = 3;
397 
410  m_nAutoSave = atoi( m_strAutoSave );
445  common->WriteFlaggedCVarsToFile( "editor.cfg", CVAR_TOOL, "sett" );
446 }
447 
451  SavePrefs();
452 }
CMainFrame * g_pParentWnd
Definition: MainFrm.cpp:73
#define SNAPT_KEY
Definition: PrefsDlg.cpp:75
virtual void SetCVarInteger(const char *name, const int value, int flags=0)=0
#define RCLICK_KEY
Definition: PrefsDlg.cpp:51
#define MAPS_KEY
Definition: PrefsDlg.cpp:105
int m_nAngleSpeed
Definition: PrefsDlg.h:102
#define HACK_KEY
Definition: PrefsDlg.cpp:57
void WINAPI Sys_UpdateWindows(int nBits)
Definition: MainFrm.cpp:3974
GLsizei const GLfloat * value
Definition: glext.h:3614
#define LOADLAST_KEY
Definition: PrefsDlg.cpp:44
#define TEXTUREQUALITY_KEY
Definition: PrefsDlg.cpp:99
#define IDC_CHECK_MOUSECHASE
#define VERTEX_KEY
Definition: PrefsDlg.cpp:52
idCVarSystem * cvarSystem
Definition: CVarSystem.cpp:487
#define IDC_SPIN_POINTSIZE
#define CUBICSCALE_KEY
Definition: PrefsDlg.cpp:71
float m_fTinySize
Definition: PrefsDlg.h:75
#define ALTEDGE_KEY
Definition: PrefsDlg.cpp:72
#define IDC_CHECK_AUTOSAVE
int m_nCubicScale
Definition: PrefsDlg.h:106
#define TEXTURESCALE_KEY
Definition: PrefsDlg.cpp:91
#define ROTATION_KEY
Definition: PrefsDlg.cpp:85
#define IDC_CHECK_CAMXYUPDATE
BOOL m_bCamXYUpdate
Definition: PrefsDlg.h:78
#define LASTMAP_KEY
Definition: PrefsDlg.cpp:47
BOOL m_bNoStipple
Definition: PrefsDlg.h:95
BOOL m_bGLLighting
Definition: PrefsDlg.h:116
#define UNDOLEVELS_KEY
Definition: PrefsDlg.cpp:104
#define DISPLAYLISTS_KEY
Definition: PrefsDlg.cpp:93
#define CUBICCLIP_KEY
Definition: PrefsDlg.cpp:70
CSpinButtonCtrl m_wndUndoSpin
Definition: PrefsDlg.h:55
#define SELWHOLEENTS_KEY
Definition: PrefsDlg.cpp:97
int Length(void) const
Definition: Str.h:702
BOOL m_selectNoModels
Definition: PrefsDlg.h:108
CSliderCtrl m_wndCamSpeed
Definition: PrefsDlg.h:58
BOOL m_bZVis
Definition: PrefsDlg.h:85
#define AUTOSAVE_KEY
Definition: PrefsDlg.cpp:53
#define IDC_EDIT_MAPS
#define TEXTURE_KEY
Definition: PrefsDlg.cpp:58
BOOL m_bDisplayLists
Definition: PrefsDlg.h:94
#define TINYSIZE_KEY
Definition: PrefsDlg.cpp:60
case const float
Definition: Callbacks.cpp:62
void SetCvarBinary(const char *name, void *pv, int size)
Definition: PrefsDlg.cpp:283
#define SWITCHCLIP_KEY
Definition: PrefsDlg.cpp:96
#define IDC_EDIT_AUTOSAVE
virtual void SetCVarString(const char *name, const char *value, int flags=0)=0
BOOL m_bYZVis
Definition: PrefsDlg.h:84
#define SNAPSHOT_KEY
Definition: PrefsDlg.cpp:61
CSliderCtrl m_wndTexturequality
Definition: PrefsDlg.h:57
#define IDC_CHECK_TEXTURESCROLLBAR
BOOL m_bNewApplyHandling
Definition: PrefsDlg.h:69
BOOL m_bNewLightDraw
Definition: PrefsDlg.h:79
GLdouble s
Definition: glext.h:2935
CString m_strAutoSave
Definition: PrefsDlg.h:70
#define IDC_CHECK_NOSTIPPLE
BOOL m_bRotateLock
Definition: PrefsDlg.h:87
BOOL m_selectOnlyBrushes
Definition: PrefsDlg.h:107
int i
Definition: process.py:33
#define BOOL
Definition: mprintf.c:71
#define STATUS_KEY
Definition: PrefsDlg.cpp:63
#define IDC_CHECK_HICOLOR
#define ANGLESPEED_KEY
Definition: PrefsDlg.cpp:65
int m_nAutoSave
Definition: PrefsDlg.h:104
#define IDC_CHECK_SNAPSHOTS
virtual idCVar * Find(const char *name)=0
BOOL m_bALTEdge
Definition: PrefsDlg.h:80
#define AUTOSAVETIME_KEY
Definition: PrefsDlg.cpp:54
CString m_strModels
Definition: PrefsDlg.h:98
#define IDC_EDIT_STATUSPOINTSIZE
int m_nMouseButtons
Definition: PrefsDlg.h:101
BOOL m_bLoadLast
Definition: PrefsDlg.h:61
CString m_strLastMap
Definition: PrefsDlg.h:64
CSpinButtonCtrl m_wndFontSpin
Definition: PrefsDlg.h:56
BOOL m_bLoadLastMap
Definition: PrefsDlg.h:71
BOOL m_bSelectWholeEntities
Definition: PrefsDlg.h:114
const GLubyte * c
Definition: glext.h:4677
#define IDC_CHECK_NEWMAPFORMAT
#define LOADLASTMAP_KEY
Definition: PrefsDlg.cpp:45
#define IDC_CHECK_DISPLAYLISTS
BOOL m_bChaseMouse
Definition: PrefsDlg.h:92
#define NOSTIPPLE_KEY
Definition: PrefsDlg.cpp:103
#define XZVIS_KEY
Definition: PrefsDlg.cpp:76
BOOL m_bSizePaint
Definition: PrefsDlg.h:86
void SetGamePrefs()
Definition: PrefsDlg.cpp:448
BOOL m_bFace
Definition: PrefsDlg.h:65
idCommon * common
Definition: Common.cpp:206
#define RLOCK_KEY
Definition: PrefsDlg.cpp:43
#define IDC_CHECK_TEXTUREWINDOW
#define FACE_KEY
Definition: PrefsDlg.cpp:49
CString g_strAppPath
Definition: MainFrm.cpp:72
int GetInteger(void) const
Definition: CVarSystem.h:143
#define YZVIS_KEY
Definition: PrefsDlg.cpp:77
#define LIGHTDRAW_KEY
Definition: PrefsDlg.cpp:68
#define MODELS_KEY
Definition: PrefsDlg.cpp:106
#define IDC_CHECK_LOADLAST
const char * GetCvarString(const char *name, const char *def)
Definition: PrefsDlg.cpp:264
#define IDC_CHECK_ALTDRAG
BOOL m_bQE4Painting
Definition: PrefsDlg.h:81
BOOL m_bHiColorTextures
Definition: PrefsDlg.h:91
#define NEWMAPFORMAT_KEY
Definition: PrefsDlg.cpp:107
int m_nRotation
Definition: PrefsDlg.h:90
#define MOVESPEED_KEY
Definition: PrefsDlg.cpp:64
#define IDC_CHECK_SNAPT
#define IDC_CHECK_NOCLAMP
BOOL m_bRightClick
Definition: PrefsDlg.h:66
BOOL m_bVertex
Definition: PrefsDlg.h:67
#define IDC_SLIDER_TEXTUREQUALITY
CSpinButtonCtrl m_wndSpin
Definition: PrefsDlg.h:59
#define IDC_CHECK_QE4PAINTING
#define TLOCK_KEY
Definition: PrefsDlg.cpp:42
int m_nStatusSize
Definition: PrefsDlg.h:77
int m_nEntityShowState
Definition: PrefsDlg.h:110
bool m_bCubicClipping
Definition: PrefsDlg.h:105
BOOL m_bWideToolbar
Definition: PrefsDlg.h:88
int m_nUndoLevels
Definition: PrefsDlg.h:96
#define TINYBRUSH_KEY
Definition: PrefsDlg.cpp:59
BOOL m_bSnapTToGrid
Definition: PrefsDlg.h:82
BOOL m_bTextureLock
Definition: PrefsDlg.h:60
const char * GetString(void) const
Definition: CVarSystem.h:141
#define IDC_SPIN_AUTOSAVE
#define IDC_CHECK_WIDETOOLBAR
int GetCvarInt(const char *name, const int def)
Definition: PrefsDlg.cpp:255
int m_nTextureScale
Definition: PrefsDlg.h:111
BOOL m_bXZVis
Definition: PrefsDlg.h:83
BOOL m_bSwitchClip
Definition: PrefsDlg.h:113
virtual void OnOK()
Definition: PrefsDlg.cpp:240
#define IDC_CHECK_RIGHTCLICK
#define ZVIS_KEY
Definition: PrefsDlg.cpp:78
BOOL m_bAutoSave
Definition: PrefsDlg.h:68
#define NOCLAMP_KEY
Definition: PrefsDlg.cpp:82
#define IDC_EDIT_ROTATION
#define ENTITYSHOW_KEY
Definition: PrefsDlg.cpp:90
#define IDC_SPIN_UNDO
void SetGridStatus()
Definition: MainFrm.cpp:4671
BOOL m_bRunBefore
Definition: PrefsDlg.h:62
GLuint in
Definition: glext.h:5388
bool GetCvarBinary(const char *name, void *pv, int size)
Definition: PrefsDlg.cpp:296
#define RUN_DEF
Definition: PrefsDlg.cpp:112
#define QE4PAINT_KEY
Definition: PrefsDlg.cpp:74
#define CAMXYUPDATE_KEY
Definition: PrefsDlg.cpp:67
#define IDC_SLIDER_CAMSPEED
const GLcharARB * name
Definition: glext.h:3629
GLsizeiptr size
Definition: glext.h:3112
virtual void WriteFlaggedCVarsToFile(const char *filename, int flags, const char *setCmd)=0
#define NEWAPPLY_KEY
Definition: PrefsDlg.cpp:56
#define LOADLAST_DEF
Definition: PrefsDlg.cpp:111
Definition: Str.h:116
BOOL m_bNewMapFormat
Definition: PrefsDlg.h:99
#define GLLIGHTING_KEY
Definition: PrefsDlg.cpp:102
#define IDC_EDIT_UNDOLEVELS
#define IDC_CHECK_LIGHTDRAW
#define WIDETOOLBAR_KEY
Definition: PrefsDlg.cpp:81
void SetCvarInt(const char *name, const int value)
Definition: PrefsDlg.cpp:275
CString m_strLastProject
Definition: PrefsDlg.h:63
#define FALSE
Definition: mprintf.c:70
CPrefsDlg(CWnd *pParent=NULL)
Definition: PrefsDlg.cpp:118
#define SIZEPAINT_KEY
Definition: PrefsDlg.cpp:79
BOOL m_bGatewayHack
Definition: PrefsDlg.h:72
#define CHASEMOUSE_KEY
Definition: PrefsDlg.cpp:89
void Undo_SetMaxSize(int size)
Definition: Undo.cpp:181
void SetCvarString(const char *name, const char *value)
Definition: PrefsDlg.cpp:279
#define LASTPROJ_KEY
Definition: PrefsDlg.cpp:46
void LoadPrefs()
Definition: PrefsDlg.cpp:324
#define TRUE
Definition: mprintf.c:69
BOOL m_bTextureWindow
Definition: PrefsDlg.h:73
CString m_strMaps
Definition: PrefsDlg.h:97
GLint j
Definition: qgl.h:264
void SavePrefs()
Definition: PrefsDlg.cpp:391
#define HICOLOR_KEY
Definition: PrefsDlg.cpp:88
BOOL m_selectByBoundingBrush
Definition: PrefsDlg.h:109
#define TLOCK_DEF
Definition: PrefsDlg.cpp:110
#define IDC_CHECK_LOADLASTMAP
#define IDC_CHECK_FACE
#define IDC_CHECK_SIZEPAINT
int m_nTextureQuality
Definition: PrefsDlg.h:115
#define TEXTURESCROLLBAR_KEY
Definition: PrefsDlg.cpp:92
BOOL m_bTextureScrollbar
Definition: PrefsDlg.h:93
virtual void DoDataExchange(CDataExchange *pDX)
Definition: PrefsDlg.cpp:169
BOOL m_bSnapShots
Definition: PrefsDlg.h:74
#define RUN_KEY
Definition: PrefsDlg.cpp:48
int m_nMoveSpeed
Definition: PrefsDlg.h:103
BOOL m_bNoClamp
Definition: PrefsDlg.h:89
BOOL m_bCleanTiny
Definition: PrefsDlg.h:76