xrefutil.cpp File Reference
Go to the source code of this file.
Compounds | |
| class | DeleteAllAnimEnum |
| class | UnflaggedNodeDeleter |
| class | UnflaggedNodeNamer |
| class | XRefObjFinder |
| class | XrefutilClassDesc |
Functions | |
| BOOL CALLBACK | XrefutilDlgProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| BOOL CALLBACK | PickObjDlgProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
| BOOL CALLBACK | ExportDlgProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
Variables | |
| XrefutilClassDesc | XrefutilDesc |
Function Documentation
|
|
Definition at line 465 of file xrefutil.cpp. 00466 {
00467 TSTR * contents = NULL;
00468
00469 switch (message) {
00470
00471 case WM_INITDIALOG:
00472 // (populate the editbox)
00473 contents = (TSTR *) lParam;
00474 ::SetDlgItemText(hWnd, IDC_EDIT_EXPRES, (TCHAR*)(*contents));
00475 CenterWindow(hWnd,GetParent(hWnd));
00476 break;
00477
00478 case WM_COMMAND:
00479
00480 switch (LOWORD(wParam)) {
00481
00482 case IDOK:
00483 EndDialog(hWnd,1);
00484 break;
00485
00486 default:
00487 return FALSE;
00488
00489 }
00490
00491 default:
00492 return FALSE;
00493 }
00494
00495 return TRUE;
00496
00497 }
|
|
|
Definition at line 389 of file xrefutil.cpp. 00390 {
00391 int i, ix;
00392 UINT chkval;
00393
00394 switch (message) {
00395
00396 case WM_INITDIALOG:
00397 // (populate the listbox)
00398 SendDlgItemMessage(hWnd,IDC_LIST_NODES,LB_RESETCONTENT,0,0);
00399 for (i = 0; i < theXrefutil.m_objnamesholder.Count(); i++) {
00400 TSTR oname = *(theXrefutil.m_objnamesholder[i]);
00401 ix = SendDlgItemMessage(hWnd,IDC_LIST_NODES,LB_ADDSTRING,0,(LPARAM)(TCHAR*)oname);
00402 SendDlgItemMessage(hWnd,IDC_LIST_NODES,LB_SETITEMDATA,ix,i);
00403 }
00404 CenterWindow(hWnd,GetParent(hWnd));
00405 theXrefutil.m_picknameholder = "";
00406 break;
00407
00408 case WM_COMMAND:
00409
00410 switch (LOWORD(wParam)) {
00411
00412 case IDCANCEL:
00413 theXrefutil.m_picknameholder = "";
00414 EndDialog(hWnd,0);
00415 break;
00416
00417 case IDOK:
00418 // on okay, we just copy over user-picked info into our
00419 // utility object -- slightly unusual, but it's a modal dialog
00420 // and the sample continues the xref object logic fully in
00421 // AddNewXrefObject
00422 ix = ::SendDlgItemMessage(hWnd,IDC_LIST_NODES,LB_GETCURSEL,0,0);
00423 if (ix != LB_ERR) {
00424 theXrefutil.m_picknameholder = *(theXrefutil.m_objnamesholder[ix]);
00425 }
00426 chkval = ::IsDlgButtonChecked(hWnd, IDC_CHK_PROXY);
00427 if (chkval == BST_CHECKED) theXrefutil.m_proxyholder = true;
00428 else theXrefutil.m_proxyholder = false;
00429 chkval = ::IsDlgButtonChecked(hWnd, IDC_CHK_NOANIM);
00430 if (chkval == BST_CHECKED) theXrefutil.m_ignoreanimholder = true;
00431 else theXrefutil.m_ignoreanimholder = false;
00432
00433 EndDialog(hWnd,1);
00434 break;
00435
00436 default:
00437 return FALSE;
00438
00439 }
00440
00441 default:
00442 return FALSE;
00443 }
00444
00445 return TRUE;
00446
00447 }
|
|
|
Definition at line 65 of file xrefutil.cpp. 00066 {
00067 switch (msg) {
00068 case WM_INITDIALOG:
00069 theXrefutil.Init(hWnd);
00070 break;
00071
00072 case WM_DESTROY:
00073 theXrefutil.Destroy(hWnd);
00074 break;
00075
00076 case WM_COMMAND:
00077 switch (LOWORD(wParam)) {
00078
00079 case IDC_CMD_XS_ADD:
00080 // -- Add a new XRef Scene into the current scene --
00081 theXrefutil.AddNewXrefScene(hWnd);
00082 break;
00083
00084 case IDC_CMD_XS_CNV:
00085 // -- Convert selected nodes into an XRef'd scene --
00086 theXrefutil.ConvertSelectedToXrefScene(hWnd);
00087 break;
00088
00089 case IDC_CMD_XS_RFS:
00090 // -- Refresh/reload all scene xrefs --
00091 theXrefutil.RefreshAllXrefScenes(hWnd);
00092 break;
00093
00094 case IDC_CMD_XS_MRG:
00095 // -- merge in all scene xrefs --
00096 theXrefutil.MergeAllXrefScenes(hWnd);
00097 break;
00098
00099
00100 case IDC_CMD_XO_ADD:
00101 // -- Add a new XRef Object into the current scene --
00102 theXrefutil.AddNewXrefObject(hWnd);
00103 break;
00104
00105 case IDC_CMD_XO_CNVSEL:
00106 // -- Convert selected object into an XRef Object --
00107 theXrefutil.ConvertSelectedToXrefObject(hWnd);
00108 break;
00109
00110 case IDC_CMD_XO_EXP:
00111 // -- fake "export" of all xref objects in scene --
00112 theXrefutil.ExportXrefObjects(hWnd);
00113 break;
00114
00115
00116 case IDC_CLOSE:
00117 theXrefutil.m_pUtil->CloseUtility();
00118 break;
00119
00120 }
00121
00122
00123 break;
00124
00125 default:
00126 return FALSE;
00127 }
00128 return TRUE;
00129 }
|
Variable Documentation
|
|
Definition at line 58 of file xrefutil.cpp. |
Generated at Mon Nov 6 14:11:58 2000 by
1.2.3 written by Dimitri van Heesch,
© 1997-2000