|
KiCad PCB EDA Suite
|
#include <target3001_parser.h>
Public Member Functions | |
| const std::string * | FindProperty (const std::string &aKey) const |
| Value of project property aKey, compared case-insensitively. | |
| std::optional< wxString > | FunctionText (const TEXT &aText, bool aSchematic) const |
| Text that a computed text function shows, where KiCad has an equivalent. | |
| const ELEMENT * | FindSignal (uint16_t aId) const |
| Signal element whose ID is aId, or nullptr. | |
| void | ApplyTextLanguage () |
| Replace literal texts by their variant in the project's stored language when a text reads AUTOLANGUAGE=TRUE, as the source program does. | |
Public Attributes | |
| int32_t | version = 0 |
| std::array< uint8_t, BOARD_LAYER_COUNT > | layerFunctions {} |
| Function code of each board layer, see LAYER_FUNCTION. | |
| std::array< uint8_t, BOARD_LAYER_COUNT > | layerAssociations {} |
| Copper layer each board layer belongs to; area and deletion layers point at the copper they affect. | |
| std::string | schematicTextFont |
| std::string | boardTextFont |
| std::string | signalNameFont |
| std::vector< ELEMENT > | signals |
| std::vector< ELEMENT > | components |
| std::vector< ELEMENT > | schematicItems |
| std::vector< ELEMENT > | boardItems |
| PROJECT_SETTINGS | settings |
| wxString | fileName |
| source file name without directory, empty for a buffer | |
| wxDateTime | fileModified |
| source file modification time, invalid for a buffer | |
Definition at line 455 of file target3001_parser.h.
| void PROJECT::ApplyTextLanguage | ( | ) |
Replace literal texts by their variant in the project's stored language when a text reads AUTOLANGUAGE=TRUE, as the source program does.
Definition at line 1031 of file target3001_parser.cpp.
References settings, text, TARGET3001::ELEMENT::text, TARGET3001::TEXT::text, and TARGET3001::ToWx().
| const std::string * PROJECT::FindProperty | ( | const std::string & | aKey | ) | const |
Value of project property aKey, compared case-insensitively.
Definition at line 873 of file target3001_parser.cpp.
References settings, and TARGET3001::ToWx().
Referenced by FunctionText().
| const ELEMENT * PROJECT::FindSignal | ( | uint16_t | aId | ) | const |
Signal element whose ID is aId, or nullptr.
Definition at line 943 of file target3001_parser.cpp.
References ELEMENT::base, TARGET3001::SIGNAL, ELEMENT::signal, ELEMENT_BASE::signal, signals, and ELEMENT::type.
| std::optional< wxString > PROJECT::FunctionText | ( | const TEXT & | aText, |
| bool | aSchematic ) const |
Text that a computed text function shows, where KiCad has an equivalent.
Stored text holds placeholders in the authoring program's language, so functions are evaluated by code. Returns nothing to keep the stored text.
Definition at line 885 of file target3001_parser.cpp.
References TARGET3001::CHANGE_DATE, TARGET3001::CHANGE_TIME, TARGET3001::FILE_NAME, fileModified, fileName, FindProperty(), TARGET3001::TEXT::function, TARGET3001::OUTPUT_DATE, TARGET3001::OUTPUT_TIME, TARGET3001::PAGE_NAME, TARGET3001::PROJECT_NAME, TARGET3001::SCALE, TARGET3001::SHEET_NUMBER, and TARGET3001::ToWx().
| std::vector<ELEMENT> TARGET3001::PROJECT::boardItems |
Definition at line 472 of file target3001_parser.h.
| std::string TARGET3001::PROJECT::boardTextFont |
Definition at line 466 of file target3001_parser.h.
| std::vector<ELEMENT> TARGET3001::PROJECT::components |
Definition at line 470 of file target3001_parser.h.
| wxDateTime TARGET3001::PROJECT::fileModified |
source file modification time, invalid for a buffer
Definition at line 477 of file target3001_parser.h.
Referenced by FunctionText().
| wxString TARGET3001::PROJECT::fileName |
source file name without directory, empty for a buffer
Definition at line 476 of file target3001_parser.h.
Referenced by FunctionText().
| std::array<uint8_t, BOARD_LAYER_COUNT> TARGET3001::PROJECT::layerAssociations {} |
Copper layer each board layer belongs to; area and deletion layers point at the copper they affect.
Definition at line 463 of file target3001_parser.h.
| std::array<uint8_t, BOARD_LAYER_COUNT> TARGET3001::PROJECT::layerFunctions {} |
Function code of each board layer, see LAYER_FUNCTION.
Definition at line 460 of file target3001_parser.h.
| std::vector<ELEMENT> TARGET3001::PROJECT::schematicItems |
Definition at line 471 of file target3001_parser.h.
| std::string TARGET3001::PROJECT::schematicTextFont |
Definition at line 465 of file target3001_parser.h.
| PROJECT_SETTINGS TARGET3001::PROJECT::settings |
Definition at line 474 of file target3001_parser.h.
Referenced by ApplyTextLanguage(), and FindProperty().
| std::string TARGET3001::PROJECT::signalNameFont |
Definition at line 467 of file target3001_parser.h.
| std::vector<ELEMENT> TARGET3001::PROJECT::signals |
Definition at line 469 of file target3001_parser.h.
Referenced by FindSignal().
| int32_t TARGET3001::PROJECT::version = 0 |
Definition at line 457 of file target3001_parser.h.