Browse Source
intermediate check in to show progress on new nanometer file loader PLUGIN
pull/1/head
intermediate check in to show progress on new nanometer file loader PLUGIN
pull/1/head
10 changed files with 1112 additions and 202 deletions
-
2Doxyfile
-
41include/class_via_dimension.h
-
17include/common.h
-
22pcbnew/class_board.h
-
41pcbnew/class_drawsegment.h
-
40pcbnew/files.cpp
-
11pcbnew/io_mgr.h
-
1046pcbnew/kicad_plugin.cpp
-
45pcbnew/kicad_plugin.h
-
49pcbnew/xchgmod.cpp
@ -1,41 +0,0 @@ |
|||
/** |
|||
* @file class_via_dimension.h |
|||
* @brief Class via dimension. |
|||
*/ |
|||
|
|||
#ifndef CLASS_VIA_DIMENSION_H |
|||
#define CLASS_VIA_DIMENSION_H |
|||
|
|||
#include "lengthpcb.h" |
|||
/** a small helper class to handle a stock of specific vias diameter and drill pair |
|||
* in the BOARD class |
|||
*/ |
|||
class VIA_DIMENSION |
|||
{ |
|||
public: |
|||
LENGTH_PCB m_Diameter; // <= 0 means use Netclass via diameter |
|||
LENGTH_PCB m_Drill; // <= 0 means use Netclass via drill |
|||
|
|||
VIA_DIMENSION() |
|||
{ |
|||
m_Diameter = FROM_LEGACY_LU( 0 ); |
|||
m_Drill = FROM_LEGACY_LU( 0 ); |
|||
} |
|||
|
|||
|
|||
bool operator ==( const VIA_DIMENSION& other ) const |
|||
{ |
|||
return (m_Diameter == other.m_Diameter) && (m_Drill == other.m_Drill); |
|||
} |
|||
|
|||
|
|||
bool operator <( const VIA_DIMENSION& other ) const |
|||
{ |
|||
if( m_Diameter != other.m_Diameter ) |
|||
return m_Diameter < other.m_Diameter; |
|||
|
|||
return m_Drill < other.m_Drill; |
|||
} |
|||
}; |
|||
|
|||
#endif /* CLASS_VIA_DIMENSION_H */ |
1046
pcbnew/kicad_plugin.cpp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue