| 554 | } |
| 555 | |
| 556 | void CMakeSetupDialog::doGenerate() |
| 557 | { |
| 558 | if (this->CurrentState == Generating) { |
| 559 | // stop generate |
| 560 | doInterrupt(); |
| 561 | return; |
| 562 | } |
| 563 | |
| 564 | // see if we need to configure |
| 565 | // we'll need to configure if: |
| 566 | // the configure step hasn't been done yet |
| 567 | // generate was the last step done |
| 568 | if (this->ConfigureNeeded) { |
| 569 | if (!prepareConfigure()) { |
| 570 | return; |
| 571 | } |
| 572 | } |
| 573 | |
| 574 | this->enterState(Generating); |
| 575 | |
| 576 | bool config_passed = true; |
| 577 | if (this->ConfigureNeeded) { |
| 578 | this->CacheValues->cacheModel()->setShowNewProperties(false); |
| 579 | this->ProgressFactor = 0.5; |
| 580 | config_passed = doConfigureInternal(); |
| 581 | this->ProgressOffset = 0.5; |
| 582 | } |
| 583 | |
| 584 | if (config_passed) { |
| 585 | doGenerateInternal(); |
| 586 | } |
| 587 | |
| 588 | this->ProgressOffset = 0.0; |
| 589 | this->ProgressFactor = 1.0; |
| 590 | this->CacheValues->cacheModel()->setShowNewProperties(true); |
| 591 | |
| 592 | this->enterState(ReadyConfigure); |
| 593 | this->ProgressBar->reset(); |
| 594 | #ifdef QT_WINEXTRAS |
| 595 | this->TaskbarButton->progress()->reset(); |
| 596 | #endif |
| 597 | |
| 598 | this->ConfigureNeeded = true; |
| 599 | } |
| 600 | |
| 601 | void CMakeSetupDialog::doOpenProject() |
| 602 | { |
nothing calls this directly
no test coverage detected