doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
MainFrm.cpp File Reference
#include "../../idlib/precompiled.h"
#include "qe3.h"
#include "Radiant.h"
#include "ZWnd.h"
#include "CamWnd.h"
#include "MapInfo.h"
#include "MainFrm.h"
#include "RotateDlg.h"
#include "EntityListDlg.h"
#include "NewProjDlg.h"
#include "CommandsDlg.h"
#include "ScaleDialog.h"
#include "FindTextureDlg.h"
#include "SurfaceDlg.h"
#include "shlobj.h"
#include "DialogTextures.h"
#include "PatchDensityDlg.h"
#include "DialogThick.h"
#include "PatchDialog.h"
#include "Undo.h"
#include "NewTexWnd.h"
#include "splines.h"
#include "dlgcamera.h"
#include "mmsystem.h"
#include "LightDlg.h"
#include "GetString.h"
#include "EntKeyFindReplace.h"
#include "InspectorDialog.h"
#include "autocaulk.h"
#include "../../sys/win32/rc/common_resource.h"
#include "../comafx/DialogName.h"
#include "../comafx/DialogColorPicker.h"

Go to the source code of this file.

Classes

struct  SplitInfo
 

Macros

#define D3XP_ID_FILE_SAVE_COPY   ( WM_USER + 28476 )
 
#define D3XP_ID_SHOW_MODELS   ( WM_USER + 28477 )
 
#define SPEED_MOVE   32.0f
 
#define SPEED_TURN   22.5f
 
#define MAX_GRID   64.0f
 
#define MIN_GRID   0.125f
 

Functions

void HandlePopup (CWnd *pWindow, unsigned int uId)
 
void MFCCreate (HINSTANCE hInstance)
 
void FindReplace (CString &strContents, const char *pTag, const char *pValue)
 
bool MouseDown ()
 
bool LoadWindowPlacement (HWND hwnd, const char *pName)
 
void SaveWindowPlacement (HWND hwnd, const char *pName)
 
bool CamOK (unsigned int nKey)
 
CRect g_rctOld (0, 0, 0, 0)
 
void OpenDialog (void)
 
void SaveAsDialog (bool bRegion)
 
void Select_Ungroup ()
 
BOOL DoMru (HWND hWnd, WORD wId)
 
void RunBsp (const char *command)
 
void UpdateRadiantColor (float r, float g, float b, float a)
 
bool DoColor (int iIndex)
 
void Select_SetKeyVal (const char *key, const char *val)
 
LPCSTR String_ToLower (LPCSTR psString)
 
bool FindNextBrush (brush_t *pPrevFoundBrush)
 
void WINAPI Sys_UpdateWindows (int nBits)
 
bool Sys_KeyDown (int key)
 
void testCamSpeed ()
 
void Patch_AdjustSubdivisions (float hadj, float vadj)
 
void Patch_Weld (patchMesh_t *p, patchMesh_t *p2)
 
void Face_SetAxialScale_BrushPrimit (face_t *face, bool y)
 
void Select_ToOBJ ()
 
void Select_ToCM ()
 

Variables

CString g_strAppPath
 
CMainFrameg_pParentWnd = NULL
 
CPrefsDlg g_Preferences
 
CPrefsDlgg_PrefsDlg = g_Preferences
 
int g_nUpdateBits = 0
 
bool g_bScreenUpdates = true
 
CString g_strProject
 
SCommandInfo g_Commands []
 
int g_nCommandCount = sizeof(g_Commands) / sizeof(SCommandInfo)
 
SKeyInfo g_Keys []
 
int g_nKeyCount = sizeof(g_Keys) / sizeof(SKeyInfo)
 
const int CMD_TEXTUREWAD_END = CMD_TEXTUREWAD + 127
 
const int CMD_BSPCOMMAND_END = CMD_BSPCOMMAND + 127
 
const int IDMRU_END = IDMRU + 9
 
const int g_msgBSPDone = RegisterWindowMessage(DMAP_DONE)
 
const int g_msgBSPStatus = RegisterWindowMessage(DMAP_MSGID)
 
bool texture_showinuse
 
CString strFindKey
 
CString strFindValue
 
CString strReplaceKey
 
CString strReplaceValue
 
bool gbWholeStringMatchOnly = true
 
bool gbSelectAllMatchingEnts = false
 
brush_t * gpPrevEntBrushFound = NULL
 
bool g_bTABDown = false
 
bool g_bOriginalFlag
 
bool g_bCrossHairs
 

Macro Definition Documentation

#define D3XP_ID_FILE_SAVE_COPY   ( WM_USER + 28476 )

Definition at line 87 of file MainFrm.cpp.

#define D3XP_ID_SHOW_MODELS   ( WM_USER + 28477 )

Definition at line 88 of file MainFrm.cpp.

#define MAX_GRID   64.0f

Definition at line 99 of file MainFrm.cpp.

#define MIN_GRID   0.125f

Definition at line 100 of file MainFrm.cpp.

#define SPEED_MOVE   32.0f

Definition at line 96 of file MainFrm.cpp.

#define SPEED_TURN   22.5f

Definition at line 97 of file MainFrm.cpp.

Function Documentation

bool CamOK ( unsigned int  nKey)

Definition at line 1639 of file MainFrm.cpp.

