![]() |
KiCad PCB EDA Suite
|
#include <panel_pcbnew_action_plugins.h>
Public Member Functions | |
PANEL_PCBNEW_ACTION_PLUGINS (PCB_EDIT_FRAME *aFrame, PAGED_DIALOG *aWindow) | |
bool | TransferDataFromWindow () override |
bool | TransferDataToWindow () override |
~PANEL_PCBNEW_ACTION_PLUGINS () override | |
void | OnGridCellClick (wxGridEvent &event) override |
Selects a whole row. More... | |
void | OnMoveUpButtonClick (wxCommandEvent &event) override |
Moves plugin up in the grid. More... | |
void | OnMoveDownButtonClick (wxCommandEvent &event) override |
Moves plugin down in the grid. More... | |
void | OnOpenDirectoryButtonClick (wxCommandEvent &event) override |
Opens user's action plugin directory. More... | |
void | OnReloadButtonClick (wxCommandEvent &event) override |
Reloads plugins and updates grid. More... | |
void | OnShowErrorsButtonClick (wxCommandEvent &event) override |
Shows plugin import errors. More... | |
Protected Attributes | |
WX_GRID * | m_grid |
wxBitmapButton * | m_moveUpButton |
wxBitmapButton * | m_moveDownButton |
wxBitmapButton * | m_openDirectoryButton |
wxBitmapButton * | m_reloadButton |
wxBitmapButton * | m_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 | |
PCB_EDIT_FRAME * | m_frame |
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 | ( | PCB_EDIT_FRAME * | aFrame, |
PAGED_DIALOG * | aWindow | ||
) |
Definition at line 42 of file panel_pcbnew_action_plugins.cpp.
References KiBitmap(), 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, puzzle_piece, small_down, small_folder, small_refresh, small_up, and small_warning.
|
override |
Definition at line 58 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 64 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 99 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 77 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 237 of file panel_pcbnew_action_plugins.cpp.
References m_frame, and PCB_EDIT_FRAME::PythonPluginsShowFolder().
|
overridevirtual |
Reloads plugins and updates grid.
Reimplemented from PANEL_PCBNEW_ACTION_PLUGINS_BASE.
Definition at line 144 of file panel_pcbnew_action_plugins.cpp.
References m_frame, PCB_EDIT_FRAME::PythonPluginsReload(), 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, and pcbnewGetWizardsBackTrace().
|
private |
Definition at line 70 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 121 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 151 of file panel_pcbnew_action_plugins.cpp.
References COLUMN_PATH, COLUMN_VISIBLE, Kiface(), and PANEL_PCBNEW_ACTION_PLUGINS_BASE::m_grid.
|
override |
Definition at line 172 of file panel_pcbnew_action_plugins.cpp.
References COLUMN_CATEGORY, COLUMN_DESCRIPTION, COLUMN_ICON, COLUMN_NAME, COLUMN_PATH, COLUMN_VISIBLE, ACTION_PLUGIN::GetCategoryName(), ACTION_PLUGIN::GetDescription(), ACTION_PLUGIN::GetName(), ACTION_PLUGIN::GetPluginPath(), ACTION_PLUGIN::GetShowToolbarButton(), WX_GRID::GetVisibleWidth(), GRID_CELL_MARGIN, ACTION_PLUGIN::iconBitmap, m_frame, 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 OnOpenDirectoryButtonClick(), OnReloadButtonClick(), and TransferDataToWindow().
|
private |
Definition at line 75 of file panel_pcbnew_action_plugins.h.
Referenced by PANEL_PCBNEW_ACTION_PLUGINS(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 39 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 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 40 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 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 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 |