Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

CMainFrame Class Reference

#include <MainFrm.h>

Inheritance diagram for CMainFrame:

Inheritance graph
[legend]
Collaboration diagram for CMainFrame:

Collaboration graph
[legend]

Public Member Functions

CXYWndActiveXY ()
void AddPlugInMenuItem (CPlugIn *pPlugIn)
void CheckTextureScale (int id)
void CleanPlugInMenu ()
int CurrentStyle ()
CCamWndGetCamera ()
CPlugInManagerGetPlugInMgr ()
CTexWndGetTexWnd ()
CXYWndGetXYWnd ()
CXYWndGetXZWnd ()
CXYWndGetYZWnd ()
void Nudge (int nDim, float fNudge)
void NudgeSelection (int nDirection, int nAmount)
afx_msg void OnBrush3sided ()
afx_msg void OnBrush4sided ()
afx_msg void OnBrush5sided ()
afx_msg void OnBrush6sided ()
afx_msg void OnBrush7sided ()
afx_msg void OnBrush8sided ()
afx_msg void OnBrush9sided ()
afx_msg void OnBrushArbitrarysided ()
afx_msg void OnBrushFlipx ()
afx_msg void OnBrushFlipy ()
afx_msg void OnBrushFlipz ()
afx_msg void OnBrushMakecone ()
afx_msg void OnBrushPrimitivesSphere ()
afx_msg void OnBrushRotatex ()
afx_msg void OnBrushRotatey ()
afx_msg void OnBrushRotatez ()
afx_msg void OnBrushScripts ()
afx_msg void OnBspCommand (unsigned int nID)
afx_msg void OnCameraAngledown ()
afx_msg void OnCameraAngleup ()
afx_msg void OnCameraBack ()
afx_msg void OnCameraDown ()
afx_msg void OnCameraForward ()
afx_msg void OnCameraLeft ()
afx_msg void OnCameraRight ()
afx_msg void OnCameraStrafeleft ()
afx_msg void OnCameraStraferight ()
afx_msg void OnCameraUp ()
afx_msg void OnClipSelected ()
afx_msg void OnClose ()
afx_msg void OnColorsBrush ()
afx_msg void OnColorsClipper ()
afx_msg void OnColorSetblack ()
afx_msg void OnColorSetoriginal ()
afx_msg void OnColorSetqer ()
afx_msg void OnColorsGridblock ()
afx_msg void OnColorsGridtext ()
afx_msg void OnColorsMajor ()
afx_msg void OnColorsMinor ()
afx_msg void OnColorsSelectedbrush ()
afx_msg void OnColorsViewname ()
afx_msg void OnColorsXybk ()
afx_msg void OnConvertcurves ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnCurveBevel ()
afx_msg void OnCurveCap ()
afx_msg void OnCurveCapInvertedbevel ()
afx_msg void OnCurveCapInvertedendcap ()
afx_msg void OnCurveCyclecap ()
afx_msg void OnCurveCylinder ()
afx_msg void OnCurveDeletecolumn ()
afx_msg void OnCurveDeleteFirstcolumn ()
afx_msg void OnCurveDeleteFirstrow ()
afx_msg void OnCurveDeleteLastcolumn ()
afx_msg void OnCurveDeleteLastrow ()
afx_msg void OnCurveDeleterow ()
afx_msg void OnCurveEighthsphere ()
afx_msg void OnCurveEndcap ()
afx_msg void OnCurveFreeze ()
afx_msg void OnCurveHemisphere ()
afx_msg void OnCurveInsertAddcolumn ()
afx_msg void OnCurveInsertAddrow ()
afx_msg void OnCurveInsertcolumn ()
afx_msg void OnCurveInsertInsertcolumn ()
afx_msg void OnCurveInsertInsertrow ()
afx_msg void OnCurveInsertrow ()
afx_msg void OnCurveInvertcurve ()
afx_msg void OnCurveMatrixTranspose ()
afx_msg void OnCurveMoreendcapsbevelsSquarebevel ()
afx_msg void OnCurveMoreendcapsbevelsSquareendcap ()
afx_msg void OnCurveNegative ()
afx_msg void OnCurveNegativeTextureX ()
afx_msg void OnCurveNegativeTextureY ()
afx_msg void OnCurveOverlayClear ()
afx_msg void OnCurveOverlaySet ()
afx_msg void OnCurvePatchbevel ()
afx_msg void OnCurvePatchcone ()
afx_msg void OnCurvePatchdensetube ()
afx_msg void OnCurvePatchendcap ()
afx_msg void OnCurvePatchinvertedbevel ()
afx_msg void OnCurvePatchinvertedendcap ()
afx_msg void OnCurvePatchsquare ()
afx_msg void OnCurvePatchtube ()
afx_msg void OnCurvePatchverydensetube ()
afx_msg void OnCurveQuarter ()
afx_msg void OnCurveRedisperseCols ()
afx_msg void OnCurveRedisperseRows ()
afx_msg void OnCurveSimplepatchmesh ()
afx_msg void OnCurveSphere ()
afx_msg void OnCurveThicken ()
afx_msg void OnCurveUnFreeze ()
afx_msg void OnCurveUnFreezeAll ()
afx_msg void OnDestroy ()
afx_msg LRESULT OnDisplayChange (WPARAM wp, LPARAM lp)
afx_msg void OnDontselectcurve ()
afx_msg void OnDropGroupAddtoWorld ()
afx_msg void OnDropGroupName ()
afx_msg void OnDropGroupNewgroup ()
afx_msg void OnDropGroupRemove ()
afx_msg void OnDynamicLighting ()
afx_msg void OnEditCopybrush ()
afx_msg void OnEditEntityinfo ()
afx_msg void OnEditLoadprefab ()
afx_msg void OnEditMapinfo ()
afx_msg void OnEditPastebrush ()
afx_msg void OnEditRedo ()
afx_msg void OnEditSaveprefab ()
afx_msg void OnEditUndo ()
afx_msg void OnFileClose ()
afx_msg void OnFileExit ()
afx_msg void OnFileExportmap ()
afx_msg void OnFileImport ()
afx_msg void OnFileImportmap ()
afx_msg void OnFileLoadproject ()
afx_msg void OnFileNew ()
afx_msg void OnFileNewproject ()
afx_msg void OnFileOpen ()
afx_msg void OnFilePointfile ()
afx_msg void OnFilePrint ()
afx_msg void OnFilePrintPreview ()
afx_msg void OnFileProjectsettings ()
afx_msg void OnFileSave ()
afx_msg void OnFileSaveas ()
afx_msg void OnFileSaveregion ()
afx_msg void OnFlipClip ()
afx_msg void OnGrid1 (unsigned int nID)
afx_msg void OnGridNext ()
afx_msg void OnGridPrev ()
afx_msg void OnGridToggle ()
afx_msg void OnHelpAbout ()
afx_msg void OnHelpCommandlist ()
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnMiscBenchmark ()
afx_msg void OnMiscFindbrush ()
afx_msg void OnMiscGamma ()
afx_msg void OnMiscNextleakspot ()
afx_msg void OnMiscPreviousleakspot ()
afx_msg void OnMiscPrintxy ()
afx_msg void OnMiscSelectentitycolor ()
afx_msg void OnMru (unsigned int nID)
afx_msg void OnParentNotify (UINT message, LPARAM lParam)
afx_msg void OnPatchBend ()
afx_msg void OnPatchDrilldown ()
afx_msg void OnPatchEnter ()
afx_msg void OnPatchInsdel ()
afx_msg void OnPatchInspector ()
afx_msg void OnPatchNaturalize ()
afx_msg void OnPatchTab ()
afx_msg void OnPatchToggleBox ()
afx_msg void OnPatchWeld ()
afx_msg void OnPatchWireframe ()
afx_msg void OnPlugIn (unsigned int nID)
afx_msg void OnPluginsRefresh ()
afx_msg void OnPopupNewcameraFixed ()
afx_msg void OnPopupNewcameraInterpolated ()
afx_msg void OnPopupNewcameraSpline ()
afx_msg void OnPopupSelection ()
afx_msg void OnPrefs ()
afx_msg void OnRaiseLowerTerrain ()
afx_msg void OnRegionOff ()
afx_msg void OnRegionSetbrush ()
afx_msg void OnRegionSetselection ()
afx_msg void OnRegionSettallbrush ()
afx_msg void OnRegionSetxy ()
afx_msg void OnScalelockx ()
afx_msg void OnScalelocky ()
afx_msg void OnScalelockz ()
afx_msg void OnSelectAll ()
afx_msg void OnSelectionArbitraryrotation ()
afx_msg void OnSelectionClone ()
afx_msg void OnSelectionConnect ()
afx_msg void OnSelectionCsgmerge ()
afx_msg void OnSelectionCsgsubtract ()
afx_msg void OnSelectionDelete ()
afx_msg void OnSelectionDeselect ()
afx_msg void OnSelectionDragedges ()
afx_msg void OnSelectionDragvertecies ()
afx_msg void OnSelectionInvert ()
afx_msg void OnSelectionMakeDetail ()
afx_msg void OnSelectionMakehollow ()
afx_msg void OnSelectionMakeStructural ()
afx_msg void OnSelectionMovedown ()
afx_msg void OnSelectionMoveup ()
afx_msg void OnSelectionNoOutline ()
afx_msg void OnSelectionPrint ()
afx_msg void OnSelectionSelectcompletetall ()
afx_msg void OnSelectionSelectinside ()
afx_msg void OnSelectionSelectNudgedown ()
afx_msg void OnSelectionSelectNudgeleft ()
afx_msg void OnSelectionSelectNudgeright ()
afx_msg void OnSelectionSelectNudgeup ()
afx_msg void OnSelectionSelectpartialtall ()
afx_msg void OnSelectionSelecttouching ()
afx_msg void OnSelectionTextureDec ()
afx_msg void OnSelectionTextureFit ()
afx_msg void OnSelectionTextureInc ()
afx_msg void OnSelectionTextureRotateclock ()
afx_msg void OnSelectionTextureRotatecounter ()
afx_msg void OnSelectionTextureScaledown ()
afx_msg void OnSelectionTextureScaleLeft ()
afx_msg void OnSelectionTextureScaleRight ()
afx_msg void OnSelectionTextureScaleup ()
afx_msg void OnSelectionTextureShiftdown ()
afx_msg void OnSelectionTextureShiftleft ()
afx_msg void OnSelectionTextureShiftright ()
afx_msg void OnSelectionTextureShiftup ()
afx_msg void OnSelectionTogglesizepaint ()
afx_msg void OnSelectionUngroupentity ()
afx_msg void OnSelectMouserotate ()
afx_msg void OnSelectMousescale ()
afx_msg void OnSelectReselect ()
afx_msg void OnSelectScale ()
afx_msg void OnShowEntities ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnSizing (UINT fwSide, LPRECT pRect)
afx_msg void OnSnapToGrid ()
afx_msg void OnSnaptogrid ()
afx_msg void OnSplinesCameraPoints ()
afx_msg void OnSplinesEdit ()
afx_msg void OnSplinesLoad ()
afx_msg void OnSplinesMode ()
afx_msg void OnSplinesPopup ()
afx_msg void OnSplinesSave ()
afx_msg void OnSplinesTarget ()
afx_msg void OnSplinesTargetPoints ()
afx_msg void OnSplineTest ()
afx_msg void OnSplitSelected ()
afx_msg void OnSysKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnTerrainCreateFromBrush ()
afx_msg void OnTexturebk ()
afx_msg void OnTextureReplaceall ()
afx_msg void OnTexturesFlush ()
afx_msg void OnTexturesFlushUnused ()
afx_msg void OnTexturesInspector ()
afx_msg void OnTexturesLoad ()
afx_msg void OnTexturesLoadlist ()
afx_msg void OnTexturesPopup ()
afx_msg void OnTexturesReloadshaders ()
afx_msg void OnTexturesShadersShow ()
afx_msg void OnTexturesShowall ()
afx_msg void OnTexturesShowinuse ()
afx_msg void OnTexturesTexturewindowscale10 ()
afx_msg void OnTexturesTexturewindowscale100 ()
afx_msg void OnTexturesTexturewindowscale200 ()
afx_msg void OnTexturesTexturewindowscale25 ()
afx_msg void OnTexturesTexturewindowscale50 ()
afx_msg void OnTextureWad (unsigned int nID)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnTogglecamera ()
afx_msg void OnToggleconsole ()
afx_msg void OnToggleLock ()
afx_msg void OnToggleRotatelock ()
afx_msg void OnToggleview ()
afx_msg void OnToggleviewXz ()
afx_msg void OnToggleviewYz ()
afx_msg void OnTogglez ()
afx_msg void OnToolbarMain ()
afx_msg void OnToolbarTexture ()
afx_msg void OnUpdateEditRedo (CCmdUI *pCmdUI)
afx_msg void OnUpdateEditUndo (CCmdUI *pCmdUI)
afx_msg void OnUpdateFileImport (CCmdUI *pCmdUI)
afx_msg void OnUpdateFileSaveregion (CCmdUI *pCmdUI)
afx_msg void OnUpdateTexturesShowinuse (CCmdUI *pCmdUI)
afx_msg void OnUpdateViewCameraupdate (CCmdUI *pCmdUI)
afx_msg void OnView100 ()
afx_msg void OnViewCameraupdate ()
afx_msg void OnViewCenter ()
afx_msg void OnViewChange ()
afx_msg void OnViewClipper ()
afx_msg void OnViewConsole ()
afx_msg void OnViewCrosshair ()
afx_msg void OnViewCubein ()
afx_msg void OnViewCubeout ()
afx_msg void OnViewCubicclipping ()
afx_msg void OnViewDownfloor ()
afx_msg void OnViewEntitiesasBoundingbox ()
afx_msg void OnViewEntitiesasSelectedskinned ()
afx_msg void OnViewEntitiesasSelectedwireframe ()
afx_msg void OnViewEntitiesasSkinned ()
afx_msg void OnViewEntitiesasSkinnedandboxed ()
afx_msg void OnViewEntitiesasWireframe ()
afx_msg void OnViewEntity ()
afx_msg void OnViewFront ()
afx_msg void OnViewGroups ()
afx_msg void OnViewHideshowHideselected ()
afx_msg void OnViewHideshowShowhidden ()
afx_msg void OnViewNearest (unsigned int nID)
afx_msg void OnViewNextview ()
afx_msg void OnViewOpengllighting ()
afx_msg void OnViewShowangles ()
afx_msg void OnViewShowblocks ()
afx_msg void OnViewShowcaulk ()
afx_msg void OnViewShowclip ()
afx_msg void OnViewShowcoordinates ()
afx_msg void OnViewShowcurves ()
afx_msg void OnViewShowdetail ()
afx_msg void OnViewShowent ()
afx_msg void OnViewShowhint ()
afx_msg void OnViewShowlights ()
afx_msg void OnViewShownames ()
afx_msg void OnViewShowpath ()
afx_msg void OnViewShowwater ()
afx_msg void OnViewShowworld ()
afx_msg void OnViewSide ()
afx_msg void OnViewTexture ()
afx_msg void OnViewUpfloor ()
afx_msg void OnViewXy ()
afx_msg void OnViewZ100 ()
afx_msg void OnViewZoomin ()
afx_msg void OnViewZoomout ()
afx_msg void OnViewZzoomin ()
afx_msg void OnViewZzoomout ()
virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
virtual BOOL PreTranslateMessage (MSG *pMsg)
void RoutineProcessing ()
void SetActiveXY (CXYWnd *p)
void SetButtonMenuStates ()
void SetGridStatus ()
void SetStatusText (int nPane, const char *pText)
void SetTexValStatus ()
void SetWindowStyle (int nStyle)
afx_msg void ToggleCamera ()
void UpdatePatchToolbarButtons ()
void UpdateStatusText ()
void UpdateTextureBar ()
void UpdateWindows (int nBits)
virtual ~CMainFrame ()

