2007-08-24 15:10:46 +00:00
|
|
|
/********************************************/
|
|
|
|
/* Definitions for the EESchema program: */
|
|
|
|
/********************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#ifndef PROGRAM_H
|
|
|
|
#define PROGRAM_H
|
|
|
|
|
2010-10-20 20:24:26 +00:00
|
|
|
|
|
|
|
class TRANSFORM;
|
|
|
|
|
|
|
|
|
2009-12-30 18:06:12 +00:00
|
|
|
#define HIGHLIGHT_COLOR WHITE
|
|
|
|
#define TEXT_NO_VISIBLE 1
|
|
|
|
|
2008-04-14 19:22:48 +00:00
|
|
|
#include "wxEeschemaStruct.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
#include "macros.h"
|
|
|
|
#include "base_struct.h"
|
|
|
|
|
2010-10-20 20:24:26 +00:00
|
|
|
#include "sch_item_struct.h"
|
2009-07-27 14:32:40 +00:00
|
|
|
#include "class_sch_component.h"
|
2009-02-02 12:12:18 +00:00
|
|
|
#include "class_sch_screen.h"
|
2008-04-12 18:39:20 +00:00
|
|
|
#include "class_drawsheet.h"
|
2009-01-04 18:52:57 +00:00
|
|
|
#include "class_drawsheetpath.h"
|
2008-02-20 19:37:17 +00:00
|
|
|
#include "class_text-label.h"
|
2009-01-02 17:07:50 +00:00
|
|
|
#include "class_schematic_items.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
/* Rotation, mirror of graphic items in components bodies are handled by a
|
|
|
|
* transform matrix. The default matix is useful to draw lib entries with
|
|
|
|
* a defualt matix ( no rotation, no mirror but Y axis is bottom to top, and
|
|
|
|
* Y draw axis is to to bottom so we must have a default matix that reverses
|
|
|
|
* the Y coordinate and keeps the X coordiate
|
2007-08-24 15:10:46 +00:00
|
|
|
*/
|
2010-10-20 20:24:26 +00:00
|
|
|
extern TRANSFORM DefaultTransform;
|
2007-09-01 12:00:30 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
#define MIN_BUSLINES_THICKNESS 12 // min bus lines and entries thickness
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#define MAX_LAYERS 44
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
class LayerStruct
|
|
|
|
{
|
|
|
|
public:
|
2007-08-24 15:10:46 +00:00
|
|
|
char LayerNames[MAX_LAYERS + 1][8];
|
|
|
|
int LayerColor[MAX_LAYERS + 1];
|
|
|
|
char LayerStatus[MAX_LAYERS + 1];
|
|
|
|
int NumberOfLayers;
|
|
|
|
int CurrentLayer;
|
|
|
|
int CurrentWidth;
|
|
|
|
int CommonColor;
|
|
|
|
int Flags;
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* PROGRAM_H */
|