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 757 of file board_stackup.cpp.

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