KiCad PCB EDA Suite
Loading...
Searching...
No Matches
stackup_predefined_prms.cpp File Reference
#include <wx/string.h>
#include <core/arraydim.h>
#include <board_design_settings.h>
#include <i18n_utility.h>
#include "stackup_predefined_prms.h"

Go to the source code of this file.

Functions

wxArrayString GetStandardCopperFinishes (bool aTranslate)
 
const std::vector< FAB_LAYER_COLOR > & GetStandardColors (BOARD_STACKUP_ITEM_TYPE aType)
 
int GetColorUserDefinedListIdx (BOARD_STACKUP_ITEM_TYPE aType)
 
bool IsColorNameNormalized (const wxString &aName)
 

Variables

static wxString copperFinishType []
 
static std::vector< FAB_LAYER_COLORgbrjobColors
 
static std::vector< FAB_LAYER_COLORdielectricColors
 
std::vector< FAB_LAYER_COLORdummy
 

Function Documentation

◆ GetColorUserDefinedListIdx()

int GetColorUserDefinedListIdx ( BOARD_STACKUP_ITEM_TYPE  aType)
Returns
the index of the user defined color in ColorStandardList

Definition at line 110 of file stackup_predefined_prms.cpp.

References GetStandardColors().

Referenced by GetDefaultUserColor(), IsCustomColorIdx(), PANEL_SETUP_BOARD_STACKUP::lazyBuildRowUI(), and PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard().

◆ GetStandardColors()

◆ GetStandardCopperFinishes()

wxArrayString GetStandardCopperFinishes ( bool  aTranslate)
Returns
a wxArray of standard copper finish names.
Parameters
aTranslate= false for the initial names, true for translated names

Definition at line 87 of file stackup_predefined_prms.cpp.

References arrayDim(), and copperFinishType.

Referenced by PANEL_SETUP_BOARD_FINISH::PANEL_SETUP_BOARD_FINISH(), PANEL_SETUP_BOARD_FINISH::synchronizeWithBoard(), and PANEL_SETUP_BOARD_FINISH::TransferDataFromWindow().

◆ IsColorNameNormalized()

bool IsColorNameNormalized ( const wxString &  aName)
Returns
true if aName is a color name acceptable in gerber job files
Parameters
aNameis a color name like red, blue... (case insensitive)

Definition at line 117 of file stackup_predefined_prms.cpp.

Referenced by FAB_LAYER_COLOR::GetColorAsString().

Variable Documentation

◆ copperFinishType

wxString copperFinishType[]
static
Initial value:
=
{
_HKI( "ENIG" ),
_HKI( "ENEPIG" ),
_HKI( "HAL SnPb" ),
_HKI( "HAL lead-free" ),
_HKI( "Hard gold" ),
_HKI( "Immersion tin" ),
_HKI( "Immersion nickel" ),
_HKI( "Immersion silver" ),
_HKI( "Immersion gold" ),
_HKI( "HT_OSP" ),
_HKI( "OSP" ),
_HKI( "None" ),
}
#define _HKI(x)
wxString NotSpecifiedPrm()

Definition at line 35 of file stackup_predefined_prms.cpp.

Referenced by GetStandardCopperFinishes().

◆ dielectricColors

std::vector<FAB_LAYER_COLOR> dielectricColors
static
Initial value:
=
{
{ NotSpecifiedPrm(), wxColor( 80, 80, 80, 255 ) },
{ _HKI( "FR4 natural" ), wxColor( 109, 116, 75, 212 ) },
{ _HKI( "PTFE natural" ), wxColor( 252, 252, 250, 230 ) },
{ _HKI( "Polyimide" ), wxColor( 205, 130, 0, 170 ) },
{ _HKI( "Phenolic natural" ), wxColor( 92, 17, 6, 230 ) },
{ _HKI( "Aluminum" ), wxColor( 213, 213, 213, 255 ) },
{ _HKI( "User defined" ), wxColor( 128, 128, 128, 212 ) }
}

Definition at line 75 of file stackup_predefined_prms.cpp.

Referenced by GetStandardColors().

◆ dummy

std::vector<FAB_LAYER_COLOR> dummy

Definition at line 97 of file stackup_predefined_prms.cpp.

