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.

79 lines
2.4 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
  5. * Copyright (C) 1992-2014 KiCad Developers, see AUTHORS.txt for contributors.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version 2
  10. * of the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, you may find one here:
  19. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  20. * or you may search the http://www.gnu.org website for the version 2 license,
  21. * or you may write to the Free Software Foundation, Inc.,
  22. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  23. */
  24. #ifndef _DIALOG_ERC_H_
  25. #define _DIALOG_ERC_H_
  26. #include <wx/htmllbox.h>
  27. #include <vector>
  28. #include <lib_pin.h> // For PINTYPE_COUNT definition
  29. #include <dialog_erc_base.h>
  30. #include <erc_settings.h>
  31. // DIALOG_ERC class declaration
  32. class DIALOG_ERC : public DIALOG_ERC_BASE
  33. {
  34. private:
  35. SCH_EDIT_FRAME* m_parent;
  36. RC_ITEMS_PROVIDER* m_markerProvider;
  37. RC_TREE_MODEL* m_markerTreeModel;
  38. int m_severities;
  39. public:
  40. DIALOG_ERC( SCH_EDIT_FRAME* parent );
  41. ~DIALOG_ERC();
  42. private:
  43. // from DIALOG_ERC_BASE:
  44. void OnCloseErcDialog( wxCloseEvent& event ) override;
  45. void OnRunERCClick( wxCommandEvent& event ) override;
  46. void OnEraseDrcMarkersClick( wxCommandEvent& event ) override;
  47. void OnERCItemSelected( wxDataViewEvent& aEvent ) override;
  48. void OnERCItemDClick( wxDataViewEvent& aEvent ) override;
  49. void OnERCItemRClick( wxDataViewEvent& aEvent ) override;
  50. void OnSeverity( wxCommandEvent& aEvent ) override;
  51. void OnSaveReport( wxCommandEvent& aEvent ) override;
  52. void OnButtonCloseClick( wxCommandEvent& event ) override;
  53. void RedrawDrawPanel();
  54. void TestErc( REPORTER& aReporter );
  55. bool writeReport( const wxString& aFullFileName );
  56. void deleteAllMarkers();
  57. void syncCheckboxes();
  58. void updateDisplayedCounts();
  59. };
  60. #endif
  61. // _DIALOG_ERC_H_