KiCad PCB EDA Suite
PYTHON_ACTION_PLUGINS Class Reference

#include <pcbnew_action_plugins.h>

Static Public Member Functions

static void register_action (PyObject *aPyAction)
 
static void deregister_action (PyObject *aPyAction)
 

Detailed Description

Definition at line 55 of file pcbnew_action_plugins.h.

Member Function Documentation

void PYTHON_ACTION_PLUGINS::deregister_action ( PyObject *  aPyAction)
static

Definition at line 165 of file pcbnew_action_plugins.cpp.

References AddMenuItem(), PICKED_ITEMS_LIST::ClearItemsList(), PICKED_ITEMS_LIST::ContainsItem(), ACTION_PLUGINS::deregister_object(), ACTION_PLUGINS::GetAction(), ACTION_PLUGINS::GetActionByMenu(), ACTION_PLUGINS::GetActionsCount(), BOARD::GetArea(), BOARD::GetAreaCount(), GetBoard(), PICKED_ITEMS_LIST::GetCount(), PYTHON_ACTION_PLUGIN::GetDescription(), PICKED_ITEMS_LIST::GetItemWrapper(), EDA_ITEM::GetList(), PYTHON_ACTION_PLUGIN::GetName(), PICKED_ITEMS_LIST::GetPickedItem(), i, ID_TOOLBARH_PCB_ACTION_PLUGIN, KiBitmap(), BOARD::m_Drawings, BOARD::m_Modules, PICKED_ITEMS_LIST::m_Status, BOARD::m_Status_Pcb, BOARD::m_Track, BOARD::m_Zone, TRACK::Next(), BOARD_ITEM::Next(), MODULE::Next(), SEGZONE::Next(), PCB_DIMENSION_T, PCB_LINE_T, PCB_MARKER_T, PCB_MODULE_T, PCB_NETINFO_T, PCB_TARGET_T, PCB_TEXT_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_AREA_T, PCB_ZONE_T, PICKED_ITEMS_LIST::PushItem(), Refresh(), ACTION_PLUGIN::Run(), ACTION_PLUGINS::SetActionMenu(), ACTION_PLUGINS::SetActionRunning(), EDA_ITEM::Type(), UpdateUserInterface(), UR_CHANGED, UR_DELETED, and UR_NEW.

166 {
167  // deregister also destroyes the previously created "PYTHON_ACTION_PLUGIN object"
168  ACTION_PLUGINS::deregister_object( (void*) aPyAction );
169 }
static bool deregister_object(void *aObject)
Function deregister_object Anyone calls this method to deregister an object which builds a action...
void PYTHON_ACTION_PLUGINS::register_action ( PyObject *  aPyAction)
static

Definition at line 157 of file pcbnew_action_plugins.cpp.

References PYTHON_ACTION_PLUGIN::PYTHON_ACTION_PLUGIN(), and ACTION_PLUGIN::register_action().

158 {
159  PYTHON_ACTION_PLUGIN* fw = new PYTHON_ACTION_PLUGIN( aPyAction );
160 
161  fw->register_action();
162 }
void register_action()
Function register_action It&#39;s the standard method of a "ACTION_PLUGIN" to register itself into the AC...

The documentation for this class was generated from the following files: