26#include <wx/artprov.h>
27#include <wx/dataview.h>
31#include <wx/imaglist.h>
33#include <wx/xrc/xmlres.h>
35#include <wx/dataview.h>
39#include <wx/settings.h>
42#include <wx/statbox.h>
48#include <wx/graphics.h>
49#include <wx/dcbuffer.h>
53#include <wx/dataview.h>
67 wxPanel( aParent ),
m_sizer( new wxBoxSizer( wxHORIZONTAL ) ),
m_layer( aLayer )
103 if( aGal->GetParent() ==
this )
107 m_gal->Reparent(
this );
115 wxNotebook( aParent, wxID_ANY, wxDefaultPosition, wxDefaultSize ), m_pcbFrame( aPcbFrame )
122 for(
int i = 0; i < PCB_LAYER_ID::PCB_LAYER_ID_COUNT; i++ )
126 color != COLOR4D::UNSPECIFIED ?
color : COLOR4D::WHITE, COLOR4D::UNSPECIFIED,
129 { 5, 6 }, COLOR4D::WHITE ) );
132 AssignImageList( imageList );
140 while( GetPageCount() )
156 AddPage( existingContainer->second, layerName,
false, layer );
162 AddPage( container, layerName,
false, layer );
185 const int idx = aEvent.GetSelection();
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
COLOR4D GetColor(int aLayer) const
static wxBitmap MakeBitmap(const KIGFX::COLOR4D &aColor, const KIGFX::COLOR4D &aBackground, const wxSize &aSize, const wxSize &aCheckerboardSize, const KIGFX::COLOR4D &aCheckerboardBackground)
GAL_DISPLAY_OPTIONS_IMPL & GetGalDisplayOptions()
Return a reference to the gal rendering options used by GAL for rendering.
A color representation with 4 components: red, green, blue, alpha.
LSEQ Seq(const LSEQ &aSequence) const
Return an LSEQ from the union of this LSET and a desired sequence.
void InitZoneGAL(PANEL_ZONE_GAL *aGal)
Initialize the gal , shall only be called once while the gal is first constructed.
PANEL_ZONE_GAL_CONTAINER(wxWindow *aParent, int aLayer)
void ResetZoneGAL(PANEL_ZONE_GAL *aGal)
Reuse the only one zone gal between different container.
void TakeGAL(PANEL_ZONE_GAL *&now)
void ActivateSelectedZone(ZONE *aZone) override
bool OnLayerSelected(int aLayer)
Show the zone painting on layer.
void ActivateSelectedZone(ZONE *new_zone) override
std::unordered_map< int, PANEL_ZONE_GAL_CONTAINER * > m_zoneContainers
PANE_ZONE_VIEWER(wxWindow *aParent, PCB_BASE_FRAME *aPcbFrame)
PANEL_ZONE_GAL * m_zoneGAL
~PANE_ZONE_VIEWER() override
void OnNotebook(wxNotebookEvent &aEvent)
PCB_BASE_FRAME * m_pcbFrame
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
virtual COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Helper to retrieve the current color settings.
Handle a list of polygons defining a copper zone.
virtual LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
PCB_LAYER_ID GetFirstLayer() const
PCB_LAYER_ID
A quick note on layer IDs: