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 62 of file pcbnew_action_plugins.h.

Member Function Documentation

void PYTHON_ACTION_PLUGINS::deregister_action ( PyObject *  aPyAction)
static

Definition at line 187 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::GetActionByButton(), ACTION_PLUGINS::GetActionByMenu(), ACTION_PLUGINS::GetActionsCount(), BOARD::GetArea(), BOARD::GetAreaCount(), GetBoard(), PICKED_ITEMS_LIST::GetCount(), ACTION_PLUGIN::GetDescription(), PICKED_ITEMS_LIST::GetItemWrapper(), EDA_ITEM::GetList(), ACTION_PLUGIN::GetName(), PICKED_ITEMS_LIST::GetPickedItem(), ACTION_PLUGIN::GetPluginPath(), i, ACTION_PLUGIN::iconBitmap, ID_TOOLBARH_PCB_ACTION_PLUGIN, KiBitmap(), KiScaledBitmap(), KiScaledSeparator(), BOARD::m_Drawings, BOARD::m_Modules, BOARD::m_SegZoneDeprecated, PICKED_ITEMS_LIST::m_Status, BOARD::m_Status_Pcb, BOARD::m_Track, 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_SEGZONE_T, PCB_TARGET_T, PCB_TEXT_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_AREA_T, PICKED_ITEMS_LIST::PushItem(), Refresh(), ACTION_PLUGIN::Run(), ACTION_PLUGINS::SetActionButton(), ACTION_PLUGINS::SetActionMenu(), ACTION_PLUGINS::SetActionRunning(), EDA_ITEM::Type(), UpdateUserInterface(), UR_CHANGED, UR_DELETED, and UR_NEW.

188 {
189  // deregister also destroys the previously created "PYTHON_ACTION_PLUGIN object"
190  ACTION_PLUGINS::deregister_object( (void*) aPyAction );
191 }
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 179 of file pcbnew_action_plugins.cpp.

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

180 {
181  PYTHON_ACTION_PLUGIN* fw = new PYTHON_ACTION_PLUGIN( aPyAction );
182 
183  fw->register_action();
184 }
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: