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.

47 lines
2.1 KiB

  1. /****************************************************************/
  2. /* class ZONE_SETTING used to handle zones parameters in dialogs */
  3. /****************************************************************/
  4. #ifndef ZONE_SETTING_H
  5. #define ZONE_SETTING_H
  6. /*************************************************/
  7. /* Class ZONE_SETTING to handle zones parameters */
  8. /*************************************************/
  9. class ZONE_SETTING
  10. {
  11. public:
  12. int m_FillMode; // Mode for filling zone : 1 use segments, 0 use polygons
  13. int m_ZoneClearance; // Clearance value
  14. int m_ZoneMinThickness; // Min thickness value in filled areas
  15. int m_NetcodeSelection; // Net code selection for the current zone
  16. int m_CurrentZone_Layer; // Layer used to create the current zone
  17. int m_Zone_HatchingStyle; // Option to show the zone area (outlines only, short hatches or full hatches
  18. int m_ArcToSegmentsCount; /* Option to select number of segments to approximate a circle
  19. * 16 or 32 segments */
  20. long m_ThermalReliefGapValue; // tickness of the gap in thermal reliefs
  21. long m_ThermalReliefCopperBridgeValue; // tickness of the copper bridge in thermal reliefs
  22. int m_Zone_Pad_Options; // How pads are covered by copper in zone
  23. public:
  24. ZONE_SETTING( void );
  25. /** function ImportSetting
  26. * copy settings from a given zone
  27. * @param aSource: the given zone
  28. */
  29. void ImportSetting( const ZONE_CONTAINER& aSource );
  30. /** function ExportSetting
  31. * copy settings to a given zone
  32. * @param aTarget: the given zone
  33. * @param aFullExport: if false: some parameters are NOT exported
  34. * because they must not be exported when export settings from a zone to others zones
  35. * Currently:
  36. * m_NetcodeSelection
  37. */
  38. void ExportSetting( ZONE_CONTAINER& aTarget, bool aFullExport = true);
  39. };
  40. #endif // ifndef ZONE_SETTING_H