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.

73 lines
3.1 KiB

  1. /**
  2. * @file dialog_plot.h
  3. */
  4. /*
  5. * This program source code file is part of KiCad, a free EDA CAD application.
  6. *
  7. * Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version 2
  12. * of the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, you may find one here:
  21. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  22. * or you may search the http://www.gnu.org website for the version 2 license,
  23. * or you may write to the Free Software Foundation, Inc.,
  24. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  25. */
  26. #include <fctsys.h>
  27. #include <class_board.h>
  28. #include <dialog_plot_base.h>
  29. #include <pcb_plot_params.h>
  30. /**
  31. * Class DIALOG_PLOT
  32. *
  33. */
  34. class DIALOG_PLOT : public DIALOG_PLOT_BASE
  35. {
  36. public:
  37. DIALOG_PLOT( PCB_EDIT_FRAME* parent );
  38. private:
  39. PCB_EDIT_FRAME* m_parent;
  40. BOARD* m_board;
  41. BOARD_DESIGN_SETTINGS m_brdSettings;
  42. wxConfig* m_config;
  43. std::vector<LAYER_NUM> m_layerList; // List to hold CheckListBox layer numbers
  44. double m_XScaleAdjust; // X scale factor adjust to compensate
  45. // plotter X scaling error
  46. double m_YScaleAdjust; // X scale factor adjust to compensate
  47. // plotter Y scaling error
  48. int m_PSWidthAdjust; // Global width correction for exact line width
  49. // in postscript output.
  50. // this is a correction factor for tracks width
  51. // when plotted
  52. int m_widthAdjustMinValue; // Global track width limits
  53. int m_widthAdjustMaxValue; // tracks width will be "clipped" whenever the
  54. // m_PSWidthAdjust to these limits.
  55. PCB_PLOT_PARAMS m_plotOpts;
  56. void Init_Dialog();
  57. void Plot( wxCommandEvent& event );
  58. void OnQuit( wxCommandEvent& event );
  59. void OnClose( wxCloseEvent& event );
  60. void OnOutputDirectoryBrowseClicked( wxCommandEvent& event );
  61. void OnRightClick( wxMouseEvent& event );
  62. void OnPopUpLayers( wxCommandEvent& event );
  63. void SetPlotFormat( wxCommandEvent& event );
  64. void OnSetScaleOpt( wxCommandEvent& event );
  65. void applyPlotSettings();
  66. void CreateDrillFile( wxCommandEvent& event );
  67. PlotFormat GetPlotFormat();
  68. };