Protected Member Functions

void CreateQEChildren ()
virtual LRESULT DefWindowProc (UINT message, WPARAM wParam, LPARAM lParam)
void LoadCommandMap ()
afx_msg LRESULT OnBSPDone (UINT wParam, long lParam)
afx_msg LRESULT OnBSPStatus (UINT wParam, long lParam)
virtual BOOL OnCommand (WPARAM wParam, LPARAM lParam)
virtual BOOL OnCreateClient (LPCREATESTRUCT lpcs, CCreateContext *pContext)
void SetEntityCheck ()
void ShowMenuItemKeyBindings (CMenu *pMenu)
virtual LRESULT WindowProc (UINT message, WPARAM wParam, LPARAM lParam)

Protected Attributes

bool m_bCamPreview
bool m_bDoLoop
bool m_bSplittersOK
int m_nCurrentStyle
int m_nNextPlugInID
CXYWndm_pActiveXY
CCamWndm_pCamWnd
CRADEditWndm_pEditWnd
CPlugInManager m_PlugInMgr
CTexWndm_pTexWnd
CXYWndm_pXYWnd
CXYWndm_pXZWnd
CXYWndm_pYZWnd
CZWndm_pZWnd
CString m_strStatus [15]
CDialogBar m_wndHelpBar
CLstToolBar m_wndScaleBar
CSplitterWnd m_wndSplit
CSplitterWnd m_wndSplit2
CSplitterWnd m_wndSplit3
CStatusBar m_wndStatusBar
CTextureBar m_wndTextureBar
CLstToolBar m_wndToolBar

