29 #include "../../idlib/precompiled.h"
76 ASSERT ( m_Tabs.GetSafeHwnd() );
81 texWnd.Create(TEXTURE_WINDOW_CLASS,
"", QE3_SPLITTER_STYLE, CRect(5, 5, 10, 10),
this, 1299);
85 dockedTabs =
GetCvarInt (
"radiant_InspectorDockedDialogs" , W_CONSOLE | W_TEXTURE | W_MEDIA );
128 CTabsDlg::OnSize(nType, cx, cy);
142 m_Tabs.GetWindowRect(tabRect);
145 tabRect.right = rect.Width() - 4;
146 tabRect.top = rect.Height() - tabRect.Height() - 4;
147 tabRect.bottom = rect.Height() - 4;
149 rect.bottom -= 5 + tabRect.Height();
151 m_Tabs.SetWindowPos(
NULL, tabRect.left, tabRect.top, tabRect.Width(), tabRect.Height(), 0);
155 m_Windows.GetNextAssoc( pos, wID, (
void*&)info );
158 info->m_Window->SetWindowPos(
NULL, rect.left, rect.top, rect.Width(), rect.Height(), 0);
180 if ( pMsg->message == WM_KEYDOWN || pMsg->message == WM_KEYUP) {
181 g_pParentWnd->PostMessage(pMsg->message, pMsg->wParam, pMsg->lParam);
CMainFrame * g_pParentWnd
#define IDD_DIALOG_TEXTURELIST
void UpdateEntitySel(eclass_t *ent)
CONST PIXELFORMATDESCRIPTOR UINT
#define IDD_DIALOG_ENTITY
bool LoadWindowPlacement(HWND hwnd, const char *pName)
void InspectorsDockingCallback(bool docked, int ID, CWnd *wnd)
void UpdateSelectedEntity()
bool GetSelectAllCriteria(idStr &key, idStr &val)
CInspectorDialog(CWnd *pParent=NULL)
void SetKeyValPairs(bool updateAnims=true)
void SetDockedTabs(bool docked, int ID)
virtual BOOL PreTranslateMessage(MSG *pMsg)
#define IDC_TAB_INSPECTOR
CInspectorDialog * g_Inspectors
afx_msg void OnSize(UINT nType, int cx, int cy)
#define IDD_DIALOG_CONSOLE
void SetMode(int mode, bool updateTabs=true)
int GetCvarInt(const char *name, const int def)
void UpdateEntitySel(eclass_t *ent)
void SaveWindowPlacement(int ID=-1)
void SetCvarInt(const char *name, const int value)
virtual BOOL OnInitDialog()
virtual ~CInspectorDialog()
int PreTranslateMessage(MSG *msg)