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.

139 lines
4.4 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dialog_netlist.h
  3. // Purpose:
  4. // Author: jean-pierre Charras
  5. // Modified by:
  6. // Created: 26/02/2006 17:42:19
  7. // RCS-ID:
  8. // Copyright: License GNU
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 26/02/2006 17:42:19
  12. #ifndef _DIALOG_NETLIST_H_
  13. #define _DIALOG_NETLIST_H_
  14. /*!
  15. * Includes
  16. */
  17. ////@begin includes
  18. #include "wx/valgen.h"
  19. ////@end includes
  20. /*!
  21. * Forward declarations
  22. */
  23. ////@begin forward declarations
  24. ////@end forward declarations
  25. /*!
  26. * Control identifiers
  27. */
  28. ////@begin control identifiers
  29. #define ID_DIALOG 10000
  30. #define SYMBOL_WINEDA_NETLISTFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
  31. #define SYMBOL_WINEDA_NETLISTFRAME_TITLE _("Netlist: ")
  32. #define SYMBOL_WINEDA_NETLISTFRAME_IDNAME ID_DIALOG
  33. #define SYMBOL_WINEDA_NETLISTFRAME_SIZE wxSize(400, 300)
  34. #define SYMBOL_WINEDA_NETLISTFRAME_POSITION wxDefaultPosition
  35. #define ID_RADIOBOX 10005
  36. #define ID_RADIOBOX1 10006
  37. #define ID_RADIOBOX2 10007
  38. #define ID_CHECKBOX 10008
  39. #define ID_OPEN_NELIST 10001
  40. #define ID_READ_NETLIST_FILE 10002
  41. #define ID_TEST_NETLIST 10003
  42. #define ID_COMPILE_RATSNEST 10004
  43. #define ID_TEXTCTRL 10009
  44. ////@end control identifiers
  45. /*!
  46. * Compatibility
  47. */
  48. #ifndef wxCLOSE_BOX
  49. #define wxCLOSE_BOX 0x1000
  50. #endif
  51. /*!
  52. * WinEDA_NetlistFrame class declaration
  53. */
  54. class WinEDA_NetlistFrame: public wxDialog
  55. {
  56. DECLARE_DYNAMIC_CLASS( WinEDA_NetlistFrame )
  57. DECLARE_EVENT_TABLE()
  58. public:
  59. /// Constructors
  60. WinEDA_NetlistFrame( );
  61. WinEDA_NetlistFrame( WinEDA_PcbFrame* parent,wxDC * DC,
  62. wxWindowID id = SYMBOL_WINEDA_NETLISTFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_NETLISTFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_NETLISTFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_NETLISTFRAME_SIZE, long style = SYMBOL_WINEDA_NETLISTFRAME_STYLE );
  63. /// Creation
  64. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_NETLISTFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_NETLISTFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_NETLISTFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_NETLISTFRAME_SIZE, long style = SYMBOL_WINEDA_NETLISTFRAME_STYLE );
  65. /// Creates the controls and sizers
  66. void CreateControls();
  67. ////@begin WinEDA_NetlistFrame event handler declarations
  68. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OPEN_NELIST
  69. void OnOpenNelistClick( wxCommandEvent& event );
  70. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_READ_NETLIST_FILE
  71. void OnReadNetlistFileClick( wxCommandEvent& event );
  72. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_TEST_NETLIST
  73. void OnTestNetlistClick( wxCommandEvent& event );
  74. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_COMPILE_RATSNEST
  75. void OnCompileRatsnestClick( wxCommandEvent& event );
  76. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
  77. void OnCloseClick( wxCommandEvent& event );
  78. ////@end WinEDA_NetlistFrame event handler declarations
  79. ////@begin WinEDA_NetlistFrame member function declarations
  80. /// Retrieves bitmap resources
  81. wxBitmap GetBitmapResource( const wxString& name );
  82. /// Retrieves icon resources
  83. wxIcon GetIconResource( const wxString& name );
  84. ////@end WinEDA_NetlistFrame member function declarations
  85. /// Should we show tooltips?
  86. static bool ShowToolTips();
  87. void ReadPcbNetlist(wxCommandEvent& event);
  88. void Set_NetlisteName(wxCommandEvent& event);
  89. bool OpenNetlistFile(wxCommandEvent& event);
  90. int BuildListeNetModules(wxCommandEvent& event, wxArrayString & BufName);
  91. void ModulesControle(wxCommandEvent& event);
  92. int ReadListeModules(const wxString * RefCmp, long TimeStamp, wxString & NameModule);
  93. int SetPadNetName( char * Line, MODULE * Module);
  94. MODULE * ReadNetModule( char * Text,
  95. int * UseFichCmp, int TstOnly);
  96. void AddToList(const wxString & NameLibCmp, const wxString & NameCmp,int TimeStamp );
  97. void LoadListeModules(wxDC *DC);
  98. ////@begin WinEDA_NetlistFrame member variables
  99. wxRadioBox* m_Select_By_Timestamp;
  100. wxRadioBox* m_DeleteBadTracks;
  101. wxRadioBox* m_ChangeExistantModuleCtrl;
  102. wxCheckBox* m_DisplayWarningCtrl;
  103. wxTextCtrl* m_MessageWindow;
  104. ////@end WinEDA_NetlistFrame member variables
  105. WinEDA_PcbFrame * m_Parent;
  106. wxDC * m_DC;
  107. };
  108. #endif
  109. // _DIALOG_NETLIST_H_