KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcad_text.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright (C) 2007, 2008 Lubo Racko <
[email protected]
>
5
* Copyright (C) 2007, 2008, 2012 Alexander Lunev <
[email protected]
>
6
* Copyright The KiCad Developers, see AUTHORS.TXT for contributors.
7
*
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License
10
* as published by the Free Software Foundation; either version 2
11
* of the License, or (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <https://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef PCAD_TEXT_H
23
#define PCAD_TEXT_H
24
25
#include <
pcad/pcad_pcb_component.h
>
26
27
class
BOARD
;
28
class
FOOTPRINT
;
29
class
wxString;
30
class
XNODE
;
31
32
namespace
PCAD2KICAD
{
33
34
// Name property of parent is used for text value
35
class
PCAD_TEXT
:
public
PCAD_PCB_COMPONENT
36
{
37
public
:
38
PCAD_TEXT
(
PCAD_CALLBACKS
* aCallbacks,
BOARD
* aBoard );
39
~PCAD_TEXT
();
40
41
virtual
void
Parse
(
XNODE
* aNode,
int
aLayer,
const
wxString& aDefaultUnits,
42
const
wxString& aActualConversion );
43
44
void
AddToBoard
(
FOOTPRINT
* aFootprint =
nullptr
)
override
;
45
46
// virtual void SetPosOffset( int aX_offs, int aY_offs );
47
};
48
49
}
// namespace PCAD2KICAD
50
51
#endif
// PCAD_TEXT_H
BOARD
Information pertinent to a Pcbnew printed circuit board.
Definition
board.h:372
FOOTPRINT
Definition
footprint.h:288
PCAD2KICAD::PCAD_CALLBACKS
Definition
pcad_callbacks.h:47
PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT
PCAD_PCB_COMPONENT(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
Definition
pcad_pcb_component.cpp:33
PCAD2KICAD::PCAD_TEXT::PCAD_TEXT
PCAD_TEXT(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
Definition
pcad_text.cpp:33
PCAD2KICAD::PCAD_TEXT::Parse
virtual void Parse(XNODE *aNode, int aLayer, const wxString &aDefaultUnits, const wxString &aActualConversion)
Definition
pcad_text.cpp:45
PCAD2KICAD::PCAD_TEXT::~PCAD_TEXT
~PCAD_TEXT()
Definition
pcad_text.cpp:40
PCAD2KICAD::PCAD_TEXT::AddToBoard
void AddToBoard(FOOTPRINT *aFootprint=nullptr) override
Definition
pcad_text.cpp:91
XNODE
An extension of wxXmlNode that can format its contents as KiCad-style s-expressions.
Definition
xnode.h:67
PCAD2KICAD
Definition
pcad2kicad_common.cpp:35
pcad_pcb_component.h
src
pcbnew
pcb_io
pcad
pcad_text.h
Generated on Fri Jun 26 2026 00:05:41 for KiCad PCB EDA Suite by
1.13.2