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 )
 
  132    AssignImageList( imageList );
 
 
  140    while( GetPageCount() )
 
  156            AddPage( existingContainer->second, layerName, 
false, layer );
 
  162            AddPage( container, layerName, 
false, layer );
 
  179    m_zoneGAL->ActivateSelectedZone( aZone );
 
 
  184    const int                 idx = aEvent.GetSelection();
 
 
static const COLOR4D WHITE
 
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
 
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)
 
A color representation with 4 components: red, green, blue, alpha.
 
LSEQ UIOrder() const
Return the copper, technical and user layers in the order shown in layer widget.
 
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 *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: