Browse Source
General design rules tab converted to nanoscale. A bit of refactorisation in via sizes. And build key is KICAD_NANOMETRE not KICAD_NANOMETRIC (as I stated in previous commit).
pull/1/head
General design rules tab converted to nanoscale. A bit of refactorisation in via sizes. And build key is KICAD_NANOMETRE not KICAD_NANOMETRIC (as I stated in previous commit).
pull/1/head
13 changed files with 181 additions and 103 deletions
-
25common/common.cpp
-
7include/common.h
-
4include/lengthpcb.h
-
13pcbnew/class_board.cpp
-
43pcbnew/class_board.h
-
39pcbnew/class_netclass.h
-
41pcbnew/class_via_dimension.h
-
66pcbnew/dialogs/dialog_design_rules.cpp
-
2pcbnew/dialogs/dialog_design_rules.h
-
20pcbnew/ioascii.cpp
-
10pcbnew/onrightclick.cpp
-
4pcbnew/specctra_export.cpp
-
10pcbnew/tool_pcb.cpp
@ -0,0 +1,41 @@ |
|||
/** |
|||
* @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 */ |
Write
Preview
Loading…
Cancel
Save
Reference in new issue