src/extPrograms.cc

changeset 850
a3d72b0e916d
parent 844
11587d419d2f
child 852
cbd89b33f70d
equal deleted inserted replaced
849:4af6f977d04b 850:a3d72b0e916d
49 Edger2, 49 Edger2,
50 }; 50 };
51 51
52 // ============================================================================= 52 // =============================================================================
53 // 53 //
54 CFGENTRY (String, isecalcPath, ""); 54 CFGENTRY (String, IsecalcPath, "");
55 CFGENTRY (String, intersectorPath, ""); 55 CFGENTRY (String, IntersectorPath, "");
56 CFGENTRY (String, covererPath, ""); 56 CFGENTRY (String, CovererPath, "");
57 CFGENTRY (String, ytruderPath, ""); 57 CFGENTRY (String, YtruderPath, "");
58 CFGENTRY (String, rectifierPath, ""); 58 CFGENTRY (String, RectifierPath, "");
59 CFGENTRY (String, edger2Path, ""); 59 CFGENTRY (String, Edger2Path, "");
60 60
61 QString* const g_extProgPaths[] = 61 QString* const g_extProgPaths[] =
62 { 62 {
63 &cfg::isecalcPath, 63 &cfg::IsecalcPath,
64 &cfg::intersectorPath, 64 &cfg::IntersectorPath,
65 &cfg::covererPath, 65 &cfg::CovererPath,
66 &cfg::ytruderPath, 66 &cfg::YtruderPath,
67 &cfg::rectifierPath, 67 &cfg::RectifierPath,
68 &cfg::edger2Path, 68 &cfg::Edger2Path,
69 }; 69 };
70 70
71 #ifndef _WIN32 71 #ifndef _WIN32
72 CFGENTRY (Bool, isecalcUsesWine, false); 72 CFGENTRY (Bool, IsecalcUsesWine, false);
73 CFGENTRY (Bool, intersectorUsesWine, false); 73 CFGENTRY (Bool, IntersectorUsesWine, false);
74 CFGENTRY (Bool, covererUsesWine, false); 74 CFGENTRY (Bool, CovererUsesWine, false);
75 CFGENTRY (Bool, ytruderUsesWine, false); 75 CFGENTRY (Bool, YtruderUsesWine, false);
76 CFGENTRY (Bool, rectifierUsesWine, false); 76 CFGENTRY (Bool, RectifierUsesWine, false);
77 CFGENTRY (Bool, edger2UsesWine, false); 77 CFGENTRY (Bool, Edger2UsesWine, false);
78 78
79 bool* const g_extProgWine[] = 79 bool* const g_extProgWine[] =
80 { 80 {
81 &cfg::isecalcUsesWine, 81 &cfg::IsecalcUsesWine,
82 &cfg::intersectorUsesWine, 82 &cfg::IntersectorUsesWine,
83 &cfg::covererUsesWine, 83 &cfg::CovererUsesWine,
84 &cfg::ytruderUsesWine, 84 &cfg::YtruderUsesWine,
85 &cfg::rectifierUsesWine, 85 &cfg::RectifierUsesWine,
86 &cfg::edger2UsesWine, 86 &cfg::Edger2UsesWine,
87 }; 87 };
88 #endif // _WIN32 88 #endif // _WIN32
89 89
90 const char* g_extProgNames[] = 90 const char* g_extProgNames[] =
91 { 91 {
379 outDATName 379 outDATName
380 }); 380 });
381 381
382 writeSelection (inDATName); 382 writeSelection (inDATName);
383 383
384 if (not runUtilityProcess (Ytruder, cfg::ytruderPath, argv)) 384 if (not runUtilityProcess (Ytruder, cfg::YtruderPath, argv))
385 return; 385 return;
386 386
387 insertOutput (outDATName, false, {}); 387 insertOutput (outDATName, false, {});
388 } 388 }
389 389
424 outDATName 424 outDATName
425 }); 425 });
426 426
427 writeSelection (inDATName); 427 writeSelection (inDATName);
428 428
429 if (not runUtilityProcess (Rectifier, cfg::rectifierPath, argv)) 429 if (not runUtilityProcess (Rectifier, cfg::RectifierPath, argv))
430 return; 430 return;
431 431
432 insertOutput (outDATName, true, {}); 432 insertOutput (outDATName, true, {});
433 } 433 }
434 434
515 }); 515 });
516 516
517 writeColorGroup (inCol, inDATName); 517 writeColorGroup (inCol, inDATName);
518 writeColorGroup (cutCol, cutDATName); 518 writeColorGroup (cutCol, cutDATName);
519 519
520 if (not runUtilityProcess (Intersector, cfg::intersectorPath, argv_normal)) 520 if (not runUtilityProcess (Intersector, cfg::IntersectorPath, argv_normal))
521 return; 521 return;
522 522
523 insertOutput (outDATName, false, {inCol}); 523 insertOutput (outDATName, false, {inCol});
524 524
525 if (repeatInverse and runUtilityProcess (Intersector, cfg::intersectorPath, argv_inverse)) 525 if (repeatInverse and runUtilityProcess (Intersector, cfg::IntersectorPath, argv_inverse))
526 insertOutput (outDAT2Name, false, {cutCol}); 526 insertOutput (outDAT2Name, false, {cutCol});
527 527
528 if (ui.cb_edges->isChecked() and checkProgPath (Isecalc) and 528 if (ui.cb_edges->isChecked() and checkProgPath (Isecalc) and
529 runUtilityProcess (Isecalc, cfg::isecalcPath, join ( {inDATName, cutDATName, edgesDATName}))) 529 runUtilityProcess (Isecalc, cfg::IsecalcPath, join ( {inDATName, cutDATName, edgesDATName})))
530 { 530 {
531 insertOutput (edgesDATName, false, {}); 531 insertOutput (edgesDATName, false, {});
532 } 532 }
533 } 533 }
534 534
588 }); 588 });
589 589
590 writeColorGroup (in1Col, in1DATName); 590 writeColorGroup (in1Col, in1DATName);
591 writeColorGroup (in2Col, in2DATName); 591 writeColorGroup (in2Col, in2DATName);
592 592
593 if (not runUtilityProcess (Coverer, cfg::covererPath, argv)) 593 if (not runUtilityProcess (Coverer, cfg::CovererPath, argv))
594 return; 594 return;
595 595
596 insertOutput (outDATName, false, {}); 596 insertOutput (outDATName, false, {});
597 } 597 }
598 598
649 outDATName 649 outDATName
650 }); 650 });
651 651
652 writeColorGroup (in1Col, in1DATName); 652 writeColorGroup (in1Col, in1DATName);
653 writeColorGroup (in2Col, in2DATName); 653 writeColorGroup (in2Col, in2DATName);
654 runUtilityProcess (Isecalc, cfg::isecalcPath, argv); 654 runUtilityProcess (Isecalc, cfg::IsecalcPath, argv);
655 insertOutput (outDATName, false, {}); 655 insertOutput (outDATName, false, {});
656 } 656 }
657 657
658 // ============================================================================= 658 // =============================================================================
659 // 659 //
696 outName, 696 outName,
697 }); 697 });
698 698
699 writeSelection (inName); 699 writeSelection (inName);
700 700
701 if (not runUtilityProcess (Edger2, cfg::edger2Path, argv)) 701 if (not runUtilityProcess (Edger2, cfg::Edger2Path, argv))
702 return; 702 return;
703 703
704 insertOutput (outName, true, {}); 704 insertOutput (outName, true, {});
705 } 705 }

mercurial