MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / PasteTime

Method PasteTime

src/timeedit_ctrl.cpp:224–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void TimeEdit::PasteTime() {
225 if (byFrame) {
226 Paste();
227 return;
228 }
229
230 std::string text(GetClipboard());
231 if (text.empty()) return;
232
233 agi::Time tempTime(text);
234 if (tempTime.GetAssFormatted() == text) {
235 SetTime(tempTime);
236 SetSelection(0, GetValue().size());
237
238 wxCommandEvent evt(wxEVT_TEXT, GetId());
239 evt.SetEventObject(this);
240 HandleWindowEvent(evt);
241 }
242}

Callers

nothing calls this directly

Calls 3

GetClipboardFunction · 0.85
GetAssFormattedMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected