MCPcopy Create free account
hub / github.com/Kitware/CMake / enterState

Method enterState

Source/QtDialog/CMakeSetupDialog.cxx:1193–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191}
1192
1193void 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
1228void CMakeSetupDialog::editEnvironment()
1229{

Callers 5

CMakeSetupDialogMethod · 0.95
doConfigureMethod · 0.95
doGenerateMethod · 0.95
doInterruptMethod · 0.95
setCacheModifiedMethod · 0.95

Calls 1

setEnabledStateMethod · 0.95

Tested by

no test coverage detected