Private Attributes

DECLARE_DYNAMIC(CMainFrame)
public voi 
HandleKey )(UINT nChar, UINT nRepCnt, UINT nFlags, bool bDown=true)

Constructor & Destructor Documentation

~CMainFrame  )  [virtual]
 

Definition at line 663 of file MainFrm.cpp.

00664 {
00665 }


Member Function Documentation

CXYWnd * ActiveXY  ) 
 

Definition at line 3352 of file MainFrm.cpp.

Referenced by AddPoint(), Brush_MakeSided(), CreateSmartEntity(), FinishSmartCreation(), Map_RestoreBetween(), Map_SaveBetween(), MoveSelection(), NudgeSelection(), OnEditCopybrush(), OnEditPastebrush(), CPatchDensityDlg::OnOK(), CCamWnd::OnPaint(), OnSelectionDeselect(), OnSelectionSelectcompletetall(), OnSelectMouserotate(), OnSelectMousescale(), OnViewClipper(), Patch_SetBendRotateOrigin(), CXYWnd::ProduceSplitLists(), QERApp_PositionView(), RotateSelected(), Select_Clone(), Select_CompleteTall(), Select_Deselect(), Select_PartialTall(), Select_RotateAxis(), SelectCurvePointByRay(), SetRotateOrigin(), CXYWndWrapper::SnapToGrid(), and within().

