2007-10-27 12:24:09 +00:00
|
|
|
/**********************************************/
|
|
|
|
/* CVPCB : declaration des variables globales */
|
|
|
|
/**********************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef eda_global
|
|
|
|
#define eda_global extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "pcbnew.h"
|
|
|
|
|
2008-06-11 11:27:58 +00:00
|
|
|
// config for footprints doc file acces
|
|
|
|
#define DOC_FOOTPRINTS_LIST_KEY wxT("footprints_doc_file")
|
|
|
|
#define DEFAULT_FOOTPRINTS_LIST_FILENAME wxT("footprints_doc/footprints.pdf")
|
|
|
|
|
|
|
|
|
|
|
|
// Define print format to display a schematic component line
|
2007-10-27 12:24:09 +00:00
|
|
|
#define CMP_FORMAT wxT( "%3d %8s - %16s : %-.32s" )
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#define FILTERFOOTPRINTKEY "FilterFootprint"
|
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
enum TypeOfStruct {
|
|
|
|
STRUCT_NOT_INIT,
|
|
|
|
STRUCT_COMPONENT,
|
|
|
|
STRUCT_PIN,
|
|
|
|
STRUCT_MODULE,
|
|
|
|
STRUCT_PSEUDOMODULE
|
|
|
|
};
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
class STOREPIN
|
|
|
|
{
|
|
|
|
public:
|
2007-10-27 12:24:09 +00:00
|
|
|
int m_Type; /* Type de la structure */
|
|
|
|
STOREPIN* Pnext; /* Chainage avant */
|
|
|
|
int m_Index; /* variable utilisee selon types de netlistes */
|
|
|
|
int m_PinType; /* code type electrique ( Entree Sortie Passive..) */
|
|
|
|
wxString m_PinNet; /* Pointeur sur le texte nom de net */
|
|
|
|
wxString m_PinNum;
|
|
|
|
wxString m_PinName;
|
|
|
|
wxString m_Repere; /* utilise selon formats de netliste */
|
|
|
|
|
|
|
|
STOREPIN();
|
|
|
|
};
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
class STORECMP
|
|
|
|
{
|
|
|
|
public:
|
2007-10-27 12:24:09 +00:00
|
|
|
int m_Type; /* Type de la structure */
|
|
|
|
STORECMP* Pnext; /* Chainage avant */
|
|
|
|
STORECMP* Pback; /* Chainage arriere */
|
|
|
|
int m_Num; /* Numero d'ordre */
|
|
|
|
int m_Multi; /* Nombre d' unites par boitier */
|
|
|
|
STOREPIN* m_Pins; /* pointeur sur la liste des Pins */
|
|
|
|
wxString m_Reference; /* U3, R5 ... */
|
|
|
|
wxString m_Valeur; /* 7400, 47K ... */
|
|
|
|
wxString m_TimeStamp; /* Signature temporelle ("00000000" si absente) */
|
|
|
|
wxString m_Module; /* Nom du module (Package) corresp */
|
|
|
|
wxString m_Repere; /* utilise selon formats de netliste */
|
|
|
|
wxArrayString m_FootprintFilter; /* List of allowed footprints (wildcart allowed
|
|
|
|
* if void: no filtering */
|
|
|
|
|
|
|
|
STORECMP();
|
|
|
|
~STORECMP();
|
|
|
|
};
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
class STOREMOD
|
|
|
|
{
|
|
|
|
public:
|
2007-10-27 12:24:09 +00:00
|
|
|
int m_Type; /* Type de la structure */
|
|
|
|
STOREMOD* Pnext; /* Chainage avant */
|
|
|
|
STOREMOD* Pback; /* Chainage arriere */
|
|
|
|
wxString m_Module; /* Nom du module */
|
|
|
|
wxString m_LibName; /* Nom de la librairie contenant ce module */
|
|
|
|
int m_Num; /* Numero d'ordre pour affichage sur la liste */
|
|
|
|
wxString m_Doc; /* Doc associee */
|
|
|
|
wxString m_KeyWord; /* Mots cles associes */
|
|
|
|
|
|
|
|
STOREMOD();
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global STOREMOD* g_BaseListePkg;
|
|
|
|
eda_global STORECMP* g_BaseListeCmp;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global FILE* source;
|
|
|
|
eda_global FILE* dest;
|
|
|
|
eda_global FILE* libcmp;
|
|
|
|
eda_global FILE* lib_module;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/* nom des fichiers a traiter */
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global wxString FFileName;
|
2008-03-22 20:46:40 +00:00
|
|
|
eda_global wxString NetNameBuffer;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/* Types de netliste: */
|
2007-10-27 12:24:09 +00:00
|
|
|
#define TYPE_NON_SPECIFIE 0
|
|
|
|
#define TYPE_ORCADPCB2 1
|
|
|
|
#define TYPE_PCAD 2
|
2007-06-05 12:10:51 +00:00
|
|
|
#define TYPE_VIEWLOGIC_WIR 3
|
|
|
|
#define TYPE_VIEWLOGIC_NET 4
|
|
|
|
|
|
|
|
/* Gestion des noms des librairies */
|
|
|
|
eda_global wxString g_EquivExtBuffer
|
|
|
|
#ifdef MAIN
|
2007-10-27 12:24:09 +00:00
|
|
|
( wxT( ".equ" ) )
|
2007-06-05 12:10:51 +00:00
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global wxString g_ExtCmpBuffer
|
|
|
|
#ifdef MAIN
|
2007-10-27 12:24:09 +00:00
|
|
|
( wxT( ".cmp" ) )
|
2007-06-05 12:10:51 +00:00
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global wxString g_UserNetDirBuffer; // Netlist path (void = current working directory)
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global wxArrayString g_ListName_Equ; // list of .equ files to load
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global int g_FlagEESchema;
|
|
|
|
eda_global int Rjustify; /* flag pout troncature des noms de Net:
|
|
|
|
* = 0: debut de chaine conservee (->ORCADPCB2)
|
|
|
|
* = 1: fin de chaine conservee (->VIEWLOGIC) */
|
|
|
|
eda_global int selection_type; /* 0 pour sel par U??, 1 pour sel par ref ORCADPCB */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global int modified; /* Flag != 0 si modif attribution des modules */
|
|
|
|
eda_global int ListModIsModified; /* Flag != 0 si modif liste des lib modules */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global char alim[1024];
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global int nbcomp; /* nombre de composants trouves */
|
|
|
|
eda_global int nblib; /* nombre d'empreintes trouvees */
|
|
|
|
eda_global int composants_non_affectes; /* nbre de composants non affectes */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global wxString NameBuffer;
|
|
|
|
eda_global wxString NetInNameBuffer;
|
|
|
|
eda_global wxString NetInExtBuffer;
|
|
|
|
eda_global wxString NetDirBuffer;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global wxString ExtRetroBuffer
|
2007-06-05 12:10:51 +00:00
|
|
|
#ifdef MAIN
|
2007-10-27 12:24:09 +00:00
|
|
|
( wxT( ".stf" ) )
|
2007-06-05 12:10:51 +00:00
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
// Variables generales */
|
|
|
|
// Unused, for pcbnew compatibility:
|
2007-10-27 12:24:09 +00:00
|
|
|
eda_global Ki_PageDescr* SheetList[]
|
2007-06-05 12:10:51 +00:00
|
|
|
#ifdef MAIN
|
2007-10-27 12:24:09 +00:00
|
|
|
= { NULL }
|
2007-06-05 12:10:51 +00:00
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
|
|
|
// Unused, for pcbnew compatibility:
|
2007-10-27 12:24:09 +00:00
|
|
|
void Plume( int state );
|