| 1191 | } |
| 1192 | |
| 1193 | void CMakeSetupDialog::enterState(CMakeSetupDialog::State s) |
| 1194 | { |
| 1195 | if (s == this->CurrentState) { |
| 1196 | return; |
| 1197 | } |
| 1198 | |
| 1199 | this->CurrentState = s; |
| 1200 | |
| 1201 | if (s == Interrupting) { |
| 1202 | this->ConfigureButton->setEnabled(false); |
| 1203 | this->GenerateButton->setEnabled(false); |
| 1204 | this->OpenProjectButton->setEnabled(false); |
| 1205 | } else if (s == Configuring) { |
| 1206 | this->setEnabledState(false); |
| 1207 | this->GenerateButton->setEnabled(false); |
| 1208 | this->GenerateAction->setEnabled(false); |
| 1209 | this->OpenProjectButton->setEnabled(false); |
| 1210 | this->ConfigureButton->setText(tr("&Stop")); |
| 1211 | } else if (s == Generating) { |
| 1212 | this->CacheModified = false; |
| 1213 | this->setEnabledState(false); |
| 1214 | this->ConfigureButton->setEnabled(false); |
| 1215 | this->GenerateAction->setEnabled(false); |
| 1216 | this->OpenProjectButton->setEnabled(false); |
| 1217 | this->GenerateButton->setText(tr("&Stop")); |
| 1218 | } else if (s == ReadyConfigure || s == ReadyGenerate) { |
| 1219 | this->setEnabledState(true); |
| 1220 | this->GenerateButton->setEnabled(true); |
| 1221 | this->GenerateAction->setEnabled(true); |
| 1222 | this->ConfigureButton->setEnabled(true); |
| 1223 | this->ConfigureButton->setText(tr("&Configure")); |
| 1224 | this->GenerateButton->setText(tr("&Generate")); |
| 1225 | } |
| 1226 | } |
| 1227 | |
| 1228 | void CMakeSetupDialog::editEnvironment() |
| 1229 | { |
no test coverage detected