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_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 |
Definition at line 23 of file panel_pcbnew_action_plugins.h.
|
private |
Enumerator | |
---|---|
COLUMN_ICON | |
COLUMN_VISIBLE | |
COLUMN_NAME | |
COLUMN_CATEGORY | |
COLUMN_DESCRIPTION | |
COLUMN_PATH |
Definition at line 64 of file panel_pcbnew_action_plugins.h.
PANEL_PCBNEW_ACTION_PLUGINS::PANEL_PCBNEW_ACTION_PLUGINS | ( | wxWindow * | aParent | ) |
Definition at line 39 of file panel_pcbnew_action_plugins.cpp.
References KiBitmap(), 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, and STD_BITMAP_BUTTON::SetBitmap().
|
override |
Definition at line 54 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 60 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 95 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 73 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 236 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 140 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 242 of file panel_pcbnew_action_plugins.cpp.
References DIALOG_FOOTPRINT_WIZARD_LOG::m_Message, pcbnewGetWizardsBackTrace(), and DIALOG_SHIM::ShowModal().
|
private |
Definition at line 66 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 117 of file panel_pcbnew_action_plugins.cpp.
References COLUMN_ICON, and PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid.
Referenced by OnMoveDownButtonClick(), and OnMoveUpButtonClick().
|
override |
Definition at line 147 of file panel_pcbnew_action_plugins.cpp.
References COLUMN_PATH, COLUMN_VISIBLE, Kiface(), KIFACE_BASE::KifaceSettings(), PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid, and PCBNEW_SETTINGS::m_VisibleActionPlugins.
|
override |
Definition at line 168 of file panel_pcbnew_action_plugins.cpp.
References WX_GRID::ClearRows(), COLUMN_CATEGORY, COLUMN_DESCRIPTION, COLUMN_ICON, COLUMN_NAME, COLUMN_PATH, COLUMN_VISIBLE, STD_BITMAP_BUTTON::Enable(), PCB_EDIT_FRAME::GetActionPluginButtonVisible(), ACTION_PLUGINS::GetActionsCount(), ACTION_PLUGIN::GetCategoryName(), ACTION_PLUGIN::GetDescription(), ACTION_PLUGIN::GetName(), PCB_EDIT_FRAME::GetOrderedActionPlugins(), ACTION_PLUGIN::GetPluginPath(), ACTION_PLUGIN::GetShowToolbarButton(), WX_GRID::GetVisibleWidth(), GRID_CELL_MARGIN, ACTION_PLUGIN::iconBitmap, m_genericIcon, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid, PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_showErrorsButton, and pcbnewGetWizardsBackTrace().
Referenced by OnReloadButtonClick().
|
private |
Definition at line 74 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 |