GPL headers and the Outliner dialog.

This commit is contained in:
Justin Marshall
2026-05-06 14:07:17 -07:00
parent 1a08d4af90
commit c1defbad40
801 changed files with 7568 additions and 6306 deletions
+9 -4
View File
@@ -1,8 +1,8 @@
/*
===========================================================================
Doom 3 GPL Source Code
Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
IceTech GPL Source Code
Copyright (C) 2026 Justin Marshall
===========================================================================
*/
@@ -15,6 +15,7 @@ Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
#include "GLWidget.h"
#include "ConsoleDlg.h"
#include "InspectorDialog.h"
#include "OutlinerDlg.h"
#include "TabsDlg.h"
CInspectorDialog* g_Inspectors = NULL;
@@ -41,7 +42,7 @@ void InspectorsDockingCallback(bool docked, int ID, CWnd* wnd) {
CInspectorDialog::CInspectorDialog(CWnd* pParent /*=NULL*/)
: CTabsDlg(CInspectorDialog::IDD, pParent) {
initialized = false;
dockedTabs = W_CONSOLE | W_TEXTURE | W_MEDIA;
dockedTabs = W_CONSOLE | W_TEXTURE | W_MEDIA | W_OUTLINER;
}
CInspectorDialog::~CInspectorDialog() {
@@ -82,13 +83,15 @@ BOOL CInspectorDialog::OnInitDialog() {
texWnd.Create(TEXTURE_WINDOW_CLASS, "", QE3_SPLITTER_STYLE, CRect(5, 5, 10, 10), this, 1299);
mediaDlg.Create(IDD_DIALOG_TEXTURELIST, this);
entityDlg.Create(IDD_DIALOG_ENTITY, this);
outlinerDlg.Create(this);
dockedTabs = GetCvarInt("radiant_InspectorDockedDialogs", W_CONSOLE | W_TEXTURE | W_MEDIA);
dockedTabs = GetCvarInt("radiant_InspectorDockedDialogs", W_CONSOLE | W_TEXTURE | W_MEDIA | W_OUTLINER);
AddDockedWindow(&consoleWnd, W_CONSOLE, 1, "Console", (dockedTabs & W_CONSOLE) != 0, InspectorsDockingCallback);
AddDockedWindow(&texWnd, W_TEXTURE, 2, "Textures", (dockedTabs & W_TEXTURE) != 0, InspectorsDockingCallback);
AddDockedWindow(&mediaDlg, W_MEDIA, 3, "Media", (dockedTabs & W_MEDIA) != 0, InspectorsDockingCallback);
AddDockedWindow(&entityDlg, W_ENTITY, 4, "Entity", (dockedTabs & W_ENTITY) != 0, InspectorsDockingCallback);
AddDockedWindow(&outlinerDlg, W_OUTLINER, 5, "Outliner", (dockedTabs & W_OUTLINER) != 0, InspectorsDockingCallback);
ApplyModernTheme();
@@ -142,6 +145,7 @@ void CInspectorDialog::ApplyModernTheme() {
ApplyModernFontRecursive(&consoleWnd);
ApplyModernFontRecursive(&mediaDlg);
ApplyModernFontRecursive(&entityDlg);
ApplyModernFontRecursive(&outlinerDlg);
ModifyStyleEx(WS_EX_CLIENTEDGE, 0, SWP_FRAMECHANGED);
@@ -176,6 +180,7 @@ void CInspectorDialog::FillClassList() {
void CInspectorDialog::UpdateSelectedEntity() {
entityDlg.SetKeyValPairs();
outlinerDlg.RefreshIfNeeded();
}
bool CInspectorDialog::GetSelectAllCriteria(idStr& key, idStr& val) {