| 2168 | } |
| 2169 | void EditUi::ItemSelectIdenticalParam() |
| 2170 | { |
| 2171 | if (tableCurrent.size() != 1) return; |
| 2172 | const Action& current = actions->at(tableCurrent.front()); |
| 2173 | QiVector<int> index; |
| 2174 | for (size_t i = 0; i < actions->size(); i++) if (actions->at(i).paramEquals(current)) index.append(i); |
| 2175 | ItemSelect(index); |
| 2176 | } |
| 2177 | void EditUi::ItemSelectIdenticalFull() |
| 2178 | { |
| 2179 | if (tableCurrent.size() != 1) return; |
| 2180 | const Action& current = actions->at(tableCurrent.front()); |
| 2181 | QiVector<int> index; |
| 2182 | for (size_t i = 0; i < actions->size(); i++) if (actions->at(i).fullEquals(current)) index.append(i); |
| 2183 | ItemSelect(index); |
| 2184 | } |
| 2185 | void EditUi::Redo() |
| 2186 | { |
| 2187 | if (actionsHistory.canRedo()) |
| 2188 | { |
| 2189 | idChecker.check(*actions); |
| 2190 | |
| 2191 | actionsHistory.redo(); |
| 2192 | *actions = actionsHistory.toVector(); |
nothing calls this directly
no test coverage detected