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

Method SetScriptInfo

src/dialog_automation.cpp:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void DialogAutomation::SetScriptInfo(int i, Automation4::Script *script)
181{
182 list->SetItem(i, 1, to_wx(script->GetName()));
183 list->SetItem(i, 2, script->GetPrettyFilename().wstring());
184 list->SetItem(i, 3, to_wx(script->GetDescription()));
185 if (!script->GetLoadedState())
186 list->SetItemBackgroundColour(i, wxColour(255,128,128));
187 else
188 list->SetItemBackgroundColour(i, list->GetBackgroundColour());
189}
190
191void DialogAutomation::AddScript(Automation4::Script *script, bool is_global)
192{

Callers

nothing calls this directly

Calls 6

wxColourClass · 0.85
GetPrettyFilenameMethod · 0.80
to_wxFunction · 0.70
GetNameMethod · 0.45
GetDescriptionMethod · 0.45
GetLoadedStateMethod · 0.45

Tested by

no test coverage detected