KiCad PCB EDA Suite
|
#include <gbr_layer_box_selector.h>
Public Member Functions | |
GBR_LAYER_BOX_SELECTOR (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr) | |
void | Resync () override |
COLOR4D | getLayerColor (int aLayer) const override |
bool | isLayerEnabled (int aLayer) const override |
wxString | getLayerName (int aLayer) const override |
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 |
Definition at line 32 of file gbr_layer_box_selector.h.
|
inline |
Definition at line 35 of file gbr_layer_box_selector.h.
References LAYER_SELECTOR::m_layerhotkeys.
|
staticinherited |
Definition at line 50 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(), Resync(), PCB_LAYER_BOX_SELECTOR::Resync(), LAYER_BOX_SELECTOR::ResyncBitmapOnly(), and PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard().
|
overridevirtual |
Implements LAYER_SELECTOR.
Definition at line 89 of file gbr_layer_box_selector.cpp.
References GERBER_DRAW_LAYER, and GERBVIEW_FRAME::GetLayerColor().
Referenced by Resync().
|
overridevirtual |
Implements LAYER_SELECTOR.
Definition at line 98 of file gbr_layer_box_selector.cpp.
References GERBER_FILE_IMAGE_LIST::GetDisplayName(), GERBER_FILE_IMAGE_LIST::GetImagesList(), and name.
Referenced by Resync().
|
inherited |
Definition at line 102 of file layer_box_selector.cpp.
References UNDEFINED_LAYER.
Referenced by GRID_CELL_LAYER_SELECTOR::EndEdit(), DIALOG_TRACK_VIA_PROPERTIES::getLayerDepth(), DIALOG_SHAPE_PROPERTIES::onLayerSelection(), 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_REFERENCE_IMAGE_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataFromWindow(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), DIALOG_IMPORT_GRAPHICS::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_GRAPHICS::~DIALOG_IMPORT_GRAPHICS().
|
inlineoverridevirtual |
Implements LAYER_SELECTOR.
Definition at line 51 of file gbr_layer_box_selector.h.
Referenced by Resync().
|
overridevirtual |
Implements LAYER_BOX_SELECTOR.
Definition at line 35 of file gbr_layer_box_selector.cpp.
References LAYER_SELECTOR::DrawColorSwatch(), DPI_SCALING_COMMON::GetContentScaleFactor(), GERBER_FILE_IMAGE_LIST::GetGbrImage(), GERBER_FILE_IMAGE_LIST::GetImagesList(), getLayerColor(), getLayerName(), GERBER_FILE_IMAGE_LIST::ImagesMaxCount(), isLayerEnabled(), and LAYER_PCB_BACKGROUND.
Referenced by GERBVIEW_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReFillLayerWidget(), and GERBVIEW_FRAME::syncLayerBox().
|
inherited |
Definition at line 135 of file layer_box_selector.cpp.
References LAYER_SELECTOR::DrawColorSwatch(), LAYER_SELECTOR::getLayerColor(), DPI_SCALING_COMMON::GetScaleFactor(), and LAYER_PCB_BACKGROUND.
Referenced by LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR(), and GERBER_LAYER_WIDGET::OnLayerColorChange().
|
inherited |
Definition at line 111 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_GRAPHICS::DIALOG_IMPORT_GRAPHICS(), 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_REFERENCE_IMAGE_PROPERTIES::TransferDataToWindow(), DIALOG_TEXTBOX_PROPERTIES::TransferDataToWindow(), and PCB_EDIT_FRAME::UpdateUserInterface().
|
inherited |
Definition at line 43 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_IMPORT_GRAPHICS::DIALOG_IMPORT_GRAPHICS(), DIALOG_REFERENCE_IMAGE_PROPERTIES::DIALOG_REFERENCE_IMAGE_PROPERTIES(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES(), and DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES().
|
protectedinherited |
Definition at line 60 of file layer_box_selector.h.
Referenced by GBR_LAYER_BOX_SELECTOR(), LAYER_SELECTOR::LAYER_SELECTOR(), PCB_LAYER_BOX_SELECTOR::Resync(), and LAYER_SELECTOR::SetLayersHotkeys().