MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / createUndoStateTable

Method createUndoStateTable

src/csvundo.cpp:43–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void CsvUndo::createUndoStateTable(CsvTable &table, std::string descr) {
44 size_t size;
45 this->id = uniqNumber;
46 this->type = TCRUNCHER_UNDO_TYPE_TABLE;
47 this->undoStorage = table.getStorage();
48 size = table.headerRow->size();
49 this->headerRow.resize(size);
50 for( size_t r = 0; r < size; ++r) {
51 this->headerRow.at(r) = table.headerRow->at(r);
52 }
53 this->descr = descr;
54 this->hasCustomHeaderRow = table.customHeaderRowShown();
55 this->flags = table.flags;
56 this->selection = { table.s_top, table.s_left, table.s_bottom, table.s_right };
57 // printf("createUndoStateTable: %s (%p) ID:%d\n", descr.c_str(), (void *)this->table, uniqNumber);
58}
59
60void CsvUndo::createUndoStateCell(std::string cellContent, table_index_t R, table_index_t C, bool hasCustomHeaderRow, std::string descr) {
61 this->id = uniqNumber;

Callers 1

addUndoStateTableMethod · 0.80

Calls 4

resizeMethod · 0.80
atMethod · 0.80
customHeaderRowShownMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected