KiCad PCB EDA Suite
|
#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_COLOR > | gbrjobColors |
static std::vector< FAB_LAYER_COLOR > | dielectricColors |
std::vector< FAB_LAYER_COLOR > | dummy |
int GetColorUserDefinedListIdx | ( | BOARD_STACKUP_ITEM_TYPE | aType | ) |
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().
const std::vector< FAB_LAYER_COLOR > & GetStandardColors | ( | BOARD_STACKUP_ITEM_TYPE | aType | ) |
Definition at line 98 of file stackup_predefined_prms.cpp.
References BS_ITEM_TYPE_DIELECTRIC, BS_ITEM_TYPE_SILKSCREEN, BS_ITEM_TYPE_SOLDERMASK, dielectricColors, dummy, and gbrjobColors.
Referenced by GERBER_JOBFILE_WRITER::addJSONMaterialStackup(), colorFromStackup(), PANEL_SETUP_BOARD_STACKUP::createColorBox(), PCB_IO_IPC2581::generateContentStackup(), GetColorUserDefinedListIdx(), GetDefaultUserColor(), GetStandardColor(), GetStandardColorName(), PANEL_SETUP_BOARD_STACKUP::lazyBuildRowUI(), PANEL_SETUP_BOARD_STACKUP::onMaterialChange(), and PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard().
wxArrayString GetStandardCopperFinishes | ( | bool | aTranslate | ) |
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().
bool IsColorNameNormalized | ( | const wxString & | aName | ) |
aName | is a color name like red, blue... (case insensitive) |
Definition at line 117 of file stackup_predefined_prms.cpp.
Referenced by FAB_LAYER_COLOR::GetColorAsString().
|
static |
Definition at line 35 of file stackup_predefined_prms.cpp.
Referenced by GetStandardCopperFinishes().
|
static |
Definition at line 75 of file stackup_predefined_prms.cpp.
Referenced by GetStandardColors().
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_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(), 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(), KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME(), 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_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(), and SIMULATOR_CONTROL::Zoom().
|
static |
Definition at line 59 of file stackup_predefined_prms.cpp.
Referenced by GetStandardColors().