03353 {
03354   return m_pActiveXY;
03355 }

void AddPlugInMenuItem CPlugIn pPlugIn  ) 
 

Definition at line 4867 of file MainFrm.cpp.

References CPlugIn::addMenuID(), CPlugIn::getCommand(), CPlugIn::getCommandCount(), CPlugIn::getMenuName(), m_nNextPlugInID, MENU_PLUGIN, NULL, strcmp(), and strlen().

Referenced by CPlugInManager::Init().

04868 {
04869     const char  *menuText;      //PGM
04870     CMenu* pMenu = GetMenu();
04871     CMenu* pSub = pMenu->GetSubMenu(MENU_PLUGIN);
04872     if (pSub)
04873     {
04874         CMenu* pChild = new CMenu();
04875         pChild->CreateMenu();
04876         int nCount = pPlugIn->getCommandCount();
04877     if (nCount > 0)
04878     {
04879           while (nCount > 0)
04880           {
04881               menuText = pPlugIn->getCommand(--nCount);
04882         if (menuText != NULL && strlen(menuText) > 0)
04883         {
04884                 if(!strcmp(menuText, "-"))
04885                     pChild->AppendMenu(MF_SEPARATOR, NULL);
04886                 else
04887                     pChild->AppendMenu(MF_STRING, m_nNextPlugInID, menuText);
04888                 pPlugIn->addMenuID(m_nNextPlugInID++);
04889         }
04890           }
04891           pSub->AppendMenu(MF_POPUP, reinterpret_cast<unsigned int>(pChild->GetSafeHmenu()), pPlugIn->getMenuName());
04892     }
04893     }
04894 }

