2020-01-13 01:44:19 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2020 Jon Evans <jon@craftyjon.com>
|
|
|
|
* Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _JSON_SETTINGS_H
|
|
|
|
#define _JSON_SETTINGS_H
|
|
|
|
|
2021-03-20 15:35:37 +00:00
|
|
|
#include <core/wx_stl_compat.h>
|
|
|
|
|
2020-01-13 01:44:19 +00:00
|
|
|
#include <utility>
|
|
|
|
#include <wx/string.h>
|
|
|
|
|
2022-08-25 22:50:47 +00:00
|
|
|
#include <functional>
|
|
|
|
#include <optional>
|
2024-03-14 02:49:01 +00:00
|
|
|
#include <settings/json_settings_internals.h>
|
2024-01-14 04:14:02 +00:00
|
|
|
#include <json_conversions.h>
|
2024-03-14 02:49:01 +00:00
|
|
|
|
|
|
|
#include <kicommon.h>
|
2020-03-07 21:06:33 +00:00
|
|
|
|
2020-01-13 01:44:19 +00:00
|
|
|
class wxConfigBase;
|
|
|
|
class NESTED_SETTINGS;
|
|
|
|
class PARAM_BASE;
|
2020-05-06 01:16:05 +00:00
|
|
|
class SETTINGS_MANAGER;
|
|
|
|
|
2024-03-14 02:49:01 +00:00
|
|
|
class wxAuiPaneInfo;
|
|
|
|
struct BOM_FIELD;
|
|
|
|
struct BOM_PRESET;
|
|
|
|
struct BOM_FMT_PRESET;
|
|
|
|
struct GRID;
|
|
|
|
|
|
|
|
namespace KIGFX
|
|
|
|
{
|
|
|
|
class COLOR4D;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define traceSettings wxT( "KICAD_SETTINGS" )
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
enum class SETTINGS_LOC {
|
|
|
|
USER, ///< The main config directory (e.g. ~/.config/kicad/)
|
|
|
|
PROJECT, ///< The settings directory inside a project folder
|
|
|
|
COLORS, ///< The color scheme directory (e.g. ~/.config/kicad/colors/)
|
|
|
|
NESTED, ///< Not stored in a file, but inside another JSON_SETTINGS
|
2020-05-25 17:06:53 +00:00
|
|
|
NONE, ///< No directory prepended, full path in filename (used for PROJECT_FILE)
|
2020-01-13 01:44:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-06-04 03:52:50 +00:00
|
|
|
/// pimpl to allow hiding json.hpp
|
|
|
|
class JSON_SETTINGS_INTERNALS;
|
|
|
|
|
2024-03-14 02:49:01 +00:00
|
|
|
class KICOMMON_API JSON_SETTINGS
|
2020-01-13 01:44:19 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-06-04 03:52:50 +00:00
|
|
|
friend class NESTED_SETTINGS;
|
|
|
|
|
2020-08-02 09:23:21 +00:00
|
|
|
JSON_SETTINGS( const wxString& aFilename, SETTINGS_LOC aLocation, int aSchemaVersion ) :
|
2021-08-02 11:52:58 +00:00
|
|
|
JSON_SETTINGS( aFilename, aLocation, aSchemaVersion, true, true, true )
|
|
|
|
{}
|
2020-01-13 01:44:19 +00:00
|
|
|
|
2020-08-02 09:23:21 +00:00
|
|
|
JSON_SETTINGS( const wxString& aFilename, SETTINGS_LOC aLocation, int aSchemaVersion,
|
2020-05-30 16:56:16 +00:00
|
|
|
bool aCreateIfMissing, bool aCreateIfDefault, bool aWriteFile );
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
virtual ~JSON_SETTINGS();
|
|
|
|
|
2020-08-02 09:23:21 +00:00
|
|
|
wxString GetFilename() const { return m_filename; }
|
2020-01-13 01:44:19 +00:00
|
|
|
|
2020-05-31 21:42:04 +00:00
|
|
|
wxString GetFullFilename() const;
|
|
|
|
|
2020-10-06 02:13:06 +00:00
|
|
|
void SetFilename( const wxString& aFilename ) { m_filename = aFilename; }
|
|
|
|
|
2021-11-10 03:11:59 +00:00
|
|
|
void SetLocation( SETTINGS_LOC aLocation ) { m_location = aLocation; }
|
2020-01-13 01:44:19 +00:00
|
|
|
SETTINGS_LOC GetLocation() const { return m_location; }
|
|
|
|
|
2020-08-02 09:23:21 +00:00
|
|
|
void SetLegacyFilename( const wxString& aFilename ) { m_legacy_filename = aFilename; }
|
2020-01-13 01:44:19 +00:00
|
|
|
|
2020-10-15 01:57:36 +00:00
|
|
|
bool IsReadOnly() const { return !m_writeFile; }
|
|
|
|
void SetReadOnly( bool aReadOnly ) { m_writeFile = !aReadOnly; }
|
|
|
|
|
2021-06-04 03:52:50 +00:00
|
|
|
/**
|
|
|
|
* Wrappers for the underlying JSON API so that most consumers don't need json.hpp
|
|
|
|
* All of these functions take a string that is passed to PointerFromString internally.
|
|
|
|
*/
|
|
|
|
|
|
|
|
nlohmann::json& At( const std::string& aPath );
|
|
|
|
bool Contains( const std::string& aPath ) const;
|
|
|
|
|
|
|
|
JSON_SETTINGS_INTERNALS* Internals();
|
|
|
|
|
2020-01-13 01:44:19 +00:00
|
|
|
/**
|
|
|
|
* Updates the parameters of this object based on the current JSON document contents
|
|
|
|
*/
|
|
|
|
virtual void Load();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Stores the current parameters into the JSON document represented by this object
|
|
|
|
* Note: this doesn't do any writing to disk; that's handled by SETTINGS_MANAGER
|
2020-05-30 16:56:16 +00:00
|
|
|
* @return true if any part of the JSON document was updated
|
2020-01-13 01:44:19 +00:00
|
|
|
*/
|
2020-05-30 16:56:16 +00:00
|
|
|
virtual bool Store();
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Loads the backing file from disk and then calls Load()
|
|
|
|
* @param aDirectory is the path to the file
|
2020-05-25 17:06:53 +00:00
|
|
|
* @return true if the file was found on disk and loaded or migrated
|
2020-01-13 01:44:19 +00:00
|
|
|
*/
|
2020-08-02 09:23:21 +00:00
|
|
|
virtual bool LoadFromFile( const wxString& aDirectory = "" );
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Calls Store() and then writes the contents of the JSON document to a file
|
|
|
|
* @param aDirectory is the directory to save to, including trailing separator
|
2024-01-31 12:18:01 +00:00
|
|
|
* @return true if the file was saved
|
2020-01-13 01:44:19 +00:00
|
|
|
*/
|
2020-08-02 09:23:21 +00:00
|
|
|
virtual bool SaveToFile( const wxString& aDirectory = "", bool aForce = false );
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Resets all parameters to default values. Does NOT write to file or update underlying JSON.
|
|
|
|
*/
|
|
|
|
void ResetToDefaults();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Fetches a JSON object that is a subset of this JSON_SETTINGS object, using a path of the
|
|
|
|
* form "key1.key2.key3" to refer to nested objects.
|
|
|
|
* @param aPath is a string containing one or more keys separated by '.'
|
|
|
|
* @return a JSON object from within this one
|
|
|
|
*/
|
2022-08-25 22:50:47 +00:00
|
|
|
std::optional<nlohmann::json> GetJson( const std::string& aPath ) const;
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Fetches a value from within the JSON document.
|
2020-03-07 21:06:33 +00:00
|
|
|
* Will return an empty optional if the value is not found or a mismatching type.
|
2020-01-13 01:44:19 +00:00
|
|
|
* @tparam ValueType is the type to cast to
|
|
|
|
* @param aPath is the path within the document to retrieve
|
|
|
|
* @return a value from within this document
|
|
|
|
*/
|
|
|
|
template<typename ValueType>
|
2022-08-25 22:50:47 +00:00
|
|
|
std::optional<ValueType> Get( const std::string& aPath ) const;
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Stores a value into the JSON document
|
|
|
|
* Will throw an exception if ValueType isn't something that the library can handle
|
|
|
|
* @tparam ValueType is the type to store
|
|
|
|
* @param aPath is a path to store in the form "key1.key2.key3"
|
|
|
|
* @param aVal is the value to store
|
|
|
|
*/
|
|
|
|
template<typename ValueType>
|
2021-06-04 03:52:50 +00:00
|
|
|
void Set( const std::string& aPath, ValueType aVal );
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Migrates the schema of this settings from the version in the file to the latest version
|
|
|
|
*
|
|
|
|
* Schema migration doesn't need to be used every time a setting is added! This is intended
|
|
|
|
* to be more of an "escape hatch" in the event that we decide to move settings around or make
|
|
|
|
* other changes to a settings file format that can't simply be handled by loading a new default
|
|
|
|
*
|
|
|
|
* @return true if migration was successful
|
|
|
|
*/
|
2020-10-06 03:21:57 +00:00
|
|
|
bool Migrate();
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Migrates from wxConfig to JSON-based configuration. Should be implemented by any subclasses
|
|
|
|
* of JSON_SETTINGS that map to a legacy (wxConfig-based) config file.
|
|
|
|
* @param aLegacyConfig is a wxConfigBase holding a loaded configuration to migrate
|
|
|
|
* @return true if migration was successful
|
|
|
|
*/
|
|
|
|
virtual bool MigrateFromLegacy( wxConfigBase* aLegacyConfig );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Transfers ownership of a given NESTED_SETTINGS to this object.
|
|
|
|
* Can be used to construct a NESTED_SETTINGS without the parent object needing to know about
|
|
|
|
* the implementation of the nested object;
|
|
|
|
*
|
|
|
|
* @param aSettings is the settings object to take ownership of
|
|
|
|
* @param aTarget is a pointer to update to the passed in settings
|
|
|
|
*/
|
|
|
|
void AddNestedSettings( NESTED_SETTINGS* aSettings );
|
2020-02-28 03:53:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Saves and frees a nested settings object, if it exists within this one
|
|
|
|
* @param aSettings is a pointer to a NESTED_SETTINGS that has already been added to this one
|
|
|
|
*/
|
|
|
|
void ReleaseNestedSettings( NESTED_SETTINGS* aSettings );
|
2020-01-13 01:44:19 +00:00
|
|
|
|
2020-05-06 01:16:05 +00:00
|
|
|
void SetManager( SETTINGS_MANAGER* aManager )
|
|
|
|
{
|
|
|
|
m_manager = aManager;
|
|
|
|
}
|
|
|
|
|
2020-08-24 02:01:14 +00:00
|
|
|
/**
|
|
|
|
* Sets the given string if the given key/path is present
|
|
|
|
* @param aObj is the source object
|
|
|
|
* @param aTarget is the storage destination
|
|
|
|
* @return True if set, false if not
|
|
|
|
*/
|
2020-08-24 02:10:05 +00:00
|
|
|
static bool SetIfPresent( const nlohmann::json& aObj, const std::string& aPath,
|
|
|
|
wxString& aTarget );
|
2020-08-24 02:01:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the given bool if the given key/path is present
|
|
|
|
* @param aObj is the source object
|
|
|
|
* @param aTarget is the storage destination
|
|
|
|
* @return True if set, false if not
|
|
|
|
*/
|
|
|
|
static bool SetIfPresent( const nlohmann::json& aObj, const std::string& aPath, bool& aTarget );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the given int if the given key/path is present
|
|
|
|
* @param aObj is the source object
|
|
|
|
* @param aTarget is the storage destination
|
|
|
|
* @return True if set, false if not
|
|
|
|
*/
|
|
|
|
static bool SetIfPresent( const nlohmann::json& aObj, const std::string& aPath, int& aTarget );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the given unsigned int if the given key/path is present
|
|
|
|
* @param aObj is the source object
|
|
|
|
* @param aTarget is the storage destination
|
|
|
|
* @return True if set, false if not
|
|
|
|
*/
|
2023-08-06 19:30:53 +00:00
|
|
|
static bool SetIfPresent( const nlohmann::json& aObj, const std::string& aPath ,
|
2020-08-24 02:10:05 +00:00
|
|
|
unsigned int& aTarget );
|
2022-10-23 22:21:10 +00:00
|
|
|
|
2023-08-06 19:30:53 +00:00
|
|
|
const std::string FormatAsString();
|
2022-10-23 22:21:10 +00:00
|
|
|
|
|
|
|
bool LoadFromRawFile( const wxString& aPath );
|
|
|
|
|
2020-01-13 01:44:19 +00:00
|
|
|
protected:
|
|
|
|
|
2020-10-06 03:21:57 +00:00
|
|
|
/**
|
|
|
|
* Registers a migration from one schema version to another. If the schema version in the file
|
|
|
|
* loaded from disk is less than the schema version of the JSON_SETTINGS class, migration
|
|
|
|
* functions will be called one after the other until the data is up-to-date.
|
|
|
|
* @param aOldSchemaVersion is the starting schema version for this migration
|
|
|
|
* @param aNewSchemaVersion is the ending schema version for this migration
|
|
|
|
* @param aMigrator is a function that performs the migration and returns true if successful
|
|
|
|
*/
|
|
|
|
void registerMigration( int aOldSchemaVersion, int aNewSchemaVersion,
|
|
|
|
std::function<bool(void)> aMigrator );
|
|
|
|
|
2020-01-13 01:44:19 +00:00
|
|
|
/**
|
|
|
|
* Translates a legacy wxConfig value to a given JSON pointer value
|
|
|
|
* @tparam ValueType is the basic type of the value
|
|
|
|
* @param aConfig is the legacy config to read from
|
|
|
|
* @param aKey is the key (within the current path) to read
|
|
|
|
* @param aDest is a string that will form a JSON pointer (key1.key2.key3) to write to
|
|
|
|
*/
|
|
|
|
template<typename ValueType>
|
|
|
|
bool fromLegacy( wxConfigBase* aConfig, const std::string& aKey, const std::string& aDest );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Translates a legacy wxConfig string value to a given JSON pointer value
|
|
|
|
* @param aConfig is the legacy config to read from
|
|
|
|
* @param aKey is the key (within the current path) to read
|
|
|
|
* @param aDest is a string that will form a JSON pointer (key1.key2.key3) to write to
|
|
|
|
*/
|
|
|
|
bool fromLegacyString( wxConfigBase* aConfig, const std::string& aKey,
|
|
|
|
const std::string& aDest );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Translates a legacy COLOR4D stored in a wxConfig string to a given JSON pointer value
|
|
|
|
* @param aConfig is the legacy config to read from
|
|
|
|
* @param aKey is the key (within the current path) to read
|
|
|
|
* @param aDest is a string that will form a JSON pointer (key1.key2.key3) to write to
|
|
|
|
*/
|
|
|
|
bool fromLegacyColor( wxConfigBase* aConfig, const std::string& aKey,
|
|
|
|
const std::string& aDest );
|
|
|
|
|
2020-05-25 20:41:24 +00:00
|
|
|
virtual wxString getFileExt() const
|
|
|
|
{
|
|
|
|
return wxT( "json" );
|
|
|
|
}
|
|
|
|
|
2020-05-25 17:06:53 +00:00
|
|
|
virtual wxString getLegacyFileExt() const
|
|
|
|
{
|
|
|
|
return wxEmptyString;
|
|
|
|
}
|
|
|
|
|
2022-11-10 02:24:31 +00:00
|
|
|
/**
|
|
|
|
* Helper to retrieve a value from a JSON object (dictionary) as a certain result type
|
|
|
|
* @tparam ResultType is the type of the retrieved value.
|
|
|
|
* @param aJson is the object to act on .
|
|
|
|
* @param aKey is the object key to retrieve the value for.
|
|
|
|
* @return the result, or aDefault if aKey is not found.
|
|
|
|
*/
|
|
|
|
template<typename ResultType>
|
|
|
|
static ResultType fetchOrDefault( const nlohmann::json& aJson, const std::string& aKey,
|
|
|
|
ResultType aDefault = ResultType() );
|
|
|
|
|
2020-08-02 09:23:21 +00:00
|
|
|
/// The filename (not including path) of this settings file (inicode)
|
|
|
|
wxString m_filename;
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/// The filename of the wxConfig legacy file (if different from m_filename)
|
2020-08-02 09:23:21 +00:00
|
|
|
wxString m_legacy_filename;
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
/// The location of this settings file (@see SETTINGS_LOC)
|
|
|
|
SETTINGS_LOC m_location;
|
|
|
|
|
|
|
|
/// The list of parameters (owned by this object)
|
|
|
|
std::vector<PARAM_BASE*> m_params;
|
|
|
|
|
|
|
|
/// Nested settings files that live inside this one, if any
|
|
|
|
std::vector<NESTED_SETTINGS*> m_nested_settings;
|
|
|
|
|
|
|
|
/// Whether or not the backing store file should be created it if doesn't exist
|
|
|
|
bool m_createIfMissing;
|
|
|
|
|
2020-05-30 16:56:16 +00:00
|
|
|
/**
|
|
|
|
* Whether or not the backing store file should be created if all parameters are still
|
|
|
|
* at their default values. Ignored if m_createIfMissing is false or m_writeFile is false.
|
|
|
|
*/
|
|
|
|
bool m_createIfDefault;
|
|
|
|
|
2020-01-13 01:44:19 +00:00
|
|
|
/// Whether or not the backing store file should be written
|
|
|
|
bool m_writeFile;
|
|
|
|
|
2020-05-25 20:41:24 +00:00
|
|
|
/// Whether or not to delete legacy file after migration
|
|
|
|
bool m_deleteLegacyAfterMigration;
|
|
|
|
|
2020-05-31 21:42:04 +00:00
|
|
|
/// Whether or not to set parameters to their default value if missing from JSON on Load()
|
|
|
|
bool m_resetParamsIfMissing;
|
|
|
|
|
2020-01-13 01:44:19 +00:00
|
|
|
/// Version of this settings schema.
|
|
|
|
int m_schemaVersion;
|
|
|
|
|
2020-05-06 01:16:05 +00:00
|
|
|
/// A pointer to the settings manager managing this file (may be null)
|
|
|
|
SETTINGS_MANAGER* m_manager;
|
|
|
|
|
2020-10-06 03:21:57 +00:00
|
|
|
/// A map of starting schema version to a pair of <ending version, migrator function>
|
|
|
|
std::map<int, std::pair<int, std::function<bool()>>> m_migrators;
|
2021-06-04 03:52:50 +00:00
|
|
|
|
|
|
|
std::unique_ptr<JSON_SETTINGS_INTERNALS> m_internals;
|
2020-01-13 01:44:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Specializations to allow conversion between wxString and std::string via JSON_SETTINGS API
|
|
|
|
|
2024-03-14 02:49:01 +00:00
|
|
|
template<> KICOMMON_API std::optional<wxString> JSON_SETTINGS::Get( const std::string& aPath ) const;
|
2020-01-13 01:44:19 +00:00
|
|
|
|
2024-03-14 02:49:01 +00:00
|
|
|
template<> KICOMMON_API void JSON_SETTINGS::Set<wxString>( const std::string& aPath, wxString aVal );
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
// Specializations to allow directly reading/writing wxStrings from JSON
|
|
|
|
|
2024-03-14 02:49:01 +00:00
|
|
|
KICOMMON_API void to_json( nlohmann::json& aJson, const wxString& aString );
|
|
|
|
|
|
|
|
KICOMMON_API void from_json( const nlohmann::json& aJson, wxString& aString );
|
|
|
|
|
|
|
|
extern template std::optional<bool> JSON_SETTINGS::Get<bool>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<double> JSON_SETTINGS::Get<double>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<float> JSON_SETTINGS::Get<float>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<int> JSON_SETTINGS::Get<int>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<unsigned int> JSON_SETTINGS::Get<unsigned int>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<unsigned long long> JSON_SETTINGS::Get<unsigned long long>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<std::string> JSON_SETTINGS::Get<std::string>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<nlohmann::json> JSON_SETTINGS::Get<nlohmann::json>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<KIGFX::COLOR4D> JSON_SETTINGS::Get<KIGFX::COLOR4D>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<BOM_FIELD> JSON_SETTINGS::Get<BOM_FIELD>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<BOM_PRESET> JSON_SETTINGS::Get<BOM_PRESET>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<BOM_FMT_PRESET> JSON_SETTINGS::Get<BOM_FMT_PRESET>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<GRID> JSON_SETTINGS::Get<GRID>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<wxPoint> JSON_SETTINGS::Get<wxPoint>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<wxSize> JSON_SETTINGS::Get<wxSize>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<wxRect> JSON_SETTINGS::Get<wxRect>( const std::string& aPath ) const;
|
|
|
|
extern template std::optional<wxAuiPaneInfo> JSON_SETTINGS::Get<wxAuiPaneInfo>( const std::string& aPath ) const;
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
#endif
|