KiCad PCB EDA Suite
board_stackup.cpp File Reference
#include "board_stackup.h"
#include <convert_to_biu.h>
#include <base_units.h>
#include <kicad_string.h>
#include <layers_id_colors_and_visibility.h>
#include <board_design_settings.h>
#include <board.h>
#include <i18n_utility.h>
#include "stackup_predefined_prms.h"

Go to the source code of this file.

Functions

bool IsPrmSpecified (const wxString &aPrmValue)
 

Function Documentation

◆ IsPrmSpecified()

bool IsPrmSpecified ( const wxString &  aPrmValue)
Returns
true if the param value is specified: not empty not NotSpecifiedPrm() value or its translation

Definition at line 754 of file board_stackup.cpp.

755 {
756  // return true if the param value is specified:
757 
758  if( !aPrmValue.IsEmpty()
759  && ( aPrmValue.CmpNoCase( NotSpecifiedPrm() ) != 0 )
760  && aPrmValue != wxGetTranslation( NotSpecifiedPrm() ) )
761  return true;
762 
763  return false;
764 }
wxString NotSpecifiedPrm()

References NotSpecifiedPrm().

Referenced by GERBER_JOBFILE_WRITER::addJSONMaterialStackup(), PANEL_SETUP_BOARD_STACKUP::addMaterialChooser(), BOARD_STACKUP::FormatBoardStackup(), BOARD_STACKUP_ITEM::HasMaterialValue(), PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard(), and PANEL_SETUP_BOARD_STACKUP::transferDataFromUIToStackup().