KiCad PCB EDA Suite
|
#include <pcbnew_action_plugins.h>
Public Member Functions | |
PYTHON_ACTION_PLUGIN (PyObject *action) | |
~PYTHON_ACTION_PLUGIN () | |
wxString | GetCategoryName () override |
wxString | GetName () override |
wxString | GetDescription () override |
bool | GetShowToolbarButton () override |
wxString | GetIconFileName (bool aDark) override |
wxString | GetPluginPath () override |
void | Run () override |
This method the the action. | |
void * | GetObject () override |
This method gets the pointer to the object from where this action constructs. | |
void | register_action () |
It's the standard method of a "ACTION_PLUGIN" to register itself into the ACTION_PLUGINS singleton manager. | |
Public Attributes | |
int | m_actionMenuId |
int | m_actionButtonId |
wxBitmap | iconBitmap |
bool | show_on_toolbar |
Private Member Functions | |
PyObject * | CallMethod (const char *aMethod, PyObject *aArglist=nullptr) |
wxString | CallRetStrMethod (const char *aMethod, PyObject *aArglist=nullptr) |
Private Attributes | |
wxString | m_cachedName |
PyObject * | m_PyAction |
Definition at line 40 of file pcbnew_action_plugins.h.
PYTHON_ACTION_PLUGIN::PYTHON_ACTION_PLUGIN | ( | PyObject * | action | ) |
Definition at line 48 of file pcbnew_action_plugins.cpp.
References m_PyAction.
PYTHON_ACTION_PLUGIN::~PYTHON_ACTION_PLUGIN | ( | ) |
Definition at line 57 of file pcbnew_action_plugins.cpp.
References m_PyAction.
|
private |
Definition at line 65 of file pcbnew_action_plugins.cpp.
References _, _HKI, KIPLATFORM::APP::AttachConsole(), m_cachedName, and m_PyAction.
Referenced by CallRetStrMethod(), GetShowToolbarButton(), and Run().
|
private |
Definition at line 152 of file pcbnew_action_plugins.cpp.
References CallMethod().
Referenced by GetCategoryName(), GetDescription(), GetIconFileName(), GetName(), and GetPluginPath().
|
overridevirtual |
Implements ACTION_PLUGIN.
Definition at line 166 of file pcbnew_action_plugins.cpp.
References CallRetStrMethod().
|
overridevirtual |
Implements ACTION_PLUGIN.
Definition at line 185 of file pcbnew_action_plugins.cpp.
References CallRetStrMethod().
|
overridevirtual |
aDark | set to true if requesting dark theme icon. |
Implements ACTION_PLUGIN.
Definition at line 203 of file pcbnew_action_plugins.cpp.
References CallRetStrMethod().
|
overridevirtual |
Implements ACTION_PLUGIN.
Definition at line 174 of file pcbnew_action_plugins.cpp.
References CallRetStrMethod(), m_cachedName, and name.
|
overridevirtual |
This method gets the pointer to the object from where this action constructs.
Implements ACTION_PLUGIN.
Definition at line 233 of file pcbnew_action_plugins.cpp.
References m_PyAction.
|
overridevirtual |
Implements ACTION_PLUGIN.
Definition at line 217 of file pcbnew_action_plugins.cpp.
References CallRetStrMethod().
|
overridevirtual |
Implements ACTION_PLUGIN.
Definition at line 193 of file pcbnew_action_plugins.cpp.
References CallMethod().
|
inherited |
It's the standard method of a "ACTION_PLUGIN" to register itself into the ACTION_PLUGINS singleton manager.
Definition at line 43 of file action_plugin.cpp.
References ACTION_PLUGINS::register_action().
Referenced by PYTHON_ACTION_PLUGINS::register_action().
|
overridevirtual |
This method the the action.
Implements ACTION_PLUGIN.
Definition at line 225 of file pcbnew_action_plugins.cpp.
References CallMethod().
|
inherited |
Definition at line 104 of file action_plugin.h.
Referenced by PCB_EDIT_FRAME::buildActionPluginMenus(), ACTION_PLUGINS::register_action(), and PANEL_PCBNEW_ACTION_PLUGINS::TransferDataToWindow().
|
inherited |
Definition at line 101 of file action_plugin.h.
Referenced by ACTION_PLUGINS::SetActionButton().
|
inherited |
Definition at line 98 of file action_plugin.h.
|
private |
Definition at line 55 of file pcbnew_action_plugins.h.
Referenced by CallMethod(), and GetName().
|
private |
Definition at line 57 of file pcbnew_action_plugins.h.
Referenced by CallMethod(), GetObject(), PYTHON_ACTION_PLUGIN(), and ~PYTHON_ACTION_PLUGIN().
|
inherited |
Definition at line 107 of file action_plugin.h.