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.

59 lines
2.0 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2022 Mark Roszko <mark.roszko@gmail.com>
  5. * Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
  6. *
  7. * This program is free software: you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation, either version 3 of the License, or (at your
  10. * option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #ifndef PCBNEW_JOBS_HANDLER_H
  21. #define PCBNEW_JOBS_HANDLER_H
  22. #include <jobs/job_dispatcher.h>
  23. #include <pcb_plot_params.h>
  24. class KIWAY;
  25. class BOARD;
  26. class DS_PROXY_VIEW_ITEM;
  27. class FOOTPRINT;
  28. class JOB_EXPORT_PCB_GERBER;
  29. class JOB_FP_EXPORT_SVG;
  30. class PCBNEW_JOBS_HANDLER : public JOB_DISPATCHER
  31. {
  32. public:
  33. PCBNEW_JOBS_HANDLER( KIWAY* aKiway );
  34. int JobExportStep( JOB* aJob );
  35. int JobExportSvg( JOB* aJob );
  36. int JobExportDxf( JOB* aJob );
  37. int JobExportPdf( JOB* aJob );
  38. int JobExportGerber( JOB* aJob );
  39. int JobExportGerbers( JOB* aJob );
  40. int JobExportDrill( JOB* aJob );
  41. int JobExportPos( JOB* aJob );
  42. int JobExportFpUpgrade( JOB* aJob );
  43. int JobExportFpSvg( JOB* aJob );
  44. int JobExportDrc( JOB* aJob );
  45. int JobExportIpc2581( JOB* aJob );
  46. private:
  47. void populateGerberPlotOptionsFromJob( PCB_PLOT_PARAMS& aPlotOpts,
  48. JOB_EXPORT_PCB_GERBER* aJob );
  49. int doFpExportSvg( JOB_FP_EXPORT_SVG* aSvgJob, const FOOTPRINT* aFootprint );
  50. void loadOverrideDrawingSheet( BOARD* brd, const wxString& aSheetPath );
  51. DS_PROXY_VIEW_ITEM* getDrawingSheetProxyView( BOARD* aBrd );
  52. };
  53. #endif