Referenced by PCB_IO_IPC2581::addPackage(), FEATURES_MANAGER::AddVia(), PCB_IO_IPC2581::addVia(), FEATURES_MANAGER::AddViaDrillHole(), DIALOG_SYMBOL_FIELDS_TABLE::ApplyBomFmtPreset(), DIALOG_SYMBOL_FIELDS_TABLE::ApplyBomPreset(), APPEARANCE_CONTROLS::ApplyLayerPreset(), APPEARANCE_CONTROLS::ApplyViewport(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), DIALOG_TEMPLATE_SELECTOR::buildPageContent(), EXCELLON_WRITER::createDrillFile(), GERBER_WRITER::createDrillFile(), BOARD_ADAPTER::createPadWithMargin(), ROUTER_TOOL::CustomTrackWidthDialog(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_IMPORT_GFX_SCH::DIALOG_IMPORT_GFX_SCH(), DIALOG_IMPORT_GRAPHICS::DIALOG_IMPORT_GRAPHICS(), SCH_EDIT_FRAME::DisplayCurrentSheet(), FOOTPRINT_DIFF_WIDGET::DisplayDiff(), SYMBOL_DIFF_WIDGET::DisplayDiff(), PL_DRAW_PANEL_GAL::DisplayDrawingSheet(), SCH_SYMBOL::doGetBoundingBox(), CLI::PCB_EXPORT_3D_COMMAND::doPerform(), CLI::PCB_EXPORT_DXF_COMMAND::doPerform(), CLI::PCB_EXPORT_GENCAD_COMMAND::doPerform(), CLI::PCB_EXPORT_GERBER_COMMAND::doPerform(), CLI::PCB_EXPORT_GERBERS_COMMAND::doPerform(), CLI::PCB_EXPORT_IPC2581_COMMAND::doPerform(), CLI::PCB_EXPORT_ODB_COMMAND::doPerform(), CLI::PCB_EXPORT_PDF_COMMAND::doPerform(), CLI::PCB_EXPORT_POS_COMMAND::doPerform(), SIM_MODEL_SOURCE::doSetParamValue(), NETLIST_EXPORTER_SPICE::DoWriteNetlist(), COMMON_TOOLS::doZoomToPreset(), KIGFX::SCH_PAINTER::draw(), EDA_DRAW_FRAME::EDA_DRAW_FRAME(), PCB_EDIT_FRAME::Edit_Zone_Params(), EVT_MENU_RANGE(), GERBER_FILE_IMAGE::ExecuteRS274XCommand(), SCH_EDIT_FRAME::FocusOnItem(), FOOTPRINT_CHOOSER_FRAME::FOOTPRINT_CHOOSER_FRAME(), FOOTPRINT::FootprintNeedsUpdate(), JSON_SETTINGS::FormatAsString(), GENDRILL_WRITER_BASE::genDrillMapFile(), CONNECTION_GRAPH::generateBusAliasMembers(), BOARD_EDITOR_CONTROL::GenerateFabFiles(), RENDER_3D_OPENGL::generateViasAndPads(), GERBVIEW_FRAME::GERBVIEW_FRAME(), DS_DRAW_ITEM_PAGE::GetBoundingBox(), GetDefaultProject(), EESCHEMA_HELPERS::GetDefaultProject(), DESIGN_BLOCK_TREE_MODEL_ADAPTER::getDesignBlocks(), FP_TREE_MODEL_ADAPTER::getFootprints(), FOOTPRINT::GetFpPadsLocalBbox(), SYMBOL_LIBRARY_FILTER::GetLibSource(), SCH_SYMBOL::GetMsgPanelInfo(), NETINFO_ITEM::GetPosition(), X2_ATTRIBUTE::GetPrm(), SCH_SHEET::GetRootInstance(), GetStandardColors(), NUMERIC_EVALUATOR::getToken(), highlightNet(), SCH_NAVIGATE_TOOL::HypertextCommand(), PANEL_SETUP_RULES::ImportSettingsFrom(), DIALOG_EXPORT_2581::Init(), DIALOG_EXPORT_SVG::initDialog(), DIALOG_GENDRILL::InitDisplayParams(), BOARD_INSPECTION_TOOL::InspectClearance(), SHAPE_LINE_CHAIN::Intersects(), isCoupledDiffPairFunc(), DRC_ENGINE::IsNetADiffPair(), PCB_EDIT_FRAME::KiwayMailIn(), LoadBoard(), EXCELLON_IMAGE::LoadFile(), EESCHEMA_HELPERS::LoadSchematic(), PANEL_TRACK_WIDTH::LoadSettings(), SIMULATOR_FRAME_UI::LoadWorkbook(), EE_SELECTION_TOOL::Main(), ZOOM_TOOL::Main(), PCB_PICKER_TOOL::Main(), NewBoard(), DIALOG_PCM::OnApplyChangesClicked(), DIALOG_DATABASE_LIB_SETTINGS::OnBtnTest(), DIALOG_SCH_FIND::OnCancel(), SYMBOL_VIEWER_FRAME::OnCharHook(), FOOTPRINT_VIEWER_FRAME::OnCharHook(), GRID_TRICKS::onCharHook(), DIALOG_DRC::OnClose(), DIALOG_FOOTPRINT_CHECKER::OnClose(), DIALOG_PCM::OnCloseWindow(), PNS::SHOVE::onCollidingSolid(), DIALOG_EXPORT_STEP::onExportButton(), PCB_EDIT_FRAME::OnExportIDF3(), PCB_EDIT_FRAME::OnExportVRML(), DIALOG_LIB_SYMBOL_PROPERTIES::OnFpFilterDClick(), COMMON_TOOLS::OnGridChanged(), DIALOG_SIM_MODEL< T >::onLibraryPathTextKillFocus(), DIALOG_CHANGE_SYMBOLS::onOkButtonClicked(), DIALOG_UPDATE_SYMBOL_FIELDS::onOkButtonClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnOKClicked(), PANEL_SCH_SELECTION_FILTER::onPopupSelection(), PANEL_SELECTION_FILTER::onPopupSelection(), DIALOG_DRC::OnRunDRCClick(), EDA_DRAW_FRAME::OnSelectGrid(), PANEL_PACKAGES_VIEW::OnShowAllVersionsClicked(), BITMAP2CMP_PANEL::OpenProjectFiles(), SCH_EDIT_FRAME::OpenProjectFiles(), GRID_TRICKS::paste_text(), PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME(), DRAWING_TOOL::PlaceTuningPattern(), SCH_SYMBOL::Plot(), DIALOG_PLOT::Plot(), DIALOG_PLOT_SCHEMATIC::plotSchematic(), PlotStandardLayer(), PLUGIN_CONTENT_MANAGER::PLUGIN_CONTENT_MANAGER(), POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), SCH_SYMBOL::Print(), SCH_PRINTOUT::PrintPage(), PANEL_SETUP_PINMAP::reBuildMatrixPanel(), GERBVIEW_FRAME::ReCreateAuxiliaryToolbar(), PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), DIALOG_INSPECTOR::ReCreateDesignList(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), PCB_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), EDA_3D_VIEWER_FRAME::ReCreateMainToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), PCB_EDIT_FRAME::ReCreateVToolbar(), PCB_CONTROL::Redo(), PL_EDITOR_FRAME::ReturnCoordOriginCorner(), SaveBoard(), FOOTPRINT_EDIT_FRAME::SaveLibraryAs(), CLIPBOARD_IO::SaveSelection(), JSON_SETTINGS::SaveToFile(), NESTED_SETTINGS::SaveToFile(), FOOTPRINT_VIEWER_FRAME::selectNext(), FOOTPRINT_VIEWER_FRAME::selectPrev(), DS_DATA_ITEM_TEXT::SetConstrainedTextSize(), SIMULATOR_FRAME_UI::SetCursorFormat(), PANEL_PACKAGES_VIEW::setPackageDetails(), PANEL_PACKAGES_VIEW::SetPackageState(), SCINTILLA_TRICKS::setupStyles(), EDA_LIST_DIALOG::Show(), SPICE_VALUE::SPICE_VALUE(), SYMBOL_CHOOSER_FRAME::SYMBOL_CHOOSER_FRAME(), DIALOG_FOOTPRINT_CHOOSER::TearDownQuasiModal(), DIALOG_ERC::testErc(), SYMBOL_DIFF_WIDGET::ToggleAB(), FOOTPRINT_DIFF_WIDGET::ToggleAB(), BITMAP2CMP_PANEL::ToggleAspectRatioLock(), EDA_DRAW_FRAME::ToggleUserUnits(), DIALOG_IMPORT_GFX_SCH::TransferDataFromWindow(), DIALOG_DIELECTRIC_MATERIAL::TransferDataFromWindow(), PANEL_SETUP_BOARD_STACKUP::TransferDataFromWindow(), DIALOG_GLOBAL_EDIT_TEARDROPS::TransferDataFromWindow(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataFromWindow(), DIALOG_IMPORT_GRAPHICS::TransferDataFromWindow(), DIALOG_DATABASE_LIB_SETTINGS::TransferDataToWindow(), DIALOG_MIGRATE_SETTINGS::TransferDataToWindow(), DIALOG_PAGES_SETTINGS::TransferDataToWindow(), DIALOG_DIELECTRIC_MATERIAL::TransferDataToWindow(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::TransferDataToWindow(), DIALOG_PRINT_PCBNEW::TransferDataToWindow(), PANEL_SETUP_RULES::TransferDataToWindow(), FOOTPRINT::TransformPadsToPolySet(), PCB_CONTROL::Undo(), FP_TREE_SYNCHRONIZING_ADAPTER::updateLibrary(), GERBER_JOBFILE_WRITER::WriteJSONJobFile(), GLOBAL_EDIT_TOOL::ZonesManager(), SIMULATOR_CONTROL::Zoom(), and FOOTPRINT_CHOOSER_FRAME::~FOOTPRINT_CHOOSER_FRAME().

◆ gbrjobColors

std::vector<FAB_LAYER_COLOR> gbrjobColors
static
Initial value:
=
{
{ NotSpecifiedPrm(), wxColor( 80, 80, 80 ) },
{ _HKI( "Green" ), wxColor( 60, 150, 80 ) },
{ _HKI( "Red" ), wxColor( 128, 0, 0 ) },
{ _HKI( "Blue" ), wxColor( 0, 0, 128 ) },
{ _HKI( "Purple" ), wxColor( 80, 0, 80 ) },
{ _HKI( "Black" ), wxColor( 20, 20, 20 ) },
{ _HKI( "White" ), wxColor( 200, 200, 200 ) },
{ _HKI( "Yellow" ), wxColor( 128, 128, 0 ) },
{ _HKI( "User defined" ), wxColor( 128, 128, 128 ) }
}

Definition at line 59 of file stackup_predefined_prms.cpp.

Referenced by GetStandardColors().