34 m_FootprintViewerZoom( 1.0 ),
35 m_FootprintViewerAutoZoomOnSelect( true ),
37 m_LibrariesWidth( 0 ),
38 m_FootprintsWidth( 0 )
77 ret &= fromLegacy<int>( aCfg,
"FilterFootprint",
"filter_footprint" );
81 ret &= fromLegacy<bool>( aCfg,
"FootprintViewerFrameDiPadFi",
"footprint_viewer.pad_fill" );
82 ret &= fromLegacy<bool>( aCfg,
"FootprintViewerFrameDiPadNu",
"footprint_viewer.pad_numbers" );
83 ret &= fromLegacy<bool>(
84 aCfg,
"FootprintViewerFrameDiModTx",
"footprint_viewer.footprint_text_fill" );
86 ret &= fromLegacy<bool>( aCfg,
"FootprintViewerFrameAutoZoom",
"footprint_viewer.auto_zoom" );
87 ret &= fromLegacy<double>( aCfg,
"FootprintViewerFrameZoom",
"footprint_viewer.zoom" );
bool migrateWindowConfig(wxConfigBase *aCfg, const std::string &aFrameName, const std::string &aJsonPath)
Migrates legacy window settings into the JSON document.
virtual bool MigrateFromLegacy(wxConfigBase *aCfg) override
Migrates from wxConfig to JSON-based configuration.
void addParamsForWindow(WINDOW_SETTINGS *aWindow, const std::string &aJsonPath)
Adds parameters for the given window object.
MAGNETIC_SETTINGS m_FootprintViewerMagneticSettings
WINDOW_SETTINGS m_FootprintViewer
double m_FootprintViewerZoom
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
bool m_FootprintViewerAutoZoomOnSelect
std::vector< PARAM_BASE * > m_params
The list of parameters (owned by this object)
VIEWERS_DISPLAY_OPTIONS m_ViewersDisplay
const int cvpcbSchemaVersion
! Update the schema version whenever a migration is required
bool m_DisplayGraphicsFill