KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_PCBNEW_ACTION_PLUGINS Class Reference

#include <panel_pcbnew_action_plugins.h>

Inheritance diagram for PANEL_PCBNEW_ACTION_PLUGINS:
PANEL_PCBNEW_ACTION_PLUGINS_BASE

Public Member Functions

 PANEL_PCBNEW_ACTION_PLUGINS (wxWindow *aParent)
 
bool TransferDataFromWindow () override
 
bool TransferDataToWindow () override
 
 ~PANEL_PCBNEW_ACTION_PLUGINS () override
 
void OnGridCellClick (wxGridEvent &event) override
 Selects a whole row.
 
void OnMoveUpButtonClick (wxCommandEvent &event) override
 Moves plugin up in the grid.
 
void OnMoveDownButtonClick (wxCommandEvent &event) override
 Moves plugin down in the grid.
 
void OnOpenDirectoryButtonClick (wxCommandEvent &event) override
 Opens user's action plugin directory.
 
void OnReloadButtonClick (wxCommandEvent &event) override
 Reloads plugins and updates grid.
 
void OnShowErrorsButtonClick (wxCommandEvent &event) override
 Shows plugin import errors.
 

Protected Attributes

WX_GRIDm_grid
 
STD_BITMAP_BUTTONm_moveUpButton
 
STD_BITMAP_BUTTONm_moveDownButton
 
STD_BITMAP_BUTTONm_openDirectoryButton
 
STD_BITMAP_BUTTONm_reloadButton
 
STD_BITMAP_BUTTONm_showErrorsButton
 

Private Types

enum  GRID_COLUMNS {
  COLUMN_ACTION_NAME , COLUMN_VISIBLE , COLUMN_PLUGIN_NAME , COLUMN_DESCRIPTION ,
  COLUMN_SETTINGS_IDENTIFIER
}
 

Private Member Functions

void SwapRows (int aRowA, int aRowB)
 
void SelectRow (int aRow)
 

Private Attributes

wxBitmapBundle m_genericIcon
 

Friends

class PLUGINS_GRID_TRICKS
 

Detailed Description

Definition at line 26 of file panel_pcbnew_action_plugins.h.

Member Enumeration Documentation

◆ GRID_COLUMNS

Enumerator
COLUMN_ACTION_NAME 
COLUMN_VISIBLE 
COLUMN_PLUGIN_NAME 
COLUMN_DESCRIPTION 
COLUMN_SETTINGS_IDENTIFIER 

Definition at line 69 of file panel_pcbnew_action_plugins.h.

Constructor & Destructor Documentation

◆ PANEL_PCBNEW_ACTION_PLUGINS()

◆ ~PANEL_PCBNEW_ACTION_PLUGINS()

PANEL_PCBNEW_ACTION_PLUGINS::~PANEL_PCBNEW_ACTION_PLUGINS ( )
override

Member Function Documentation

◆ OnGridCellClick()

void PANEL_PCBNEW_ACTION_PLUGINS::OnGridCellClick ( wxGridEvent &  event)
overridevirtual

Selects a whole row.

Reimplemented from PANEL_PCBNEW_ACTION_PLUGINS_BASE.

Definition at line 123 of file panel_pcbnew_action_plugins.cpp.

References SelectRow().

◆ OnMoveDownButtonClick()

void PANEL_PCBNEW_ACTION_PLUGINS::OnMoveDownButtonClick ( wxCommandEvent &  event)
overridevirtual

Moves plugin down in the grid.

Reimplemented from PANEL_PCBNEW_ACTION_PLUGINS_BASE.

Definition at line 158 of file panel_pcbnew_action_plugins.cpp.

References PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid, SelectRow(), and SwapRows().

◆ OnMoveUpButtonClick()

void PANEL_PCBNEW_ACTION_PLUGINS::OnMoveUpButtonClick ( wxCommandEvent &  event)
overridevirtual

Moves plugin up in the grid.

Reimplemented from PANEL_PCBNEW_ACTION_PLUGINS_BASE.

Definition at line 136 of file panel_pcbnew_action_plugins.cpp.

References PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid, SelectRow(), and SwapRows().

◆ OnOpenDirectoryButtonClick()

void PANEL_PCBNEW_ACTION_PLUGINS::OnOpenDirectoryButtonClick ( wxCommandEvent &  event)
overridevirtual

Opens user's action plugin directory.

Reimplemented from PANEL_PCBNEW_ACTION_PLUGINS_BASE.

Definition at line 366 of file panel_pcbnew_action_plugins.cpp.

References SCRIPTING_TOOL::ShowPluginFolder().

◆ OnReloadButtonClick()

void PANEL_PCBNEW_ACTION_PLUGINS::OnReloadButtonClick ( wxCommandEvent &  event)
overridevirtual

Reloads plugins and updates grid.

Reimplemented from PANEL_PCBNEW_ACTION_PLUGINS_BASE.

Definition at line 203 of file panel_pcbnew_action_plugins.cpp.

References SCRIPTING_TOOL::ReloadPlugins(), and TransferDataToWindow().

◆ OnShowErrorsButtonClick()

void PANEL_PCBNEW_ACTION_PLUGINS::OnShowErrorsButtonClick ( wxCommandEvent &  event)
overridevirtual

◆ SelectRow()

void PANEL_PCBNEW_ACTION_PLUGINS::SelectRow ( int  aRow)
private

◆ SwapRows()

void PANEL_PCBNEW_ACTION_PLUGINS::SwapRows ( int  aRowA,
int  aRowB 
)
private

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

Friends And Related Function Documentation

◆ PLUGINS_GRID_TRICKS

friend class PLUGINS_GRID_TRICKS
friend

Definition at line 28 of file panel_pcbnew_action_plugins.h.

Referenced by PANEL_PCBNEW_ACTION_PLUGINS().

Member Data Documentation

◆ m_genericIcon

wxBitmapBundle PANEL_PCBNEW_ACTION_PLUGINS::m_genericIcon
private

◆ m_grid

◆ m_moveDownButton

◆ m_moveUpButton

◆ m_openDirectoryButton

◆ m_reloadButton

◆ m_showErrorsButton


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