2011-09-24 18:33:28 +00:00
|
|
|
/**
|
|
|
|
* @file pcbcommon.h
|
|
|
|
*/
|
2009-04-05 20:49:15 +00:00
|
|
|
|
|
|
|
#ifndef __PCBCOMMON_H__
|
|
|
|
#define __PCBCOMMON_H__
|
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
#include "dlist.h"
|
2011-09-23 13:57:12 +00:00
|
|
|
#include "layers_id_colors_and_visibility.h" // LAYER_COUNT and NB_COPPER_LAYERS definitions.
|
|
|
|
|
2011-12-08 18:23:44 +00:00
|
|
|
//#include <wx/string.h> // wxString class.
|
|
|
|
//#include <wx/arrstr.h> // wxArrayString class.
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-24 18:33:28 +00:00
|
|
|
#define MIN_DRAW_WIDTH 1 /* Minimum trace drawing width. */
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2011-12-08 18:23:44 +00:00
|
|
|
//class PCB_SCREEN;
|
2011-09-23 13:57:12 +00:00
|
|
|
class D_PAD;
|
|
|
|
class TRACK;
|
|
|
|
class BOARD;
|
2009-04-05 20:49:15 +00:00
|
|
|
class DISPLAY_OPTIONS;
|
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2011-12-06 08:35:13 +00:00
|
|
|
/**
|
|
|
|
* Function GetLayerMask
|
|
|
|
* @return a one bit layer mask from a layer number
|
|
|
|
* @param aLayerNumber = the layer number to convert (0 .. LAYER_COUNT-1)
|
|
|
|
*/
|
|
|
|
int GetLayerMask( int aLayerNumber );
|
2011-09-24 18:33:28 +00:00
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
/* Look up Table for conversion copper layer count -> general copper layer mask: */
|
2009-04-05 20:49:15 +00:00
|
|
|
extern int g_TabAllCopperLayerMask[NB_COPPER_LAYERS];
|
|
|
|
|
|
|
|
extern DISPLAY_OPTIONS DisplayOpt;
|
|
|
|
|
|
|
|
extern wxString NetExtBuffer;
|
|
|
|
extern wxString NetCmpExtBuffer;
|
|
|
|
extern const wxString ModuleFileExtension;
|
|
|
|
|
|
|
|
extern const wxString ModuleFileWildcard;
|
|
|
|
|
|
|
|
extern int g_CurrentVersionPCB;
|
|
|
|
|
2011-09-26 20:32:56 +00:00
|
|
|
extern int g_RotationAngle;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-24 18:33:28 +00:00
|
|
|
/// List of segments of the trace currently being drawn.
|
2009-04-05 20:49:15 +00:00
|
|
|
extern DLIST<TRACK> g_CurrentTrackList;
|
|
|
|
|
2011-09-24 18:33:28 +00:00
|
|
|
#define g_CurrentTrackSegment g_CurrentTrackList.GetLast() ///< most recently created segment
|
|
|
|
|
|
|
|
#define g_FirstTrackSegment g_CurrentTrackList.GetFirst() ///< first segment created
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-26 20:32:56 +00:00
|
|
|
extern BOARD* g_ModuleEditor_Pcb;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
|
|
|
/* Pad editing */
|
2011-09-26 20:32:56 +00:00
|
|
|
extern D_PAD g_Pad_Master;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-24 18:33:28 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
#endif /* __PCBCOMMON_H__ */
|