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.

95 lines
2.7 KiB

  1. /*
  2. * This program source code file is part of KICAD, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2019-2023 Kicad Developers, see AUTHORS.txt for contributors.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 2
  9. * of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, you may find one here:
  18. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  19. * or you may search the http://www.gnu.org website for the version 2 license,
  20. * or you may write to the Free Software Foundation, Inc.,
  21. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  22. */
  23. #ifndef BITMOP2CMP_GUI_H_
  24. #define BITMOP2CMP_GUI_H_
  25. #include <kiway_player.h>
  26. #include <bitmap2cmp_frame.h>
  27. #include <eda_units.h>
  28. #include <potracelib.h>
  29. class BITMAP2CMP_PANEL;
  30. class BITMAP2CMP_FRAME : public KIWAY_PLAYER
  31. {
  32. public:
  33. BITMAP2CMP_FRAME( KIWAY* aKiway, wxWindow* aParent );
  34. ~BITMAP2CMP_FRAME();
  35. // overload KIWAY_PLAYER virtual
  36. bool OpenProjectFiles( const std::vector<wxString>& aFilenames, int aCtl = 0 ) override;
  37. void OnLoadFile();
  38. void OnFileHistory( wxCommandEvent& event );
  39. void OnClearFileHistory( wxCommandEvent& event );
  40. /**
  41. * Generate a schematic library which contains one component:
  42. * the logo
  43. */
  44. void ExportEeschemaFormat();
  45. /**
  46. * Generate a footprint in S expr format
  47. */
  48. void ExportPcbnewFormat();
  49. /**
  50. * Generate a postscript file
  51. */
  52. void ExportPostScriptFormat();
  53. /**
  54. * Generate a file suitable to be copied into a drawing sheet (.kicad_wks) file
  55. */
  56. void ExportDrawingSheetFormat();
  57. void UpdateTitle();
  58. void ShowChangedLanguage() override;
  59. void LoadSettings( APP_SETTINGS_BASE* aCfg ) override;
  60. void SaveSettings( APP_SETTINGS_BASE* aCfg ) override;
  61. wxWindow* GetToolCanvas() const override;
  62. /**
  63. * Event handler for the wxID_EXIT and wxID_CLOSE events.
  64. */
  65. void OnExit( wxCommandEvent& aEvent );
  66. protected:
  67. void doReCreateMenuBar() override;
  68. DECLARE_EVENT_TABLE();
  69. private:
  70. BITMAP2CMP_PANEL* m_panel;
  71. wxStatusBar* m_statusBar;
  72. wxString m_bitmapFileName;
  73. wxString m_convertedFileName;
  74. };
  75. #endif// BITMOP2CMP_GUI_H_