KiCad PCB EDA Suite
|
Class SELECT_COPPER_LAYERS_PAIR_DIALOG displays a double pcb copper layers list in a dialog, to select a layer pair from these lists. More...
Public Member Functions | |
SELECT_COPPER_LAYERS_PAIR_DIALOG (PCB_BASE_FRAME *aParent, BOARD *aPcb, PCB_LAYER_ID aFrontLayer, PCB_LAYER_ID aBackLayer) | |
void | GetLayerPair (PCB_LAYER_ID &aFrontLayer, PCB_LAYER_ID &aBackLayer) |
bool | SetLayersOrdered (bool value) |
bool | SetLayersHotkeys (bool value) |
Public Attributes | |
struct EDA_HOTKEY_CONFIG * | m_hotkeys |
Protected Member Functions | |
bool | IsLayerEnabled (LAYER_NUM aLayer) const override |
COLOR4D | GetLayerColor (LAYER_NUM aLayer) const override |
wxString | GetLayerName (LAYER_NUM aLayer) const override |
void | SetBitmapLayer (wxBitmap &aLayerbmp, LAYER_NUM aLayer) |
virtual void | OnOKClick (wxCommandEvent &event) |
Protected Attributes | |
PCB_BASE_FRAME * | m_frame |
bool | m_layerhotkeys |
wxStaticText * | m_staticTextTopLayer |
wxGrid * | m_leftGridLayers |
wxStaticText * | m_staticTextBottomLayer |
wxGrid * | m_rightGridLayers |
wxStaticLine * | m_staticline1 |
wxStdDialogButtonSizer * | m_sdbSizer |
wxButton * | m_sdbSizerOK |
wxButton * | m_sdbSizerCancel |
Private Member Functions | |
void | OnLeftGridCellClick (wxGridEvent &event) override |
void | OnRightGridCellClick (wxGridEvent &event) override |
void | OnOkClick (wxCommandEvent &event) |
void | OnCancelClick (wxCommandEvent &event) override |
void | buildList () |
void | SetGridCursor (wxGrid *aGrid, int aRow, bool aEnable) |
Private Attributes | |
BOARD * | m_brd |
PCB_LAYER_ID | m_frontLayer |
PCB_LAYER_ID | m_backLayer |
int | m_leftRowSelected |
int | m_rightRowSelected |
std::vector< PCB_LAYER_ID > | m_layersId |
Class SELECT_COPPER_LAYERS_PAIR_DIALOG displays a double pcb copper layers list in a dialog, to select a layer pair from these lists.
Definition at line 246 of file sel_layer.cpp.
SELECT_COPPER_LAYERS_PAIR_DIALOG::SELECT_COPPER_LAYERS_PAIR_DIALOG | ( | PCB_BASE_FRAME * | aParent, |
BOARD * | aPcb, | ||
PCB_LAYER_ID | aFrontLayer, | ||
PCB_LAYER_ID | aBackLayer | ||
) |
Definition at line 310 of file sel_layer.cpp.
References buildList(), PCAD2KICAD::Center, m_backLayer, m_brd, m_frontLayer, m_leftRowSelected, and m_rightRowSelected.
|
private |
Definition at line 327 of file sel_layer.cpp.
References color, COLOR_COLNUM, BOARD::GetEnabledLayers(), PCB_LAYER_SELECTOR::GetLayerColor(), PCB_LAYER_SELECTOR::GetLayerName(), IsCopperLayer(), LAYERNAME_COLNUM, m_backLayer, m_brd, m_frontLayer, m_layersId, DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::m_leftGridLayers, m_leftRowSelected, DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::m_rightGridLayers, m_rightRowSelected, SELECT_COLNUM, SetGridCursor(), and LSET::UIOrder().
Referenced by SELECT_COPPER_LAYERS_PAIR_DIALOG().
|
inlineoverrideprotectedvirtualinherited |
Implements LAYER_SELECTOR.
Definition at line 62 of file sel_layer.cpp.
References PCB_GENERAL_SETTINGS::Colors(), COLORS_DESIGN_SETTINGS::GetLayerColor(), PCB_BASE_FRAME::Settings(), and ToLAYER_ID().
Referenced by PCB_ONE_LAYER_SELECTOR::buildList(), buildList(), and SetGridCursor().
|
inlineoverrideprotectedvirtualinherited |
Implements LAYER_SELECTOR.
Definition at line 68 of file sel_layer.cpp.
References PCB_BASE_FRAME::GetBoard(), BOARD::GetLayerName(), and ToLAYER_ID().
Referenced by PCB_ONE_LAYER_SELECTOR::buildList(), and buildList().
|
inline |
Definition at line 262 of file sel_layer.cpp.
References PCB_ONE_LAYER_SELECTOR::OnLeftGridCellClick(), and PCB_ONE_LAYER_SELECTOR::OnRightGridCellClick().
Referenced by PCB_BASE_FRAME::SelectCopperLayerPair().
|
inlineoverrideprotectedvirtualinherited |
Implements LAYER_SELECTOR.
Definition at line 55 of file sel_layer.cpp.
References PCB_BASE_FRAME::GetBoard(), and BOARD::IsLayerEnabled().
|
inlineoverrideprivatevirtual |
Reimplemented from DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE.
Definition at line 277 of file sel_layer.cpp.
References PCB_ONE_LAYER_SELECTOR::buildList().
|
overrideprivatevirtual |
Reimplemented from DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE.
Definition at line 405 of file sel_layer.cpp.
References m_frontLayer, m_layersId, DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::m_leftGridLayers, m_leftRowSelected, and SetGridCursor().
|
inlineprotectedvirtualinherited |
Definition at line 76 of file dialog_layer_selection_base.h.
Referenced by DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE(), and DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::~DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE().
|
inlineprivate |
Definition at line 272 of file sel_layer.cpp.
|
overrideprivatevirtual |
Reimplemented from DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE.
Definition at line 420 of file sel_layer.cpp.
References m_backLayer, m_layersId, DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::m_rightGridLayers, m_rightRowSelected, and SetGridCursor().
|
protectedinherited |
Definition at line 48 of file layer_box_selector.cpp.
References LAYER_SELECTOR::GetLayerColor(), LAYER_PCB_BACKGROUND, and KIGFX::COLOR4D::WithAlpha().
Referenced by GBR_LAYER_BOX_SELECTOR::Resync(), PCB_LAYER_BOX_SELECTOR::Resync(), and LAYER_BOX_SELECTOR::ResyncBitmapOnly().
|
private |
Definition at line 384 of file sel_layer.cpp.
References color, PCB_LAYER_SELECTOR::GetLayerColor(), LAYERNAME_COLNUM, m_layersId, and SELECT_COLNUM.
Referenced by buildList(), OnLeftGridCellClick(), and OnRightGridCellClick().
|
inherited |
Definition at line 41 of file layer_box_selector.cpp.
References LAYER_SELECTOR::m_layerhotkeys.
Referenced by DIALOG_DIMENSION_EDITOR::DIALOG_DIMENSION_EDITOR(), DIALOG_DXF_IMPORT::DIALOG_DXF_IMPORT(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_EDIT_FPTEXT::TransferDataToWindow(), DIALOG_PCB_TEXT_PROPERTIES::TransferDataToWindow(), DIALOG_MODEDIT_FP_BODY_ITEM_PROPERTIES::TransferDataToWindow(), and DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataToWindow().
|
inherited |
|
private |
Definition at line 252 of file sel_layer.cpp.
Referenced by buildList(), OnRightGridCellClick(), and SELECT_COPPER_LAYERS_PAIR_DIALOG().
|
private |
Definition at line 250 of file sel_layer.cpp.
Referenced by buildList(), and SELECT_COPPER_LAYERS_PAIR_DIALOG().
|
protectedinherited |
Definition at line 52 of file sel_layer.cpp.
Referenced by PCB_LAYER_SELECTOR::PCB_LAYER_SELECTOR().
|
private |
Definition at line 251 of file sel_layer.cpp.
Referenced by buildList(), OnLeftGridCellClick(), and SELECT_COPPER_LAYERS_PAIR_DIALOG().
|
inherited |
Definition at line 46 of file layer_box_selector.h.
Referenced by LAYER_SELECTOR::LAYER_SELECTOR().
|
protectedinherited |
Definition at line 42 of file layer_box_selector.h.
Referenced by GBR_LAYER_BOX_SELECTOR::GBR_LAYER_BOX_SELECTOR(), LAYER_SELECTOR::LAYER_SELECTOR(), PCB_LAYER_BOX_SELECTOR::Resync(), and LAYER_SELECTOR::SetLayersHotkeys().
|
private |
Definition at line 256 of file sel_layer.cpp.
Referenced by buildList(), OnLeftGridCellClick(), OnRightGridCellClick(), and SetGridCursor().
|
protectedinherited |
|
private |
Definition at line 253 of file sel_layer.cpp.
Referenced by buildList(), OnLeftGridCellClick(), and SELECT_COPPER_LAYERS_PAIR_DIALOG().
|
protectedinherited |
|
private |
Definition at line 254 of file sel_layer.cpp.
Referenced by buildList(), OnRightGridCellClick(), and SELECT_COPPER_LAYERS_PAIR_DIALOG().
|
protectedinherited |
Definition at line 68 of file dialog_layer_selection_base.h.
Referenced by DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE().
|
protectedinherited |
Definition at line 70 of file dialog_layer_selection_base.h.
Referenced by DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE(), and DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::~DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE().
|
protectedinherited |
Definition at line 69 of file dialog_layer_selection_base.h.
Referenced by DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE(), and DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::~DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE().
|
protectedinherited |
Definition at line 67 of file dialog_layer_selection_base.h.
Referenced by DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE().
|
protectedinherited |
Definition at line 65 of file dialog_layer_selection_base.h.
Referenced by DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE().
|
protectedinherited |
Definition at line 63 of file dialog_layer_selection_base.h.
Referenced by DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE::DIALOG_COPPER_LAYER_PAIR_SELECTION_BASE().