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

Method UpdateContent

Source/CursesDialog/cmCursesLongMessageForm.cxx:38–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void cmCursesLongMessageForm::UpdateContent(std::string const& output,
39 std::string const& title)
40{
41 this->Title = title;
42
43 if (!output.empty() && this->Messages.size() < MAX_CONTENT_SIZE) {
44 this->Messages.push_back('\n');
45 this->Messages.append(output);
46 form_driver(this->Form, REQ_NEXT_LINE);
47 form_driver(this->Form, REQ_BEG_LINE);
48 this->DrawMessage(output.c_str());
49 }
50
51 this->UpdateStatusBar();
52 touchwin(stdscr);
53 refresh();
54}
55
56void cmCursesLongMessageForm::UpdateStatusBar()
57{

Callers 1

DisplayOutputsMethod · 0.80

Calls 10

DrawMessageMethod · 0.95
UpdateStatusBarMethod · 0.95
form_driverFunction · 0.85
touchwinFunction · 0.85
refreshFunction · 0.85
push_backMethod · 0.80
appendMethod · 0.80
c_strMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected