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

Method addMarkerFrame

src/program/ui/InputEditorView.cpp:770–788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770void InputEditorView::addMarkerFrame(int frame)
771{
772 /* Obtain description if there's already a marker here */
773 bool ok;
774 QString text = QString("Marker text for frame %1: ").arg(frame);
775 QString newText = QInputDialog::getText(
776 this,
777 (inputEditorModel->hasMarker(frame) ? tr("Edit marker") : tr("Add marker")),
778 text,
779 QLineEdit::Normal,
780 QString(inputEditorModel->getMarkerText(frame).c_str()),
781 &ok);
782
783 if (ok) {
784 emit addMarkerSignal(frame, newText);
785 }
786
787 updateMenu();
788}
789
790void InputEditorView::removeMarker()
791{

Callers

nothing calls this directly

Calls 3

hasMarkerMethod · 0.80
c_strMethod · 0.45
getMarkerTextMethod · 0.45

Tested by

no test coverage detected