KiCad PCB EDA Suite
board_stackup.cpp File Reference
#include "board_stackup.h"
#include <convert_to_biu.h>
#include <base_units.h>
#include <string_utils.h>
#include <layer_ids.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 753 of file board_stackup.cpp.

754{
755 // return true if the param value is specified:
756
757 if( !aPrmValue.IsEmpty()
758 && ( aPrmValue.CmpNoCase( NotSpecifiedPrm() ) != 0 )
759 && aPrmValue != wxGetTranslation( NotSpecifiedPrm() ) )
760 return true;
761
762 return false;
763}
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().