94 lines
2.4 KiB
C++
94 lines
2.4 KiB
C++
|
|
#ifndef __PCBCOMMON_H__
|
|
#define __PCBCOMMON_H__
|
|
|
|
#include "pcbstruct.h"
|
|
#include "dlist.h"
|
|
|
|
#define UNDELETE_STACK_SIZE 10
|
|
#define L_MIN_DESSIN 1 /* Min width segments to allow draws with tickness */
|
|
|
|
class DPAD;
|
|
class BOARD_ITEM;
|
|
class PCB_SCREEN;
|
|
class DISPLAY_OPTIONS;
|
|
class EDA_BoardDesignSettings;
|
|
|
|
/* Look up Table for conversion one layer number -> one bit layer mask: */
|
|
extern int g_TabOneLayerMask[LAYER_COUNT];
|
|
/* Look up Table for conversion copper layer count -> general copper layer
|
|
* mask: */
|
|
extern int g_TabAllCopperLayerMask[NB_COPPER_LAYERS];
|
|
|
|
|
|
|
|
extern wxArrayString g_LibName_List; // library list to load
|
|
extern bool g_ShowGrid;
|
|
extern BOARD_ITEM* g_UnDeleteStack[UNDELETE_STACK_SIZE];
|
|
extern int g_UnDeleteStackPtr;
|
|
extern DISPLAY_OPTIONS DisplayOpt;
|
|
|
|
extern wxString PcbExtBuffer;
|
|
extern wxString g_SaveFileName;
|
|
extern wxString NetExtBuffer;
|
|
extern wxString NetCmpExtBuffer;
|
|
extern const wxString ModuleFileExtension;
|
|
|
|
extern const wxString ModuleFileWildcard;
|
|
|
|
extern wxString g_ViaType_Name[4];
|
|
|
|
extern int g_CurrentVersionPCB;
|
|
extern int g_AnchorColor;
|
|
extern int g_ModuleTextCMPColor;
|
|
extern int g_ModuleTextCUColor;
|
|
extern int g_ModuleTextNOVColor;
|
|
extern int g_PadCUColor;
|
|
extern int g_PadCMPColor;
|
|
|
|
|
|
|
|
/* variables generales */
|
|
extern int g_TimeOut; // Timer for automatic saving
|
|
extern int g_SaveTime; // Time for next saving
|
|
|
|
// Current design settings:
|
|
extern class EDA_BoardDesignSettings g_DesignSettings;
|
|
|
|
extern DLIST<TRACK> g_CurrentTrackList;
|
|
|
|
#define g_CurrentTrackSegment \
|
|
g_CurrentTrackList.GetLast() ///< most recently created segment
|
|
#define g_FirstTrackSegment \
|
|
g_CurrentTrackList.GetFirst() ///< first segment created
|
|
|
|
extern PCB_SCREEN* ScreenPcb; /* Ecran principal */
|
|
extern BOARD* g_ModuleEditor_Pcb;
|
|
|
|
/* Pad editing */
|
|
extern wxString g_Current_PadName; // Last used pad name (pad num)
|
|
|
|
extern D_PAD g_Pad_Master;
|
|
|
|
/* Gestion des plumes en plot format HPGL */
|
|
extern int g_HPGL_Pen_Num;
|
|
extern int g_HPGL_Pen_Speed;
|
|
extern int g_HPGL_Pen_Diam;
|
|
extern int g_HPGL_Pen_Recouvrement;
|
|
|
|
extern float Scale_X;
|
|
extern float Scale_Y;
|
|
|
|
extern wxPoint g_PlotOffset;
|
|
|
|
extern int g_PlotLine_Width;
|
|
|
|
extern int g_PlotFormat;
|
|
extern int g_PlotOrient;
|
|
|
|
/* id for plot format (see enum PlotFormat in plot_common.h) */
|
|
extern int g_PlotScaleOpt;
|
|
extern int g_DrillShapeOpt;
|
|
|
|
#endif /* __PCBCOMMON_H__ */
|