29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/guied_resource.h"
33 #include "../common/ColorButton.h"
44 static INT_PTR CALLBACK GEOptionsDlg_GeneralProc ( HWND hwnd,
UINT msg, WPARAM wParam,
LPARAM lParam )
57 switch ( LOWORD ( wParam ) )
62 ZeroMemory ( &col,
sizeof(col) );
63 col.lStructSize =
sizeof(col);
67 col.Flags = CC_RGBINIT;
69 if ( ChooseColor ( &col ) )
83 switch (((NMHDR
FAR *) lParam)->code)
104 static INT_PTR CALLBACK GEOptionsDlg_GridProc ( HWND hwnd,
UINT msg, WPARAM wParam,
LPARAM lParam )
122 switch (((NMHDR
FAR *) lParam)->code)
142 switch ( LOWORD ( wParam ) )
147 ZeroMemory ( &col,
sizeof(col) );
148 col.lStructSize =
sizeof(col);
150 col.hwndOwner = hwnd;
151 col.hInstance =
NULL;
152 col.Flags = CC_RGBINIT;
154 if ( ChooseColor ( &col ) )
176 PROPSHEETHEADER propsh;
177 PROPSHEETPAGE propsp[2];
179 propsp[0].dwSize =
sizeof(PROPSHEETPAGE);
180 propsp[0].dwFlags = PSP_USETITLE;
183 propsp[0].pfnDlgProc = GEOptionsDlg_GeneralProc;
184 propsp[0].pszTitle =
"General";
185 propsp[0].lParam = 0;
187 propsp[1].dwSize =
sizeof(PROPSHEETPAGE);
188 propsp[1].dwFlags = PSP_USETITLE;
191 propsp[1].pfnDlgProc = GEOptionsDlg_GridProc;
192 propsp[1].pszTitle =
"Grid";
193 propsp[1].lParam = 0;
195 propsh.dwSize =
sizeof(PROPSHEETHEADER);
197 propsh.dwFlags = PSH_PROPSHEETPAGE|PSH_NOAPPLYNOW|PSH_NOCONTEXTHELP;
198 propsh.hwndParent = parent;
199 propsh.pszCaption =
"Options";
201 propsh.ppsp = (LPCPROPSHEETPAGE)&propsp;
203 if ( PropertySheet ( &propsh ) )
bool GEOptionsDlg_DoModal(HWND parent)
#define IDC_GUIED_IGNOREDESKTOP
void SetSelectionColor(idVec4 &color)
CONST PIXELFORMATDESCRIPTOR UINT
idVec4 & GetSelectionColor(void)
void SetIgnoreDesktopSelect(bool ignore)
rvGEOptions & GetOptions(void)
void SetLastOptionsPage(int page)
#define IDD_GUIED_OPTIONS_GRID
void SetGridSnap(bool snap)
bool GetGridVisible(void)
void SetGridVisible(bool vis)
bool GetIgnoreDesktopSelect(void)
COLORREF * GetCustomColors(void)
#define IDC_GUIED_SELECTIONCOLOR
#define IDC_GUIED_SPACINGWIDTH
#define IDD_GUIED_OPTIONS_GENERAL
idVec4 & GetGridColor(void)
void SetGridWidth(int width)
int GetLastOptionsPage(void)
MFnDagNode * GetParent(MFnDagNode *joint)
#define IDC_GUIED_GRIDCOLOR
void SetGridHeight(int height)
void SetGridColor(idVec4 &color)
char * va(const char *fmt,...)
#define IDC_GUIED_GRIDSNAP
#define IDC_GUIED_GRIDVISIBLE
#define IDC_GUIED_SPACINGHEIGHT