KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_io_geda.cpp File Reference
#include <sch_io/geda/sch_io_geda.h>
#include <wx/dir.h>
#include <wx/file.h>
#include <wx/filename.h>
#include <wx/textfile.h>
#include <wx/tokenzr.h>
#include <wx/log.h>
#include <eda_shape.h>
#include <lib_id.h>
#include <page_info.h>
#include <lib_symbol.h>
#include <project.h>
#include <project_sch.h>
#include <default_values.h>
#include <sch_bus_entry.h>
#include <sch_junction.h>
#include <sch_label.h>
#include <sch_no_connect.h>
#include <sch_line.h>
#include <sch_pin.h>
#include <sch_screen.h>
#include <sch_shape.h>
#include <sch_sheet.h>
#include <sch_sheet_path.h>
#include <sch_sheet_pin.h>
#include <sch_symbol.h>
#include <sch_bitmap.h>
#include <sch_text.h>
#include <schematic.h>
#include <string_utils.h>
#include <stroke_params.h>
#include <wildcards_and_files_ext.h>
#include <base_units.h>
#include <pin_type.h>
#include <reporter.h>
#include <font/text_attributes.h>
#include <math/util.h>
#include <reference_image.h>
#include <wx/base64.h>
#include <wx/image.h>
#include <algorithm>
#include <climits>
#include <vector>

Go to the source code of this file.

Functions

static wxString convertOverbars (const wxString &aInput)
 Convert gEDA overbar markup to KiCad syntax.
 
static int editDistance (const wxString &a, const wxString &b)
 Compute the Levenshtein edit distance between two strings.
 

Variables

static constexpr int GEDA_DEFAULT_TEXT_SIZE_MILS = 50
 
static constexpr int DEFAULT_SYMBOL_SIZE_MILS = 200
 

Function Documentation

◆ convertOverbars()

static wxString convertOverbars ( const wxString & aInput)
static

Convert gEDA overbar markup to KiCad syntax.

gEDA uses _text_ to indicate an overbar (text with a line above it). KiCad uses ~{text}. Escaped backslashes (\) become a literal backslash.

Definition at line 90 of file sch_io_geda.cpp.

References result.

Referenced by SCH_IO_GEDA::parseText().

◆ editDistance()

static int editDistance ( const wxString & a,
const wxString & b )
static

Compute the Levenshtein edit distance between two strings.

Definition at line 3475 of file sch_io_geda.cpp.

Referenced by SCH_IO_GEDA::getOrLoadSymbol().

Variable Documentation

◆ DEFAULT_SYMBOL_SIZE_MILS

int DEFAULT_SYMBOL_SIZE_MILS = 200
staticconstexpr

Definition at line 82 of file sch_io_geda.cpp.

Referenced by SCH_IO_GEDA::createFallbackSymbol().

◆ GEDA_DEFAULT_TEXT_SIZE_MILS

int GEDA_DEFAULT_TEXT_SIZE_MILS = 50
staticconstexpr