Here is the call graph for this function:

void CheckTextureScale int  id  ) 
 

Definition at line 4664 of file MainFrm.cpp.

References g_PrefsDlg, ID_TEXTURES_TEXTUREWINDOWSCALE_10, ID_TEXTURES_TEXTUREWINDOWSCALE_100, ID_TEXTURES_TEXTUREWINDOWSCALE_200, ID_TEXTURES_TEXTUREWINDOWSCALE_25, ID_TEXTURES_TEXTUREWINDOWSCALE_50, CPrefsDlg::SavePrefs(), Sys_UpdateWindows(), Texture_ResetPosition(), and W_TEXTURE.

Referenced by OnTexturesTexturewindowscale10(), OnTexturesTexturewindowscale100(), OnTexturesTexturewindowscale200(), OnTexturesTexturewindowscale25(), OnTexturesTexturewindowscale50(), and SetButtonMenuStates().

04665 {
04666   CMenu* pMenu = GetMenu();
04667   if (pMenu)
04668   {
04669     pMenu->CheckMenuItem(ID_TEXTURES_TEXTUREWINDOWSCALE_10, MF_BYCOMMAND | MF_UNCHECKED);
04670     pMenu->CheckMenuItem(ID_TEXTURES_TEXTUREWINDOWSCALE_25, MF_BYCOMMAND | MF_UNCHECKED);
04671     pMenu->CheckMenuItem(ID_TEXTURES_TEXTUREWINDOWSCALE_50, MF_BYCOMMAND | MF_UNCHECKED);
04672     pMenu->CheckMenuItem(ID_TEXTURES_TEXTUREWINDOWSCALE_100, MF_BYCOMMAND | MF_UNCHECKED);
04673     pMenu->CheckMenuItem(ID_TEXTURES_TEXTUREWINDOWSCALE_200, MF_BYCOMMAND | MF_UNCHECKED);
04674     pMenu->CheckMenuItem(id, MF_BYCOMMAND | MF_CHECKED);
04675   }
04676   g_PrefsDlg.SavePrefs();
04677     Texture_ResetPosition();
04678   Sys_UpdateWindows(W_TEXTURE);
04679 }

