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

Method PreviousOption

Source/CursesDialog/cmCursesOptionsWidget.cxx:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 this->SetValue(this->Options[this->CurrentOption]);
71}
72void cmCursesOptionsWidget::PreviousOption()
73{
74 if (this->CurrentOption == 0) {
75 this->CurrentOption = this->Options.size() - 1;
76 } else {
77 this->CurrentOption--;
78 }
79 this->SetValue(this->Options[this->CurrentOption]);
80}
81
82void cmCursesOptionsWidget::SetOption(std::string const& value)
83{

Callers 1

HandleInputMethod · 0.95

Calls 2

sizeMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected