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.

81 lines
2.8 KiB

19 years ago
19 years ago
16 years ago
19 years ago
19 years ago
19 years ago
19 years ago
  1. /**
  2. * @file pcbstruct.h
  3. * @brief Classes and definitions used in Pcbnew.
  4. */
  5. #ifndef PCBSTRUCT_H_
  6. #define PCBSTRUCT_H_
  7. /// Values for m_DisplayViaMode member:
  8. enum VIA_DISPLAY_MODE_T {
  9. VIA_HOLE_NOT_SHOW = 0,
  10. VIA_SPECIAL_HOLE_SHOW,
  11. ALL_VIA_HOLE_SHOW,
  12. OPT_VIA_HOLE_END
  13. };
  14. /**
  15. * Enum TRACE_CLEARANCE_DISPLAY_MODE_T
  16. * is the set of values for DISPLAY_OPTIONS.ShowTrackClearanceMode parameter option.
  17. * This parameter controls how to show tracks and vias clearance area.
  18. */
  19. enum TRACE_CLEARANCE_DISPLAY_MODE_T {
  20. DO_NOT_SHOW_CLEARANCE = 0, // Do not show clearance areas
  21. SHOW_CLEARANCE_NEW_TRACKS, /* Show clearance areas only for new track
  22. * during track creation. */
  23. SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS, /* Show clearance areas only for new track
  24. * during track creation, and shows a via
  25. * clearance area at end of current new
  26. * segment (guide to place a new via
  27. */
  28. SHOW_CLEARANCE_NEW_AND_EDITED_TRACKS_AND_VIA_AREAS,
  29. /* Show clearance for new, moving and
  30. * dragging tracks and vias
  31. */
  32. SHOW_CLEARANCE_ALWAYS /* Show Always clearance areas
  33. * for track and vias
  34. */
  35. };
  36. /**
  37. * Class DISPLAY_OPTIONS
  38. * handles display options like enable/disable some optional drawings.
  39. */
  40. class DISPLAY_OPTIONS
  41. {
  42. public:
  43. bool DisplayPadFill;
  44. bool DisplayViaFill;
  45. bool DisplayPadNum;
  46. bool DisplayPadIsol;
  47. int DisplayModEdge;
  48. int DisplayModText;
  49. bool DisplayPcbTrackFill; /* false = sketch , true = filled */
  50. /// How trace clearances are displayed. @see TRACE_CLEARANCE_DISPLAY_MODE_T.
  51. TRACE_CLEARANCE_DISPLAY_MODE_T ShowTrackClearanceMode;
  52. VIA_DISPLAY_MODE_T m_DisplayViaMode; /* 0 do not show via hole,
  53. * 1 show via hole for non default value
  54. * 2 show all via hole */
  55. bool DisplayPolarCood;
  56. int DisplayZonesMode;
  57. int DisplayNetNamesMode; /* 0 do not show netnames,
  58. * 1 show netnames on pads
  59. * 2 show netnames on tracks
  60. * 3 show netnames on tracks and pads
  61. */
  62. int DisplayDrawItems;
  63. bool ContrastModeDisplay;
  64. public:
  65. DISPLAY_OPTIONS();
  66. };
  67. #endif // PCBSTRUCT_H_