| 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 { |
| 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 |
| 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 // |