Mercurial > hg > xemacs-beta
comparison netinstall/desktop.cc @ 672:42a8626b741e
[xemacs-hg @ 2001-10-26 02:42:53 by andyp]
more netinstaller fixes
author | andyp |
---|---|
date | Fri, 26 Oct 2001 02:42:53 +0000 |
parents | 146d342ff859 |
children | a307f9a2021d |
comparison
equal
deleted
inserted
replaced
671:53ec80338ec1 | 672:42a8626b741e |
---|---|
314 if (reg_txt) | 314 if (reg_txt) |
315 { | 315 { |
316 log (0, "Registering .txt files"); | 316 log (0, "Registering .txt files"); |
317 setup_explorer ("txt", "Text file", batname); | 317 setup_explorer ("txt", "Text file", batname); |
318 } | 318 } |
319 if (reg_idl) | |
320 { | |
321 log (0, "Registering .idl files"); | |
322 setup_explorer ("idl", "OMG IDL file", batname); | |
323 } | |
319 } | 324 } |
320 } | 325 } |
321 } | 326 } |
322 | 327 |
323 static int da[] = { IDC_ROOT_DESKTOP, 0 }; | 328 static int da[] = { IDC_ROOT_DESKTOP, 0 }; |
326 static int ct[] = { IDC_C_TYPE, 0 }; | 331 static int ct[] = { IDC_C_TYPE, 0 }; |
327 static int javat[] = { IDC_JAVA_TYPE, 0 }; | 332 static int javat[] = { IDC_JAVA_TYPE, 0 }; |
328 static int cppt[] = { IDC_CPP_TYPE, 0 }; | 333 static int cppt[] = { IDC_CPP_TYPE, 0 }; |
329 static int elispt[] = { IDC_ELISP_TYPE, 0 }; | 334 static int elispt[] = { IDC_ELISP_TYPE, 0 }; |
330 static int txtt[] = { IDC_TXT_TYPE, 0 }; | 335 static int txtt[] = { IDC_TXT_TYPE, 0 }; |
336 static int idlt[] = { IDC_IDL_TYPE, 0 }; | |
331 | 337 |
332 static void | 338 static void |
333 check_if_enable_next (HWND h) | 339 check_if_enable_next (HWND h) |
334 { | 340 { |
335 EnableWindow (GetDlgItem (h, IDOK), 1); | 341 EnableWindow (GetDlgItem (h, IDOK), 1); |
343 rbset (h, ct, reg_c); | 349 rbset (h, ct, reg_c); |
344 rbset (h, javat, reg_java); | 350 rbset (h, javat, reg_java); |
345 rbset (h, cppt, reg_cpp); | 351 rbset (h, cppt, reg_cpp); |
346 rbset (h, elispt, reg_elisp); | 352 rbset (h, elispt, reg_elisp); |
347 rbset (h, txtt, reg_txt); | 353 rbset (h, txtt, reg_txt); |
354 rbset (h, idlt, reg_idl); | |
348 check_if_enable_next (h); | 355 check_if_enable_next (h); |
349 } | 356 } |
350 | 357 |
351 static int check_desktop (char *title, char *target) | 358 static int check_desktop (char *title, char *target) |
352 { | 359 { |
416 reg_c = rbget (h, ct); | 423 reg_c = rbget (h, ct); |
417 reg_java = rbget (h, javat); | 424 reg_java = rbget (h, javat); |
418 reg_cpp = rbget (h, cppt); | 425 reg_cpp = rbget (h, cppt); |
419 reg_elisp = rbget (h, elispt); | 426 reg_elisp = rbget (h, elispt); |
420 reg_txt = rbget (h, txtt); | 427 reg_txt = rbget (h, txtt); |
428 reg_idl = rbget (h, idlt); | |
421 } | 429 } |
422 | 430 |
423 static BOOL | 431 static BOOL |
424 dialog_cmd (HWND h, int id, HWND hwndctl, UINT code) | 432 dialog_cmd (HWND h, int id, HWND hwndctl, UINT code) |
425 { | 433 { |
485 reg_c = IDC_C_TYPE; | 493 reg_c = IDC_C_TYPE; |
486 reg_cpp = IDC_CPP_TYPE; | 494 reg_cpp = IDC_CPP_TYPE; |
487 reg_java = IDC_JAVA_TYPE; | 495 reg_java = IDC_JAVA_TYPE; |
488 reg_elisp = IDC_ELISP_TYPE; | 496 reg_elisp = IDC_ELISP_TYPE; |
489 reg_txt = IDC_TXT_TYPE; | 497 reg_txt = IDC_TXT_TYPE; |
498 reg_idl = IDC_IDL_TYPE; | |
490 } | 499 } |
491 else | 500 else |
492 { | 501 { |
493 root_desktop = 0; | 502 root_desktop = 0; |
494 root_menu = 0; | 503 root_menu = 0; |
495 reg_c = 0; | 504 reg_c = 0; |
496 reg_cpp = 0; | 505 reg_cpp = 0; |
497 reg_java = 0; | 506 reg_java = 0; |
498 reg_elisp = 0; | 507 reg_elisp = 0; |
499 reg_txt = 0; | 508 reg_txt = 0; |
509 reg_idl = 0; | |
500 } | 510 } |
501 | 511 |
502 int rv = 0; | 512 int rv = 0; |
503 | 513 |
504 rv = DialogBox (h, MAKEINTRESOURCE (IDD_DESKTOP), 0, dialog_proc); | 514 rv = DialogBox (h, MAKEINTRESOURCE (IDD_DESKTOP), 0, dialog_proc); |