84    ret &= 
fromLegacy<bool>( aCfg, 
"FootprintViewerFrameDiPadFi", 
"footprint_viewer.pad_fill" );
 
   85    ret &= 
fromLegacy<bool>( aCfg, 
"FootprintViewerFrameDiPadNu", 
"footprint_viewer.pad_numbers" );
 
   87            aCfg, 
"FootprintViewerFrameDiModTx", 
"footprint_viewer.footprint_text_fill" );
 
   89    ret &= 
fromLegacy<bool>( aCfg, 
"FootprintViewerFrameAutoZoom",   
"footprint_viewer.auto_zoom" );
 
   90    ret &= 
fromLegacy<double>( aCfg, 
"FootprintViewerFrameZoom",     
"footprint_viewer.zoom" );
 
 
bool migrateWindowConfig(wxConfigBase *aCfg, const std::string &aFrameName, const std::string &aJsonPath)
Migrate legacy window settings into the JSON document.
 
void addParamsForWindow(WINDOW_SETTINGS *aWindow, const std::string &aJsonPath, int aDefaultWidth=0, int aDefaultHeight=0)
Add parameters for the given window object.
 
virtual bool MigrateFromLegacy(wxConfigBase *aCfg) override
Migrates from wxConfig to JSON-based configuration.
 
MAGNETIC_SETTINGS m_FootprintViewerMagneticSettings
 
WINDOW_SETTINGS m_FootprintViewer
 
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
 
bool fromLegacy(wxConfigBase *aConfig, const std::string &aKey, const std::string &aDest)
Translates a legacy wxConfig value to a given JSON pointer value.
 
std::vector< PARAM_BASE * > m_params
The list of parameters (owned by this object)
 
bool m_FootprintViewerAutoZoomOnSelect
true to use automatic zoom on fp selection
 
PCB_VIEWERS_SETTINGS_BASE(const std::string &aFilename, int aSchemaVersion)
 
VIEWERS_DISPLAY_OPTIONS m_ViewersDisplay
 
double m_FootprintViewerZoom
The last zoom level used (0 for auto)
 
const int cvpcbSchemaVersion
! Update the schema version whenever a migration is required
 
a few functions useful in geometry calculations.