2012-06-09 17:00:13 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 CERN.
|
2017-01-29 08:29:49 +00:00
|
|
|
* Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
2012-06-09 17:00:13 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KICAD_PLUGIN_H_
|
|
|
|
#define KICAD_PLUGIN_H_
|
|
|
|
|
|
|
|
#include <io_mgr.h>
|
|
|
|
#include <string>
|
2013-03-30 17:24:04 +00:00
|
|
|
#include <layers_id_colors_and_visibility.h>
|
2012-06-09 17:00:13 +00:00
|
|
|
|
|
|
|
class BOARD;
|
|
|
|
class BOARD_ITEM;
|
2012-10-07 15:37:25 +00:00
|
|
|
class FP_CACHE;
|
2012-10-24 18:20:33 +00:00
|
|
|
class PCB_PARSER;
|
Added NETINFO_MAPPING, to ease saving nets with consecutive net codes (without modifying the net codes during the run time).
Now, nets are saved with consecutive net codes (both modern & legacy plugins).
Zones are saved together with their nets, without depending on the fact if there are any pads with such net. Therefore validation of zone net names was removed (pcbnew/class_board.cpp).
Performed tests:
- Changed a pad's net name from empty to existent - ok, name was changed.
- Changed a pad's net name from empty to nonexistent - ok, error message is displayed, net name stays empty.
- Changed a pad's net name from existent to empty - ok, net name became empty
- Changed a pad's net name from existent to nonexistent - ok, error message is displayed, net name is not changed.
- Drawn a zone that belongs to a net, then modified schematics so the net does not exist anymore. After reloading the net list, all pads/tracks are updated. Zones still belongs to the net that does not exist in the schematic (but still exists in .kicad_pcb file). After running DRC, the zone becomes not filled.
- Undo & redo affects assignment of a polygon to a specific net (you may change net of a polygon, refill it and undo/redo the changes).
- KiCad s-expr & legacy, Eagle, P-CAD boards seem to load without any problem (they also contain correct net names assigned to the appropriate pads). All types of board file formats were loaded, then saved in sexpr format and reopened with a KiCad built from the master branch (without my modifications).
- A few boards were also saved using the legacy format and were opened with the master KiCad without any issues.
- Change a net name for a pad, restore with undo/redo - ok
- Remove everything, restore with undo - ok
- Remove everything, reload netlist - ok
Differences observed between files saved by the master branch KiCad and this one:
- list of nets are not saved in any particular order, so net codes may differ
- the default net class does not contain the unconnected net
2014-01-28 09:19:51 +00:00
|
|
|
class NETINFO_MAPPING;
|
2019-07-03 21:19:09 +00:00
|
|
|
class BOARD_DESIGN_SETTINGS;
|
|
|
|
class DIMENSION;
|
|
|
|
class EDGE_MODULE;
|
|
|
|
class DRAWSEGMENT;
|
|
|
|
class PCB_TARGET;
|
|
|
|
class D_PAD;
|
|
|
|
class TEXTE_MODULE;
|
|
|
|
class TRACK;
|
|
|
|
class ZONE_CONTAINER;
|
|
|
|
class TEXTE_PCB;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
|
|
|
|
2012-11-10 06:39:18 +00:00
|
|
|
/// Current s-expression file format version. 2 was the last legacy format version.
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2016-08-15 15:55:36 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 3 // first s-expression format, used legacy cu stack
|
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 4 // reversed cu stack, changed Inner* to In* in reverse order
|
|
|
|
// // went to 32 Cu layers from 16.
|
2017-01-27 12:26:42 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20160815 // differential pair settings per net class
|
2017-09-19 11:21:38 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20170123 // EDA_TEXT refactor, moved 'hide'
|
2018-02-05 20:55:00 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20170920 // long pad names and custom pad shape
|
2017-11-14 09:53:59 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20170922 // Keepout zones can exist on multiple layers
|
2017-11-25 19:55:32 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20171114 // Save 3D model offset in mm, instead of inches
|
2017-11-23 10:21:48 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20171125 // Locked/unlocked TEXTE_MODULE
|
2019-03-31 06:46:36 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20171130 // 3D model offset written using "offset" parameter
|
2019-04-14 17:58:35 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20190331 // hatched zones and chamfered round rect pads
|
2019-05-16 13:46:54 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20190421 // curves in custom pads
|
2019-07-03 21:19:09 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20190516 // Remove segment count from zones
|
2019-07-27 19:09:43 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20190605 // Add layer defaults
|
2019-11-23 09:07:56 +00:00
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20190905 // Add board physical stackup info in setup section
|
|
|
|
//#define SEXPR_BOARD_FILE_VERSION 20190907 // Keepout areas in footprints
|
|
|
|
#define SEXPR_BOARD_FILE_VERSION 20191123 // pin function in pads
|
2012-11-10 06:39:18 +00:00
|
|
|
|
2013-06-24 05:30:22 +00:00
|
|
|
#define CTL_STD_LAYER_NAMES (1 << 0) ///< Use English Standard layer names
|
2014-06-02 10:46:29 +00:00
|
|
|
#define CTL_OMIT_NETS (1 << 1) ///< Omit pads net names (useless in library)
|
|
|
|
#define CTL_OMIT_TSTAMPS (1 << 2) ///< Omit component time stamp (useless in library)
|
2013-06-24 05:30:22 +00:00
|
|
|
#define CTL_OMIT_INITIAL_COMMENTS (1 << 3) ///< omit MODULE initial comments
|
2014-06-02 10:46:29 +00:00
|
|
|
#define CTL_OMIT_PATH (1 << 4) ///< Omit component sheet time stamp (useless in library)
|
|
|
|
#define CTL_OMIT_AT (1 << 5) ///< Omit position and rotation
|
|
|
|
// (always saved with potion 0,0 and rotation = 0 in library)
|
2017-01-29 08:29:49 +00:00
|
|
|
//#define CTL_OMIT_HIDE (1 << 6) // found and defined in eda_text.h
|
2013-11-28 16:40:23 +00:00
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2012-11-14 07:15:59 +00:00
|
|
|
// common combinations of the above:
|
|
|
|
|
|
|
|
/// Format output for the clipboard instead of footprint library or BOARD
|
2013-03-20 04:46:32 +00:00
|
|
|
#define CTL_FOR_CLIPBOARD (CTL_STD_LAYER_NAMES|CTL_OMIT_NETS)
|
2012-11-14 07:15:59 +00:00
|
|
|
|
|
|
|
/// Format output for a footprint library instead of clipboard or BOARD
|
2013-11-28 16:40:23 +00:00
|
|
|
#define CTL_FOR_LIBRARY (CTL_STD_LAYER_NAMES|CTL_OMIT_NETS|CTL_OMIT_TSTAMPS|CTL_OMIT_PATH|CTL_OMIT_AT)
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2013-06-24 05:30:22 +00:00
|
|
|
/// The zero arg constructor when PCB_IO is used for PLUGIN::Load() and PLUGIN::Save()ing
|
|
|
|
/// a BOARD file underneath IO_MGR.
|
|
|
|
#define CTL_FOR_BOARD (CTL_OMIT_INITIAL_COMMENTS)
|
|
|
|
|
2013-09-21 07:30:23 +00:00
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
/**
|
|
|
|
* Class PCB_IO
|
|
|
|
* is a PLUGIN derivation for saving and loading Pcbnew s-expression formatted files.
|
|
|
|
*
|
|
|
|
* @note This class is not thread safe, but it is re-entrant multiple times in sequence.
|
|
|
|
*/
|
|
|
|
class PCB_IO : public PLUGIN
|
|
|
|
{
|
2012-10-24 18:20:33 +00:00
|
|
|
friend class FP_CACHE;
|
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
//-----<PLUGIN API>---------------------------------------------------------
|
|
|
|
|
2016-09-25 17:06:49 +00:00
|
|
|
const wxString PluginName() const override
|
2012-06-09 17:00:13 +00:00
|
|
|
{
|
2013-11-27 06:04:04 +00:00
|
|
|
return wxT( "KiCad" );
|
2012-06-09 17:00:13 +00:00
|
|
|
}
|
|
|
|
|
2016-09-25 17:06:49 +00:00
|
|
|
const wxString GetFileExtension() const override
|
2012-06-09 17:00:13 +00:00
|
|
|
{
|
2012-12-14 16:54:54 +00:00
|
|
|
// Would have used wildcards_and_files_ext.cpp's KiCadPcbFileExtension,
|
|
|
|
// but to be pure, a plugin should not assume that it will always be linked
|
|
|
|
// with the core of the pcbnew code. (Might someday be a DLL/DSO.) Besides,
|
|
|
|
// file extension policy should be controlled by the plugin.
|
2013-11-27 06:04:04 +00:00
|
|
|
return wxT( "kicad_pcb" );
|
2012-06-09 17:00:13 +00:00
|
|
|
}
|
|
|
|
|
2017-04-15 16:08:23 +00:00
|
|
|
virtual void Save( const wxString& aFileName, BOARD* aBoard,
|
2016-09-25 17:06:49 +00:00
|
|
|
const PROPERTIES* aProperties = NULL ) override;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-11 20:20:44 +00:00
|
|
|
BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe,
|
|
|
|
const PROPERTIES* aProperties = NULL ) override;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-11 20:20:44 +00:00
|
|
|
void FootprintEnumerate( wxArrayString& aFootprintNames, const wxString& aLibraryPath,
|
2019-08-31 14:18:27 +00:00
|
|
|
bool aBestEfforts, const PROPERTIES* aProperties = NULL ) override;
|
2012-10-07 15:37:25 +00:00
|
|
|
|
2018-07-30 13:18:37 +00:00
|
|
|
const MODULE* GetEnumeratedFootprint( const wxString& aLibraryPath,
|
|
|
|
const wxString& aFootprintName,
|
|
|
|
const PROPERTIES* aProperties = NULL ) override;
|
2018-02-23 12:21:06 +00:00
|
|
|
|
2019-07-11 21:59:14 +00:00
|
|
|
bool FootprintExists( const wxString& aLibraryPath, const wxString& aFootprintName,
|
|
|
|
const PROPERTIES* aProperties = NULL ) override;
|
|
|
|
|
2012-10-07 15:37:25 +00:00
|
|
|
MODULE* FootprintLoad( const wxString& aLibraryPath, const wxString& aFootprintName,
|
2018-07-30 13:18:37 +00:00
|
|
|
const PROPERTIES* aProperties = NULL ) override;
|
2012-10-07 15:37:25 +00:00
|
|
|
|
|
|
|
void FootprintSave( const wxString& aLibraryPath, const MODULE* aFootprint,
|
2016-09-25 17:06:49 +00:00
|
|
|
const PROPERTIES* aProperties = NULL ) override;
|
2012-10-07 15:37:25 +00:00
|
|
|
|
2017-06-11 20:20:44 +00:00
|
|
|
void FootprintDelete( const wxString& aLibraryPath, const wxString& aFootprintName,
|
|
|
|
const PROPERTIES* aProperties = NULL ) override;
|
2012-10-07 15:37:25 +00:00
|
|
|
|
2018-03-04 01:13:09 +00:00
|
|
|
long long GetLibraryTimestamp( const wxString& aLibraryPath ) const override;
|
2018-02-05 20:55:00 +00:00
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
void FootprintLibCreate( const wxString& aLibraryPath, const PROPERTIES* aProperties = NULL) override;
|
2012-10-07 15:37:25 +00:00
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
bool FootprintLibDelete( const wxString& aLibraryPath, const PROPERTIES* aProperties = NULL ) override;
|
2012-10-07 15:37:25 +00:00
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
bool IsFootprintLibWritable( const wxString& aLibraryPath ) override;
|
2012-10-07 15:37:25 +00:00
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
//-----</PLUGIN API>--------------------------------------------------------
|
|
|
|
|
Added NETINFO_MAPPING, to ease saving nets with consecutive net codes (without modifying the net codes during the run time).
Now, nets are saved with consecutive net codes (both modern & legacy plugins).
Zones are saved together with their nets, without depending on the fact if there are any pads with such net. Therefore validation of zone net names was removed (pcbnew/class_board.cpp).
Performed tests:
- Changed a pad's net name from empty to existent - ok, name was changed.
- Changed a pad's net name from empty to nonexistent - ok, error message is displayed, net name stays empty.
- Changed a pad's net name from existent to empty - ok, net name became empty
- Changed a pad's net name from existent to nonexistent - ok, error message is displayed, net name is not changed.
- Drawn a zone that belongs to a net, then modified schematics so the net does not exist anymore. After reloading the net list, all pads/tracks are updated. Zones still belongs to the net that does not exist in the schematic (but still exists in .kicad_pcb file). After running DRC, the zone becomes not filled.
- Undo & redo affects assignment of a polygon to a specific net (you may change net of a polygon, refill it and undo/redo the changes).
- KiCad s-expr & legacy, Eagle, P-CAD boards seem to load without any problem (they also contain correct net names assigned to the appropriate pads). All types of board file formats were loaded, then saved in sexpr format and reopened with a KiCad built from the master branch (without my modifications).
- A few boards were also saved using the legacy format and were opened with the master KiCad without any issues.
- Change a net name for a pad, restore with undo/redo - ok
- Remove everything, restore with undo - ok
- Remove everything, reload netlist - ok
Differences observed between files saved by the master branch KiCad and this one:
- list of nets are not saved in any particular order, so net codes may differ
- the default net class does not contain the unconnected net
2014-01-28 09:19:51 +00:00
|
|
|
PCB_IO( int aControlFlags = CTL_FOR_BOARD );
|
2012-10-22 20:41:26 +00:00
|
|
|
|
2012-10-07 15:37:25 +00:00
|
|
|
~PCB_IO();
|
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
/**
|
|
|
|
* Function Format
|
|
|
|
* outputs \a aItem to \a aFormatter in s-expression format.
|
|
|
|
*
|
|
|
|
* @param aItem A pointer the an #BOARD_ITEM object to format.
|
|
|
|
* @param aNestLevel The indentation nest level.
|
|
|
|
* @throw IO_ERROR on write error.
|
|
|
|
*/
|
2017-06-08 21:47:21 +00:00
|
|
|
void Format( BOARD_ITEM* aItem, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
|
|
|
std::string GetStringOutput( bool doClear )
|
|
|
|
{
|
|
|
|
std::string ret = m_sf.GetString();
|
|
|
|
if( doClear )
|
|
|
|
m_sf.Clear();
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2012-10-07 15:37:25 +00:00
|
|
|
void SetOutputFormatter( OUTPUTFORMATTER* aFormatter ) { m_out = aFormatter; }
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
BOARD_ITEM* Parse( const wxString& aClipboardSourceInput );
|
2012-10-22 20:41:26 +00:00
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
protected:
|
|
|
|
|
|
|
|
wxString m_error; ///< for throwing exceptions
|
|
|
|
BOARD* m_board; ///< which BOARD, no ownership here
|
2013-09-26 05:29:54 +00:00
|
|
|
|
|
|
|
const
|
|
|
|
PROPERTIES* m_props; ///< passed via Save() or Load(), no ownership, may be NULL.
|
2012-10-07 15:37:25 +00:00
|
|
|
FP_CACHE* m_cache; ///< Footprint library cache.
|
2012-06-09 17:00:13 +00:00
|
|
|
|
|
|
|
LINE_READER* m_reader; ///< no ownership here.
|
|
|
|
wxString m_filename; ///< for saves only, name is in m_reader for loads
|
|
|
|
|
2012-12-18 13:54:44 +00:00
|
|
|
int m_loading_format_version; ///< which #SEXPR_BOARD_FILE_VERSION should be Load()ed?
|
2012-06-09 17:00:13 +00:00
|
|
|
|
|
|
|
STRING_FORMATTER m_sf;
|
|
|
|
OUTPUTFORMATTER* m_out; ///< output any Format()s to this, no ownership
|
|
|
|
int m_ctl;
|
2012-10-24 18:20:33 +00:00
|
|
|
PCB_PARSER* m_parser;
|
Added NETINFO_MAPPING, to ease saving nets with consecutive net codes (without modifying the net codes during the run time).
Now, nets are saved with consecutive net codes (both modern & legacy plugins).
Zones are saved together with their nets, without depending on the fact if there are any pads with such net. Therefore validation of zone net names was removed (pcbnew/class_board.cpp).
Performed tests:
- Changed a pad's net name from empty to existent - ok, name was changed.
- Changed a pad's net name from empty to nonexistent - ok, error message is displayed, net name stays empty.
- Changed a pad's net name from existent to empty - ok, net name became empty
- Changed a pad's net name from existent to nonexistent - ok, error message is displayed, net name is not changed.
- Drawn a zone that belongs to a net, then modified schematics so the net does not exist anymore. After reloading the net list, all pads/tracks are updated. Zones still belongs to the net that does not exist in the schematic (but still exists in .kicad_pcb file). After running DRC, the zone becomes not filled.
- Undo & redo affects assignment of a polygon to a specific net (you may change net of a polygon, refill it and undo/redo the changes).
- KiCad s-expr & legacy, Eagle, P-CAD boards seem to load without any problem (they also contain correct net names assigned to the appropriate pads). All types of board file formats were loaded, then saved in sexpr format and reopened with a KiCad built from the master branch (without my modifications).
- A few boards were also saved using the legacy format and were opened with the master KiCad without any issues.
- Change a net name for a pad, restore with undo/redo - ok
- Remove everything, restore with undo - ok
- Remove everything, reload netlist - ok
Differences observed between files saved by the master branch KiCad and this one:
- list of nets are not saved in any particular order, so net codes may differ
- the default net class does not contain the unconnected net
2014-01-28 09:19:51 +00:00
|
|
|
NETINFO_MAPPING* m_mapping; ///< mapping for net codes, so only not empty net codes
|
|
|
|
///< are stored with consecutive integers as net codes
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2018-02-24 17:41:44 +00:00
|
|
|
void validateCache( const wxString& aLibraryPath, bool checkModified = true );
|
|
|
|
|
2018-07-30 13:18:37 +00:00
|
|
|
const MODULE* getFootprint( const wxString& aLibraryPath, const wxString& aFootprintName,
|
|
|
|
const PROPERTIES* aProperties, bool checkModified );
|
2013-11-27 06:04:04 +00:00
|
|
|
|
|
|
|
void init( const PROPERTIES* aProperties );
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-05-18 17:21:30 +00:00
|
|
|
/// formats the board setup information
|
2017-09-17 12:04:57 +00:00
|
|
|
void formatSetup( BOARD* aBoard, int aNestLevel = 0 ) const;
|
2017-05-18 16:43:01 +00:00
|
|
|
|
2019-07-03 21:19:09 +00:00
|
|
|
/// formats the defaults subsection of the board setup
|
|
|
|
void formatDefaults( const BOARD_DESIGN_SETTINGS& aSettings, int aNestLevel ) const;
|
|
|
|
|
2017-05-18 17:21:30 +00:00
|
|
|
/// formats the General section of the file
|
2017-09-17 12:04:57 +00:00
|
|
|
void formatGeneral( BOARD* aBoard, int aNestLevel = 0 ) const;
|
2017-05-18 16:43:01 +00:00
|
|
|
|
2017-05-18 17:21:30 +00:00
|
|
|
/// formats the board layer information
|
2017-09-17 12:04:57 +00:00
|
|
|
void formatBoardLayers( BOARD* aBoard, int aNestLevel = 0 ) const;
|
2017-05-18 16:43:01 +00:00
|
|
|
|
2017-05-18 17:21:30 +00:00
|
|
|
/// formats the Nets and Netclasses
|
2017-09-17 12:04:57 +00:00
|
|
|
void formatNetInformation( BOARD* aBoard, int aNestLevel = 0 ) const;
|
2017-05-18 16:43:01 +00:00
|
|
|
|
2017-04-15 16:08:23 +00:00
|
|
|
/// writes everything that comes before the board_items, like settings and layers etc
|
2017-09-17 12:04:57 +00:00
|
|
|
void formatHeader( BOARD* aBoard, int aNestLevel = 0 ) const;
|
2017-04-15 16:08:23 +00:00
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
private:
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( BOARD* aBoard, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( DIMENSION* aDimension, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( EDGE_MODULE* aModuleDrawing, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( DRAWSEGMENT* aSegment, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( PCB_TARGET* aTarget, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( MODULE* aModule, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( D_PAD* aPad, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( TEXTE_PCB* aText, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( TEXTE_MODULE* aText, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( TRACK* aTrack, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void format( ZONE_CONTAINER* aZone, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
|
|
|
|
void formatLayer( const BOARD_ITEM* aItem ) const;
|
2012-10-07 15:37:25 +00:00
|
|
|
|
2017-06-08 21:47:21 +00:00
|
|
|
void formatLayers( LSET aLayerMask, int aNestLevel = 0 ) const;
|
2012-06-09 17:00:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // KICAD_PLUGIN_H_
|