71 bool LoadScript(
const wxString& filename);
79 bool LoadBuffer(
const wxString& buffer,
const wxString& debugName =
_T(
"CommandLine"));
97 wxString GetErrorString(SquirrelError* exception =
nullptr,
bool clearErrors =
true);
109 void DisplayErrors(SquirrelError* exception =
nullptr,
bool clearErrors =
true);
119 void InjectScriptOutput(
const wxString& output);
148 bool RegisterScriptMenu(
const wxString& menuPath,
const wxString& scriptOrFunc,
bool isFunction);
155 bool UnRegisterScriptMenu(
const wxString& menuPath);
161 bool UnRegisterAllScriptMenus();
170 bool IsScriptTrusted(
const wxString& script);
178 bool IsCurrentlyRunningScriptTrusted();
193 void TrustScript(
const wxString& script,
bool permanently);
201 void TrustCurrentlyRunningScript(
bool permanently);
207 bool RemoveTrust(
const wxString& script);
210 void RefreshTrusts();
216 const TrustedScripts& GetTrustedScripts();
221 cbThrow(
_T(
"Can't assign a ScriptingManager* !!!"));
230 void RegisterScriptFunctions();
255 DECLARE_EVENT_TABLE()
261 #endif // SCRIPTING_H
wxString m_CurrentlyRunningScriptFile
void PrintSquirrelToWxString(wxString &msg, const SQChar *s, va_list &vl)
std::map< wxString, TrustedScriptProps > TrustedScripts
Script trusts container struct.
ScriptingManager & operator=(cb_unused const ScriptingManager &rhs)
std::set< wxString > IncludeSet
wxArray< int > wxArrayInt
bool m_AttachedToMainWindow
Provides scripting in Code::Blocks.
Script trusts container struct.
TrustedScripts m_TrustedScripts