KiCad PCB EDA Suite
|
Mainly static. More...
#include <action_plugin.h>
Static Public Member Functions | |
static void | register_action (ACTION_PLUGIN *aAction) |
An action calls this static method when it wants to register itself into the system actions. | |
static bool | deregister_object (void *aObject) |
Deregister an object which builds a action. | |
static ACTION_PLUGIN * | GetAction (const wxString &aName) |
static void | SetActionMenu (int aIndex, int idMenu) |
Associate a menu id to an action plugin. | |
static ACTION_PLUGIN * | GetActionByMenu (int aMenu) |
Find action plugin associated to a menu ID. | |
static void | SetActionButton (ACTION_PLUGIN *aAction, int idButton) |
Associate a button id to an action plugin. | |
static ACTION_PLUGIN * | GetActionByButton (int aButton) |
Find action plugin associated to a button ID. | |
static ACTION_PLUGIN * | GetActionByPath (const wxString &aPath) |
Find action plugin by module path. | |
static ACTION_PLUGIN * | GetAction (int aIndex) |
static int | GetActionsCount () |
static bool | IsActionRunning () |
static void | SetActionRunning (bool aRunning) |
static void | UnloadAll () |
Unload (deregister) all action plugins. | |
Static Private Attributes | |
static std::vector< ACTION_PLUGIN * > | m_actionsList |
ACTION_PLUGIN system wide static list. | |
static bool | m_actionRunning = false |
|
static |
Deregister an object which builds a action.
Lookup on the vector calling GetObject until find, then removed and deleted.
aObject | is the action plugin object to be deregistered. |
Definition at line 189 of file action_plugin.cpp.
References GetAction(), GetActionsCount(), ACTION_PLUGIN::GetObject(), and m_actionsList.
Referenced by PYTHON_ACTION_PLUGINS::deregister_action().
|
static |
aName | is the action plugin name. |
Definition at line 115 of file action_plugin.cpp.
References GetAction(), GetActionsCount(), ACTION_PLUGIN::GetName(), and name.
Referenced by PCB_EDIT_FRAME::buildActionPluginMenus(), deregister_object(), GetAction(), PCB_EDIT_FRAME::GetOrderedActionPlugins(), and register_action().
|
static |
aIndex | is the action index in list. |
Definition at line 55 of file action_plugin.cpp.
References m_actionsList.
|
static |
Find action plugin associated to a button ID.
aButton | is the button id (defined with SetActionButton). |
Definition at line 81 of file action_plugin.cpp.
References GetActionsCount(), and m_actionsList.
Referenced by PCB_EDIT_FRAME::OnActionPluginButton().
|
static |
Find action plugin associated to a menu ID.
aMenu | is the menu id (defined with SetActionMenu). |
Definition at line 61 of file action_plugin.cpp.
References GetActionsCount(), and m_actionsList.
Referenced by PCB_EDIT_FRAME::OnActionPluginMenu().
|
static |
Find action plugin by module path.
aPath | is the path of plugin. |
Definition at line 101 of file action_plugin.cpp.
References GetActionsCount(), and m_actionsList.
|
static |
Definition at line 133 of file action_plugin.cpp.
References m_actionsList.
Referenced by PCB_EDIT_FRAME::buildActionPluginMenus(), deregister_object(), GetAction(), GetActionByButton(), GetActionByMenu(), GetActionByPath(), PCB_EDIT_FRAME::GetOrderedActionPlugins(), register_action(), and PANEL_PCBNEW_ACTION_PLUGINS::TransferDataToWindow().
|
static |
Definition at line 211 of file action_plugin.cpp.
References m_actionRunning.
Referenced by IsActionRunning().
|
static |
An action calls this static method when it wants to register itself into the system actions.
aAction | is the action plugin to be registered. |
Definition at line 139 of file action_plugin.cpp.
References GetAction(), GetActionsCount(), GetBitmapStore(), ACTION_PLUGIN::GetIconFileName(), ACTION_PLUGIN::GetName(), ACTION_PLUGIN::iconBitmap, m_actionsList, and PgmOrNull().
Referenced by ACTION_PLUGIN::register_action().
|
static |
Associate a button id to an action plugin.
aAction | is the action. |
idButton | is the associated menuitem ID. |
Definition at line 95 of file action_plugin.cpp.
References ACTION_PLUGIN::m_actionButtonId.
Referenced by PCB_EDIT_FRAME::AddActionPluginTools().
|
static |
Associate a menu id to an action plugin.
aIndex | is the action index. |
idMenu | is the associated menuitem ID. |
Definition at line 75 of file action_plugin.cpp.
References m_actionsList.
Referenced by PCB_EDIT_FRAME::buildActionPluginMenus().
|
static |
aRunning | sets whether an action is running now. |
Definition at line 217 of file action_plugin.cpp.
References m_actionRunning.
Referenced by PCB_EDIT_FRAME::RunActionPlugin().
|
static |
Unload (deregister) all action plugins.
Definition at line 223 of file action_plugin.cpp.
References m_actionsList.
Referenced by SCRIPTING_TOOL::ReloadPlugins(), and SCRIPTING_TOOL::reloadPlugins().
|
staticprivate |
Definition at line 212 of file action_plugin.h.
Referenced by IsActionRunning(), and SetActionRunning().
|
staticprivate |
ACTION_PLUGIN system wide static list.
Definition at line 211 of file action_plugin.h.
Referenced by deregister_object(), GetAction(), GetActionByButton(), GetActionByMenu(), GetActionByPath(), GetActionsCount(), register_action(), SetActionMenu(), and UnloadAll().