2008-09-13 18:59:57 +00:00
|
|
|
/*****************************************************************/
|
|
|
|
/* Headers for library definition and lib component definitions */
|
|
|
|
/*****************************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#ifndef LIBCMP_H
|
|
|
|
#define LIBCMP_H
|
|
|
|
|
|
|
|
#include "priorque.h"
|
|
|
|
|
2008-09-13 18:59:57 +00:00
|
|
|
#define LIB_VERSION_MAJOR 2
|
|
|
|
#define LIB_VERSION_MINOR 3
|
|
|
|
#define LIBFILE_IDENT "EESchema-LIBRARY Version" /* Must be the first line of lib files. */
|
|
|
|
#define DOCFILE_IDENT "EESchema-DOCLIB Version 2.0" /* Must be the first line of doc files. */
|
2009-04-05 20:49:15 +00:00
|
|
|
#define DOC_EXT wxT( "dcm" ) /* Ext. of documentation files */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
//Offsets used in editing library component, for handle aliad dats
|
2007-08-24 15:10:46 +00:00
|
|
|
#define ALIAS_NAME 0
|
|
|
|
#define ALIAS_DOC 1
|
|
|
|
#define ALIAS_KEYWORD 2
|
2007-06-05 12:10:51 +00:00
|
|
|
#define ALIAS_DOC_FILENAME 3
|
2007-08-24 15:10:46 +00:00
|
|
|
#define ALIAS_NEXT 4
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2008-09-09 16:55:52 +00:00
|
|
|
enum LocateDrawStructType {
|
2008-09-13 18:59:57 +00:00
|
|
|
LOCATE_COMPONENT_ARC_DRAW_TYPE = 1,
|
2007-08-24 15:10:46 +00:00
|
|
|
LOCATE_COMPONENT_CIRCLE_DRAW_TYPE = 2,
|
|
|
|
LOCATE_COMPONENT_GRAPHIC_TEXT_DRAW_TYPE = 4,
|
|
|
|
LOCATE_COMPONENT_RECT_DRAW_TYPE = 8,
|
|
|
|
LOCATE_LINE_DRAW_TYPE = 0x10,
|
|
|
|
LOCATE_COMPONENT_POLYLINE_DRAW_TYPE = 0x20,
|
|
|
|
LOCATE_COMPONENT_LINE_DRAW_TYPE = 0x40
|
2008-09-09 16:55:52 +00:00
|
|
|
};
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#define LOCATE_ALL_DRAW_ITEM 0xFFFFFFFF
|
|
|
|
|
|
|
|
/* flags utilises dans FindLibPart() : */
|
2008-09-13 18:59:57 +00:00
|
|
|
#define FIND_ROOT 0 /* Used to search for a root component by its name
|
|
|
|
* if the name is an alias name, FindLibPart() returns the root component */
|
|
|
|
#define FIND_ALIAS 1 /* Used to search for a component by its name
|
|
|
|
* FindLibPart() returns the component (root or alias ) */
|
2007-09-13 11:28:58 +00:00
|
|
|
|
2008-09-13 18:59:57 +00:00
|
|
|
#include "class_library.h"
|
2007-09-13 11:28:58 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/* Variables */
|
2009-04-05 20:49:15 +00:00
|
|
|
extern LibraryStruct* LibraryList; /* All part libs are saved here. */
|
2007-09-13 11:28:58 +00:00
|
|
|
|
|
|
|
/* Variables used by LibEdit */
|
2009-04-05 20:49:15 +00:00
|
|
|
extern LibEDA_BaseStruct* LibItemToRepeat; /* pointer on a graphic item than can be duplicated by the Ins key
|
2008-09-13 18:59:57 +00:00
|
|
|
* (usually the last created item */
|
2009-04-05 20:49:15 +00:00
|
|
|
extern LibraryStruct* CurrentLib; /* Current opened library */
|
|
|
|
extern EDA_LibComponentStruct* CurrentLibEntry; /* Current component */
|
|
|
|
extern LibEDA_BaseStruct* CurrentDrawItem; /* current edited item */
|
|
|
|
|
|
|
|
extern wxString CurrentAliasName;
|
|
|
|
extern bool g_AsDeMorgan;
|
|
|
|
extern int CurrentUnit;
|
|
|
|
extern int CurrentConvert;
|
|
|
|
|
|
|
|
extern wxString FindLibName;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#endif // LIBCMP_H
|