29 #include "../../idlib/precompiled.h"
38 static char THIS_FILE[] = __FILE__;
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"
111 #define LOADLAST_DEF 1
171 CDialog::DoDataExchange(pDX);
220 CDialog::OnInitDialog();
221 m_wndSpin.SetRange(1,60);
222 m_wndCamSpeed.SetRange(10, 5000);
223 m_wndCamSpeed.SetPos(m_nMoveSpeed);
225 this->m_wndTexturequality.SetRange(0, 3);
226 this->m_wndTexturequality.SetPos(m_nTextureQuality);
228 m_wndFontSpin.SetRange(4,24);
229 m_wndUndoSpin.SetRange(1,64);
273 static const char hexDigits[] =
"0123456789ABCDEF";
284 unsigned char *
in =
new unsigned char[
size];
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];
298 unsigned char *out =
new unsigned char[
size];
302 for (
int i = 0;
i < s.
Length();
i += 2 ) {
305 c = s[
i] -
'A' + 0x0a;
311 c |= s[
i+1] -
'A' + 0x0a;
317 memcpy(pv, out, size);
328 strPrefab +=
"Prefabs\\";
392 if ( GetSafeHwnd() ) {
CMainFrame * g_pParentWnd
virtual void SetCVarInteger(const char *name, const int value, int flags=0)=0
void WINAPI Sys_UpdateWindows(int nBits)
GLsizei const GLfloat * value
#define TEXTUREQUALITY_KEY
#define IDC_CHECK_MOUSECHASE
idCVarSystem * cvarSystem
#define IDC_SPIN_POINTSIZE
#define IDC_CHECK_AUTOSAVE
#define IDC_CHECK_CAMXYUPDATE
CSpinButtonCtrl m_wndUndoSpin
CSliderCtrl m_wndCamSpeed
void SetCvarBinary(const char *name, void *pv, int size)
#define IDC_EDIT_AUTOSAVE
virtual void SetCVarString(const char *name, const char *value, int flags=0)=0
CSliderCtrl m_wndTexturequality
#define IDC_CHECK_TEXTURESCROLLBAR
#define IDC_CHECK_NOSTIPPLE
#define IDC_CHECK_HICOLOR
#define IDC_CHECK_SNAPSHOTS
virtual idCVar * Find(const char *name)=0
#define IDC_EDIT_STATUSPOINTSIZE
CSpinButtonCtrl m_wndFontSpin
BOOL m_bSelectWholeEntities
#define IDC_CHECK_NEWMAPFORMAT
#define IDC_CHECK_DISPLAYLISTS
#define IDC_CHECK_TEXTUREWINDOW
int GetInteger(void) const
#define IDC_CHECK_LOADLAST
const char * GetCvarString(const char *name, const char *def)
#define IDC_CHECK_ALTDRAG
#define IDC_CHECK_NOCLAMP
#define IDC_SLIDER_TEXTUREQUALITY
CSpinButtonCtrl m_wndSpin
#define IDC_CHECK_QE4PAINTING
const char * GetString(void) const
#define IDC_SPIN_AUTOSAVE
#define IDC_CHECK_WIDETOOLBAR
int GetCvarInt(const char *name, const int def)
#define IDC_CHECK_RIGHTCLICK
#define IDC_EDIT_ROTATION
bool GetCvarBinary(const char *name, void *pv, int size)
#define IDC_SLIDER_CAMSPEED
virtual void WriteFlaggedCVarsToFile(const char *filename, int flags, const char *setCmd)=0
#define IDC_EDIT_UNDOLEVELS
#define IDC_CHECK_LIGHTDRAW
void SetCvarInt(const char *name, const int value)
CPrefsDlg(CWnd *pParent=NULL)
void Undo_SetMaxSize(int size)
void SetCvarString(const char *name, const char *value)
BOOL m_selectByBoundingBrush
#define IDC_CHECK_LOADLASTMAP
#define IDC_CHECK_SIZEPAINT
#define TEXTURESCROLLBAR_KEY
virtual void DoDataExchange(CDataExchange *pDX)