Here is the call graph for this function:

void CleanPlugInMenu  ) 
 

Definition at line 4849 of file MainFrm.cpp.

References i, m_nNextPlugInID, MENU_PLUGIN, and n.

Referenced by OnPluginsRefresh().

04850 {
04851     m_nNextPlugInID = ID_PLUGIN_START;
04852     CMenu* pMenu = GetMenu();
04853     //--pMenu->RemoveMenu(MENU_PLUGIN, MF_BYPOSITION);
04854     //--pMenu->InsertMenu(MENU_PLUGIN, MF_BYPOSITION, 0, "Plugins");
04855     //--DrawMenuBar();
04856     CMenu* pSub = pMenu->GetSubMenu(MENU_PLUGIN);
04857     if (pSub)
04858     {
04859         int n = pSub->GetMenuItemCount();
04860         for (int i = n; i > 1 ; i--)
04861         {
04862             pSub->RemoveMenu(i, MF_BYPOSITION);
04863         }
04864     }
04865 }

void CreateQEChildren  )  [protected]
 

Definition at line 1147 of file MainFrm.cpp.

References AddSlash(), argv, QEGlobals_t::d_project_entity, Error(), g_PrefsDlg, g_qeglobals, InitPakFile(), m_bDoLoop, CPrefsDlg::m_bLoadLast, CPrefsDlg::m_bPAK, CPrefsDlg::m_strLastMap, CPrefsDlg::m_strLastProject, NULL, ParseCommandLine(), QE_Init(), QE_LoadProject(), QE_TIMER0, CPrefsDlg::SavePrefs(), strlen(), Sys_Printf(), and ValueForKey().

