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.

151 lines
4.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dialog_drc.h
  3. // Purpose:
  4. // Author: jean-pierre Charras
  5. // Modified by:
  6. // Created: 27/02/2006 20:42:00
  7. // RCS-ID:
  8. // Copyright: License GNU
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 27/02/2006 20:42:00
  12. #ifndef _DIALOG_DRC_H_
  13. #define _DIALOG_DRC_H_
  14. #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
  15. #pragma interface "dialog_drc.h"
  16. #endif
  17. /*!
  18. * Includes
  19. */
  20. ////@begin includes
  21. #include "wx/valgen.h"
  22. ////@end includes
  23. /*!
  24. * Forward declarations
  25. */
  26. ////@begin forward declarations
  27. class wxBoxSizer;
  28. ////@end forward declarations
  29. /*!
  30. * Control identifiers
  31. */
  32. ////@begin control identifiers
  33. #define ID_DIALOG 10000
  34. #define ID_TEXTCTRL1 10002
  35. #define ID_CHECKBOX_PAD2PAD 10009
  36. #define ID_CHECKBOX 10008
  37. #define ID_CHECKBOX_TEST_ZONES 10007
  38. #define ID_CHECKBOX_CREATE_FILE 10012
  39. #define ID_DRC_RUN 10003
  40. #define ID_STOP_CONTROL_DRC 10004
  41. #define ID_ERASE_DRC_MARKERS 10005
  42. #define ID_LIST_UNCONNECTED_PADS 10006
  43. #define ID_BUTTON_BROWSE_RPT_FILE 10011
  44. #define ID_TEXTCTRL_GET_RPT_FILENAME 10010
  45. #define ID_TEXTCTRL 10001
  46. // #define SYMBOL_WINEDA_DRCFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
  47. #define SYMBOL_WINEDA_DRCFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX
  48. #define SYMBOL_WINEDA_DRCFRAME_TITLE _("DRC Control")
  49. #define SYMBOL_WINEDA_DRCFRAME_IDNAME ID_DIALOG
  50. #define SYMBOL_WINEDA_DRCFRAME_SIZE wxSize(400, 300)
  51. #define SYMBOL_WINEDA_DRCFRAME_POSITION wxDefaultPosition
  52. ////@end control identifiers
  53. /*!
  54. * Compatibility
  55. */
  56. #ifndef wxCLOSE_BOX
  57. #define wxCLOSE_BOX 0x1000
  58. #endif
  59. /*!
  60. * WinEDA_DrcFrame class declaration
  61. */
  62. class WinEDA_DrcFrame: public wxDialog
  63. {
  64. DECLARE_DYNAMIC_CLASS( WinEDA_DrcFrame )
  65. DECLARE_EVENT_TABLE()
  66. public:
  67. /// Constructors
  68. WinEDA_DrcFrame( );
  69. WinEDA_DrcFrame( WinEDA_PcbFrame* parent, wxDC * panelDC,
  70. wxWindowID id = SYMBOL_WINEDA_DRCFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_DRCFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_DRCFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_DRCFRAME_SIZE, long style = SYMBOL_WINEDA_DRCFRAME_STYLE );
  71. /// Creation
  72. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_DRCFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_DRCFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_DRCFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_DRCFRAME_SIZE, long style = SYMBOL_WINEDA_DRCFRAME_STYLE );
  73. /// Creates the controls and sizers
  74. void CreateControls();
  75. ////@begin WinEDA_DrcFrame event handler declarations
  76. /// wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
  77. void OnCloseWindow( wxCloseEvent& event );
  78. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DRC_RUN
  79. void OnDrcRunClick( wxCommandEvent& event );
  80. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_STOP_CONTROL_DRC
  81. void OnStopControlDrcClick( wxCommandEvent& event );
  82. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ERASE_DRC_MARKERS
  83. void OnEraseDrcMarkersClick( wxCommandEvent& event );
  84. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_LIST_UNCONNECTED_PADS
  85. void OnListUnconnectedPadsClick( wxCommandEvent& event );
  86. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
  87. void OnCloseClick( wxCommandEvent& event );
  88. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_BROWSE_RPT_FILE
  89. void OnButtonBrowseRptFileClick( wxCommandEvent& event );
  90. ////@end WinEDA_DrcFrame event handler declarations
  91. ////@begin WinEDA_DrcFrame member function declarations
  92. /// Retrieves bitmap resources
  93. wxBitmap GetBitmapResource( const wxString& name );
  94. /// Retrieves icon resources
  95. wxIcon GetIconResource( const wxString& name );
  96. ////@end WinEDA_DrcFrame member function declarations
  97. /// Should we show tooltips?
  98. static bool ShowToolTips();
  99. void TestDrc(wxCommandEvent & event);
  100. void DelDRCMarkers(wxCommandEvent & event);
  101. void ListUnconnectedPads(wxCommandEvent & event);
  102. ////@begin WinEDA_DrcFrame member variables
  103. wxBoxSizer* m_MainSizer;
  104. wxBoxSizer* m_CommandSizer;
  105. wxStaticText* m_ClearenceTitle;
  106. wxTextCtrl* m_SetClearance;
  107. wxCheckBox* m_Pad2PadTestCtrl;
  108. wxCheckBox* m_UnconnectedTestCtrl;
  109. wxCheckBox* m_ZonesTestCtrl;
  110. wxCheckBox* m_CreateRptCtrl;
  111. wxTextCtrl* m_RptFilenameCtrl;
  112. wxTextCtrl* m_logWindow;
  113. ////@end WinEDA_DrcFrame member variables
  114. WinEDA_PcbFrame * m_Parent;
  115. wxDC * m_DC;
  116. int m_UnconnectedCount;
  117. };
  118. #endif
  119. // _DIALOG_DRC_H_