26 #include <wx/config.h> 34 m_FootprintViewerAutoZoom( false ),
35 m_FootprintViewerZoom( 1.0 ),
36 m_FilterFootprint( 0 ),
37 m_LibrariesWidth( 0 ),
38 m_FootprintsWidth( 0 )
78 ret &= fromLegacy<int>( aCfg,
"FilterFootprint",
"filter_footprint" );
82 ret &= fromLegacy<bool>( aCfg,
"FootprintViewerFrameDiPadFi",
"footprint_viewer.pad_fill" );
83 ret &= fromLegacy<bool>( aCfg,
"FootprintViewerFrameDiPadNu",
"footprint_viewer.pad_numbers" );
84 ret &= fromLegacy<bool>(
85 aCfg,
"FootprintViewerFrameDiModTx",
"footprint_viewer.footprint_text_fill" );
87 ret &= fromLegacy<bool>( aCfg,
"FootprintViewerFrameAutoZoom",
"footprint_viewer.auto_zoom" );
88 ret &= fromLegacy<double>( aCfg,
"FootprintViewerFrameZoom",
"footprint_viewer.zoom" );
void addParamsForWindow(WINDOW_SETTINGS *aWindow, const std::string &aJsonPath)
Adds parameters for the given window object.
std::vector< PARAM_BASE * > m_params
The list of parameters (owned by this object)
virtual bool MigrateFromLegacy(wxConfigBase *aCfg) override
Migrates from wxConfig to JSON-based configuration.
double m_FootprintViewerZoom
MAGNETIC_SETTINGS m_FootprintViewerMagneticSettings
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
bool m_FootprintViewerAutoZoom
WINDOW_SETTINGS m_FootprintViewer
const int cvpcbSchemaVersion
! Update the schema version whenever a migration is required
bool m_DisplayGraphicsFill
PCB_DISPLAY_OPTIONS m_FootprintViewerDisplayOptions
bool migrateWindowConfig(wxConfigBase *aCfg, const std::string &aFrameName, const std::string &aJsonPath)
Migrates legacy window settings into the JSON document.
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.