Referenced by OnCreateClient().

01148 {
01149     // the project file can be specified on the command line,
01150     // or implicitly found in the scripts directory
01151   bool bProjectLoaded = false;
01152     if (AfxGetApp()->m_lpCmdLine && strlen(AfxGetApp()->m_lpCmdLine))
01153     {
01154         ParseCommandLine (AfxGetApp()->m_lpCmdLine);
01155         bProjectLoaded = QE_LoadProject(argv[1]);
01156     }
01157     else 
01158   {
01159     if (g_PrefsDlg.m_bLoadLast && g_PrefsDlg.m_strLastProject.GetLength() > 0)
01160     {
01161         bProjectLoaded = QE_LoadProject(g_PrefsDlg.m_strLastProject.GetBuffer(0));
01162     }
01163     if (!bProjectLoaded)
01164     {
01165       CString str = g_strAppPath;
01166       AddSlash(str);
01167       str += "../baseq3/scripts/quake.qe4";
01168       char cWork[1024];
01169       char *pFile = NULL;
01170       GetFullPathName(str, 1024, cWork, &pFile);
01171       bProjectLoaded = QE_LoadProject(cWork);
01172     }
01173     if (!bProjectLoaded)
01174     {
01175       bProjectLoaded = QE_LoadProject("scripts/quake.qe4");
01176     }
01177   }
01178 
01179   if (!bProjectLoaded)
01180   {
01181 #if 0
01182     // let's try the default project directory..
01183     char* pBuff = new char[1024];
01184     ::GetCurrentDirectory(1024, pBuff);
01185     CString strDefProj = g_strAppPath;
01186     AddSlash(strDefProj);
01187     strDefProj += "defproj";
01188     if (::SetCurrentDirectory(strDefProj))
01189     {
01190         bProjectLoaded = QE_LoadProject("scripts/quake.qe4");
01191       if (bProjectLoaded)
01192       {
01193         // setup auto load stuff for the default map
01194         g_PrefsDlg.m_bLoadLast = TRUE;
01195         AddSlash(strDefProj);
01196         strDefProj += "maps\\defproj.map";
01197         g_PrefsDlg.m_strLastMap = strDefProj;
01198         g_PrefsDlg.SavePrefs();
01199       }
01200     }
01201     else
01202     {
01203       ::SetCurrentDirectory(pBuff);
01204     }
01205     delete []pBuff;
01206 #endif
01207 
01208     if (!bProjectLoaded)
01209     {
01210       Sys_Printf ("Using default.qe4. You may experience problems. See the readme.txt\n");
01211       CString strProj = g_strAppPath;
01212       strProj += "\\default.qe4";
01213       bProjectLoaded = QE_LoadProject(strProj.GetBuffer(0));
01214 
01215       if (!bProjectLoaded)
01216       {
01217         CFileDialog dlgFile(true, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "Q3Radiant Project files (*.qe4, *.prj)|*.qe4|*.prj||", this);
01218         if (dlgFile.DoModal() == IDOK)
01219           bProjectLoaded = QE_LoadProject(dlgFile.GetPathName().GetBuffer(0));
01220       }
01221     }
01222   }
01223 
01224   if (!bProjectLoaded)
01225     Error("Unable to load project file. It was unavailable in the scripts path and the default could not be found");
01226 
01227 
01228   if (g_PrefsDlg.m_bPAK == TRUE)
01229   {
01230     // FIXME: pay attention to Q3 pref
01231     //InitPakFile(ValueForKey(g_qeglobals.d_project_entity, "basepath"), g_PrefsDlg.m_strPAKFile);
01232     InitPakFile(ValueForKey(g_qeglobals.d_project_entity, "basepath"), NULL);
01233   }
01234 
01235     QE_Init ();
01236   
01237     Sys_Printf ("Entering message loop\n");
01238 
01239   m_bDoLoop = true;
01240     SetTimer(QE_TIMER0, 1000, NULL);
01241 
01242 }

Here is the call graph for this function:

int CurrentStyle  )  [inline]
 

Definition at line 130 of file MainFrm.h.

Referenced by EntityWndProc(), GetEntityControls(), SetInspectorMode(), CXYWnd::SetViewType(), SizeEntityDlg(), CTexWnd::UpdateFilter(), and WEnt_Create().

00130 { return m_nCurrentStyle; };

LRESULT DefWindowProc UINT  message,
WPARAM  wParam,
LPARAM  lParam
[protected, virtual]
 

Definition at line 1249 of file MainFrm.cpp.

References LRESULT(), RoutineProcessing(), and wParam.

01250 {
01251   RoutineProcessing();
01252     return CFrameWnd::DefWindowProc(message, wParam, lParam);
01253 }

Here is the call graph for this function:

CCamWnd* GetCamera  )  [inline]
 

Definition at line 117 of file MainFrm.h.

Referenced by Brush_Draw(), CXYWnd::DrawCameraIcon(), DrawPatchMesh(), Entity_Write(), Face_SetColor(), Map_LoadFile(), Map_New(), CDlgCamera::OnHScroll(), OnSplineTest(), Pointfile_Next(), Pointfile_Prev(), CXYWnd::PositionView(), Select_ShiftTexture(), Texture_SetMode(), CXYWnd::XY_MouseDown(), CXYWnd::XY_MouseMoved(), CXYWnd::XY_Overlay(), Z_MouseDown(), Z_MouseMoved(), and ZDrawCameraIcon().

00117 {return m_pCamWnd;};

CPlugInManager& GetPlugInMgr  )  [inline]
 

Definition at line 172 of file MainFrm.h.

Referenced by Entity_Create(), Entity_Parse(), FillTextureMenu(), GetTextureExtension(), CSurfaceDlg::OnInitDialog(), QERApp_AddFace(), QERApp_AddFaceData(), QERApp_AllocateActiveBrushHandles(), QERApp_AllocateActivePatchHandles(), QERApp_AllocateEntityBrushHandles(), QERApp_AllocateSelectedBrushHandles(), QERApp_AllocateSelectedPatchHandles(), QERApp_BuildBrush(), QERApp_BuildBrush2(), QERApp_CommitBrushHandleToEntity(), QERApp_CommitBrushHandleToMap(), QERApp_CommitEntityHandleToMap(), QERApp_CommitPatchHandleToMap(), QERApp_CreateBrushHandle(), QERApp_CreateEntityHandle(), QERApp_CreatePatchHandle(), QERApp_DeleteBrushHandle(), QERApp_DeleteFace(), QERApp_DeletePatch(), QERApp_GetActiveBrushHandle(), QERApp_GetEntityBrushHandle(), QERApp_GetFaceCount(), QERApp_GetFaceData(), QERApp_GetPatchData(), QERApp_GetSelectedBrushHandle(), QERApp_ReleaseActiveBrushHandles(), QERApp_ReleaseEntityBrushHandles(), QERApp_ReleasePatchHandles(), QERApp_ReleaseSelectedBrushHandles(), QERApp_SelectBrush(), QERApp_SetFaceData(), QERApp_TextureBrush(), Texture_ForName(), and Texture_ShowDirectory().

00172 {return m_PlugInMgr;};

CTexWnd* GetTexWnd  )  [inline]
 

Definition at line 118 of file MainFrm.h.

Referenced by SetInspectorMode().

00118 {return m_pTexWnd;};

CXYWnd* GetXYWnd  )  [inline]
 

Definition at line 114 of file MainFrm.h.

Referenced by AssignModel(), AssignSound(), Map_LoadFile(), Map_New(), Map_RegionXY(), Pointfile_Next(), Pointfile_Prev(), and SelectBrush().

00114 {return m_pXYWnd;};

CXYWnd* GetXZWnd  )  [inline]
 

Definition at line 115 of file MainFrm.h.

Referenced by SelectBrush().

00115 {return m_pXZWnd;};

CXYWnd* GetYZWnd  )  [inline]
 

Definition at line 116 of file MainFrm.h.

Referenced by SelectBrush().

00116 {return m_pYZWnd;};

void LoadCommandMap  )  [protected]
 

Def