KiCad PCB EDA Suite
panel_board_stackup.cpp File Reference
#include <macros.h>
#include <pcb_edit_frame.h>
#include <board.h>
#include <board_design_settings.h>
#include <dialogs/dialog_color_picker.h>
#include <widgets/paged_dialog.h>
#include <widgets/layer_box_selector.h>
#include <widgets/wx_panel.h>
#include <wx/log.h>
#include <wx/rawbmp.h>
#include <math/util.h>
#include "panel_board_stackup.h"
#include <panel_setup_layers.h>
#include "board_stackup_reporter.h"
#include <bitmaps.h>
#include <wx/clipbrd.h>
#include <wx/dataobj.h>
#include "dialog_dielectric_list_manager.h"
#include <wx/wupdlock.h>
#include <wx/richmsgdlg.h>
#include <wx/dcclient.h>
#include <wx/treebook.h>
#include <wx/textdlg.h>
#include <locale_io.h>
#include <eda_list_dialog.h>
#include <string_utils.h>

Go to the source code of this file.

Macros

#define ID_INCREMENT   256
 

Enumerations

enum  WIDGETS_IDS { ID_ITEM_MATERIAL = 10000 , ID_ITEM_THICKNESS = ID_ITEM_MATERIAL + ID_INCREMENT , ID_ITEM_THICKNESS_LOCKED = ID_ITEM_THICKNESS + ID_INCREMENT , ID_ITEM_COLOR = ID_ITEM_THICKNESS_LOCKED + ID_INCREMENT }
 

Functions

static wxColor copperColor (220, 180, 30)
 
static wxColor dielectricColor (75, 120, 75)
 
static wxColor pasteColor (200, 200, 200)
 
static void drawBitmap (wxBitmap &aBitmap, wxColor aColor)
 

Macro Definition Documentation

◆ ID_INCREMENT

#define ID_INCREMENT   256

Definition at line 56 of file panel_board_stackup.cpp.

Enumeration Type Documentation

◆ WIDGETS_IDS

Enumerator
ID_ITEM_MATERIAL 
ID_ITEM_THICKNESS 
ID_ITEM_THICKNESS_LOCKED 
ID_ITEM_COLOR 

Definition at line 60 of file panel_board_stackup.cpp.

61{
62 ID_ITEM_MATERIAL = 10000, // Be sure it is higher than other IDs
63 // used in the board setup dialog
67};
#define ID_INCREMENT
@ ID_ITEM_COLOR
@ ID_ITEM_THICKNESS
@ ID_ITEM_THICKNESS_LOCKED
@ ID_ITEM_MATERIAL

Function Documentation

◆ copperColor()

static wxColor copperColor ( 220  ,
180  ,
30   
)
static

◆ dielectricColor()

static wxColor dielectricColor ( 75  ,
120  ,
75   
)
static

◆ drawBitmap()

void drawBitmap ( wxBitmap &  aBitmap,
wxColor  aColor 
)
static

Definition at line 1655 of file panel_board_stackup.cpp.

1656{
1657 wxNativePixelData data( aBitmap );
1658 wxNativePixelData::Iterator p( data );
1659
1660 for( int yy = 0; yy < data.GetHeight(); yy++ )
1661 {
1662 wxNativePixelData::Iterator rowStart = p;
1663
1664 for( int xx = 0; xx < data.GetWidth(); xx++ )
1665 {
1666 p.Red() = aColor.Red();
1667 p.Green() = aColor.Green();
1668 p.Blue() = aColor.Blue();
1669 ++p;
1670 }
1671
1672 p = rowStart;
1673 p.OffsetY( data, 1 );
1674 }
1675}

Referenced by PANEL_SETUP_BOARD_STACKUP::updateIconColor().

◆ pasteColor()

static wxColor pasteColor ( 200  ,
200  ,
200   
)
static