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_ICON , COLUMN_VISIBLE , COLUMN_NAME , COLUMN_CATEGORY ,
  COLUMN_DESCRIPTION , COLUMN_PATH
}
 

Private Member Functions

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

Private Attributes

wxBitmap m_genericIcon
 

Detailed Description

Definition at line 23 of file panel_pcbnew_action_plugins.h.

Member Enumeration Documentation

◆ GRID_COLUMNS

Enumerator
COLUMN_ICON 
COLUMN_VISIBLE 
COLUMN_NAME 
COLUMN_CATEGORY 
COLUMN_DESCRIPTION 
COLUMN_PATH 

Definition at line 64 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 60 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 95 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 73 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 236 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 140 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()

bool PANEL_PCBNEW_ACTION_PLUGINS::TransferDataFromWindow ( )
override

◆ TransferDataToWindow()

Member Data Documentation

◆ m_genericIcon

wxBitmap 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: