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.

63 lines
2.7 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2012-2016 Jean-Pierre Charras, jp.charras at wanadoo.fr
  5. * Copyright (C) 1992-2020 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. #pragma once
  25. // List of predefined zooms used in zoom in/out from hotkeys, context menu and toolbar
  26. // Zooming using mouse wheel can have different limits
  27. #define ZOOM_LIST_GERBVIEW 0.022, 0.035, 0.05, 0.08, 0.13, 0.22, 0.35, 0.6, 1.0,\
  28. 2.2, 3.5, 5.0, 8.0, 13.0, 22.0, 35.0, 50.0, 80.0, 130.0, 220.0
  29. #define ZOOM_LIST_PCBNEW 0.13, 0.22, 0.35, 0.6, 1.0, 1.5, 2.2, 3.5, 5.0, 8.0, 13.0,\
  30. 20.0, 35.0, 50.0, 80.0, 130.0, 220.0, 300.0
  31. #define ZOOM_LIST_PL_EDITOR 0.022, 0.035, 0.05, 0.08, 0.13, 0.22, 0.35, 0.6, 1.0, 2.2,\
  32. 3.5, 5.0, 8.0, 13.0, 22.0, 35.0, 50.0, 80.0, 130.0, 220.0
  33. #define ZOOM_LIST_EESCHEMA 0.05, 0.07, 0.1, 0.15, 0.2, 0.3, 0.5, 0.7, 1.0, 1.5, 2.0,\
  34. 3.0, 4.5, 6.5, 10.0, 15.0, 20.0, 30.0, 45.0, 65.0, 100.0
  35. // Zoom scale limits for zoom (especially mouse wheel)
  36. // the limits can differ from zoom list because the zoom list cannot be as long as
  37. // we want because the zoom list is displayed in menus.
  38. // But zoom by mouse wheel is limited mainly by the usability
  39. // Scale limits for zoom for Eeschema
  40. #define ZOOM_MAX_LIMIT_EESCHEMA 100
  41. #define ZOOM_MIN_LIMIT_EESCHEMA 0.01
  42. #define ZOOM_MAX_LIMIT_EESCHEMA_PREVIEW 20
  43. #define ZOOM_MIN_LIMIT_EESCHEMA_PREVIEW 0.5
  44. // Scale limits for zoom for pl_editor
  45. #define ZOOM_MAX_LIMIT_PLEDITOR 20
  46. #define ZOOM_MIN_LIMIT_PLEDITOR 0.05
  47. // Scale limits for zoom for gerbview
  48. #define ZOOM_MAX_LIMIT_GERBVIEW 5000
  49. #define ZOOM_MIN_LIMIT_GERBVIEW 0.02
  50. // Scale limits for zoom (especially mouse wheel) for Pcbnew
  51. #define ZOOM_MAX_LIMIT_PCBNEW 50000
  52. #define ZOOM_MIN_LIMIT_PCBNEW 0.1