You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.7 KiB

  1. #ifndef __PROTOS_H__
  2. #define __PROTOS_H__
  3. #include <colors.h>
  4. class EDA_DRAW_PANEL;
  5. class EDA_DRAW_FRAME;
  6. class PICKED_ITEMS_LIST;
  7. class SCH_EDIT_FRAME;
  8. class LIB_EDIT_FRAME;
  9. class CMP_LIBRARY;
  10. class SCH_COMPONENT;
  11. class SCH_SCREEN;
  12. class SCH_ITEM;
  13. /****************/
  14. /* DATABASE.CPP */
  15. /****************/
  16. //void DisplayCmpDoc( wxString& Name );
  17. wxString DataBaseGetName( EDA_DRAW_FRAME* frame, wxString& Keys, wxString& BufName );
  18. /*********************/
  19. /* DANGLING_ENDS.CPP */
  20. /*********************/
  21. bool SegmentIntersect( wxPoint aSegStart, wxPoint aSegEnd, wxPoint aTestPoint );
  22. // operations_on_item_lists.cpp
  23. void DeleteItemsInList( EDA_DRAW_PANEL* panel, PICKED_ITEMS_LIST& aItemsList );
  24. /**
  25. * Function DuplicateStruct
  26. * creates a new copy of given struct.
  27. * @param aDrawStruct = the SCH_ITEM to duplicate
  28. * @param aClone (defualt = true)
  29. * if true duplicate also some parameters that must be unique
  30. * (timestamp and sheet name)
  31. * aClone must be false. use true only is undo/redo duplications
  32. */
  33. SCH_ITEM* DuplicateStruct( SCH_ITEM* DrawStruct, bool aClone = false );
  34. /****************/
  35. /* EEREDRAW.CPP */
  36. /****************/
  37. void DrawDanglingSymbol( EDA_DRAW_PANEL* panel, wxDC* DC, const wxPoint& pos, EDA_COLOR_T Color );
  38. /***********************************/
  39. /* dialogs/dialog_color_config.cpp */
  40. /***********************************/
  41. EDA_COLOR_T ReturnLayerColor( int Layer );
  42. /***************/
  43. /* SELPART.CPP */
  44. /***************/
  45. /**
  46. * Function DisplayComponentsNamesInLib
  47. * Select component from list of components in this library
  48. *
  49. * If == NULL Library, selection of library REQUESTED
  50. * If only in research library
  51. *
  52. * Returns
  53. * 1 if selected component
  54. * 0 if canceled order
  55. */
  56. int DisplayComponentsNamesInLib( EDA_DRAW_FRAME* frame,
  57. CMP_LIBRARY* Library,
  58. wxString& Buffer,
  59. wxString& OldName );
  60. /**
  61. * Function SelectLibraryFromList
  62. * displays a list of current loaded libraries, and allows the user to select
  63. * a library
  64. * This list is sorted, with the library cache always at end of the list
  65. */
  66. CMP_LIBRARY* SelectLibraryFromList( EDA_DRAW_FRAME* frame );
  67. /**
  68. * Get the name component from a library to load.
  69. *
  70. * If no library specified, there will be demand for selection of a library.
  71. * Returns
  72. * 1 if selected component
  73. * 0 if canceled order
  74. * Place the name of the selected component list in BufName
  75. */
  76. int GetNameOfPartToLoad( EDA_DRAW_FRAME* frame, CMP_LIBRARY* Lib, wxString& BufName );
  77. /****************/
  78. /* CONTROLE.CPP */
  79. /****************/
  80. void RemoteCommand( const char* cmdline );
  81. #endif /* __PROTOS_H__ */