MCPcopy Create free account
hub / github.com/TeXworks/texworks / Script

Method Script

src/scripting/Script.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace Scripting {
33
34Script::Script(QObject * plugin, const QString& fileName)
35 : m_Plugin(plugin), m_Filename(fileName), m_Type(ScriptUnknown), m_Enabled(true), m_FileSize(0)
36{
37 m_Codec = QTextCodec::codecForName("UTF-8");
38 if (!m_Codec)
39 m_Codec = QTextCodec::codecForLocale();
40}
41
42bool Script::run(Tw::Scripting::ScriptAPIInterface & api)
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected