KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pads_common.h File Reference
#include <kiid.h>
#include <string>
#include <font/text_attributes.h>
#include <stroke_params.h>
#include <wx/string.h>

Go to the source code of this file.

Classes

struct  PADS_COMMON::RELATED_FILES
 

Namespaces

namespace  PADS_COMMON
 Common utilities and types for parsing PADS file formats, shared by the PCB and schematic importers.
 

Enumerations

enum class  PADS_COMMON::PADS_FILE_TYPE { PADS_COMMON::UNKNOWN , PADS_COMMON::PCB_ASCII , PADS_COMMON::SCHEMATIC_ASCII }
 

Functions

KIID PADS_COMMON::GenerateDeterministicUuid (const std::string &aIdentifier)
 Generate a deterministic KIID from a PADS component identifier.
 
PADS_FILE_TYPE PADS_COMMON::DetectPadsFileType (const wxString &aFilePath)
 Detect the type of a PADS file by examining its header.
 
RELATED_FILES PADS_COMMON::FindRelatedPadsFiles (const wxString &aFilePath)
 Find the related PADS project file (schematic for a PCB source, or vice versa) in the same directory, preferring a matching base filename.
 
int PADS_COMMON::ParseInt (const std::string &aStr, int aDefault=0, const std::string &aContext={})
 Parse integer from string with error context.
 
double PADS_COMMON::ParseDouble (const std::string &aStr, double aDefault=0.0, const std::string &aContext={})
 Parse double from string with error context.
 
wxString PADS_COMMON::ConvertInvertedNetName (const std::string &aNetName)
 Convert a PADS net name to KiCad notation.
 
wxString PADS_COMMON::ConvertText (const std::string &aText)
 Decode text from a PADS file, which uses an 8-bit codepage rather than UTF-8.
 
LINE_STYLE PADS_COMMON::PadsLineStyleToKiCad (int aPadsStyle)
 Convert a PADS line style integer to a KiCad LINE_STYLE enum value.
 
void PADS_COMMON::DecodeJustification (int aJustification, GR_TEXT_H_ALIGN_T &aHJustify, GR_TEXT_V_ALIGN_T &aVJustify)
 Decode a PADS text justification code into KiCad horizontal and vertical alignment.
 
int PADS_COMMON::PadsScaleCoord (double aVal, bool aIsX, double aOriginX, double aOriginY, double aScaleFactor)
 Map a PADS board coordinate to a KiCad internal coordinate.