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.

37 lines
1.2 KiB

  1. /*
  2. * Copyright (C) 2018 CERN
  3. * Author: Maciej Suminski <maciej.suminski@cern.ch>
  4. *
  5. * This program is free software: you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation, either version 3 of the License, or (at your
  8. * option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #include <pcbplot.h>
  19. #include <printout.h>
  20. #include <settings/app_settings.h>
  21. void PRINTOUT_SETTINGS::Save( APP_SETTINGS_BASE* aConfig )
  22. {
  23. aConfig->m_Printing.monochrome = m_blackWhite;
  24. aConfig->m_Printing.title_block = m_titleBlock;
  25. aConfig->m_Printing.scale = m_scale;
  26. }
  27. void PRINTOUT_SETTINGS::Load( APP_SETTINGS_BASE* aConfig )
  28. {
  29. m_blackWhite = aConfig->m_Printing.monochrome;
  30. m_titleBlock = aConfig->m_Printing.title_block;
  31. m_scale = aConfig->m_Printing.scale;
  32. }