2011-09-24 18:33:28 +00:00
|
|
|
/**
|
|
|
|
* @file pcbcommon.h
|
|
|
|
*/
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2012-02-02 17:45:37 +00:00
|
|
|
#ifndef PCBCOMMON_H_
|
|
|
|
#define PCBCOMMON_H_
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <dlist.h>
|
2013-03-31 13:27:46 +00:00
|
|
|
#include <layers_id_colors_and_visibility.h>
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2012-02-02 17:45:37 +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
|
|
|
|
|
|
|
class D_PAD;
|
|
|
|
class TRACK;
|
|
|
|
class BOARD;
|
2009-04-05 20:49:15 +00:00
|
|
|
class DISPLAY_OPTIONS;
|
|
|
|
|
|
|
|
extern DISPLAY_OPTIONS DisplayOpt;
|
|
|
|
|
|
|
|
extern int g_CurrentVersionPCB;
|
|
|
|
|
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
|
|
|
|
2013-04-07 11:55:18 +00:00
|
|
|
/// Utility for comma separated lists
|
|
|
|
void AccumulateDescription( wxString &aDesc, const wxString &aItem );
|
2011-09-24 18:33:28 +00:00
|
|
|
|
2012-02-02 17:45:37 +00:00
|
|
|
#endif // PCBCOMMON_H_
|