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.

77 lines
2.1 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 PART_LIB;
  8. class SCH_ITEM;
  9. //void DisplayCmpDoc( wxString& Name );
  10. wxString DataBaseGetName( EDA_DRAW_FRAME* frame, wxString& Keys, wxString& BufName );
  11. // operations_on_item_lists.cpp
  12. void DeleteItemsInList( EDA_DRAW_PANEL* panel, PICKED_ITEMS_LIST& aItemsList );
  13. /**
  14. * Function DuplicateStruct
  15. * creates a new copy of given struct.
  16. * @param aDrawStruct = the SCH_ITEM to duplicate
  17. * @param aClone (defualt = true)
  18. * if true duplicate also some parameters that must be unique
  19. * (timestamp and sheet name)
  20. * aClone must be false. use true only is undo/redo duplications
  21. */
  22. SCH_ITEM* DuplicateStruct( SCH_ITEM* DrawStruct, bool aClone = false );
  23. /****************/
  24. /* EEREDRAW.CPP */
  25. /****************/
  26. void DrawDanglingSymbol( EDA_DRAW_PANEL* panel, wxDC* DC,
  27. const wxPoint& pos, EDA_COLOR_T Color );
  28. /***************/
  29. /* SELPART.CPP */
  30. /***************/
  31. /**
  32. * Function DisplayComponentsNamesInLib
  33. * Select component from list of components in this library
  34. *
  35. * If == NULL Library, selection of library REQUESTED
  36. * If only in research library
  37. *
  38. * Returns
  39. * 1 if selected component
  40. * 0 if canceled order
  41. */
  42. int DisplayComponentsNamesInLib( EDA_DRAW_FRAME* frame,
  43. PART_LIB* Library,
  44. wxString& Buffer,
  45. wxString& OldName );
  46. /**
  47. * Function SelectLibraryFromList
  48. * displays a list of current loaded libraries, and allows the user to select
  49. * a library
  50. * This list is sorted, with the library cache always at end of the list
  51. */
  52. PART_LIB* SelectLibraryFromList( EDA_DRAW_FRAME* frame );
  53. /**
  54. * Get the name component from a library to load.
  55. *
  56. * If no library specified, there will be demand for selection of a library.
  57. * Returns
  58. * 1 if selected component
  59. * 0 if canceled order
  60. * Place the name of the selected component list in BufName
  61. */
  62. int GetNameOfPartToLoad( EDA_DRAW_FRAME* frame, PART_LIB* Lib, wxString& BufName );
  63. #endif /* __PROTOS_H__ */