2008-02-12 21:12:46 +00:00
|
|
|
|
//*****************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
/* prototypage des fonctions de EESchema */
|
|
|
|
|
/*****************************************/
|
|
|
|
|
void FreeLibraryEntry(LibCmpEntry * Entry);
|
|
|
|
|
|
|
|
|
|
LibEDA_BaseStruct * LocatePin(const wxPoint & RefPos,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
EDA_LibComponentStruct * Entry,
|
|
|
|
|
int Unit, int Convert, SCH_COMPONENT * DrawItem = NULL);
|
|
|
|
|
/* Routine de localisation d'une PIN de la PartLib pointee par Entry */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2007-09-20 21:06:49 +00:00
|
|
|
|
const wxString& ReturnDefaultFieldName( int aFieldNdx );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************/
|
|
|
|
|
/* DATABASE.CPP */
|
|
|
|
|
/****************/
|
|
|
|
|
void DisplayCmpDoc(wxString & Name);
|
|
|
|
|
bool DataBaseGetName(WinEDA_DrawFrame * frame,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
wxString & Keys, wxString & BufName);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
/*********************/
|
|
|
|
|
/* DANGLING_ENDS.CPP */
|
|
|
|
|
/*********************/
|
|
|
|
|
bool SegmentIntersect(int Sx1, int Sy1, int Sx2, int Sy2, int Px1, int Py1);
|
|
|
|
|
|
|
|
|
|
/****************/
|
|
|
|
|
/* BUS_WIRE_JUNCTION.CPP */
|
|
|
|
|
/****************/
|
|
|
|
|
void IncrementLabelMember(wxString & name);
|
|
|
|
|
|
|
|
|
|
/****************/
|
|
|
|
|
/* EDITPART.CPP */
|
|
|
|
|
/****************/
|
|
|
|
|
void InstallCmpeditFrame(WinEDA_SchematicFrame * parent, wxPoint & pos,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
SCH_COMPONENT * m_Cmp);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/**************/
|
|
|
|
|
/* EELIBS2.CPP */
|
|
|
|
|
/**************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
/* Functions common to all EELibs?.c modules: */
|
|
|
|
|
int LibraryEntryCompare(EDA_LibComponentStruct *LE1, EDA_LibComponentStruct *LE2);
|
2007-09-13 11:55:46 +00:00
|
|
|
|
int NumOfLibraries();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
EDA_LibComponentStruct *FindLibPart(const wxChar *Name, const wxString & LibName, int Alias);
|
|
|
|
|
|
|
|
|
|
void DrawingLibInGhost(WinEDA_DrawPanel * panel, wxDC * DC, EDA_LibComponentStruct *LibEntry,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
SCH_COMPONENT * DrawLibItem, int PartX, int PartY,
|
|
|
|
|
int Multi, int convert,
|
|
|
|
|
int Color, bool DrawPinText);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void DrawLibEntry(WinEDA_DrawPanel * panel, wxDC * DC,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
EDA_LibComponentStruct *LibEntry, int posX, int posY,
|
|
|
|
|
int Multi, int convert,
|
|
|
|
|
int DrawMode, int Color = -1);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void DrawLibraryDrawStruct(WinEDA_DrawPanel * panel, wxDC * DC,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
EDA_LibComponentStruct *LibEntry, int PartX, int PartY,
|
|
|
|
|
LibEDA_BaseStruct *DrawItem, int Multi,
|
|
|
|
|
int DrawMode, int Color = -1);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
bool MapAngles(int *Angle1, int *Angle2, int TransMat[2][2]);
|
|
|
|
|
|
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/**************/
|
2008-04-14 19:22:48 +00:00
|
|
|
|
/* EELIBS_DRAW_COMPONENTS.CPP */
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/**************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
EDA_LibComponentStruct * Read_Component_Definition(WinEDA_DrawFrame * frame, char * Line,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
FILE *f, int *LineNum);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
/* Routine to Read a DEF/ENDDEF part entry from given open file. */
|
|
|
|
|
|
|
|
|
|
LibraryStruct *FindLibrary(const wxString & Name);
|
|
|
|
|
int LoadDocLib(WinEDA_DrawFrame * frame, const wxString & FullDocLibName, const wxString & Libname);
|
|
|
|
|
PriorQue *LoadLibraryAux(WinEDA_DrawFrame * frame, LibraryStruct * library,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
FILE *f, int *NumOfParts);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
LibraryStruct * LoadLibraryName(WinEDA_DrawFrame * frame,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
const wxString & FullLibName, const wxString & LibName);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
void LoadLibraries(WinEDA_DrawFrame * frame);
|
|
|
|
|
void FreeCmpLibrary(wxWindow * frame, const wxString & LibName);
|
2007-09-13 11:55:46 +00:00
|
|
|
|
const wxChar **GetLibNames();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void SnapLibItemPoint(int OrigX, int OrigY, int *ClosestX, int *ClosestY,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
SCH_COMPONENT *DrawLibItem);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
bool LibItemInBox(int x1, int y1, int x2, int y2,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
SCH_COMPONENT *DrawLibItem);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
char * StrPurge(char * text);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Supprime les caracteres Space en debut de la ligne text
|
|
|
|
|
retourne un pointeur sur le 1er caractere non Space de text */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/************/
|
|
|
|
|
/* BLOCK.CPP */
|
|
|
|
|
/************/
|
2008-04-14 19:22:48 +00:00
|
|
|
|
SCH_ITEM * DuplicateStruct(SCH_ITEM *DrawStruct);
|
|
|
|
|
void MoveOneStruct(SCH_ITEM *DrawStructs, const wxPoint & move_vector);
|
|
|
|
|
/* Given a structure move it by move_vector. */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-04-14 19:22:48 +00:00
|
|
|
|
bool PlaceStruct(BASE_SCREEN * screen, SCH_ITEM *DrawStruct);
|
|
|
|
|
bool MoveStruct(WinEDA_DrawPanel * panel, wxDC * DC, SCH_ITEM *DrawStruct);
|
|
|
|
|
void DeleteStruct(WinEDA_DrawPanel * panel, wxDC * DC, SCH_ITEM *DrawStruct);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
bool DrawStructInBox(int x1, int y1, int x2, int y2,
|
2008-04-14 19:22:48 +00:00
|
|
|
|
SCH_ITEM *DrawStruct);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/*************/
|
|
|
|
|
/* LOCATE.CPP */
|
|
|
|
|
/*************/
|
2007-10-01 15:37:42 +00:00
|
|
|
|
LibDrawPin* LocatePinByNumber( const wxString & ePin_Number,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
SCH_COMPONENT* eComponent );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
SCH_COMPONENT * LocateSmallestComponent( SCH_SCREEN * Screen );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
/* Recherche du plus petit (en surface) composant pointe par la souris */
|
|
|
|
|
|
2008-04-14 19:22:48 +00:00
|
|
|
|
SCH_ITEM * PickStruct(EDA_Rect & block, BASE_SCREEN* screen, int SearchMask );
|
|
|
|
|
SCH_ITEM * PickStruct(const wxPoint & refpos, BASE_SCREEN* screen, int SearchMask);
|
|
|
|
|
/* 2 functions PickStruct:
|
|
|
|
|
Search in block, or Search at location pos
|
2008-03-20 01:50:21 +00:00
|
|
|
|
|
|
|
|
|
SearchMask = (bitwise OR):
|
|
|
|
|
LIBITEM
|
|
|
|
|
WIREITEM
|
|
|
|
|
BUSITEM
|
|
|
|
|
RACCORDITEM
|
|
|
|
|
JUNCTIONITEM
|
|
|
|
|
DRAWITEM
|
|
|
|
|
TEXTITEM
|
|
|
|
|
LABELITEM
|
|
|
|
|
SHEETITEM
|
|
|
|
|
MARKERITEM
|
|
|
|
|
NOCONNECTITEM
|
|
|
|
|
SEARCH_PINITEM
|
|
|
|
|
SHEETLABELITEM
|
|
|
|
|
FIELDCMPITEM
|
|
|
|
|
|
|
|
|
|
if EXCLUDE_WIRE_BUS_ENDPOINTS is set, in wire ou bus search and locate,
|
|
|
|
|
start and end points are not included in search
|
|
|
|
|
if WIRE_BUS_ENDPOINTS_ONLY is set, in wire ou bus search and locate,
|
|
|
|
|
only start and end points are included in search
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return:
|
|
|
|
|
-Bloc searc:
|
|
|
|
|
pointeur sur liste de pointeurs de structures si Plusieurs
|
|
|
|
|
structures selectionnees.
|
|
|
|
|
pointeur sur la structure si 1 seule
|
|
|
|
|
|
|
|
|
|
Positon serach:
|
|
|
|
|
pointeur sur la structure.
|
|
|
|
|
Si pas de structures selectionnees: retourne NULL */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LibEDA_BaseStruct * LocateDrawItem(SCH_SCREEN * Screen, const wxPoint & refpoint,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
EDA_LibComponentStruct * LibEntry, int Unit, int Convert, int masque);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-04-15 19:38:19 +00:00
|
|
|
|
Hierarchical_PIN_Sheet_Struct * LocateSheetLabel(DrawSheetStruct *Sheet, const wxPoint & pos);
|
2008-04-14 19:22:48 +00:00
|
|
|
|
LibDrawPin * LocateAnyPin(SCH_ITEM *DrawList, const wxPoint & RefPos,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
SCH_COMPONENT ** libpart = NULL );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-04-15 19:38:19 +00:00
|
|
|
|
Hierarchical_PIN_Sheet_Struct * LocateAnyPinSheet(const wxPoint & RefPos,
|
2008-04-14 19:22:48 +00:00
|
|
|
|
SCH_ITEM *DrawList);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
int distance(int dx, int dy, int spot_cX, int spot_cY, int seuil);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Calcul de la distance du point spot_cx,spot_cy a un segment de droite,
|
|
|
|
|
d'origine 0,0 et d'extremite dx, dy;
|
|
|
|
|
retourne:
|
|
|
|
|
0 si distance > seuil
|
|
|
|
|
1 si distance <= seuil
|
|
|
|
|
Variables utilisees ( sont ramenees au repere centre sur l'origine du segment)
|
|
|
|
|
dx, dy = coord de l'extremite segment.
|
|
|
|
|
spot_cX,spot_cY = coord du curseur souris
|
|
|
|
|
la recherche se fait selon 4 cas:
|
|
|
|
|
segment horizontal
|
|
|
|
|
segment vertical
|
|
|
|
|
segment quelconque */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-02-12 21:12:46 +00:00
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
|
/***************/
|
|
|
|
|
/* EEREDRAW.CPP */
|
|
|
|
|
/***************/
|
2008-03-27 21:24:50 +00:00
|
|
|
|
void DrawDanglingSymbol(WinEDA_DrawPanel * panel,wxDC * DC,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
const wxPoint & pos, int Color);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void Draw_Marqueur(WinEDA_DrawPanel * panel, wxDC * DC,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
wxPoint pos, char* pt_bitmap, int DrawMode, int Color);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void DrawStructsInGhost(WinEDA_DrawPanel * panel, wxDC * DC,
|
2008-04-14 19:22:48 +00:00
|
|
|
|
SCH_ITEM * DrawStruct, int dx, int dy );
|
|
|
|
|
void SetHighLightStruct(SCH_ITEM *HighLight);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
void RedrawActiveWindow(WinEDA_DrawPanel * panel, wxDC * DC);
|
2008-04-14 19:22:48 +00:00
|
|
|
|
void RedrawStructList(WinEDA_DrawPanel * panel, wxDC * DC, SCH_ITEM *Structs, int DrawMode,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
int Color = -1);
|
2008-04-14 19:22:48 +00:00
|
|
|
|
void RedrawOneStruct(WinEDA_DrawPanel * panel, wxDC * DC, SCH_ITEM *Struct, int DrawMode,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
int Color = -1);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
/**************/
|
|
|
|
|
/* EELAYER.CPP */
|
|
|
|
|
/**************/
|
2007-09-13 11:55:46 +00:00
|
|
|
|
void SeedLayers();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
int ReturnLayerColor(int Layer);
|
|
|
|
|
void DisplayColorSetupFrame(WinEDA_DrawFrame * parent, const wxPoint & pos);
|
|
|
|
|
|
|
|
|
|
/*************/
|
|
|
|
|
/* EELOAD.CPP */
|
|
|
|
|
/*************/
|
2007-09-13 11:55:46 +00:00
|
|
|
|
int CountCmpNumber();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
/***************/
|
|
|
|
|
/* EECONFIG.CPP */
|
|
|
|
|
/***************/
|
|
|
|
|
bool Read_Config( const wxString & CfgFileName, bool ForceRereadConfig );
|
2007-08-21 19:37:31 +00:00
|
|
|
|
bool Read_Hotkey_Config( WinEDA_DrawFrame * frame, bool verbose );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************/
|
|
|
|
|
/* SAVELIB.CPP */
|
|
|
|
|
/**************/
|
|
|
|
|
|
|
|
|
|
LibEDA_BaseStruct * CopyDrawEntryStruct( wxWindow * frame, LibEDA_BaseStruct * DrawItem);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine de Duplication d'une structure DrawLibItem d'une partlib
|
|
|
|
|
Parametres d'entree:
|
|
|
|
|
DrawEntry = pointeur sur la structure a dupliquer
|
|
|
|
|
La structure nouvelle est creee, mais n'est pas inseree dans le
|
|
|
|
|
chainage
|
|
|
|
|
Retourne:
|
|
|
|
|
Pointeur sur la structure creee (ou NULL si impossible) */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
int WriteOneLibEntry(wxWindow * frame, FILE * ExportFile, EDA_LibComponentStruct * LibEntry);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine d'ecriture du composant pointe par LibEntry
|
|
|
|
|
dans le fichier ExportFile( qui doit etre deja ouvert)
|
|
|
|
|
return: FALSE si Ok, TRUE si err write */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
EDA_LibComponentStruct * CopyLibEntryStruct (wxWindow * frame, EDA_LibComponentStruct * OldEntry);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine de copie d'une partlib
|
|
|
|
|
Parametres d'entree: pointeur sur la structure de depart
|
|
|
|
|
Parametres de sortie: pointeur sur la structure creee */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
int WriteOneDocLibEntry(FILE * ExportFile, EDA_LibComponentStruct * LibEntry);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine d'ecriture de la doc du composant pointe par LibEntry
|
|
|
|
|
dans le fichier ExportFile( qui doit etre deja ouvert)
|
|
|
|
|
return: 0 si Ok
|
|
|
|
|
1 si err write */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int SaveOneLibrary(wxWindow * frame, const wxString & FullFileName, LibraryStruct * Library);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Sauvegarde en fichier la librairie pointee par Library, sous le nom
|
|
|
|
|
FullFileName.
|
|
|
|
|
2 fichiers sont crees
|
|
|
|
|
- La librarie
|
|
|
|
|
- le fichier de documentation
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
une sauvegarde .bak de l'ancien fichier librairie est cree
|
|
|
|
|
une sauvegarde .bck de l'ancien fichier documentation est cree
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
return:
|
|
|
|
|
0 si OK
|
|
|
|
|
1 si erreur */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***************/
|
|
|
|
|
/* SYMBEDIT.CPP */
|
|
|
|
|
/***************/
|
|
|
|
|
void SuppressDuplicateDrawItem(EDA_LibComponentStruct * LibEntry);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine de suppression des elements de trace dupliques, situation
|
|
|
|
|
frequente lorsque l'on charge des symboles predessines plusieurs fois
|
|
|
|
|
pour definir un composant */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
/***************/
|
|
|
|
|
/* SYMBTEXT.CPP */
|
|
|
|
|
/***************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************/
|
|
|
|
|
/* NETLIST.CPP */
|
|
|
|
|
/**************/
|
|
|
|
|
int IsBusLabel(const wxString & LabelDrawList);
|
|
|
|
|
|
|
|
|
|
/***************/
|
|
|
|
|
/* ANNOTATE.CPP */
|
|
|
|
|
/***************/
|
2007-09-01 12:00:30 +00:00
|
|
|
|
void ReAnnotatePowerSymbolsOnly();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
int CheckAnnotate(WinEDA_SchematicFrame * frame, bool OneSheetOnly);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Retourne le nombre de composants non annotes ou erron<6F>s
|
|
|
|
|
Si OneSheetOnly : recherche sur le schema courant
|
|
|
|
|
else: recherche sur toute la hierarchie */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************/
|
|
|
|
|
/* PLOT.CPP */
|
|
|
|
|
/************/
|
|
|
|
|
void SetCurrentLineWidth( int width);
|
|
|
|
|
|
|
|
|
|
void PlotArc(wxPoint centre, int StAngle, int EndAngle, int rayon, int width = -1);
|
2008-08-05 17:25:10 +00:00
|
|
|
|
void PlotCercle(wxPoint centre, int diametre, bool fill, int width = -1);
|
|
|
|
|
void PlotPoly( int nb, int * coord, bool fill, int width = -1);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void PlotNoConnectStruct(DrawNoConnectStruct * Struct);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
void PlotLibPart( SCH_COMPONENT *DrawLibItem );
|
|
|
|
|
/* Genere le trace d'un composant */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
void PlotSheetStruct(DrawSheetStruct *Struct);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine de dessin du bloc type hierarchie */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
void PlotTextStruct(EDA_BaseStruct *Struct);
|
|
|
|
|
|
|
|
|
|
/***************/
|
|
|
|
|
/* DELSHEET.CPP */
|
|
|
|
|
/***************/
|
|
|
|
|
void DeleteSubHierarchy(DrawSheetStruct * Sheet, bool confirm_deletion);
|
|
|
|
|
bool ClearProjectDrawList(SCH_SCREEN * FirstWindow, bool confirm_deletion);
|
|
|
|
|
/* free the draw list screen->EEDrawList and the subhierarchies
|
2008-03-20 01:50:21 +00:00
|
|
|
|
clear the screen datas (filenames ..)
|
2007-06-05 12:10:51 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*************/
|
|
|
|
|
/* DELETE.CPP */
|
|
|
|
|
/*************/
|
|
|
|
|
|
|
|
|
|
bool LocateAndDeleteItem(WinEDA_SchematicFrame * frame, wxDC * DC);
|
2008-04-14 19:22:48 +00:00
|
|
|
|
void EraseStruct(SCH_ITEM *DrawStruct, SCH_SCREEN * Window);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
void DeleteAllMarkers(int type);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Effacement des marqueurs du type "type" */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void DeleteOneLibraryDrawStruct(WinEDA_DrawPanel * panel,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
wxDC *DC, EDA_LibComponentStruct * LibEntry,
|
|
|
|
|
LibEDA_BaseStruct * DrawItem, int Affiche);
|
|
|
|
|
/* Routine d'effacement d'un "LibraryDrawStruct"
|
|
|
|
|
(d'un element de dessin d'un composant )
|
|
|
|
|
Parametres d'entree
|
|
|
|
|
Pointeur sur le composant comportant la structure
|
|
|
|
|
(Si NULL la structure a effacer est supposee non rattachee
|
|
|
|
|
a un composant)
|
|
|
|
|
Pointeur sur la structure a effacer
|
|
|
|
|
Affiche (si != 0 Efface le graphique correspondant de l'ecran) */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************/
|
|
|
|
|
/* GETPART.CPP */
|
|
|
|
|
/**************/
|
|
|
|
|
|
|
|
|
|
int LookForConvertPart( EDA_LibComponentStruct * LibEntry );
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Retourne la plus grande valeur trouvee dans la liste des elements
|
|
|
|
|
"drawings" du composant LibEntry, pour le membre .Convert
|
|
|
|
|
Si il n'y a pas de representation type "convert", la valeur
|
|
|
|
|
retournee est 0 ou 1
|
|
|
|
|
Si il y a une representation type "convert",
|
|
|
|
|
la valeur retournee est > 1 (typiquement 2) */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************/
|
|
|
|
|
/* PINEDIT.CPP */
|
|
|
|
|
/**************/
|
|
|
|
|
void InstallPineditFrame(WinEDA_LibeditFrame * parent, wxDC * DC, const wxPoint & pos);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************/
|
|
|
|
|
/* SELPART.CPP */
|
|
|
|
|
/**************/
|
|
|
|
|
|
|
|
|
|
int DisplayComponentsNamesInLib(WinEDA_DrawFrame * frame,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
LibraryStruct *Library, wxString & Buffer, wxString & OldName);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
LibraryStruct * SelectLibraryFromList(WinEDA_DrawFrame * frame);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine pour selectionner une librairie a partir d'une liste */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
int GetNameOfPartToLoad(WinEDA_DrawFrame * frame, LibraryStruct * Lib,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
wxString & BufName);
|
|
|
|
|
/* Routine de selection du nom d'un composant en librairie pour chargement,
|
|
|
|
|
dans la librairie Library.
|
|
|
|
|
Si Library == NULL, il y aura demande de selection d'une librairie
|
|
|
|
|
Retourne
|
|
|
|
|
1 si composant selectionne
|
|
|
|
|
0 si commande annulee
|
|
|
|
|
place le nom du composant a charger, selectionne a partir d'une liste dans
|
|
|
|
|
BufName */
|
|
|
|
|
|
|
|
|
|
/**************/
|
|
|
|
|
/* LIBARCH.CPP */
|
|
|
|
|
/**************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
bool LibArchive(wxWindow * frame, const wxString & ArchFullFileName);
|
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/**************/
|
|
|
|
|
/* CLEANUP.CPP */
|
|
|
|
|
/**************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void SchematicCleanUp(SCH_SCREEN * screen, wxDC * DC);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine de nettoyage:
|
|
|
|
|
- regroupe les segments de fils (ou de bus) alignes en 1 seul segment
|
|
|
|
|
- Detecte les objets identiques superposes
|
|
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void BreakSegmentOnJunction( SCH_SCREEN * Screen );
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Routine creant des debuts / fin de segment (BUS ou WIRES) sur les jonctions
|
|
|
|
|
et les raccords */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
DrawPickedStruct * BreakSegment(SCH_SCREEN * screen, wxPoint breakpoint,
|
2008-03-20 01:50:21 +00:00
|
|
|
|
bool PutInUndoList = FALSE);
|
|
|
|
|
/* Coupe un segment ( BUS, WIRE ) en 2 au point breakpoint,
|
|
|
|
|
- si ce point est sur le segment
|
|
|
|
|
- extremites non comprises */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/**************/
|
|
|
|
|
/* EECLASS.CPP */
|
|
|
|
|
/**************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
void SetStructFather(EDA_BaseStruct * Struct, BASE_SCREEN * Screen);
|
|
|
|
|
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/***************/
|
|
|
|
|
/* LIBALIAS.CPP */
|
|
|
|
|
/***************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
bool BuildAliasData(LibraryStruct * Lib, EDA_LibComponentStruct * component);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Create the alias data for the lib component to edit */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
int LocateAlias( const wxArrayString & AliasData, const wxString & Name);
|
2008-03-20 01:50:21 +00:00
|
|
|
|
/* Return an index in alias data list ( -1 if not found ) */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***************/
|
|
|
|
|
/* OPTIONS.CPP */
|
|
|
|
|
/***************/
|
|
|
|
|
void DisplayOptionFrame(WinEDA_DrawFrame * parent, const wxPoint & framepos);
|
|
|
|
|
|
2007-08-14 19:24:48 +00:00
|
|
|
|
/****************/
|
|
|
|
|
/* CONTROLE.CPP */
|
|
|
|
|
/****************/
|
|
|
|
|
void RemoteCommand( const char* cmdline );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|