65 for(
int i = 0; i < max; i++ )
85 for(
int i = 0; i < max; i++ )
119 for(
int i = 0; i<max; i++ )
125 if(
name.Cmp( aName )==0 )
171 if( !icon_file_name.IsEmpty() )
174 wxLogNull eat_errors;
175 aAction->
iconBitmap.LoadFile( icon_file_name, wxBITMAP_TYPE_PNG );
180 wxLogVerbose( wxT(
"Failed to load icon " ) + icon_file_name + wxT(
" for action plugin " ) );
193 for(
int i = 0; i<max; i++ )
Class PCBNEW_ACTION_PLUGINS.
BITMAP_STORE * GetBitmapStore()
static void UnloadAll()
Unload (deregister) all action plugins.
static bool deregister_object(void *aObject)
Deregister an object which builds a action.
static ACTION_PLUGIN * GetActionByMenu(int aMenu)
Find action plugin associated to a menu ID.
static ACTION_PLUGIN * GetActionByPath(const wxString &aPath)
Find action plugin by module path.
static std::vector< ACTION_PLUGIN * > m_actionsList
ACTION_PLUGIN system wide static list.
static int GetActionsCount()
static void register_action(ACTION_PLUGIN *aAction)
An action calls this static method when it wants to register itself into the system actions.
static ACTION_PLUGIN * GetAction(const wxString &aName)
static void SetActionButton(ACTION_PLUGIN *aAction, int idButton)
Associate a button id to an action plugin.
static void SetActionMenu(int aIndex, int idMenu)
Associate a menu id to an action plugin.
static void SetActionRunning(bool aRunning)
static bool m_actionRunning
static ACTION_PLUGIN * GetActionByButton(int aButton)
Find action plugin associated to a button ID.
static bool IsActionRunning()
This is the parent class from where any action plugin class must derive.
virtual wxString GetIconFileName(bool aDark)=0
void register_action()
It's the standard method of a "ACTION_PLUGIN" to register itself into the ACTION_PLUGINS singleton ma...
virtual void * GetObject()=0
This method gets the pointer to the object from where this action constructs.
virtual wxString GetName()=0
PGM_BASE * PgmOrNull()
similar to PGM_BASE& Pgm(), but return a reference that can be nullptr when running a shared lib from...