KiCad PCB EDA Suite
|
#include <panel_pcbnew_action_plugins.h>
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. | |
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 |
Definition at line 26 of file panel_pcbnew_action_plugins.h.
|
private |
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.
PANEL_PCBNEW_ACTION_PLUGINS::PANEL_PCBNEW_ACTION_PLUGINS | ( | wxWindow * | aParent | ) |
Definition at line 102 of file panel_pcbnew_action_plugins.cpp.
References KiBitmapBundle(), m_genericIcon, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_moveDownButton, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_moveUpButton, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_openDirectoryButton, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_reloadButton, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_showErrorsButton, PLUGINS_GRID_TRICKS, and STD_BITMAP_BUTTON::SetBitmap().
|
override |
Definition at line 117 of file panel_pcbnew_action_plugins.cpp.
References PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid.
|
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().
|
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().
|
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().
|
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().
|
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().
|
overridevirtual |
Shows plugin import errors.
Reimplemented from PANEL_PCBNEW_ACTION_PLUGINS_BASE.
Definition at line 372 of file panel_pcbnew_action_plugins.cpp.
References DIALOG_FOOTPRINT_WIZARD_LOG::m_Message, pcbnewGetWizardsBackTrace(), and DIALOG_SHIM::ShowModal().
|
private |
Definition at line 129 of file panel_pcbnew_action_plugins.cpp.
References PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid.
Referenced by OnGridCellClick(), OnMoveDownButtonClick(), and OnMoveUpButtonClick().
|
private |
Definition at line 180 of file panel_pcbnew_action_plugins.cpp.
References COLUMN_ACTION_NAME, and PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid.
Referenced by OnMoveDownButtonClick(), and OnMoveUpButtonClick().
|
override |
Definition at line 210 of file panel_pcbnew_action_plugins.cpp.
References APP_SETTINGS_BASE::PLUGINS::actions, COLUMN_SETTINGS_IDENTIFIER, COLUMN_VISIBLE, API_PLUGIN_MANAGER::GetAction(), Kiface(), KIFACE_BASE::KifaceSettings(), PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid, APP_SETTINGS_BASE::m_Plugins, PCBNEW_SETTINGS::m_VisibleActionPlugins, and Pgm().
|
override |
Definition at line 258 of file panel_pcbnew_action_plugins.cpp.
References WX_GRID::ClearRows(), COLUMN_ACTION_NAME, COLUMN_DESCRIPTION, COLUMN_PLUGIN_NAME, COLUMN_SETTINGS_IDENTIFIER, COLUMN_VISIBLE, STD_BITMAP_BUTTON::Enable(), PCB_EDIT_FRAME::GetActionPluginButtonVisible(), ACTION_PLUGINS::GetActionsCount(), PGM_BASE::GetCommonSettings(), PCB_EDIT_FRAME::GetOrderedActionPlugins(), WX_GRID::GetVisibleWidth(), GRID_CELL_MARGIN, KIPLATFORM::UI::IsDarkTheme(), COMMON_SETTINGS::m_Appearance, m_genericIcon, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_showErrorsButton, pcbnewGetWizardsBackTrace(), Pgm(), and COMMON_SETTINGS::APPEARANCE::toolbar_icon_size.
Referenced by OnReloadButtonClick().
|
friend |
Definition at line 28 of file panel_pcbnew_action_plugins.h.
Referenced by PANEL_PCBNEW_ACTION_PLUGINS().
|
private |
Definition at line 78 of file panel_pcbnew_action_plugins.h.
Referenced by PANEL_PCBNEW_ACTION_PLUGINS(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 40 of file panel_pcbnew_action_plugins_base.h.
Referenced by OnMoveDownButtonClick(), OnMoveUpButtonClick(), PANEL_PCBNEW_ACTION_PLUGINS(), PANEL_PCBNEW_ACTION_PLUGINS_BASE::PANEL_PCBNEW_ACTION_PLUGINS_BASE(), SelectRow(), SwapRows(), TransferDataFromWindow(), TransferDataToWindow(), ~PANEL_PCBNEW_ACTION_PLUGINS(), and PANEL_PCBNEW_ACTION_PLUGINS_BASE::~PANEL_PCBNEW_ACTION_PLUGINS_BASE().
|
protectedinherited |
Definition at line 42 of file panel_pcbnew_action_plugins_base.h.
Referenced by PANEL_PCBNEW_ACTION_PLUGINS(), PANEL_PCBNEW_ACTION_PLUGINS_BASE::PANEL_PCBNEW_ACTION_PLUGINS_BASE(), and PANEL_PCBNEW_ACTION_PLUGINS_BASE::~PANEL_PCBNEW_ACTION_PLUGINS_BASE().
|
protectedinherited |
Definition at line 41 of file panel_pcbnew_action_plugins_base.h.
Referenced by PANEL_PCBNEW_ACTION_PLUGINS(), PANEL_PCBNEW_ACTION_PLUGINS_BASE::PANEL_PCBNEW_ACTION_PLUGINS_BASE(), and PANEL_PCBNEW_ACTION_PLUGINS_BASE::~PANEL_PCBNEW_ACTION_PLUGINS_BASE().
|
protectedinherited |
Definition at line 43 of file panel_pcbnew_action_plugins_base.h.
Referenced by PANEL_PCBNEW_ACTION_PLUGINS(), PANEL_PCBNEW_ACTION_PLUGINS_BASE::PANEL_PCBNEW_ACTION_PLUGINS_BASE(), and PANEL_PCBNEW_ACTION_PLUGINS_BASE::~PANEL_PCBNEW_ACTION_PLUGINS_BASE().
|
protectedinherited |
Definition at line 44 of file panel_pcbnew_action_plugins_base.h.
Referenced by PANEL_PCBNEW_ACTION_PLUGINS(), PANEL_PCBNEW_ACTION_PLUGINS_BASE::PANEL_PCBNEW_ACTION_PLUGINS_BASE(), and PANEL_PCBNEW_ACTION_PLUGINS_BASE::~PANEL_PCBNEW_ACTION_PLUGINS_BASE().
|
protectedinherited |