Code::Blocks  SVN r11506
Classes | Typedefs | Functions | Variables
ScriptBindings::ScriptPluginWrapper Namespace Reference

Classes

struct  MenuCallback
 

Typedefs

typedef std::map< int, MenuCallbackModuleMenuCallbacks
 
typedef std::map< wxString, SquirrelObject > ScriptPlugins
 
typedef std::map< wxString, MenuItemsManagerScriptPluginsMenus
 

Functions

wxArrayInt CreateMenu (wxMenuBar *mbar)
 
wxArrayInt CreateModuleMenu (const ModuleType type, wxMenu *menu, const FileTreeData *data)
 
void OnScriptMenu (int id)
 
void OnScriptModuleMenu (int id)
 
wxArrayInt CreateMenu (const wxString &name)
 
SQInteger RegisterPlugin (HSQUIRRELVM v)
 
SQInteger GetPlugin (HSQUIRRELVM v)
 
int ExecutePlugin (const wxString &name)
 

Variables

ModuleMenuCallbacks s_MenuCallbacks
 
ScriptPlugins s_ScriptPlugins
 
ScriptPluginsMenus s_ScriptPluginsMenus
 

Class Documentation

◆ ScriptBindings::ScriptPluginWrapper::MenuCallback

struct ScriptBindings::ScriptPluginWrapper::MenuCallback

Definition at line 22 of file sc_plugin.cpp.

Collaboration diagram for ScriptBindings::ScriptPluginWrapper::MenuCallback:
Class Members
int menuIndex
SquirrelObject object

Typedef Documentation

◆ ModuleMenuCallbacks

Definition at line 27 of file sc_plugin.cpp.

◆ ScriptPlugins

Definition at line 31 of file sc_plugin.cpp.

◆ ScriptPluginsMenus

Definition at line 35 of file sc_plugin.cpp.

Function Documentation

◆ CreateMenu() [1/2]

wxArrayInt ScriptBindings::ScriptPluginWrapper::CreateMenu ( wxMenuBar mbar)

◆ CreateMenu() [2/2]

wxArrayInt ScriptBindings::ScriptPluginWrapper::CreateMenu ( const wxString name)

◆ CreateModuleMenu()

wxArrayInt ScriptBindings::ScriptPluginWrapper::CreateModuleMenu ( const ModuleType  type,
wxMenu menu,
const FileTreeData data 
)

◆ ExecutePlugin()

int ScriptBindings::ScriptPluginWrapper::ExecutePlugin ( const wxString name)

Definition at line 271 of file sc_plugin.cpp.

References _(), cbC2U(), cbMessageBox(), and wxICON_ERROR.

Referenced by ScriptBindings::Register_ScriptPlugin().

◆ GetPlugin()

SQInteger ScriptBindings::ScriptPluginWrapper::GetPlugin ( HSQUIRRELVM  v)

Definition at line 249 of file sc_plugin.cpp.

References wxString::find().

Referenced by ScriptBindings::Register_ScriptPlugin().

◆ OnScriptMenu()

void ScriptBindings::ScriptPluginWrapper::OnScriptMenu ( int  id)

◆ OnScriptModuleMenu()

void ScriptBindings::ScriptPluginWrapper::OnScriptModuleMenu ( int  id)

◆ RegisterPlugin()

SQInteger ScriptBindings::ScriptPluginWrapper::RegisterPlugin ( HSQUIRRELVM  v)

Variable Documentation

◆ s_MenuCallbacks

ModuleMenuCallbacks ScriptBindings::ScriptPluginWrapper::s_MenuCallbacks

Definition at line 28 of file sc_plugin.cpp.

◆ s_ScriptPlugins

ScriptPlugins ScriptBindings::ScriptPluginWrapper::s_ScriptPlugins

Definition at line 32 of file sc_plugin.cpp.

◆ s_ScriptPluginsMenus

ScriptPluginsMenus ScriptBindings::ScriptPluginWrapper::s_ScriptPluginsMenus

Definition at line 36 of file sc_plugin.cpp.