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

Method NextOption

Source/CursesDialog/cmCursesOptionsWidget.cxx:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void cmCursesOptionsWidget::NextOption()
65{
66 this->CurrentOption++;
67 if (this->CurrentOption > this->Options.size() - 1) {
68 this->CurrentOption = 0;
69 }
70 this->SetValue(this->Options[this->CurrentOption]);
71}
72void cmCursesOptionsWidget::PreviousOption()
73{
74 if (this->CurrentOption == 0) {

Callers 1

HandleInputMethod · 0.95

Calls 2

sizeMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected