KiCad PCB EDA Suite
|
Class to display a pcb layer list in a wxBitmapComboBox. More...
#include <pcb_layer_box_selector.h>
Public Member Functions | |
PCB_LAYER_BOX_SELECTOR (wxWindow *parent, wxWindowID id, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr, int style=0) | |
void | SetBoardFrame (PCB_BASE_FRAME *aFrame) |
void | SetNotAllowedLayerSet (LSET aMask) |
void | SetUndefinedLayerName (const wxString &aName) |
void | Resync () override |
void | ShowNonActivatedLayers (bool aShow) |
int | GetLayerSelection () const |
int | SetLayerSelection (int layer) |
void | ResyncBitmapOnly () |
bool | SetLayersHotkeys (bool value) |
Static Public Member Functions | |
static void | DrawColorSwatch (wxBitmap &aLayerbmp, const COLOR4D &aBackground, const COLOR4D &aColor) |
Protected Attributes | |
bool | m_layerhotkeys |
Private Member Functions | |
COLOR4D | getLayerColor (int aLayer) const override |
bool | isLayerEnabled (int aLayer) const override |
wxString | getLayerName (int aLayer) const override |
LSET | getEnabledLayers () const |
void | onKeyDown (wxKeyEvent &aEvent) |
Private Attributes | |
PCB_BASE_FRAME * | m_boardFrame |
LSET | m_layerMaskDisable |
bool | m_showNotEnabledBrdlayers |
wxString | m_undefinedLayerName |
Class to display a pcb layer list in a wxBitmapComboBox.
Definition at line 35 of file pcb_layer_box_selector.h.
|
inline |
Definition at line 41 of file pcb_layer_box_selector.h.
References m_boardFrame, and m_showNotEnabledBrdlayers.
|
staticinherited |
Definition at line 48 of file layer_box_selector.cpp.
References KIGFX::COLOR4D::ToColour(), and KIGFX::COLOR4D::WithAlpha().
Referenced by PANEL_SETUP_BOARD_STACKUP::createColorBox(), GRID_CELL_LAYER_RENDERER::Draw(), PANEL_SETUP_BOARD_STACKUP::onColorSelected(), GBR_LAYER_BOX_SELECTOR::Resync(), Resync(), LAYER_BOX_SELECTOR::ResyncBitmapOnly(), and PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard().
|
private |
Definition at line 152 of file pcb_layer_box_selector.cpp.
References LSET::AllLayersMask(), PCB_BASE_FRAME::GetBoard(), BOARD::GetEnabledLayers(), and m_boardFrame.
Referenced by isLayerEnabled(), and Resync().
|
overrideprivatevirtual |
Implements LAYER_SELECTOR.
Definition at line 164 of file pcb_layer_box_selector.cpp.
References SETTINGS_MANAGER::GetAppSettings(), COLOR_SETTINGS::GetColor(), PCB_BASE_FRAME::GetColorSettings(), SETTINGS_MANAGER::GetColorSettings(), m_boardFrame, APP_SETTINGS_BASE::m_ColorTheme, and Pgm().
Referenced by Resync().
|
overrideprivatevirtual |
Implements LAYER_SELECTOR.
Definition at line 182 of file pcb_layer_box_selector.cpp.
References PCB_BASE_FRAME::GetBoard(), BOARD::GetLayerName(), BOARD::GetStandardLayerName(), m_boardFrame, and ToLAYER_ID().
Referenced by Resync().
|
inherited |
Definition at line 109 of file layer_box_selector.cpp.
References UNDEFINED_LAYER.
Referenced by GRID_CELL_LAYER_SELECTOR::EndEdit(), DIALOG_TRACK_VIA_PROPERTIES::getLayerDepth(), PCB_EDIT_FRAME::OnUpdateLayerSelectBox(), PCB_EDIT_FRAME::Process_Special_Functions(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::processItem(), FOOTPRINT_EDIT_FRAME::SelectLayer(), DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), DIALOG_IMPORT_GFX::TransferDataFromWindow(), DIALOG_DIMENSION_PROPERTIES::updateDimensionFromDialog(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), DIALOG_GLOBAL_EDIT_TEARDROPS::visitItem(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem(), DIALOG_GLOBAL_EDIT_TEARDROPS::~DIALOG_GLOBAL_EDIT_TEARDROPS(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::~DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), and DIALOG_IMPORT_GFX::~DIALOG_IMPORT_GFX().
|
overrideprivatevirtual |
Implements LAYER_SELECTOR.
Definition at line 146 of file pcb_layer_box_selector.cpp.
References getEnabledLayers().
|
privateinherited |
Definition at line 155 of file layer_box_selector.cpp.
Referenced by LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR(), and LAYER_BOX_SELECTOR::~LAYER_BOX_SELECTOR().
|
overridevirtual |
Implements LAYER_BOX_SELECTOR.
Definition at line 82 of file pcb_layer_box_selector.cpp.
References _, AddHotkeyName(), LSET::AllLayersMask(), LAYER_SELECTOR::DrawColorSwatch(), DPI_SCALING::GetContentScaleFactor(), getEnabledLayers(), TOOL_ACTION::GetHotKey(), getLayerColor(), getLayerName(), IS_COMMENT, layer2action(), LAYER_PCB_BACKGROUND, LAYER_SELECTOR::m_layerhotkeys, m_showNotEnabledBrdlayers, m_undefinedLayerName, LSET::UIOrder(), and UNDEFINED_LAYER.
Referenced by GRID_CELL_LAYER_SELECTOR::BeginEdit(), DIALOG_GLOBAL_EDIT_TEARDROPS::buildFilterLists(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), DIALOG_GRAPHIC_ITEM_PROPERTIES::DIALOG_GRAPHIC_ITEM_PROPERTIES(), DIALOG_IMAGE_PROPERTIES::DIALOG_IMAGE_PROPERTIES(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateLayerBox(), and PCB_EDIT_FRAME::ReCreateLayerBox().
|
inherited |
Definition at line 142 of file layer_box_selector.cpp.
References LAYER_SELECTOR::DrawColorSwatch(), LAYER_SELECTOR::getLayerColor(), DPI_SCALING::GetScaleFactor(), and LAYER_PCB_BACKGROUND.
Referenced by LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR(), and GERBER_LAYER_WIDGET::OnLayerColorChange().
|
inline |
Definition at line 55 of file pcb_layer_box_selector.h.
References m_boardFrame.
Referenced by DIALOG_GLOBAL_EDIT_TEARDROPS::buildFilterLists(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), GRID_CELL_LAYER_SELECTOR::Create(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), DIALOG_GRAPHIC_ITEM_PROPERTIES::DIALOG_GRAPHIC_ITEM_PROPERTIES(), DIALOG_IMAGE_PROPERTIES::DIALOG_IMAGE_PROPERTIES(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), and PCB_EDIT_FRAME::ReCreateHToolbar().
|
inherited |
Definition at line 118 of file layer_box_selector.cpp.
Referenced by GRID_CELL_LAYER_SELECTOR::BeginEdit(), DIALOG_GLOBAL_EDIT_TEARDROPS::buildFilterLists(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), FOOTPRINT_EDIT_FRAME::OnUpdateLayerSelectBox(), PCB_EDIT_FRAME::OnUpdateLayerSelectBox(), DIALOG_TRACK_VIA_PROPERTIES::onViaEdit(), GRID_CELL_LAYER_SELECTOR::Reset(), DIALOG_DIMENSION_PROPERTIES::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TEARDROPS::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataToWindow(), DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataToWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataToWindow(), and PCB_EDIT_FRAME::UpdateUserInterface().
|
inherited |
Definition at line 41 of file layer_box_selector.cpp.
References LAYER_SELECTOR::m_layerhotkeys.
Referenced by DIALOG_GLOBAL_EDIT_TEARDROPS::buildFilterLists(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), DIALOG_GRAPHIC_ITEM_PROPERTIES::DIALOG_GRAPHIC_ITEM_PROPERTIES(), DIALOG_IMAGE_PROPERTIES::DIALOG_IMAGE_PROPERTIES(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), and DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES().
|
inline |
Definition at line 58 of file pcb_layer_box_selector.h.
References m_layerMaskDisable.
Referenced by DIALOG_GLOBAL_EDIT_TEARDROPS::buildFilterLists(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), GRID_CELL_LAYER_SELECTOR::Create(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), DIALOG_GRAPHIC_ITEM_PROPERTIES::DIALOG_GRAPHIC_ITEM_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), and FOOTPRINT_EDIT_FRAME::ReCreateHToolbar().
|
inline |
Definition at line 62 of file pcb_layer_box_selector.h.
References m_undefinedLayerName.
Referenced by DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), and DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES().
|
inline |
Definition at line 69 of file pcb_layer_box_selector.h.
References m_showNotEnabledBrdlayers.
Referenced by GRID_CELL_LAYER_SELECTOR::BeginEdit(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_IMAGE_PROPERTIES::DIALOG_IMAGE_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), and DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES().
|
private |
Definition at line 83 of file pcb_layer_box_selector.h.
Referenced by getEnabledLayers(), getLayerColor(), getLayerName(), PCB_LAYER_BOX_SELECTOR(), and SetBoardFrame().
|
protectedinherited |
Definition at line 62 of file layer_box_selector.h.
Referenced by GBR_LAYER_BOX_SELECTOR::GBR_LAYER_BOX_SELECTOR(), LAYER_SELECTOR::LAYER_SELECTOR(), Resync(), and LAYER_SELECTOR::SetLayersHotkeys().
|
private |
Definition at line 85 of file pcb_layer_box_selector.h.
Referenced by SetNotAllowedLayerSet().
|
private |
Definition at line 87 of file pcb_layer_box_selector.h.
Referenced by PCB_LAYER_BOX_SELECTOR(), Resync(), and ShowNonActivatedLayers().
|
private |
Definition at line 89 of file pcb_layer_box_selector.h.
Referenced by Resync(), and SetUndefinedLayerName().