MCPcopy Create free account
hub / github.com/clementgallet/libTAS / lockUniqueInput

Method lockUniqueInput

src/program/ui/InputEditorModel.cpp:1115–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113
1114
1115void InputEditorModel::lockUniqueInput(int column, bool locked)
1116{
1117 if (column < COLUMN_SPECIAL_SIZE)
1118 return;
1119
1120 if (column == columnCount() - 1)
1121 return;
1122
1123 SingleInput si = movie->editor->input_set[column-COLUMN_SPECIAL_SIZE];
1124
1125 if (locked) {
1126 movie->editor->locked_inputs.insert(si);
1127 }
1128 else {
1129 movie->editor->locked_inputs.erase(si);
1130 }
1131
1132 /* Update the input column */
1133 emit dataChanged(index(0,column), index(rowCount()-1,column));
1134}
1135
1136
1137void InputEditorModel::clearInputs(int min_row, int max_row)

Callers 1

lockInputColumnMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected