/dports/games/dhewm3/dhewm3-1.5.1/neo/tools/radiant/ |
H A D | PointFile.cpp | 60 VectorCopy (s_pointvecs[s_check_point], g_pParentWnd->GetCamera()->Camera().origin); in Pointfile_Next() 61 VectorCopy (s_pointvecs[s_check_point], g_pParentWnd->GetXYWnd()->GetOrigin()); in Pointfile_Next() 62 VectorSubtract (s_pointvecs[s_check_point+1], g_pParentWnd->GetCamera()->Camera().origin, dir); in Pointfile_Next() 64 g_pParentWnd->GetCamera()->Camera().angles[1] = atan2 (dir[1], dir[0])*180/3.14159; in Pointfile_Next() 65 g_pParentWnd->GetCamera()->Camera().angles[0] = asin (dir[2])*180/3.14159; in Pointfile_Next() 81 VectorCopy (s_pointvecs[s_check_point], g_pParentWnd->GetCamera()->Camera().origin); in Pointfile_Prev() 82 VectorCopy (s_pointvecs[s_check_point], g_pParentWnd->GetXYWnd()->GetOrigin()); in Pointfile_Prev() 83 VectorSubtract (s_pointvecs[s_check_point+1], g_pParentWnd->GetCamera()->Camera().origin, dir); in Pointfile_Prev() 85 g_pParentWnd->GetCamera()->Camera().angles[1] = atan2 (dir[1], dir[0])*180/3.14159; in Pointfile_Prev() 86 g_pParentWnd->GetCamera()->Camera().angles[0] = asin (dir[2])*180/3.14159; in Pointfile_Prev()
|
H A D | Radiant.cpp | 119 g_pParentWnd->ShowWindow( SW_SHOW ); in RadiantInit() 120 g_pParentWnd->SetFocus(); in RadiantInit() 160 g_pParentWnd->GetCamera()->SetView( viewOrg, flip ); in RadiantSync() 161 g_pParentWnd->SetFocus(); in RadiantSync() 163 g_pParentWnd->RoutineProcessing(); in RadiantSync() 331 g_pParentWnd = NULL; in ExitInstance() 339 if (g_pParentWnd) { in OnIdle() 340 g_pParentWnd->RoutineProcessing(); in OnIdle() 414 if (hWnd != g_pParentWnd->GetSafeHwnd()) { in SaveWindowState() 416 ::SetParent(hWnd, g_pParentWnd->GetSafeHwnd()); in SaveWindowState() [all …]
|
H A D | EditorMap.cpp | 76 if (g_pParentWnd->ActiveXY()) { in Map_SaveBetween() 78 g_pParentWnd->ActiveXY()->Copy(); in Map_SaveBetween() 91 g_pParentWnd->ActiveXY()->Paste(); in Map_RestoreBetween() 1046 g_pParentWnd->GetXYWnd()->Width() / in Map_RegionXY() 1047 g_pParentWnd->GetXYWnd()->Scale(); in Map_RegionXY() 1050 g_pParentWnd->GetXYWnd()->Width() / in Map_RegionXY() 1051 g_pParentWnd->GetXYWnd()->Scale(); in Map_RegionXY() 1054 g_pParentWnd->GetXYWnd()->Height() / in Map_RegionXY() 1055 g_pParentWnd->GetXYWnd()->Scale(); in Map_RegionXY() 1058 g_pParentWnd->GetXYWnd()->Height() / in Map_RegionXY() [all …]
|
H A D | Z.CPP | 89 if (g_pParentWnd->GetZWnd()->m_pZClip) // should always be the case I think, but this is safer in Z_MouseDown() 117 g_pParentWnd->GetZWnd()->m_pZClip->Enable(!(g_pParentWnd->GetZWnd()->m_pZClip->IsEnabled())); in Z_MouseDown() 124 g_pParentWnd->GetZWnd()->m_pZClip->SetTop(org[2]); in Z_MouseDown() 131 g_pParentWnd->GetZWnd()->m_pZClip->SetBottom(org[2]); in Z_MouseDown() 138 g_pParentWnd->GetZWnd()->m_pZClip->Reset(); in Z_MouseDown() 171 g_pParentWnd->GetCamera()->Camera().origin[2] = org[2]; in Z_MouseDown() 216 g_pParentWnd->GetCamera()->Camera().origin[2] = z.origin[2] + (y - (z.height / 2)) / z.scale; in Z_MouseMoved() 306 y = g_pParentWnd->GetCamera()->Camera().origin[2]; in ZDrawCameraIcon() 327 y = g_pParentWnd->GetCamera()->Camera().origin[2]; in ZDrawZClip() 329 if (g_pParentWnd->GetZWnd()->m_pZClip) // should always be the case I think in ZDrawZClip() [all …]
|
H A D | WIN_QE3.CPP | 64 g_pParentWnd->SetWindowText(va("%s: %s",EDITOR_WINDOWTEXT, text)); in Sys_SetTitle() 269 if (g_pParentWnd->MessageBox(text2, "Error", MB_YESNO) == IDYES) { in Error() 307 …if (g_pParentWnd->MessageBox("This will lose changes to the map", "warning", MB_OKCANCEL) == IDCAN… in ConfirmModified() 347 ofn.hwndOwner = g_pParentWnd->GetSafeHwnd(); in OpenDialog() 366 …PlaceMenuMRUItem(g_qeglobals.d_lpMruMenu, GetSubMenu(GetMenu(g_pParentWnd->GetSafeHwnd()), 0), ID_… in OpenDialog() 388 ofn.hwndOwner = g_pParentWnd->GetSafeHwnd(); in ProjectDialog() 404 …PlaceMenuMRUItem(g_qeglobals.d_lpMruMenu, GetSubMenu(GetMenu(g_pParentWnd->GetSafeHwnd()), 0), ID_… in ProjectDialog() 433 ofn.hwndOwner = g_pParentWnd->GetSafeHwnd(); in SaveAsDialog() 458 …PlaceMenuMRUItem(g_qeglobals.d_lpMruMenu, GetSubMenu(GetMenu(g_pParentWnd->GetSafeHwnd()), 0), ID_… in SaveAsDialog() 479 hmenu = GetSubMenu(GetMenu(g_pParentWnd->GetSafeHwnd()), MENU_BSP); in FillBSPMenu()
|
H A D | GetString.cpp | 106 if (MessageBox(g_pParentWnd->GetSafeHwnd(), psQuery, "Query", MB_YESNO|MB_ICONWARNING)==IDYES) in GetYesNo() 114 MessageBox( g_pParentWnd->GetSafeHwnd(), sString, "Error", MB_OK|MB_ICONERROR|MB_TASKMODAL ); in ErrorBox() 118 MessageBox( g_pParentWnd->GetSafeHwnd(), sString, "Info", MB_OK|MB_ICONINFORMATION|MB_TASKMODAL ); in InfoBox() 122 MessageBox( g_pParentWnd->GetSafeHwnd(), sString, "Warning", MB_OK|MB_ICONWARNING|MB_TASKMODAL ); in WarningBox()
|
H A D | WIN_DLG.CPP | 253 …DialogBox(g_qeglobals.d_hInstance, (char *)IDD_PROJECT, g_pParentWnd->GetSafeHwnd(), ProjectDlgPro… in DoProjectSettings() 295 …if ( DialogBox(g_qeglobals.d_hInstance, (char *)IDD_GAMMA, g_pParentWnd->GetSafeHwnd(), GammaDlgPr… in DoGamma() 348 if (g_pParentWnd->GetXYWnd()) in SelectBrush() 349 g_pParentWnd->GetXYWnd()->GetOrigin()[i] = (b->mins[i] + b->maxs[i])/2; in SelectBrush() 351 if (g_pParentWnd->GetXZWnd()) in SelectBrush() 352 g_pParentWnd->GetXZWnd()->GetOrigin()[i] = (b->mins[i] + b->maxs[i])/2; in SelectBrush() 354 if (g_pParentWnd->GetYZWnd()) in SelectBrush() 355 g_pParentWnd->GetYZWnd()->GetOrigin()[i] = (b->mins[i] + b->maxs[i])/2; in SelectBrush() 507 DialogBox(g_qeglobals.d_hInstance, (char *)IDD_ROTATE, g_pParentWnd->GetSafeHwnd(), RotateDlgProc); in DoRotate() 567 DialogBox(g_qeglobals.d_hInstance, (char *)IDD_SIDES, g_pParentWnd->GetSafeHwnd(), SidesDlgProc); in DoSides() [all …]
|
H A D | DRAG.CPP | 517 if (g_pParentWnd->ActiveXY()->RotateMode() || g_bPatchBendMode) { in MoveSelection() 521 if (g_pParentWnd->ActiveXY()->GetViewType() == XY) { in MoveSelection() 526 else if (g_pParentWnd->ActiveXY()->GetViewType() == XZ) { in MoveSelection() 537 g_pParentWnd->ActiveXY()->Rotation()[0], in MoveSelection() 538 g_pParentWnd->ActiveXY()->Rotation()[1], in MoveSelection() 539 g_pParentWnd->ActiveXY()->Rotation()[2] in MoveSelection() 541 g_pParentWnd->SetStatusText(2, strStatus); in MoveSelection() 556 if (g_pParentWnd->ActiveXY()->ScaleMode()) { in MoveSelection() 575 g_pParentWnd->SetStatusText(3, strStatus); in MoveSelection() 717 if (buttons & MK_CONTROL && g_pParentWnd->ActiveXY()->RotateMode()) { in Drag_MouseMoved() [all …]
|
H A D | XYWnd.cpp | 165 float scale = g_pParentWnd->ActiveXY()->Scale(); in PointRay() 888 g_pParentWnd->SetActiveXY(this); in OnLButtonDown() 891 if (g_pParentWnd->GetNurbMode()) { in OnLButtonDown() 903 g_pParentWnd->GetNurb()->Clear(); in OnLButtonDown() 1087 g_pParentWnd->SetActiveXY(this); in OnRButtonDown() 1169 if (g_pParentWnd->GetTopWindow() != this) { in OriginalButtonDown() 1884 g_pParentWnd->ActiveXY(), in FinishSmartCreation() 3755 if (g_pParentWnd->GetNurbMode() && g_pParentWnd->GetNurb()->GetNumValues()) { in XY_Draw() 3761 g_pParentWnd->GetNurb()->SetOrder(3); in XY_Draw() 4465 g_pParentWnd->OnViewZoomin(); in OnMouseWheel() [all …]
|
H A D | NewTexWnd.cpp | 179 g_pParentWnd->HandleKey(nChar, nRepCnt, nFlags); in OnKeyDown() 187 g_pParentWnd->HandleKey(nChar, nRepCnt, nFlags, false); in OnKeyUp() 527 g_pParentWnd->SetFocus(); in OnLButtonUp() 756 hMenu = GetMenu(g_pParentWnd->GetSafeHwnd()); in Texture_SetMode() 806 g_pParentWnd->GetCamera()->Camera().draw_mode = cd_wire; in Texture_SetMode() 812 g_pParentWnd->GetCamera()->Camera().draw_mode = cd_solid; in Texture_SetMode() 818 if (g_pParentWnd->GetCamera()->Camera().draw_mode != cd_texture) { in Texture_SetMode() 819 g_pParentWnd->GetCamera()->Camera().draw_mode = cd_texture; in Texture_SetMode() 905 g_pParentWnd->GetCamera()->SetFocus(); in PreTranslateMessage() 910 g_pParentWnd->PostMessage(WM_KEYDOWN, pMsg->wParam); in PreTranslateMessage()
|
H A D | ZWnd.cpp | 110 g_pParentWnd->HandleKey(nChar, nRepCnt, nFlags); in OnKeyDown() 174 g_pParentWnd->SetStatusText(1, strStatus); in OnMouseMove() 269 g_pParentWnd->HandleKey(nChar, nRepCnt, nFlags, false); in OnKeyUp()
|
/dports/games/ufoai/ufoai-2.5-source/src/tools/radiant/radiant/ |
H A D | commands.cpp | 271 g_pParentWnd->getDefaultToolMode()(); in ToggleEdgeMode() 289 g_pParentWnd->getDefaultToolMode()(); in ToggleVertexMode() 307 g_pParentWnd->getDefaultToolMode()(); in ToggleFaceMode() 446 …if (g_pParentWnd->getCurrentToolMode() == DragMode && g_pParentWnd->getDefaultToolMode() != DragMo… in DragMode() 447 g_pParentWnd->getDefaultToolMode()(); in DragMode() 466 g_pParentWnd->getDefaultToolMode()(); in TranslateMode() 484 …if (g_pParentWnd->getCurrentToolMode() == RotateMode && g_pParentWnd->getDefaultToolMode() != Rota… in RotateMode() 485 g_pParentWnd->getDefaultToolMode()(); in RotateMode() 503 …if (g_pParentWnd->getCurrentToolMode() == ScaleMode && g_pParentWnd->getDefaultToolMode() != Scale… in ScaleMode() 504 g_pParentWnd->getDefaultToolMode()(); in ScaleMode() [all …]
|
/dports/games/netradiant/netradiant-20150621-src/radiant/ |
H A D | xywindow.cpp | 529 ASSERT_NOTNULL( g_pParentWnd ); in GlobalXYWnd_getCurrentViewType() 556 g_pParentWnd->ActiveXY()->MakeCurrent(); 715 g_pParentWnd->SetActiveXY( xywnd ); in xywnd_button_press() 736 g_pParentWnd->SetActiveXY( xywnd ); in xywnd_focus_in() 1358 g_pParentWnd->SetStatusText( g_pParentWnd->m_position_status, status.c_str() ); in XY_MouseMoved() 2415 if ( g_pParentWnd->GetXYWnd() ) { in XY_Split_Focus() 2418 if ( g_pParentWnd->GetXZWnd() ) { in XY_Split_Focus() 2421 if ( g_pParentWnd->GetYZWnd() ) { in XY_Split_Focus() 2499 if ( g_pParentWnd->GetXYWnd() ) { in XY_Zoom100() 2502 if ( g_pParentWnd->GetXZWnd() ) { in XY_Zoom100() [all …]
|
H A D | pluginapi.cpp | 39 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in QERApp_GetCamera() 45 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in QERApp_SetCamera() 52 CamWnd* camwnd = g_pParentWnd->GetCamWnd(); in QERApp_GetCamWindowExtents()
|
H A D | points.cpp | 194 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in Pointfile_Next() 196 g_pParentWnd->GetXYWnd()->SetOrigin( *i ); in Pointfile_Next() 219 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in Pointfile_Prev() 221 g_pParentWnd->GetXYWnd()->SetOrigin( *i ); in Pointfile_Prev()
|
H A D | qe3.cpp | 121 g_pParentWnd->SetStatusText( g_pParentWnd->m_brushcount_status, buffer ); in QE_UpdateStatusBar() 224 Vector3 vOrig( vector3_snapped( Camera_getOrigin( *g_pParentWnd->GetCamWnd() ) ) ); in Region_cameraValid()
|
H A D | main.cpp | 623 g_pParentWnd = 0; in main() 624 g_pParentWnd = new MainFrame(); in main() 646 if ( g_pParentWnd->IsSleeping() ) { in main() 657 delete g_pParentWnd; in main()
|
H A D | map.cpp | 480 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in FocusViews() 487 XYWnd* xywnd = g_pParentWnd->GetXYWnd(); in FocusViews() 1245 Vector3 vOrig( Camera_getOrigin( *g_pParentWnd->GetCamWnd() ) ); in ConstructRegionStartpoint() 1259 sprintf( sTmp, "%d", (int)Camera_getAngles( *g_pParentWnd->GetCamWnd() )[CAMERA_YAW] ); in ConstructRegionStartpoint() 1861 …g_pParentWnd->GetXYWnd()->GetOrigin()[0] - 0.5f * g_pParentWnd->GetXYWnd()->Width() / g_pParentWnd… in RegionXY() 1862 …g_pParentWnd->GetXYWnd()->GetOrigin()[1] - 0.5f * g_pParentWnd->GetXYWnd()->Height() / g_pParentWn… in RegionXY() 1863 …g_pParentWnd->GetXYWnd()->GetOrigin()[0] + 0.5f * g_pParentWnd->GetXYWnd()->Width() / g_pParentWnd… in RegionXY() 1864 …g_pParentWnd->GetXYWnd()->GetOrigin()[1] + 0.5f * g_pParentWnd->GetXYWnd()->Height() / g_pParentWn… in RegionXY() 1942 g_pParentWnd->GetXYWnd()->PositionView( instance->worldAABB().origin ); in SelectBrush()
|
/dports/games/gtkradiant/GPL/GtkRadiant/radiant/ |
H A D | pluginapi.cpp | 40 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in QERApp_GetCamera() 47 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in QERApp_SetCamera() 55 CamWnd* camwnd = g_pParentWnd->GetCamWnd(); in QERApp_GetCamWindowExtents()
|
H A D | xywindow.cpp | 521 ASSERT_NOTNULL(g_pParentWnd); in GlobalXYWnd_getCurrentViewType() 522 ASSERT_NOTNULL(g_pParentWnd->ActiveXY()); in GlobalXYWnd_getCurrentViewType() 548 g_pParentWnd->ActiveXY()->MakeCurrent(); 1311 g_pParentWnd->SetActiveXY(this); in XY_MouseDown() 1421 g_pParentWnd->SetStatusText(g_pParentWnd->m_position_status, status.c_str()); in XY_MouseMoved() 2318 …DrawCameraIcon (Camera_getOrigin(*g_pParentWnd->GetCamWnd()), Camera_getAngles(*g_pParentWnd->GetC… in XY_Draw() 2438 XYWnd_Focus(g_pParentWnd->GetXYWnd()); in XY_Front() 2455 if (g_pParentWnd->GetXYWnd()) in XY_Zoom100() 2457 if (g_pParentWnd->GetXZWnd()) in XY_Zoom100() 2459 if (g_pParentWnd->GetYZWnd()) in XY_Zoom100() [all …]
|
H A D | points.cpp | 215 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in Pointfile_Next() 217 g_pParentWnd->GetXYWnd()->SetOrigin(*i); in Pointfile_Next() 241 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in Pointfile_Prev() 243 g_pParentWnd->GetXYWnd()->SetOrigin(*i); in Pointfile_Prev()
|
H A D | main.cpp | 574 g_pParentWnd = 0; in main() 575 g_pParentWnd = new MainFrame(); in main() 598 if (g_pParentWnd->IsSleeping()) in main() 611 delete g_pParentWnd; in main()
|
H A D | qe3.cpp | 130 g_pParentWnd->SetStatusText(g_pParentWnd->m_brushcount_status, buffer); in QE_UpdateStatusBar() 255 Vector3 vOrig(vector3_snapped(Camera_getOrigin(*g_pParentWnd->GetCamWnd()))); in Region_cameraValid()
|
H A D | map.cpp | 529 CamWnd& camwnd = *g_pParentWnd->GetCamWnd(); in FocusViews() 536 XYWnd* xywnd = g_pParentWnd->GetXYWnd(); in FocusViews() 1360 Vector3 vOrig(Camera_getOrigin(*g_pParentWnd->GetCamWnd())); in ConstructRegionStartpoint() 1375 sprintf(sTmp, "%d", (int)Camera_getAngles(*g_pParentWnd->GetCamWnd())[CAMERA_YAW]); in ConstructRegionStartpoint() 1979 …g_pParentWnd->GetXYWnd()->GetOrigin()[0] - 0.5f * g_pParentWnd->GetXYWnd()->Width() / g_pParentWnd… in RegionXY() 1980 …g_pParentWnd->GetXYWnd()->GetOrigin()[1] - 0.5f * g_pParentWnd->GetXYWnd()->Height() / g_pParentWn… in RegionXY() 1981 …g_pParentWnd->GetXYWnd()->GetOrigin()[0] + 0.5f * g_pParentWnd->GetXYWnd()->Width() / g_pParentWnd… in RegionXY() 1982 …g_pParentWnd->GetXYWnd()->GetOrigin()[1] + 0.5f * g_pParentWnd->GetXYWnd()->Height() / g_pParentWn… in RegionXY() 2074 g_pParentWnd->GetXYWnd()->PositionView(instance->worldAABB().origin); in SelectBrush()
|
/dports/games/ufoai/ufoai-2.5-source/src/tools/radiant/radiant/ui/mainframe/ |
H A D | mainframe.cpp | 312 if (g_pParentWnd != 0) { in GlobalCamera_UpdateWindow() 313 g_pParentWnd->GetCamWnd()->update(); in GlobalCamera_UpdateWindow() 319 if (g_pParentWnd != 0) { in XY_UpdateAllWindows() 390 MainFrame* g_pParentWnd = 0; variable 394 if (g_pParentWnd == 0) { in MainFrame_getWindow() 397 return g_pParentWnd->m_window; in MainFrame_getWindow() 667 if (g_pParentWnd != 0) { in Sys_Status() 668 g_pParentWnd->SetStatusText(g_pParentWnd->m_command_status, status); in Sys_Status()
|