29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/guied_resource.h"
63 memset ( &wndClass, 0,
sizeof(wndClass) );
64 wndClass.cbSize =
sizeof(WNDCLASSEX);
65 wndClass.lpszClassName =
"GUIEDITOR_PROPERTIES_CLASS";
67 wndClass.hbrBackground = (HBRUSH)GetSysColorBrush ( COLOR_3DFACE );
68 wndClass.hCursor = LoadCursor((HINSTANCE)
NULL, IDC_ARROW);
69 wndClass.lpszMenuName =
NULL;
71 RegisterClassEx ( &wndClass );
73 mWnd = CreateWindowEx ( WS_EX_TOOLWINDOW,
74 "GUIEDITOR_PROPERTIES_CLASS",
76 WS_SYSMENU|WS_THICKFRAME|WS_CAPTION|WS_POPUP|WS_OVERLAPPED|WS_BORDER|WS_CLIPSIBLINGS|WS_CHILD,
93 GetWindowRect ( parent, &rParent );
94 GetWindowRect (
mWnd, &rClient );
95 SetWindowPos (
mWnd, NULL,
96 rParent.right - 10 - (rClient.right-rClient.left),
97 rParent.bottom - 10 - (rClient.bottom-rClient.top),
99 SWP_NOZORDER|SWP_NOSIZE );
117 ShowWindow (
mWnd, visible?SW_SHOW:SW_HIDE );
177 gApp.
MessageBox (
va(
"Invalid property value '%s' for property '%s'", value, name), MB_OK );
184 tempstate.
Set ( name, tempvalue );
218 hdr = (NMHDR*)lParam;
219 if ( hdr->idFrom == 999 )
272 cs = (LPCREATESTRUCT) lParam;
274 SetWindowLong ( hWnd, GWL_USERDATA, (
LONG)kv );
292 kv->
mGrid.
Move ( 0, 0, LOWORD(lParam), HIWORD(lParam),
TRUE );
308 return DefWindowProc ( hWnd, msg, wParam, lParam );
GLsizei const GLfloat * value
CONST PIXELFORMATDESCRIPTOR UINT
const idStr & GetKey(void) const
idStr & StripQuotes(void)
void SetWindowPlacement(const char *name, HWND hwnd)
rvGEWorkspace * mWorkspace
void RemoveAllItems(void)
rvGEWindowWrapper * mWrapper
void SetModified(bool mod)
bool GetWindowPlacement(const char *name, HWND hwnd)
void Move(int x, int y, int w, int h, BOOL redraw=FALSE)
void Set(const char *key, const char *value)
idDict & GetStateDict(void)
bool Create(HWND parent, int id, int style=0)
void SetPropertiesVisible(bool vis)
int AddItem(const char *name, const char *value, EItemType type=PGIT_STRING)
rvGEModifierStack & GetModifierStack(void)
rvGEOptions & GetOptions(void)
bool AddModifier(const char *name, const char *value)
bool Create(HWND parent, bool visible)
bool VerfiyStateKey(const char *name, const char *value, idStr *result=NULL)
int MessageBox(const char *text, int flags)
const idStr & GetValue(void) const
bool ReflectMessage(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
rvGESelectionMgr & GetSelectionMgr(void)
void SetWorkspace(rvGEWorkspace *workspace)
int ToolWindowActivate(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
rvGENavigator & GetNavigator(void)
static rvGEWindowWrapper * GetWrapper(idWindow *window)
idWindow * GetWindow(void)
bool Append(rvGEModifier *modifier)
static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
const idKeyValue * GetKeyVal(int index) const
char * va(const char *fmt,...)
int GetNumKeyVals(void) const
virtual void ActivateTool(bool active)=0