MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / TableUpdate

Method TableUpdate

source/ui/EditUi.cpp:1402–1770  ·  view source on GitHub ↗

TODO: new action's table item

Source from the content-addressed store, hash-verified

1400 next = &block.next;
1401 title = lang_trans("编辑") + " - " + lang_trans("块");
1402 } break;
1403 case QiType::clock:
1404 {
1405 QiClock& clock = var.to<QiClock>();
1406 if (edit2)
1407 {
1408 next = &clock.next2;
1409 title = lang_trans("编辑") + " - " + lang_trans("时钟(未经过)");
1410 }
1411 else
1412 {
1413 next = &clock.next;
1414 title = lang_trans("编辑") + " - " + lang_trans("时钟(已经过)");
1415 }
1416 } break;
1417 case QiType::ocr:
1418 {
1419 QiOcr& ocr = var.to<QiOcr>();
1420 if (edit2)
1421 {
1422 next = &ocr.next2;
1423 title = lang_trans("编辑") + " - " + lang_trans("文字识别(失败)");
1424 }
1425 else
1426 {
1427 next = &ocr.next;
1428 title = lang_trans("编辑") + " - " + lang_trans("文字识别(成功)");
1429 }
1430 } break;
1431 case QiType::varCondition:
1432 {
1433 QiVarCondition& varCondition = var.to<QiVarCondition>();
1434 if (edit2)
1435 {
1436 next = &varCondition.next2;
1437 title = lang_trans("编辑") + " - " + lang_trans("变量条件(否)");
1438 }
1439 else
1440 {
1441 next = &varCondition.next;
1442 title = lang_trans("编辑") + " - " + lang_trans("变量条件(是)");
1443 }
1444 } break;
1445 case QiType::volume:
1446 {
1447 QiVolume& volume = var.to<QiVolume>();
1448 if (edit2)
1449 {
1450 next = &volume.next2;
1451 title = lang_trans("编辑") + " - " + lang_trans("音量检测(小于)");
1452 }
1453 else
1454 {
1455 next = &volume.next;
1456 title = lang_trans("编辑") + " - " + lang_trans("音量检测(大于)");
1457 }
1458 } break;
1459 }

Callers

nothing calls this directly

Calls 9

FoldTextFunction · 0.85
atMethod · 0.80
widthMethod · 0.80
heightMethod · 0.80
nameMethod · 0.45
typeMethod · 0.45
existMethod · 0.45
findMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected