ccmake: Rename cmCursesColor::{Options => Choice}

Rename the internal name for the color applied to multiple-choice
options to avoid use of the overloaded term 'option'.
This commit is contained in:
Matthew Woehlke
2020-04-23 15:52:51 -04:00
committed by Brad King
parent df2d39bc51
commit f56a695440
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ void cmCursesColor::InitColors()
init_pair(cmCursesColor::BoolOn, COLOR_GREEN, -1); init_pair(cmCursesColor::BoolOn, COLOR_GREEN, -1);
init_pair(cmCursesColor::String, COLOR_BLUE, -1); init_pair(cmCursesColor::String, COLOR_BLUE, -1);
init_pair(cmCursesColor::Path, COLOR_YELLOW, -1); init_pair(cmCursesColor::Path, COLOR_YELLOW, -1);
init_pair(cmCursesColor::Options, COLOR_MAGENTA, -1); init_pair(cmCursesColor::Choice, COLOR_MAGENTA, -1);
} }
#endif #endif
} }
+1 -1
View File
@@ -13,7 +13,7 @@ public:
BoolOn, BoolOn,
String, String,
Path, Path,
Options Choice
}; };
static bool HasColors(); static bool HasColors();
@@ -17,8 +17,8 @@ cmCursesOptionsWidget::cmCursesOptionsWidget(int width, int height, int left,
// the widget into a string widget at some point. BOOL is safe for // the widget into a string widget at some point. BOOL is safe for
// now. // now.
if (cmCursesColor::HasColors()) { if (cmCursesColor::HasColors()) {
set_field_fore(this->Field, COLOR_PAIR(cmCursesColor::Options)); set_field_fore(this->Field, COLOR_PAIR(cmCursesColor::Choice));
set_field_back(this->Field, COLOR_PAIR(cmCursesColor::Options)); set_field_back(this->Field, COLOR_PAIR(cmCursesColor::Choice));
} else { } else {
set_field_fore(this->Field, A_NORMAL); set_field_fore(this->Field, A_NORMAL);
set_field_back(this->Field, A_STANDOUT); set_field_back(this->Field, A_STANDOUT);