From dd94b2d3a78cf6437d9bd56c2b9b322e03d352a8 Mon Sep 17 00:00:00 2001
From: Jon Evans
Date: Sun, 6 Nov 2022 11:51:52 -0500
Subject: [PATCH] Rename PROPERTIES to STRING_UTF8_MAP for clarity
This class has nothing to do with the properties system
---
common/CMakeLists.txt | 2 +-
common/lib_table_base.cpp | 12 ++++----
.../{properties.cpp => string_utf8_map.cpp} | 6 ++--
eeschema/project_rescue.cpp | 2 +-
eeschema/project_rescue.h | 4 +--
eeschema/sch_io_mgr.h | 24 +++++++--------
eeschema/sch_plugin.cpp | 24 +++++++--------
.../sch_plugins/altium/sch_altium_plugin.cpp | 2 +-
.../sch_plugins/altium/sch_altium_plugin.h | 4 +--
.../cadstar/cadstar_sch_archive_plugin.cpp | 4 +--
.../cadstar/cadstar_sch_archive_plugin.h | 2 +-
.../database/sch_database_plugin.cpp | 6 ++--
.../database/sch_database_plugin.h | 6 ++--
.../sch_plugins/eagle/sch_eagle_plugin.cpp | 6 ++--
eeschema/sch_plugins/eagle/sch_eagle_plugin.h | 6 ++--
.../sch_plugins/kicad/sch_sexpr_plugin.cpp | 26 ++++++++--------
eeschema/sch_plugins/kicad/sch_sexpr_plugin.h | 28 ++++++++---------
.../sch_plugins/legacy/sch_legacy_plugin.cpp | 28 ++++++++---------
.../sch_plugins/legacy/sch_legacy_plugin.h | 30 +++++++++----------
eeschema/symbol_library.cpp | 6 ++--
eeschema/symbol_library.h | 4 +--
eeschema/symbol_library_manager.cpp | 6 ++--
include/lib_table_base.h | 14 ++++-----
include/{properties.h => string_utf8_map.h} | 2 +-
pcbnew/dialogs/dialog_fp_plugin_options.cpp | 14 +++++----
pcbnew/exporters/board_exporter_base.h | 4 +--
pcbnew/files.cpp | 2 +-
pcbnew/io_mgr.cpp | 4 +--
pcbnew/io_mgr.h | 30 +++++++++----------
pcbnew/kicad_clipboard.cpp | 4 +--
pcbnew/kicad_clipboard.h | 4 +--
pcbnew/plugin.cpp | 26 ++++++++--------
.../altium/altium_circuit_maker_plugin.cpp | 2 +-
.../altium/altium_circuit_maker_plugin.h | 4 +--
.../altium/altium_circuit_studio_plugin.cpp | 2 +-
.../altium/altium_circuit_studio_plugin.h | 4 +--
.../plugins/altium/altium_designer_plugin.cpp | 6 ++--
.../plugins/altium/altium_designer_plugin.h | 8 ++---
.../cadstar/cadstar_pcb_archive_plugin.cpp | 4 +--
.../cadstar/cadstar_pcb_archive_plugin.h | 4 +--
pcbnew/plugins/eagle/eagle_plugin.cpp | 12 ++++----
pcbnew/plugins/eagle/eagle_plugin.h | 12 ++++----
pcbnew/plugins/fabmaster/fabmaster_plugin.cpp | 2 +-
pcbnew/plugins/fabmaster/fabmaster_plugin.h | 8 ++---
pcbnew/plugins/geda/gpcb_plugin.cpp | 14 ++++-----
pcbnew/plugins/geda/gpcb_plugin.h | 26 ++++++++--------
pcbnew/plugins/kicad/pcb_plugin.cpp | 26 ++++++++--------
pcbnew/plugins/kicad/pcb_plugin.h | 29 +++++++++---------
pcbnew/plugins/legacy/legacy_plugin.cpp | 12 ++++----
pcbnew/plugins/legacy/legacy_plugin.h | 12 ++++----
pcbnew/plugins/pcad/pcad_plugin.cpp | 2 +-
pcbnew/plugins/pcad/pcad_plugin.h | 4 +--
pcbnew/tools/pcb_control.cpp | 4 +--
.../pybind11/tools/pybind11Config.cmake.in | 4 +--
54 files changed, 273 insertions(+), 270 deletions(-)
rename common/{properties.cpp => string_utf8_map.cpp} (86%)
rename include/{properties.h => string_utf8_map.h} (96%)
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index 4ce78e33e6..cdab253495 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -361,7 +361,6 @@ set( COMMON_SRCS
paths.cpp
printout.cpp
project.cpp
- properties.cpp
ptree.cpp
rc_item.cpp
refdes_utils.cpp
@@ -372,6 +371,7 @@ set( COMMON_SRCS
search_stack.cpp
searchhelpfilefullpath.cpp
status_popup.cpp
+ string_utf8_map.cpp
stroke_params.cpp
systemdirsappend.cpp
template_fieldnames.cpp
diff --git a/common/lib_table_base.cpp b/common/lib_table_base.cpp
index 15b0ddca85..83feac51b0 100644
--- a/common/lib_table_base.cpp
+++ b/common/lib_table_base.cpp
@@ -45,7 +45,7 @@ LIB_TABLE_ROW* new_clone( const LIB_TABLE_ROW& aRow )
}
-void LIB_TABLE_ROW::setProperties( PROPERTIES* aProperties )
+void LIB_TABLE_ROW::setProperties( STRING_UTF8_MAP* aProperties )
{
properties.reset( aProperties );
}
@@ -355,14 +355,14 @@ void LIB_TABLE::Save( const wxString& aFileName ) const
}
-PROPERTIES* LIB_TABLE::ParseOptions( const std::string& aOptionsList )
+STRING_UTF8_MAP* LIB_TABLE::ParseOptions( const std::string& aOptionsList )
{
if( aOptionsList.size() )
{
const char* cp = &aOptionsList[0];
const char* end = cp + aOptionsList.size();
- PROPERTIES props;
+ STRING_UTF8_MAP props;
std::string pair;
// Parse all name=value pairs
@@ -413,20 +413,20 @@ PROPERTIES* LIB_TABLE::ParseOptions( const std::string& aOptionsList )
}
if( props.size() )
- return new PROPERTIES( props );
+ return new STRING_UTF8_MAP( props );
}
return nullptr;
}
-UTF8 LIB_TABLE::FormatOptions( const PROPERTIES* aProperties )
+UTF8 LIB_TABLE::FormatOptions( const STRING_UTF8_MAP* aProperties )
{
UTF8 ret;
if( aProperties )
{
- for( PROPERTIES::const_iterator it = aProperties->begin(); it != aProperties->end(); ++it )
+ for( STRING_UTF8_MAP::const_iterator it = aProperties->begin(); it != aProperties->end(); ++it )
{
const std::string& name = it->first;
diff --git a/common/properties.cpp b/common/string_utf8_map.cpp
similarity index 86%
rename from common/properties.cpp
rename to common/string_utf8_map.cpp
index 6092434608..2fe400cc36 100644
--- a/common/properties.cpp
+++ b/common/string_utf8_map.cpp
@@ -18,12 +18,12 @@
* with this program. If not, see .
*/
-#include
+#include
-bool PROPERTIES::Value( const char* aName, UTF8* aFetchedValue ) const
+bool STRING_UTF8_MAP::Value( const char* aName, UTF8* aFetchedValue ) const
{
- PROPERTIES::const_iterator it = find( aName );
+ STRING_UTF8_MAP::const_iterator it = find( aName );
if( it != end() )
{
diff --git a/eeschema/project_rescue.cpp b/eeschema/project_rescue.cpp
index ba34eda4ca..3fb84129b5 100644
--- a/eeschema/project_rescue.cpp
+++ b/eeschema/project_rescue.cpp
@@ -793,7 +793,7 @@ SYMBOL_LIB_TABLE_RESCUER::SYMBOL_LIB_TABLE_RESCUER( PROJECT& aProject, SCHEMATIC
EDA_DRAW_PANEL_GAL::GAL_TYPE aGalBackEndType ) :
RESCUER( aProject, aSchematic, aCurrentSheet, aGalBackEndType )
{
- m_properties = std::make_unique();
+ m_properties = std::make_unique();
}
diff --git a/eeschema/project_rescue.h b/eeschema/project_rescue.h
index bf496a3777..1ff1ac4fff 100644
--- a/eeschema/project_rescue.h
+++ b/eeschema/project_rescue.h
@@ -41,7 +41,7 @@
#include
#include
-#include
+#include
#include
#include
#include
@@ -381,7 +381,7 @@ public:
private:
std::vector> m_rescueLibSymbols;
- std::unique_ptr< PROPERTIES > m_properties; ///< Library plugin properties.
+ std::unique_ptr m_properties; ///< Library plugin properties.
};
#endif // _LIB_CACHE_RESCUE_H_
diff --git a/eeschema/sch_io_mgr.h b/eeschema/sch_io_mgr.h
index ff5da3b35d..bbe4ac11ea 100644
--- a/eeschema/sch_io_mgr.h
+++ b/eeschema/sch_io_mgr.h
@@ -38,7 +38,7 @@ class SYMBOL_LIB_TABLE;
class KIWAY;
class LIB_SYMBOL;
class SYMBOL_LIB;
-class PROPERTIES;
+class STRING_UTF8_MAP;
class PROGRESS_REPORTER;
@@ -193,7 +193,7 @@ public:
*/
virtual int GetModifyHash() const = 0;
- virtual void SaveLibrary( const wxString& aFileName, const PROPERTIES* aProperties = nullptr );
+ virtual void SaveLibrary( const wxString& aFileName, const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Load information from some input file format that this #SCH_PLUGIN implementation
@@ -225,7 +225,7 @@ public:
*/
virtual SCH_SHEET* Load( const wxString& aFileName, SCHEMATIC* aSchematic,
SCH_SHEET* aAppendToMe = nullptr,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Write \a aSchematic to a storage file in a format that this #SCH_PLUGIN implementation
@@ -253,7 +253,7 @@ public:
* @throw IO_ERROR if there is a problem saving or exporting.
*/
virtual void Save( const wxString& aFileName, SCH_SHEET* aSheet, SCHEMATIC* aSchematic,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Populate a list of #LIB_SYMBOL alias names contained within the library \a aLibraryPath.
@@ -272,7 +272,7 @@ public:
* @throw IO_ERROR if the library cannot be found, the part library cannot be loaded.
*/
virtual void EnumerateSymbolLib( wxArrayString& aSymbolNameList, const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Populate a list of #LIB_SYMBOL aliases contained within the library \a aLibraryPath.
@@ -295,7 +295,7 @@ public:
*/
virtual void EnumerateSymbolLib( std::vector& aSymbolList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Load a #LIB_SYMBOL object having \a aPartName from the \a aLibraryPath containing
@@ -319,7 +319,7 @@ public:
* is thrown in the case where aAliasName cannot be found.
*/
virtual LIB_SYMBOL* LoadSymbol( const wxString& aLibraryPath, const wxString& aPartName,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Write \a aSymbol to an existing library located at \a aLibraryPath. If a #LIB_SYMBOL
@@ -343,7 +343,7 @@ public:
* @throw IO_ERROR if there is a problem saving.
*/
virtual void SaveSymbol( const wxString& aLibraryPath, const LIB_SYMBOL* aSymbol,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Delete the entire #LIB_SYMBOL associated with \a aAliasName from the library
@@ -364,7 +364,7 @@ public:
* @throw IO_ERROR if there is a problem finding the alias or the library or deleting it.
*/
virtual void DeleteSymbol( const wxString& aLibraryPath, const wxString& aSymbolName,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Create a new empty symbol library at \a aLibraryPath. It is an error to attempt
@@ -382,7 +382,7 @@ public:
* @throw IO_ERROR if there is a problem finding the library, or creating it.
*/
virtual void CreateSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Delete an existing symbol library and returns true if successful, or if library
@@ -404,7 +404,7 @@ public:
* @throw IO_ERROR if there is a problem deleting an existing library.
*/
virtual bool DeleteSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Return true if the library at \a aLibraryPath is writable. (Often
@@ -441,7 +441,7 @@ public:
* This would require a 3 column list, and introducing wx GUI knowledge to
* #SCH_PLUGIN, which has been avoided to date.
*/
- virtual void SymbolLibOptions( PROPERTIES* aListToAppendTo ) const;
+ virtual void SymbolLibOptions( STRING_UTF8_MAP* aListToAppendTo ) const;
/**
* @return true if this plugin supports libraries that contain sub-libraries.
diff --git a/eeschema/sch_plugin.cpp b/eeschema/sch_plugin.cpp
index 2aab9faf1a..0de51a7aa0 100644
--- a/eeschema/sch_plugin.cpp
+++ b/eeschema/sch_plugin.cpp
@@ -20,7 +20,7 @@
* with this program. If not, see .
*/
-#include
+#include
#include
#include
@@ -42,14 +42,14 @@ static void not_implemented( const SCH_PLUGIN* aPlugin, const char* aCaller )
}
-void SCH_PLUGIN::SaveLibrary( const wxString& aFileName, const PROPERTIES* aProperties )
+void SCH_PLUGIN::SaveLibrary( const wxString& aFileName, const STRING_UTF8_MAP* aProperties )
{
not_implemented( this, __FUNCTION__ );
}
SCH_SHEET* SCH_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchematic,
- SCH_SHEET* aAppendToMe, const PROPERTIES* aProperties )
+ SCH_SHEET* aAppendToMe, const STRING_UTF8_MAP* aProperties )
{
not_implemented( this, __FUNCTION__ );
return nullptr;
@@ -57,7 +57,7 @@ SCH_SHEET* SCH_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchematic,
void SCH_PLUGIN::Save( const wxString& aFileName, SCH_SHEET* aSheet, SCHEMATIC* aSchematic,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the SCH_PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -66,7 +66,7 @@ void SCH_PLUGIN::Save( const wxString& aFileName, SCH_SHEET* aSheet, SCHEMATIC*
void SCH_PLUGIN::EnumerateSymbolLib( wxArrayString& aAliasNameList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the SCH_PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -75,7 +75,7 @@ void SCH_PLUGIN::EnumerateSymbolLib( wxArrayString& aAliasNameList,
void SCH_PLUGIN::EnumerateSymbolLib( std::vector& aSymbolList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the SCH_PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -83,7 +83,7 @@ void SCH_PLUGIN::EnumerateSymbolLib( std::vector& aSymbolList,
LIB_SYMBOL* SCH_PLUGIN::LoadSymbol( const wxString& aLibraryPath, const wxString& aSymbolName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the SCH_PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -92,7 +92,7 @@ LIB_SYMBOL* SCH_PLUGIN::LoadSymbol( const wxString& aLibraryPath, const wxString
void SCH_PLUGIN::SaveSymbol( const wxString& aLibraryPath, const LIB_SYMBOL* aSymbol,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the SCH_PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -100,21 +100,21 @@ void SCH_PLUGIN::SaveSymbol( const wxString& aLibraryPath, const LIB_SYMBOL* aSy
void SCH_PLUGIN::DeleteSymbol( const wxString& aLibraryPath, const wxString& aSymbolName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the SCH_PLUGIN interface.
not_implemented( this, __FUNCTION__ );
}
-void SCH_PLUGIN::CreateSymbolLib( const wxString& aLibraryPath, const PROPERTIES* aProperties )
+void SCH_PLUGIN::CreateSymbolLib( const wxString& aLibraryPath, const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the SCH_PLUGIN interface.
not_implemented( this, __FUNCTION__ );
}
-bool SCH_PLUGIN::DeleteSymbolLib( const wxString& aLibraryPath, const PROPERTIES* aProperties )
+bool SCH_PLUGIN::DeleteSymbolLib( const wxString& aLibraryPath, const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the SCH_PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -130,7 +130,7 @@ bool SCH_PLUGIN::IsSymbolLibWritable( const wxString& aLibraryPath )
}
-void SCH_PLUGIN::SymbolLibOptions( PROPERTIES* aListToAppendTo ) const
+void SCH_PLUGIN::SymbolLibOptions( STRING_UTF8_MAP* aListToAppendTo ) const
{
// disable all these in another couple of months, after everyone has seen them:
#if 1
diff --git a/eeschema/sch_plugins/altium/sch_altium_plugin.cpp b/eeschema/sch_plugins/altium/sch_altium_plugin.cpp
index 668749233e..e8123fdfda 100644
--- a/eeschema/sch_plugins/altium/sch_altium_plugin.cpp
+++ b/eeschema/sch_plugins/altium/sch_altium_plugin.cpp
@@ -220,7 +220,7 @@ wxFileName SCH_ALTIUM_PLUGIN::getLibFileName()
SCH_SHEET* SCH_ALTIUM_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchematic,
- SCH_SHEET* aAppendToMe, const PROPERTIES* aProperties )
+ SCH_SHEET* aAppendToMe, const STRING_UTF8_MAP* aProperties )
{
wxCHECK( !aFileName.IsEmpty() && aSchematic, nullptr );
diff --git a/eeschema/sch_plugins/altium/sch_altium_plugin.h b/eeschema/sch_plugins/altium/sch_altium_plugin.h
index d58b105553..376be3e0f9 100644
--- a/eeschema/sch_plugins/altium/sch_altium_plugin.h
+++ b/eeschema/sch_plugins/altium/sch_altium_plugin.h
@@ -63,7 +63,7 @@ public:
SCH_SHEET* Load( const wxString& aFileName, SCHEMATIC* aSchematic,
SCH_SHEET* aAppendToMe = nullptr,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
bool CheckHeader( const wxString& aFileName ) override;
@@ -160,7 +160,7 @@ private:
wxString m_libName; // Library name to save symbols
SCH_PLUGIN::SCH_PLUGIN_RELEASER m_pi; // Plugin to create KiCad symbol library.
- std::unique_ptr m_properties; // Library plugin properties.
+ std::unique_ptr m_properties; // Library plugin properties.
std::unique_ptr m_currentTitleBlock; // Will be assigned at the end of parsing
// a sheet
diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp
index e65989f37b..d3e00f0297 100644
--- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp
+++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.cpp
@@ -27,7 +27,7 @@
#include
#include
-#include
+#include
#include
#include
#include
@@ -59,7 +59,7 @@ int CADSTAR_SCH_ARCHIVE_PLUGIN::GetModifyHash() const
SCH_SHEET* CADSTAR_SCH_ARCHIVE_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchematic,
- SCH_SHEET* aAppendToMe, const PROPERTIES* aProperties )
+ SCH_SHEET* aAppendToMe, const STRING_UTF8_MAP* aProperties )
{
wxASSERT( !aFileName || aSchematic != NULL );
diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.h b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.h
index 6202dccbac..e067b5ad0e 100644
--- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.h
+++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_plugin.h
@@ -55,7 +55,7 @@ public:
SCH_SHEET* Load( const wxString& aFileName, SCHEMATIC* aSchematic,
SCH_SHEET* aAppendToMe = nullptr,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
bool CheckHeader( const wxString& aFileName ) override;
diff --git a/eeschema/sch_plugins/database/sch_database_plugin.cpp b/eeschema/sch_plugins/database/sch_database_plugin.cpp
index 1189811951..9eaf2bd57e 100644
--- a/eeschema/sch_plugins/database/sch_database_plugin.cpp
+++ b/eeschema/sch_plugins/database/sch_database_plugin.cpp
@@ -46,7 +46,7 @@ SCH_DATABASE_PLUGIN::~SCH_DATABASE_PLUGIN()
void SCH_DATABASE_PLUGIN::EnumerateSymbolLib( wxArrayString& aSymbolNameList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
std::vector symbols;
EnumerateSymbolLib( symbols, aLibraryPath, aProperties );
@@ -58,7 +58,7 @@ void SCH_DATABASE_PLUGIN::EnumerateSymbolLib( wxArrayString& aSymbolNameList,
void SCH_DATABASE_PLUGIN::EnumerateSymbolLib( std::vector& aSymbolList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
wxCHECK_RET( m_libTable, "Database plugin missing library table handle!" );
ensureSettings( aLibraryPath );
@@ -103,7 +103,7 @@ void SCH_DATABASE_PLUGIN::EnumerateSymbolLib( std::vector& aSymbolL
LIB_SYMBOL* SCH_DATABASE_PLUGIN::LoadSymbol( const wxString& aLibraryPath,
const wxString& aAliasName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
wxCHECK( m_libTable, nullptr );
ensureSettings( aLibraryPath );
diff --git a/eeschema/sch_plugins/database/sch_database_plugin.h b/eeschema/sch_plugins/database/sch_database_plugin.h
index b542e8dad3..a2f6cfeff2 100644
--- a/eeschema/sch_plugins/database/sch_database_plugin.h
+++ b/eeschema/sch_plugins/database/sch_database_plugin.h
@@ -64,14 +64,14 @@ public:
void EnumerateSymbolLib( wxArrayString& aSymbolNameList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void EnumerateSymbolLib( std::vector& aSymbolList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
LIB_SYMBOL* LoadSymbol( const wxString& aLibraryPath, const wxString& aAliasName,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
bool SupportsSubLibraries() const override { return true; }
diff --git a/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp b/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp
index 5679967646..9a6d9e1e3b 100644
--- a/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp
+++ b/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp
@@ -25,7 +25,7 @@
#include
#include
-#include
+#include
#include
#include
@@ -427,7 +427,7 @@ void SCH_EAGLE_PLUGIN::checkpoint()
SCH_SHEET* SCH_EAGLE_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchematic,
- SCH_SHEET* aAppendToMe, const PROPERTIES* aProperties )
+ SCH_SHEET* aAppendToMe, const STRING_UTF8_MAP* aProperties )
{
wxASSERT( !aFileName || aSchematic != nullptr );
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -485,7 +485,7 @@ SCH_SHEET* SCH_EAGLE_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchema
wxCHECK_MSG( libTable, nullptr, wxT( "Could not load symbol lib table." ) );
m_pi.set( SCH_IO_MGR::FindPlugin( SCH_IO_MGR::SCH_KICAD ) );
- m_properties = std::make_unique();
+ m_properties = std::make_unique();
( *m_properties )[SCH_LEGACY_PLUGIN::PropBuffering] = "";
/// @note No check is being done here to see if the existing symbol library exists so this
diff --git a/eeschema/sch_plugins/eagle/sch_eagle_plugin.h b/eeschema/sch_plugins/eagle/sch_eagle_plugin.h
index b47195d951..988a474f28 100644
--- a/eeschema/sch_plugins/eagle/sch_eagle_plugin.h
+++ b/eeschema/sch_plugins/eagle/sch_eagle_plugin.h
@@ -47,7 +47,7 @@ class SCH_TEXT;
class SCH_GLOBALLABEL;
class SCH_SYMBOL;
class SCH_FIELD;
-class PROPERTIES;
+class STRING_UTF8_MAP;
class SCH_EAGLE_PLUGIN_CACHE;
class LIB_SYMBOL;
class SYMBOL_LIB;
@@ -100,7 +100,7 @@ public:
SCH_SHEET* Load( const wxString& aFileName, SCHEMATIC* aSchematic,
SCH_SHEET* aAppendToMe = nullptr,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
bool CheckHeader( const wxString& aFileName ) override;
@@ -228,7 +228,7 @@ private:
std::map m_eagleLibs;
SCH_PLUGIN::SCH_PLUGIN_RELEASER m_pi; ///< PI to create KiCad symbol library.
- std::unique_ptr< PROPERTIES > m_properties; ///< Library plugin properties.
+ std::unique_ptr m_properties; ///< Library plugin properties.
PROGRESS_REPORTER* m_progressReporter; ///< optional; may be nullptr
unsigned m_doneCount;
diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp
index dca76d3a10..03af2c487a 100644
--- a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp
+++ b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp
@@ -85,7 +85,7 @@ SCH_SEXPR_PLUGIN::~SCH_SEXPR_PLUGIN()
}
-void SCH_SEXPR_PLUGIN::init( SCHEMATIC* aSchematic, const PROPERTIES* aProperties )
+void SCH_SEXPR_PLUGIN::init( SCHEMATIC* aSchematic, const STRING_UTF8_MAP* aProperties )
{
m_version = 0;
m_appending = false;
@@ -98,7 +98,7 @@ void SCH_SEXPR_PLUGIN::init( SCHEMATIC* aSchematic, const PROPERTIES* aPropertie
SCH_SHEET* SCH_SEXPR_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchematic,
- SCH_SHEET* aAppendToMe, const PROPERTIES* aProperties )
+ SCH_SHEET* aAppendToMe, const STRING_UTF8_MAP* aProperties )
{
wxASSERT( !aFileName || aSchematic != nullptr );
@@ -319,7 +319,7 @@ void SCH_SEXPR_PLUGIN::LoadContent( LINE_READER& aReader, SCH_SHEET* aSheet, int
void SCH_SEXPR_PLUGIN::Save( const wxString& aFileName, SCH_SHEET* aSheet, SCHEMATIC* aSchematic,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
wxCHECK_RET( aSheet != nullptr, "NULL SCH_SHEET object." );
wxCHECK_RET( !aFileName.IsEmpty(), "No schematic file name defined." );
@@ -1297,7 +1297,7 @@ void SCH_SEXPR_PLUGIN::saveInstances( const std::vector& aSh
}
-void SCH_SEXPR_PLUGIN::cacheLib( const wxString& aLibraryFileName, const PROPERTIES* aProperties )
+void SCH_SEXPR_PLUGIN::cacheLib( const wxString& aLibraryFileName, const STRING_UTF8_MAP* aProperties )
{
if( !m_cache || !m_cache->IsFile( aLibraryFileName ) || m_cache->IsFileChanged() )
{
@@ -1311,7 +1311,7 @@ void SCH_SEXPR_PLUGIN::cacheLib( const wxString& aLibraryFileName, const PROPERT
}
-bool SCH_SEXPR_PLUGIN::isBuffering( const PROPERTIES* aProperties )
+bool SCH_SEXPR_PLUGIN::isBuffering( const STRING_UTF8_MAP* aProperties )
{
return ( aProperties && aProperties->Exists( SCH_SEXPR_PLUGIN::PropBuffering ) );
}
@@ -1329,7 +1329,7 @@ int SCH_SEXPR_PLUGIN::GetModifyHash() const
void SCH_SEXPR_PLUGIN::EnumerateSymbolLib( wxArrayString& aSymbolNameList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -1350,7 +1350,7 @@ void SCH_SEXPR_PLUGIN::EnumerateSymbolLib( wxArrayString& aSymbolNameList,
void SCH_SEXPR_PLUGIN::EnumerateSymbolLib( std::vector& aSymbolList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -1370,7 +1370,7 @@ void SCH_SEXPR_PLUGIN::EnumerateSymbolLib( std::vector& aSymbolList
LIB_SYMBOL* SCH_SEXPR_PLUGIN::LoadSymbol( const wxString& aLibraryPath, const wxString& aSymbolName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -1386,7 +1386,7 @@ LIB_SYMBOL* SCH_SEXPR_PLUGIN::LoadSymbol( const wxString& aLibraryPath, const wx
void SCH_SEXPR_PLUGIN::SaveSymbol( const wxString& aLibraryPath, const LIB_SYMBOL* aSymbol,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -1400,7 +1400,7 @@ void SCH_SEXPR_PLUGIN::SaveSymbol( const wxString& aLibraryPath, const LIB_SYMBO
void SCH_SEXPR_PLUGIN::DeleteSymbol( const wxString& aLibraryPath, const wxString& aSymbolName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -1414,7 +1414,7 @@ void SCH_SEXPR_PLUGIN::DeleteSymbol( const wxString& aLibraryPath, const wxStrin
void SCH_SEXPR_PLUGIN::CreateSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
if( wxFileExists( aLibraryPath ) )
{
@@ -1433,7 +1433,7 @@ void SCH_SEXPR_PLUGIN::CreateSymbolLib( const wxString& aLibraryPath,
bool SCH_SEXPR_PLUGIN::DeleteSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
wxFileName fn = aLibraryPath;
@@ -1458,7 +1458,7 @@ bool SCH_SEXPR_PLUGIN::DeleteSymbolLib( const wxString& aLibraryPath,
}
-void SCH_SEXPR_PLUGIN::SaveLibrary( const wxString& aLibraryPath, const PROPERTIES* aProperties )
+void SCH_SEXPR_PLUGIN::SaveLibrary( const wxString& aLibraryPath, const STRING_UTF8_MAP* aProperties )
{
if( !m_cache )
m_cache = new SCH_SEXPR_PLUGIN_CACHE( aLibraryPath );
diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.h b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.h
index 15917be73c..f1bf3fa2c2 100644
--- a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.h
+++ b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.h
@@ -46,7 +46,7 @@ class SCH_TEXTBOX;
class SCH_SYMBOL;
class SCH_FIELD;
struct SYMBOL_INSTANCE_REFERENCE;
-class PROPERTIES;
+class STRING_UTF8_MAP;
class EE_SELECTION;
class SCH_SEXPR_PLUGIN_CACHE;
class LIB_SYMBOL;
@@ -97,13 +97,13 @@ public:
SCH_SHEET* Load( const wxString& aFileName, SCHEMATIC* aSchematic,
SCH_SHEET* aAppendToMe = nullptr,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void LoadContent( LINE_READER& aReader, SCH_SHEET* aSheet,
int aVersion = SEXPR_SCHEMATIC_FILE_VERSION );
void Save( const wxString& aFileName, SCH_SHEET* aSheet, SCHEMATIC* aSchematic,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void Format( SCH_SHEET* aSheet );
@@ -112,22 +112,22 @@ public:
void EnumerateSymbolLib( wxArrayString& aSymbolNameList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void EnumerateSymbolLib( std::vector& aSymbolList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
LIB_SYMBOL* LoadSymbol( const wxString& aLibraryPath, const wxString& aAliasName,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void SaveSymbol( const wxString& aLibraryPath, const LIB_SYMBOL* aSymbol,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void DeleteSymbol( const wxString& aLibraryPath, const wxString& aSymbolName,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void CreateSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
bool DeleteSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void SaveLibrary( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
bool CheckHeader( const wxString& aFileName ) override;
bool IsSymbolLibWritable( const wxString& aLibraryPath ) override;
@@ -160,8 +160,8 @@ private:
void saveBusAlias( std::shared_ptr aAlias, int aNestLevel );
void saveInstances( const std::vector& aSheets, int aNestLevel );
- void cacheLib( const wxString& aLibraryFileName, const PROPERTIES* aProperties );
- bool isBuffering( const PROPERTIES* aProperties );
+ void cacheLib( const wxString& aLibraryFileName, const STRING_UTF8_MAP* aProperties );
+ bool isBuffering( const STRING_UTF8_MAP* aProperties );
protected:
int m_version; ///< Version of file being loaded.
@@ -179,7 +179,7 @@ protected:
SCH_SEXPR_PLUGIN_CACHE* m_cache;
/// initialize PLUGIN like a constructor would.
- void init( SCHEMATIC* aSchematic, const PROPERTIES* aProperties = nullptr );
+ void init( SCHEMATIC* aSchematic, const STRING_UTF8_MAP* aProperties = nullptr );
};
#endif // _SCH_SEXPR_PLUGIN_H_
diff --git a/eeschema/sch_plugins/legacy/sch_legacy_plugin.cpp b/eeschema/sch_plugins/legacy/sch_legacy_plugin.cpp
index 4237f4f229..08d84d037b 100644
--- a/eeschema/sch_plugins/legacy/sch_legacy_plugin.cpp
+++ b/eeschema/sch_plugins/legacy/sch_legacy_plugin.cpp
@@ -88,7 +88,7 @@ SCH_LEGACY_PLUGIN::~SCH_LEGACY_PLUGIN()
}
-void SCH_LEGACY_PLUGIN::init( SCHEMATIC* aSchematic, const PROPERTIES* aProperties )
+void SCH_LEGACY_PLUGIN::init( SCHEMATIC* aSchematic, const STRING_UTF8_MAP* aProperties )
{
m_version = 0;
m_rootSheet = nullptr;
@@ -122,7 +122,7 @@ void SCH_LEGACY_PLUGIN::checkpoint()
SCH_SHEET* SCH_LEGACY_PLUGIN::Load( const wxString& aFileName, SCHEMATIC* aSchematic,
- SCH_SHEET* aAppendToMe, const PROPERTIES* aProperties )
+ SCH_SHEET* aAppendToMe, const STRING_UTF8_MAP* aProperties )
{
wxASSERT( !aFileName || aSchematic != nullptr );
@@ -1447,7 +1447,7 @@ std::shared_ptr SCH_LEGACY_PLUGIN::loadBusAlias( LINE_READER& aReader
void SCH_LEGACY_PLUGIN::Save( const wxString& aFileName, SCH_SHEET* aSheet, SCHEMATIC* aSchematic,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
wxCHECK_RET( aSheet != nullptr, "NULL SCH_SHEET object." );
wxCHECK_RET( !aFileName.IsEmpty(), "No schematic file name defined." );
@@ -2035,7 +2035,7 @@ void SCH_LEGACY_PLUGIN::saveBusAlias( std::shared_ptr aAlias )
}
-void SCH_LEGACY_PLUGIN::cacheLib( const wxString& aLibraryFileName, const PROPERTIES* aProperties )
+void SCH_LEGACY_PLUGIN::cacheLib( const wxString& aLibraryFileName, const STRING_UTF8_MAP* aProperties )
{
if( !m_cache || !m_cache->IsFile( aLibraryFileName ) || m_cache->IsFileChanged() )
{
@@ -2049,7 +2049,7 @@ void SCH_LEGACY_PLUGIN::cacheLib( const wxString& aLibraryFileName, const PROPER
}
-bool SCH_LEGACY_PLUGIN::writeDocFile( const PROPERTIES* aProperties )
+bool SCH_LEGACY_PLUGIN::writeDocFile( const STRING_UTF8_MAP* aProperties )
{
std::string propName( SCH_LEGACY_PLUGIN::PropNoDocFile );
@@ -2060,7 +2060,7 @@ bool SCH_LEGACY_PLUGIN::writeDocFile( const PROPERTIES* aProperties )
}
-bool SCH_LEGACY_PLUGIN::isBuffering( const PROPERTIES* aProperties )
+bool SCH_LEGACY_PLUGIN::isBuffering( const STRING_UTF8_MAP* aProperties )
{
return ( aProperties && aProperties->Exists( SCH_LEGACY_PLUGIN::PropBuffering ) );
}
@@ -2078,7 +2078,7 @@ int SCH_LEGACY_PLUGIN::GetModifyHash() const
void SCH_LEGACY_PLUGIN::EnumerateSymbolLib( wxArrayString& aSymbolNameList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -2099,7 +2099,7 @@ void SCH_LEGACY_PLUGIN::EnumerateSymbolLib( wxArrayString& aSymbolNameList,
void SCH_LEGACY_PLUGIN::EnumerateSymbolLib( std::vector& aSymbolList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -2120,7 +2120,7 @@ void SCH_LEGACY_PLUGIN::EnumerateSymbolLib( std::vector& aSymbolLis
LIB_SYMBOL* SCH_LEGACY_PLUGIN::LoadSymbol( const wxString& aLibraryPath,
const wxString& aSymbolName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -2136,7 +2136,7 @@ LIB_SYMBOL* SCH_LEGACY_PLUGIN::LoadSymbol( const wxString& aLibraryPath,
void SCH_LEGACY_PLUGIN::SaveSymbol( const wxString& aLibraryPath, const LIB_SYMBOL* aSymbol,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -2150,7 +2150,7 @@ void SCH_LEGACY_PLUGIN::SaveSymbol( const wxString& aLibraryPath, const LIB_SYMB
void SCH_LEGACY_PLUGIN::DeleteSymbol( const wxString& aLibraryPath, const wxString& aSymbolName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
LOCALE_IO toggle; // toggles on, then off, the C locale.
@@ -2164,7 +2164,7 @@ void SCH_LEGACY_PLUGIN::DeleteSymbol( const wxString& aLibraryPath, const wxStri
void SCH_LEGACY_PLUGIN::CreateSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
if( wxFileExists( aLibraryPath ) )
{
@@ -2183,7 +2183,7 @@ void SCH_LEGACY_PLUGIN::CreateSymbolLib( const wxString& aLibraryPath,
bool SCH_LEGACY_PLUGIN::DeleteSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
wxFileName fn = aLibraryPath;
@@ -2208,7 +2208,7 @@ bool SCH_LEGACY_PLUGIN::DeleteSymbolLib( const wxString& aLibraryPath,
}
-void SCH_LEGACY_PLUGIN::SaveLibrary( const wxString& aLibraryPath, const PROPERTIES* aProperties )
+void SCH_LEGACY_PLUGIN::SaveLibrary( const wxString& aLibraryPath, const STRING_UTF8_MAP* aProperties )
{
if( !m_cache )
m_cache = new SCH_LEGACY_PLUGIN_CACHE( aLibraryPath );
diff --git a/eeschema/sch_plugins/legacy/sch_legacy_plugin.h b/eeschema/sch_plugins/legacy/sch_legacy_plugin.h
index 0c8333c237..9d3aaa39cd 100644
--- a/eeschema/sch_plugins/legacy/sch_legacy_plugin.h
+++ b/eeschema/sch_plugins/legacy/sch_legacy_plugin.h
@@ -41,7 +41,7 @@ class SCH_BUS_ENTRY_BASE;
class SCH_TEXT;
class SCH_SYMBOL;
class SCH_FIELD;
-class PROPERTIES;
+class STRING_UTF8_MAP;
class SELECTION;
class SCH_LEGACY_PLUGIN_CACHE;
class LIB_SYMBOL;
@@ -104,13 +104,13 @@ public:
SCH_SHEET* Load( const wxString& aFileName, SCHEMATIC* aSchematic,
SCH_SHEET* aAppendToMe = nullptr,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void LoadContent( LINE_READER& aReader, SCH_SCREEN* aScreen,
int version = EESCHEMA_VERSION );
void Save( const wxString& aFileName, SCH_SHEET* aScreen, SCHEMATIC* aSchematic,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void Format( SCH_SHEET* aSheet );
@@ -118,22 +118,22 @@ public:
void EnumerateSymbolLib( wxArrayString& aSymbolNameList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void EnumerateSymbolLib( std::vector& aSymbolList,
const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
LIB_SYMBOL* LoadSymbol( const wxString& aLibraryPath, const wxString& aAliasName,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void SaveSymbol( const wxString& aLibraryPath, const LIB_SYMBOL* aSymbol,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void DeleteSymbol( const wxString& aLibraryPath, const wxString& aSymbolName,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void CreateSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
bool DeleteSymbolLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
void SaveLibrary( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
bool CheckHeader( const wxString& aFileName ) override;
bool IsSymbolLibWritable( const wxString& aLibraryPath ) override;
@@ -171,9 +171,9 @@ private:
void saveText( SCH_TEXT* aText );
void saveBusAlias( std::shared_ptr aAlias );
- void cacheLib( const wxString& aLibraryFileName, const PROPERTIES* aProperties );
- bool writeDocFile( const PROPERTIES* aProperties );
- bool isBuffering( const PROPERTIES* aProperties );
+ void cacheLib( const wxString& aLibraryFileName, const STRING_UTF8_MAP* aProperties );
+ bool writeDocFile( const STRING_UTF8_MAP* aProperties );
+ bool isBuffering( const STRING_UTF8_MAP* aProperties );
protected:
int m_version; ///< Version of file being loaded.
@@ -197,7 +197,7 @@ protected:
SCHEMATIC* m_schematic;
/// initialize PLUGIN like a constructor would.
- void init( SCHEMATIC* aSchematic, const PROPERTIES* aProperties = nullptr );
+ void init( SCHEMATIC* aSchematic, const STRING_UTF8_MAP* aProperties = nullptr );
};
#endif // _SCH_LEGACY_PLUGIN_H_
diff --git a/eeschema/symbol_library.cpp b/eeschema/symbol_library.cpp
index 43bf97bfb1..04439c0115 100644
--- a/eeschema/symbol_library.cpp
+++ b/eeschema/symbol_library.cpp
@@ -33,7 +33,7 @@
#include
#include
#include
-#include
+#include
#include
#include
@@ -61,7 +61,7 @@ SYMBOL_LIB::SYMBOL_LIB( SCH_LIB_TYPE aType, const wxString& aFileName,
fileName = "unnamed.lib";
m_plugin.reset( SCH_IO_MGR::FindPlugin( m_pluginType ) );
- m_properties = std::make_unique();
+ m_properties = std::make_unique();
m_mod_hash = 0;
}
@@ -77,7 +77,7 @@ void SYMBOL_LIB::Save( bool aSaveDocFile )
wxString::Format( wxT( "no plugin defined for library `%s`." ),
fileName.GetFullPath() ) );
- PROPERTIES props;
+ STRING_UTF8_MAP props;
if( !aSaveDocFile )
props[ SCH_LEGACY_PLUGIN::PropNoDocFile ] = "";
diff --git a/eeschema/symbol_library.h b/eeschema/symbol_library.h
index d4d80a380f..2d4dab4b1f 100644
--- a/eeschema/symbol_library.h
+++ b/eeschema/symbol_library.h
@@ -44,7 +44,7 @@ class LIB_SYMBOL;
class LIB_ID;
class LINE_READER;
class OUTPUTFORMATTER;
-class PROPERTIES;
+class STRING_UTF8_MAP;
class SCH_PLUGIN;
class SYMBOL_LIB;
@@ -316,7 +316,7 @@ private:
SCH_IO_MGR::SCH_FILE_T m_pluginType;
std::unique_ptr< SCH_PLUGIN > m_plugin;
- std::unique_ptr< PROPERTIES > m_properties; ///< Library properties
+ std::unique_ptr m_properties; ///< Library properties
};
diff --git a/eeschema/symbol_library_manager.cpp b/eeschema/symbol_library_manager.cpp
index 7137ffc131..37cc2584bc 100644
--- a/eeschema/symbol_library_manager.cpp
+++ b/eeschema/symbol_library_manager.cpp
@@ -167,7 +167,7 @@ bool SYMBOL_LIBRARY_MANAGER::SaveLibrary( const wxString& aLibrary, const wxStri
SCH_PLUGIN::SCH_PLUGIN_RELEASER pi( SCH_IO_MGR::FindPlugin( aFileType ) );
bool res = true; // assume all libraries are successfully saved
- PROPERTIES properties;
+ STRING_UTF8_MAP properties;
properties.emplace( SCH_LEGACY_PLUGIN::PropBuffering, "" );
auto it = m_libs.find( aLibrary );
@@ -959,7 +959,7 @@ bool SYMBOL_LIBRARY_MANAGER::LIB_BUFFER::SaveBuffer( std::shared_ptrGetOriginal();
wxCHECK( libSymbol && originalSymbol, false );
SYMBOL_LIB_TABLE::SAVE_T result;
- PROPERTIES properties;
+ STRING_UTF8_MAP properties;
properties.emplace( SCH_LEGACY_PLUGIN::PropBuffering, "" );
wxString errorMsg = _( "Error saving symbol %s to library '%s'." ) + wxS( "\n%s" );
@@ -1066,7 +1066,7 @@ bool SYMBOL_LIBRARY_MANAGER::LIB_BUFFER::SaveBuffer( std::shared_ptr
#include
#include
-#include
+#include
#include
@@ -186,7 +186,7 @@ public:
* Return the constant #PROPERTIES for this library (#LIB_TABLE_ROW). These are
* the "options" in a table.
*/
- const PROPERTIES* GetProperties() const { return properties.get(); }
+ const STRING_UTF8_MAP* GetProperties() const { return properties.get(); }
/**
* Serialize this object as utf8 text to an #OUTPUTFORMATTER, and tries to
@@ -218,7 +218,7 @@ protected:
m_parent( aRow.m_parent )
{
if( aRow.properties )
- properties = std::make_unique( *aRow.properties.get() );
+ properties = std::make_unique( *aRow.properties.get() );
else
properties.reset();
}
@@ -228,7 +228,7 @@ protected:
private:
virtual LIB_TABLE_ROW* do_clone() const = 0;
- void setProperties( PROPERTIES* aProperties );
+ void setProperties( STRING_UTF8_MAP* aProperties );
wxString nickName;
wxString uri_user; ///< what user entered from UI or loaded from disk
@@ -245,7 +245,7 @@ private:
bool m_loaded = false; ///< Whether the LIB_TABLE_ROW is loaded
LIB_TABLE* m_parent; ///< Pointer to the table this row lives in (maybe null)
- std::unique_ptr< PROPERTIES > properties;
+ std::unique_ptr properties;
std::mutex m_loadMutex;
};
@@ -506,7 +506,7 @@ public:
* a library table, this formatting is handled for you.
*
*/
- static PROPERTIES* ParseOptions( const std::string& aOptionsList );
+ static STRING_UTF8_MAP* ParseOptions( const std::string& aOptionsList );
/**
* Returns a list of options from the aProperties parameter.
@@ -518,7 +518,7 @@ public:
* @param aProperties is the PROPERTIES to format or NULL. If NULL the returned
* string will be empty.
*/
- static UTF8 FormatOptions( const PROPERTIES* aProperties );
+ static UTF8 FormatOptions( const STRING_UTF8_MAP* aProperties );
protected:
/**
diff --git a/include/properties.h b/include/string_utf8_map.h
similarity index 96%
rename from include/properties.h
rename to include/string_utf8_map.h
index f89dec3589..64d3f53860 100644
--- a/include/properties.h
+++ b/include/string_utf8_map.h
@@ -30,7 +30,7 @@
* A name/value tuple with unique names and optional values. The names
* may be iterated alphabetically.
*/
-class PROPERTIES : public std::map< std::string, UTF8 >
+class STRING_UTF8_MAP : public std::map< std::string, UTF8 >
{
public:
bool Clear( const std::string& aProperty )
diff --git a/pcbnew/dialogs/dialog_fp_plugin_options.cpp b/pcbnew/dialogs/dialog_fp_plugin_options.cpp
index 0cdfd482ea..f9a755bd51 100644
--- a/pcbnew/dialogs/dialog_fp_plugin_options.cpp
+++ b/pcbnew/dialogs/dialog_fp_plugin_options.cpp
@@ -79,7 +79,9 @@ public:
if( m_choices.size() )
{
unsigned int row = 0;
- for( PROPERTIES::const_iterator it = m_choices.begin(); it != m_choices.end(); ++it, ++row )
+
+ for( STRING_UTF8_MAP::const_iterator it = m_choices.begin(); it != m_choices.end();
+ ++it, ++row )
{
wxString item = FROM_UTF8( it->first.c_str() );
@@ -113,7 +115,7 @@ public:
// Fill the grid with existing aOptions
string options = TO_UTF8( m_callers_options );
- PROPERTIES* props = LIB_TABLE::ParseOptions( options );
+ STRING_UTF8_MAP* props = LIB_TABLE::ParseOptions( options );
if( props )
{
@@ -121,7 +123,9 @@ public:
m_grid->AppendRows( props->size() - m_grid->GetNumberRows() );
int row = 0;
- for( PROPERTIES::const_iterator it = props->begin(); it != props->end(); ++it, ++row )
+
+ for( STRING_UTF8_MAP::const_iterator it = props->begin(); it != props->end();
+ ++it, ++row )
{
m_grid->SetCellValue( row, 0, FROM_UTF8( it->first.c_str() ) );
m_grid->SetCellValue( row, 1, it->second );
@@ -141,7 +145,7 @@ public:
if( !DIALOG_SHIM::TransferDataFromWindow() )
return false;
- PROPERTIES props;
+ STRING_UTF8_MAP props;
const int rowCount = m_grid->GetNumberRows();
for( int row = 0; row
+#include
#include
class BOARD;
@@ -67,7 +67,7 @@ public:
virtual bool Run() = 0;
protected:
- PROPERTIES m_properties;
+ STRING_UTF8_MAP m_properties;
BOARD* m_board = nullptr;
wxFileName m_outputFilePath;
REPORTER* m_reporter = nullptr;
diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp
index 6d1ca32b39..9e2971c137 100644
--- a/pcbnew/files.cpp
+++ b/pcbnew/files.cpp
@@ -704,7 +704,7 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in
try
{
- PROPERTIES props;
+ STRING_UTF8_MAP props;
char xbuf[30];
char ybuf[30];
diff --git a/pcbnew/io_mgr.cpp b/pcbnew/io_mgr.cpp
index 11b6256728..195ad59a65 100644
--- a/pcbnew/io_mgr.cpp
+++ b/pcbnew/io_mgr.cpp
@@ -160,7 +160,7 @@ IO_MGR::PCB_FILE_T IO_MGR::GuessPluginTypeFromLibPath( const wxString& aLibPath
BOARD* IO_MGR::Load( PCB_FILE_T aFileType, const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties, PROJECT* aProject,
+ const STRING_UTF8_MAP* aProperties, PROJECT* aProject,
PROGRESS_REPORTER* aProgressReporter )
{
// release the PLUGIN even if an exception is thrown.
@@ -176,7 +176,7 @@ BOARD* IO_MGR::Load( PCB_FILE_T aFileType, const wxString& aFileName, BOARD* aAp
void IO_MGR::Save( PCB_FILE_T aFileType, const wxString& aFileName, BOARD* aBoard,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// release the PLUGIN even if an exception is thrown.
PLUGIN::RELEASER pi( PluginFind( aFileType ) );
diff --git a/pcbnew/io_mgr.h b/pcbnew/io_mgr.h
index 6d07022921..e27c25f7eb 100644
--- a/pcbnew/io_mgr.h
+++ b/pcbnew/io_mgr.h
@@ -35,7 +35,7 @@
class BOARD;
class PLUGIN;
class FOOTPRINT;
-class PROPERTIES;
+class STRING_UTF8_MAP;
class PROJECT;
class PROGRESS_REPORTER;
@@ -210,7 +210,7 @@ public:
* be loaded.
*/
static BOARD* Load( PCB_FILE_T aFileType, const wxString& aFileName,
- BOARD* aAppendToMe = nullptr, const PROPERTIES* aProperties = nullptr,
+ BOARD* aAppendToMe = nullptr, const STRING_UTF8_MAP* aProperties = nullptr,
PROJECT* aProject = nullptr,
PROGRESS_REPORTER* aProgressReporter = nullptr );
@@ -234,7 +234,7 @@ public:
* @throw IO_ERROR if there is a problem saving or exporting.
*/
static void Save( PCB_FILE_T aFileType, const wxString& aFileName, BOARD* aBoard,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
};
@@ -316,7 +316,7 @@ public:
* possible.
*/
virtual BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties = nullptr, PROJECT* aProject = nullptr,
+ const STRING_UTF8_MAP* aProperties = nullptr, PROJECT* aProject = nullptr,
PROGRESS_REPORTER* aProgressReporter = nullptr );
/**
@@ -348,7 +348,7 @@ public:
* @throw IO_ERROR if there is a problem saving or exporting.
*/
virtual void Save( const wxString& aFileName, BOARD* aBoard,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Return a list of footprint names contained within the library at @a aLibraryPath.
@@ -365,7 +365,7 @@ public:
* @throw IO_ERROR if the library cannot be found, or footprint cannot be loaded.
*/
virtual void FootprintEnumerate( wxArrayString& aFootprintNames, const wxString& aLibraryPath,
- bool aBestEfforts, const PROPERTIES* aProperties = nullptr );
+ bool aBestEfforts, const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Generate a timestamp representing all the files in the library (including the library
@@ -393,7 +393,7 @@ public:
* @throw IO_ERROR if there is an error prefetching the library.
*/
virtual void PrefetchLib( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Load a footprint having @a aFootprintName from the @a aLibraryPath containing a library
@@ -419,7 +419,7 @@ public:
virtual FOOTPRINT* FootprintLoad( const wxString& aLibraryPath,
const wxString& aFootprintName,
bool aKeepUUID = false,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* A version of FootprintLoad() for use after FootprintEnumerate() for more efficient
@@ -427,13 +427,13 @@ public:
*/
virtual const FOOTPRINT* GetEnumeratedFootprint( const wxString& aLibraryPath,
const wxString& aFootprintName,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Check for the existence of a footprint.
*/
virtual bool FootprintExists( const wxString& aLibraryPath, const wxString& aFootprintName,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Write @a aFootprint to an existing library located at @a aLibraryPath.
@@ -452,7 +452,7 @@ public:
* @throw IO_ERROR if there is a problem saving.
*/
virtual void FootprintSave( const wxString& aLibraryPath, const FOOTPRINT* aFootprint,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Delete @a aFootprintName from the library at @a aLibraryPath.
@@ -469,7 +469,7 @@ public:
* @throw IO_ERROR if there is a problem finding the footprint or the library, or deleting it.
*/
virtual void FootprintDelete( const wxString& aLibraryPath, const wxString& aFootprintName,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Create a new empty footprint library at @a aLibraryPath empty.
@@ -488,7 +488,7 @@ public:
* @throw IO_ERROR if there is a problem finding the library, or creating it.
*/
virtual void FootprintLibCreate( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Delete an existing footprint library and returns true, or if library does not
@@ -507,7 +507,7 @@ public:
* @throw IO_ERROR if there is a problem deleting an existing library.
*/
virtual bool FootprintLibDelete( const wxString& aLibraryPath,
- const PROPERTIES* aProperties = nullptr );
+ const STRING_UTF8_MAP* aProperties = nullptr );
/**
* Return true if the library at @a aLibraryPath is writable.
@@ -548,7 +548,7 @@ public:
* This would require a 3 column list, and introducing wx GUI knowledge to
* PLUGIN, which has been avoided to date.
*/
- virtual void FootprintLibOptions( PROPERTIES* aListToAppendTo ) const;
+ virtual void FootprintLibOptions( STRING_UTF8_MAP* aListToAppendTo ) const;
virtual ~PLUGIN()
{
diff --git a/pcbnew/kicad_clipboard.cpp b/pcbnew/kicad_clipboard.cpp
index 89ea8d3f3a..2878bed481 100644
--- a/pcbnew/kicad_clipboard.cpp
+++ b/pcbnew/kicad_clipboard.cpp
@@ -350,7 +350,7 @@ BOARD_ITEM* CLIPBOARD_IO::Parse()
void CLIPBOARD_IO::Save( const wxString& aFileName, BOARD* aBoard,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
init( aProperties );
@@ -395,7 +395,7 @@ void CLIPBOARD_IO::Save( const wxString& aFileName, BOARD* aBoard,
BOARD* CLIPBOARD_IO::Load( const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties, PROJECT* aProject,
+ const STRING_UTF8_MAP* aProperties, PROJECT* aProject,
PROGRESS_REPORTER* aProgressReporter )
{
std::string result;
diff --git a/pcbnew/kicad_clipboard.h b/pcbnew/kicad_clipboard.h
index aa07e14077..fd56fcc340 100644
--- a/pcbnew/kicad_clipboard.h
+++ b/pcbnew/kicad_clipboard.h
@@ -48,7 +48,7 @@ public:
* Saves the entire board to the clipboard formatted using the PCB_PLUGIN formatting
*/
void Save( const wxString& aFileName, BOARD* aBoard,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
/*
* Write all the settings of the BOARD* set by setBoard() and then adds all the
@@ -59,7 +59,7 @@ public:
BOARD_ITEM* Parse();
BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties = nullptr, PROJECT* aProject = nullptr,
+ const STRING_UTF8_MAP* aProperties = nullptr, PROJECT* aProject = nullptr,
PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
void SetBoard( BOARD* aBoard );
diff --git a/pcbnew/plugin.cpp b/pcbnew/plugin.cpp
index c5fd48cb61..ceac3def9f 100644
--- a/pcbnew/plugin.cpp
+++ b/pcbnew/plugin.cpp
@@ -23,7 +23,7 @@
*/
#include
-#include
+#include
#include
@@ -43,7 +43,7 @@ static void not_implemented( PLUGIN* aPlugin, const char* aCaller )
}
-BOARD* PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe, const PROPERTIES* aProperties,
+BOARD* PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe, const STRING_UTF8_MAP* aProperties,
PROJECT* aProject, PROGRESS_REPORTER* aProgressReporter )
{
not_implemented( this, __FUNCTION__ );
@@ -57,7 +57,7 @@ std::vector PLUGIN::GetImportedCachedLibraryFootprints()
return std::vector();
}
-void PLUGIN::Save( const wxString& aFileName, BOARD* aBoard, const PROPERTIES* aProperties )
+void PLUGIN::Save( const wxString& aFileName, BOARD* aBoard, const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -65,21 +65,21 @@ void PLUGIN::Save( const wxString& aFileName, BOARD* aBoard, const PROPERTIES* a
void PLUGIN::FootprintEnumerate( wxArrayString& aFootprintNames, const wxString& aLibraryPath,
- bool aBestEfforts, const PROPERTIES* aProperties )
+ bool aBestEfforts, const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
not_implemented( this, __FUNCTION__ );
}
-void PLUGIN::PrefetchLib( const wxString&, const PROPERTIES* )
+void PLUGIN::PrefetchLib( const wxString&, const STRING_UTF8_MAP* )
{
}
const FOOTPRINT* PLUGIN::GetEnumeratedFootprint( const wxString& aLibraryPath,
const wxString& aFootprintName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// default implementation
return FootprintLoad( aLibraryPath, aFootprintName, false, aProperties );
@@ -87,7 +87,7 @@ const FOOTPRINT* PLUGIN::GetEnumeratedFootprint( const wxString& aLibraryPath,
bool PLUGIN::FootprintExists( const wxString& aLibraryPath, const wxString& aFootprintName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// default implementation
return FootprintLoad( aLibraryPath, aFootprintName, true, aProperties ) != nullptr;
@@ -95,7 +95,7 @@ bool PLUGIN::FootprintExists( const wxString& aLibraryPath, const wxString& aFoo
FOOTPRINT* PLUGIN::FootprintLoad( const wxString& aLibraryPath, const wxString& aFootprintName,
- bool aKeepUUID, const PROPERTIES* aProperties )
+ bool aKeepUUID, const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -104,7 +104,7 @@ FOOTPRINT* PLUGIN::FootprintLoad( const wxString& aLibraryPath, const wxString&
void PLUGIN::FootprintSave( const wxString& aLibraryPath, const FOOTPRINT* aFootprint,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -112,21 +112,21 @@ void PLUGIN::FootprintSave( const wxString& aLibraryPath, const FOOTPRINT* aFoot
void PLUGIN::FootprintDelete( const wxString& aLibraryPath, const wxString& aFootprintName,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
not_implemented( this, __FUNCTION__ );
}
-void PLUGIN::FootprintLibCreate( const wxString& aLibraryPath, const PROPERTIES* aProperties )
+void PLUGIN::FootprintLibCreate( const wxString& aLibraryPath, const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
not_implemented( this, __FUNCTION__ );
}
-bool PLUGIN::FootprintLibDelete( const wxString& aLibraryPath, const PROPERTIES* aProperties )
+bool PLUGIN::FootprintLibDelete( const wxString& aLibraryPath, const STRING_UTF8_MAP* aProperties )
{
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
not_implemented( this, __FUNCTION__ );
@@ -142,7 +142,7 @@ bool PLUGIN::IsFootprintLibWritable( const wxString& aLibraryPath )
}
-void PLUGIN::FootprintLibOptions( PROPERTIES* aListToAppendTo ) const
+void PLUGIN::FootprintLibOptions( STRING_UTF8_MAP* aListToAppendTo ) const
{
// disable all these in another couple of months, after everyone has seen them:
#if 1
diff --git a/pcbnew/plugins/altium/altium_circuit_maker_plugin.cpp b/pcbnew/plugins/altium/altium_circuit_maker_plugin.cpp
index 5c809c6540..3777ed5cdd 100644
--- a/pcbnew/plugins/altium/altium_circuit_maker_plugin.cpp
+++ b/pcbnew/plugins/altium/altium_circuit_maker_plugin.cpp
@@ -63,7 +63,7 @@ const wxString ALTIUM_CIRCUIT_MAKER_PLUGIN::GetFileExtension() const
BOARD* ALTIUM_CIRCUIT_MAKER_PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties, PROJECT* aProject,
+ const STRING_UTF8_MAP* aProperties, PROJECT* aProject,
PROGRESS_REPORTER* aProgressReporter )
{
m_props = aProperties;
diff --git a/pcbnew/plugins/altium/altium_circuit_maker_plugin.h b/pcbnew/plugins/altium/altium_circuit_maker_plugin.h
index 938d678e9a..786a51c24d 100644
--- a/pcbnew/plugins/altium/altium_circuit_maker_plugin.h
+++ b/pcbnew/plugins/altium/altium_circuit_maker_plugin.h
@@ -38,7 +38,7 @@ class ALTIUM_CIRCUIT_MAKER_PLUGIN : public PLUGIN
public:
const wxString PluginName() const override;
- BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe, const PROPERTIES* aProperties,
+ BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe, const STRING_UTF8_MAP* aProperties,
PROJECT* aProject = nullptr,
PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
@@ -54,7 +54,7 @@ public:
~ALTIUM_CIRCUIT_MAKER_PLUGIN();
private:
- const PROPERTIES* m_props;
+ const STRING_UTF8_MAP* m_props;
BOARD* m_board;
};
diff --git a/pcbnew/plugins/altium/altium_circuit_studio_plugin.cpp b/pcbnew/plugins/altium/altium_circuit_studio_plugin.cpp
index f5952ba32f..99425ad1b8 100644
--- a/pcbnew/plugins/altium/altium_circuit_studio_plugin.cpp
+++ b/pcbnew/plugins/altium/altium_circuit_studio_plugin.cpp
@@ -63,7 +63,7 @@ const wxString ALTIUM_CIRCUIT_STUDIO_PLUGIN::GetFileExtension() const
BOARD* ALTIUM_CIRCUIT_STUDIO_PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties, PROJECT* aProject,
+ const STRING_UTF8_MAP* aProperties, PROJECT* aProject,
PROGRESS_REPORTER* aProgressReporter )
{
m_props = aProperties;
diff --git a/pcbnew/plugins/altium/altium_circuit_studio_plugin.h b/pcbnew/plugins/altium/altium_circuit_studio_plugin.h
index 94998f0bd3..f5216653e2 100644
--- a/pcbnew/plugins/altium/altium_circuit_studio_plugin.h
+++ b/pcbnew/plugins/altium/altium_circuit_studio_plugin.h
@@ -38,7 +38,7 @@ class ALTIUM_CIRCUIT_STUDIO_PLUGIN : public PLUGIN
public:
const wxString PluginName() const override;
- BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe, const PROPERTIES* aProperties,
+ BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe, const STRING_UTF8_MAP* aProperties,
PROJECT* aProject, PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
const wxString GetFileExtension() const override;
@@ -53,7 +53,7 @@ public:
~ALTIUM_CIRCUIT_STUDIO_PLUGIN();
private:
- const PROPERTIES* m_props;
+ const STRING_UTF8_MAP* m_props;
BOARD* m_board;
};
diff --git a/pcbnew/plugins/altium/altium_designer_plugin.cpp b/pcbnew/plugins/altium/altium_designer_plugin.cpp
index f21110103e..05f25c892a 100644
--- a/pcbnew/plugins/altium/altium_designer_plugin.cpp
+++ b/pcbnew/plugins/altium/altium_designer_plugin.cpp
@@ -63,7 +63,7 @@ const wxString ALTIUM_DESIGNER_PLUGIN::GetFileExtension() const
BOARD* ALTIUM_DESIGNER_PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties, PROJECT* aProject,
+ const STRING_UTF8_MAP* aProperties, PROJECT* aProject,
PROGRESS_REPORTER* aProgressReporter )
{
m_props = aProperties;
@@ -138,7 +138,7 @@ long long ALTIUM_DESIGNER_PLUGIN::GetLibraryTimestamp( const wxString& aLibraryP
void ALTIUM_DESIGNER_PLUGIN::FootprintEnumerate( wxArrayString& aFootprintNames,
const wxString& aLibraryPath, bool aBestEfforts,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
ALTIUM_COMPOUND_FILE altiumLibFile( aLibraryPath );
@@ -186,7 +186,7 @@ void ALTIUM_DESIGNER_PLUGIN::FootprintEnumerate( wxArrayString& aFootprintNames
FOOTPRINT* ALTIUM_DESIGNER_PLUGIN::FootprintLoad( const wxString& aLibraryPath,
const wxString& aFootprintName, bool aKeepUUID,
- const PROPERTIES* aProperties )
+ const STRING_UTF8_MAP* aProperties )
{
ALTIUM_COMPOUND_FILE altiumLibFile( aLibraryPath );
diff --git a/pcbnew/plugins/altium/altium_designer_plugin.h b/pcbnew/plugins/altium/altium_designer_plugin.h
index c058baa3f9..f9a9c5fef8 100644
--- a/pcbnew/plugins/altium/altium_designer_plugin.h
+++ b/pcbnew/plugins/altium/altium_designer_plugin.h
@@ -40,7 +40,7 @@ public:
const wxString PluginName() const override;
- BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe, const PROPERTIES* aProperties,
+ BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe, const STRING_UTF8_MAP* aProperties,
PROJECT* aProject = nullptr,
PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
@@ -49,11 +49,11 @@ public:
long long GetLibraryTimestamp( const wxString& aLibraryPath ) const override;
void FootprintEnumerate( wxArrayString& aFootprintNames, const wxString& aLibraryPath,
- bool aBestEfforts, const PROPERTIES* aProperties = nullptr ) override;
+ bool aBestEfforts, const STRING_UTF8_MAP* aProperties = nullptr ) override;
FOOTPRINT* FootprintLoad( const wxString& aLibraryPath, const wxString& aFootprintName,
bool aKeepUUID = false,
- const PROPERTIES* aProperties = nullptr ) override;
+ const STRING_UTF8_MAP* aProperties = nullptr ) override;
//bool FootprintExists( const wxString& aLibraryPath, const wxString& aFootprintName, const PROPERTIES* aProperties = nullptr );
@@ -65,7 +65,7 @@ public:
~ALTIUM_DESIGNER_PLUGIN();
private:
- const PROPERTIES* m_props;
+ const STRING_UTF8_MAP* m_props;
BOARD* m_board;
};
diff --git a/pcbnew/plugins/cadstar/cadstar_pcb_archive_plugin.cpp b/pcbnew/plugins/cadstar/cadstar_pcb_archive_plugin.cpp
index 43c764409a..3db6588eb4 100644
--- a/pcbnew/plugins/cadstar/cadstar_pcb_archive_plugin.cpp
+++ b/pcbnew/plugins/cadstar/cadstar_pcb_archive_plugin.cpp
@@ -28,7 +28,7 @@
#include
#include
#include
-#include
+#include
std::map CADSTAR_PCB_ARCHIVE_PLUGIN::DefaultLayerMappingCallback(
@@ -106,7 +106,7 @@ std::vector CADSTAR_PCB_ARCHIVE_PLUGIN::GetImportedCachedLibraryFoot
BOARD* CADSTAR_PCB_ARCHIVE_PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties, PROJECT* aProject,
+ const STRING_UTF8_MAP* aProperties, PROJECT* aProject,
PROGRESS_REPORTER* aProgressReporter )
{
m_props = aProperties;
diff --git a/pcbnew/plugins/cadstar/cadstar_pcb_archive_plugin.h b/pcbnew/plugins/cadstar/cadstar_pcb_archive_plugin.h
index 2fa66f6ce7..ae7955f236 100644
--- a/pcbnew/plugins/cadstar/cadstar_pcb_archive_plugin.h
+++ b/pcbnew/plugins/cadstar/cadstar_pcb_archive_plugin.h
@@ -39,7 +39,7 @@ public:
const wxString PluginName() const override;
BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe,
- const PROPERTIES* aProperties = nullptr, PROJECT* aProject = nullptr,
+ const STRING_UTF8_MAP* aProperties = nullptr, PROJECT* aProject = nullptr,
PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
const wxString GetFileExtension() const override;
@@ -74,7 +74,7 @@ public:
private:
void clearLoadedFootprints();
- const PROPERTIES* m_props;
+ const STRING_UTF8_MAP* m_props;
BOARD* m_board;
std::vector m_loaded_footprints;
bool m_show_layer_mapping_warnings;
diff --git a/pcbnew/plugins/eagle/eagle_plugin.cpp b/pcbnew/plugins/eagle/eagle_plugin.cpp
index 5c599b44a0..2640fe8f17 100644
--- a/pcbnew/plugins/eagle/eagle_plugin.cpp
+++ b/pcbnew/plugins/eagle/eagle_plugin.cpp
@@ -64,7 +64,7 @@ Load() TODO's
#include
#include
#include
-#include
+#include
#include
#include