MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / updateGUI

Method updateGUI

Gui/KnobGuiTable.cpp:455–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455void
456KnobGuiTable::updateGUI(int /*dimension*/)
457{
458 KnobTablePtr knob = std::dynamic_pointer_cast<KnobTable>( getKnob() );
459
460 assert(knob);
461
462 std::list<std::vector<std::string> > table;
463 knob->getTable(&table);
464
465 _imp->model->clear();
466 _imp->items.clear();
467 int i = 0;
468 for (std::list<std::vector<std::string> >::const_iterator it = table.begin(); it != table.end(); ++it, ++i) {
469 QStringList row;
470 for (std::size_t j = 0; j < it->size(); ++j) {
471 row.push_back( QString::fromUtf8( (*it)[j].c_str() ) );
472 }
473 _imp->createItem(knob, i, row);
474 }
475}
476
477void
478KnobGuiTable::_hide()

Callers

nothing calls this directly

Calls 8

getKnobFunction · 0.70
getTableMethod · 0.45
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
createItemMethod · 0.45

Tested by

no test coverage detected