ccmake: Factor toggle key help instructions.

This commit is contained in:
Nicolas Despres 2011-01-07 14:57:46 +01:00
parent 19da10629d
commit ceff6ec525
1 changed files with 7 additions and 9 deletions

View File

@ -427,15 +427,13 @@ void cmCursesMainForm::PrintKeys(int process /* = 0 */)
{
sprintf(firstLine, "Press [c] to configure ");
}
if (this->AdvancedMode)
{
sprintf(thirdLine, "Press [t] to toggle advanced mode (Currently On)");
}
else
{
sprintf(thirdLine, "Press [t] to toggle advanced mode (Currently Off)");
}
{
const char* toggleKeyInstruction =
"Press [t] to toggle advanced mode (Currently %s)";
sprintf(thirdLine,
toggleKeyInstruction,
this->AdvancedMode ? "On" : "Off");
}
sprintf(secondLine,
"Press [h] for help "
"Press [q] to quit without generating");