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

Class keyframe_open

src/command/keyframe.cpp:63–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61};
62
63struct keyframe_open final : public Command {
64 CMD_NAME("keyframe/open")
65 CMD_ICON(open_keyframes_menu)
66 STR_MENU("Open Keyframes...")
67 STR_DISP("Open Keyframes")
68 STR_HELP("Open a keyframe list file")
69
70 void operator()(agi::Context *c) override {
71 auto filename = OpenFileSelector(
72 _("Open keyframes file"),
73 "Path/Last/Keyframes", "" ,".txt",
74 from_wx(_("All Supported Formats") +
75 " (*.txt, *.pass, *.stats, *.log)|*.txt;*.pass;*.stats;*.log|" +
76 _("All Files") + " (*.*)|*.*"),
77 c->parent);
78
79 if (!filename.empty())
80 c->project->LoadKeyframes(filename);
81 }
82};
83
84struct keyframe_save final : public Command {
85 CMD_NAME("keyframe/save")

Callers

nothing calls this directly

Calls 3

OpenFileSelectorFunction · 0.85
from_wxFunction · 0.85
LoadKeyframesMethod · 0.80

Tested by

no test coverage detected