mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Move layers to kcommon
This commit is contained in:
parent
2b90607dcd
commit
0b99d77fb5
@ -75,8 +75,10 @@ set( KICOMMON_SRCS
|
|||||||
bitmap_info.cpp
|
bitmap_info.cpp
|
||||||
exceptions.cpp
|
exceptions.cpp
|
||||||
kiid.cpp
|
kiid.cpp
|
||||||
|
layer_id.cpp
|
||||||
lib_id.cpp
|
lib_id.cpp
|
||||||
locale_io.cpp
|
locale_io.cpp
|
||||||
|
lset.cpp
|
||||||
markup_parser.cpp
|
markup_parser.cpp
|
||||||
richio.cpp
|
richio.cpp
|
||||||
string_utils.cpp
|
string_utils.cpp
|
||||||
@ -421,12 +423,10 @@ set( COMMON_SRCS
|
|||||||
kiway_player.cpp
|
kiway_player.cpp
|
||||||
languages_menu.cpp
|
languages_menu.cpp
|
||||||
launch_ext.cpp
|
launch_ext.cpp
|
||||||
layer_id.cpp
|
|
||||||
lib_table_base.cpp
|
lib_table_base.cpp
|
||||||
lib_table_grid_tricks.cpp
|
lib_table_grid_tricks.cpp
|
||||||
lib_tree_model.cpp
|
lib_tree_model.cpp
|
||||||
lib_tree_model_adapter.cpp
|
lib_tree_model_adapter.cpp
|
||||||
lset.cpp
|
|
||||||
marker_base.cpp
|
marker_base.cpp
|
||||||
netclass.cpp
|
netclass.cpp
|
||||||
notifications_manager.cpp
|
notifications_manager.cpp
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include <bitset>
|
#include <bitset>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
|
#include <kicommon.h>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -295,7 +296,7 @@ typedef std::bitset<GAL_LAYER_ID_COUNT> GAL_BASE_SET;
|
|||||||
|
|
||||||
|
|
||||||
/// Helper for storing and iterating over GAL_LAYER_IDs
|
/// Helper for storing and iterating over GAL_LAYER_IDs
|
||||||
class GAL_SET : public GAL_BASE_SET
|
class KICOMMON_API GAL_SET : public GAL_BASE_SET
|
||||||
{
|
{
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -473,7 +474,7 @@ enum LAYER_3D_ID : int
|
|||||||
* Returns the string equivalent of a given layer
|
* Returns the string equivalent of a given layer
|
||||||
* @param aLayer is a valid layer ID
|
* @param aLayer is a valid layer ID
|
||||||
*/
|
*/
|
||||||
wxString LayerName( int aLayer );
|
KICOMMON_API wxString LayerName( int aLayer );
|
||||||
|
|
||||||
|
|
||||||
// Some elements do not have yet a visibility control
|
// Some elements do not have yet a visibility control
|
||||||
@ -507,7 +508,7 @@ typedef std::vector<PCB_LAYER_ID> BASE_SEQ;
|
|||||||
*
|
*
|
||||||
* </code>
|
* </code>
|
||||||
*/
|
*/
|
||||||
class LSEQ : public BASE_SEQ
|
class KICOMMON_API LSEQ : public BASE_SEQ
|
||||||
{
|
{
|
||||||
unsigned m_index;
|
unsigned m_index;
|
||||||
|
|
||||||
@ -546,7 +547,7 @@ typedef std::bitset<PCB_LAYER_ID_COUNT> BASE_SET;
|
|||||||
* of converting to LSEQ using purposeful code, is it removes any dependency
|
* of converting to LSEQ using purposeful code, is it removes any dependency
|
||||||
* on order/sequence inherent in this set.
|
* on order/sequence inherent in this set.
|
||||||
*/
|
*/
|
||||||
class LSET : public BASE_SET
|
class KICOMMON_API LSET : public BASE_SET
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -966,7 +967,7 @@ inline bool IsBackLayer( PCB_LAYER_ID aLayerId )
|
|||||||
* @param aCopperLayersCount = the number of copper layers. if 0 (in fact if < 4 )
|
* @param aCopperLayersCount = the number of copper layers. if 0 (in fact if < 4 )
|
||||||
* internal layers will be not flipped because the layer count is not known
|
* internal layers will be not flipped because the layer count is not known
|
||||||
*/
|
*/
|
||||||
PCB_LAYER_ID FlipLayer( PCB_LAYER_ID aLayerId, int aCopperLayersCount = 0 );
|
KICOMMON_API PCB_LAYER_ID FlipLayer( PCB_LAYER_ID aLayerId, int aCopperLayersCount = 0 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate the mask layer when flipping a footprint.
|
* Calculate the mask layer when flipping a footprint.
|
||||||
@ -977,7 +978,7 @@ PCB_LAYER_ID FlipLayer( PCB_LAYER_ID aLayerId, int aCopperLayersCount = 0 );
|
|||||||
* @param aCopperLayersCount = the number of copper layers. if 0 (in fact if < 4 )
|
* @param aCopperLayersCount = the number of copper layers. if 0 (in fact if < 4 )
|
||||||
* internal layers will be not flipped because the layer count is not known
|
* internal layers will be not flipped because the layer count is not known
|
||||||
*/
|
*/
|
||||||
LSET FlipLayerMask( LSET aMask, int aCopperLayersCount = 0 );
|
KICOMMON_API LSET FlipLayerMask( LSET aMask, int aCopperLayersCount = 0 );
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1049,6 +1050,6 @@ inline bool IsNetCopperLayer( int aLayer )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PCB_LAYER_ID ToLAYER_ID( int aLayer );
|
KICOMMON_API PCB_LAYER_ID ToLAYER_ID( int aLayer );
|
||||||
|
|
||||||
#endif // LAYER_IDS_H
|
#endif // LAYER_IDS_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user