bool DoColor ( int  iIndex)

Definition at line 2644 of file MainFrm.cpp.

BOOL DoMru ( HWND  hWnd,
WORD  wId 
)

Definition at line 2054 of file MainFrm.cpp.

void Face_SetAxialScale_BrushPrimit ( face_t *  face,
bool  y 
)

Definition at line 1144 of file EditorBrushPrimit.cpp.

bool FindNextBrush ( brush_t *  pPrevFoundBrush)

Definition at line 2730 of file MainFrm.cpp.

void FindReplace ( CString &  strContents,
const char *  pTag,
const char *  pValue 
)

Definition at line 1192 of file MainFrm.cpp.

CRect g_rctOld ( ,
,
,
 
)
void HandlePopup ( CWnd *  pWindow,
unsigned int  uId 
)

Definition at line 774 of file MainFrm.cpp.

bool LoadWindowPlacement ( HWND  hwnd,
const char *  pName 
)

Definition at line 1431 of file MainFrm.cpp.

void MFCCreate ( HINSTANCE  hInstance)

Definition at line 1013 of file MainFrm.cpp.

bool MouseDown ( )

Definition at line 1381 of file MainFrm.cpp.

void OpenDialog ( void  )
void Patch_AdjustSubdivisions ( float  hadj,
float  vadj 
)
void Patch_Weld ( patchMesh_t *  p,
patchMesh_t *  p2 
)
void RunBsp ( const char *  command)

Definition at line 2123 of file MainFrm.cpp.

void SaveAsDialog ( bool  bRegion)
void SaveWindowPlacement ( HWND  hwnd,
const char *  pName 
)

Definition at line 1448 of file MainFrm.cpp.

void Select_SetKeyVal ( const char *  key,
const char *  val 
)
void Select_ToCM ( )

Definition at line 1662 of file CamWnd.cpp.

void Select_ToOBJ ( )

Definition at line 1633 of file CamWnd.cpp.

void Select_Ungroup ( )
LPCSTR String_ToLower ( LPCSTR  psString)

Definition at line 2708 of file MainFrm.cpp.

bool Sys_KeyDown ( int  key)

Definition at line 49 of file NewTexWnd.cpp.

void WINAPI Sys_UpdateWindows ( int  nBits)

Definition at line 3974 of file MainFrm.cpp.

void testCamSpeed ( )
void UpdateRadiantColor ( float  r,
float  g,
float  b,
float  a 
)

Definition at line 2638 of file MainFrm.cpp.

Variable Documentation

const int CMD_BSPCOMMAND_END = CMD_BSPCOMMAND + 127

Definition at line 341 of file MainFrm.cpp.

const int CMD_TEXTUREWAD_END = CMD_TEXTUREWAD + 127

Definition at line 340 of file MainFrm.cpp.

bool g_bCrossHairs

Definition at line 51 of file XYWnd.cpp.

bool g_bOriginalFlag

Definition at line 4938 of file MainFrm.cpp.

bool g_bScreenUpdates = true

Definition at line 77 of file MainFrm.cpp.

bool g_bTABDown = false

Definition at line 4937 of file MainFrm.cpp.

SCommandInfo g_Commands[]

Definition at line 102 of file MainFrm.cpp.

SKeyInfo g_Keys[]

Definition at line 291 of file MainFrm.cpp.

const int g_msgBSPDone = RegisterWindowMessage(DMAP_DONE)

Definition at line 344 of file MainFrm.cpp.

const int g_msgBSPStatus = RegisterWindowMessage(DMAP_MSGID)

Definition at line 345 of file MainFrm.cpp.

int g_nCommandCount = sizeof(g_Commands) / sizeof(SCommandInfo)

Definition at line 289 of file MainFrm.cpp.

int g_nKeyCount = sizeof(g_Keys) / sizeof(SKeyInfo)

Definition at line 338 of file MainFrm.cpp.

int g_nUpdateBits = 0

Definition at line 76 of file MainFrm.cpp.

CMainFrame* g_pParentWnd = NULL

Definition at line 73 of file MainFrm.cpp.

CPrefsDlg g_Preferences

Definition at line 74 of file MainFrm.cpp.

CPrefsDlg& g_PrefsDlg = g_Preferences

Definition at line 75 of file MainFrm.cpp.

CString g_strAppPath

Definition at line 72 of file MainFrm.cpp.

CString g_strProject

Definition at line 85 of file MainFrm.cpp.

bool gbSelectAllMatchingEnts = false

Definition at line 2703 of file MainFrm.cpp.

bool gbWholeStringMatchOnly = true

Definition at line 2702 of file MainFrm.cpp.

brush_t* gpPrevEntBrushFound = NULL

Definition at line 2704 of file MainFrm.cpp.

const int IDMRU_END = IDMRU + 9

Definition at line 342 of file MainFrm.cpp.

CString strFindKey

Definition at line 2698 of file MainFrm.cpp.

CString strFindValue

Definition at line 2699 of file MainFrm.cpp.

CString strReplaceKey

Definition at line 2700 of file MainFrm.cpp.

CString strReplaceValue

Definition at line 2701 of file MainFrm.cpp.

bool texture_showinuse

Definition at line 743 of file NewTexWnd.cpp.