MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / executeCommand

Method executeCommand

src/app/context.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void Context::executeCommand(const char* commandName)
50{
51 Command* cmd = CommandsModule::instance()->getCommandByName(commandName);
52 if (cmd)
53 executeCommand(cmd);
54 else
55 throw std::runtime_error("Invalid command name");
56}
57
58void Context::executeCommand(Command* command, const Params& params)
59{

Callers 15

initializeMethod · 0.80
onProcessMessageMethod · 0.80
saveMethod · 0.80
saveAsMethod · 0.80
CommandScriptObjectMethod · 0.80
openMethod · 0.80
App_exitMethod · 0.80
onExecuteMethod · 0.80
onExecuteMethod · 0.80
onExecuteMethod · 0.80
onExecuteMethod · 0.80
onProcessMessageMethod · 0.80

Calls 12

instanceFunction · 0.85
LOGFunction · 0.85
getCommandByNameMethod · 0.80
loadParamsMethod · 0.80
whatMethod · 0.80
printfMethod · 0.80
idMethod · 0.45
updateMethod · 0.45
isCanceledMethod · 0.45
isEnabledMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected