2015-06-22 15:38:54 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2017-07-24 19:02:59 +00:00
|
|
|
* Copyright (C) 2015 Chris Pavlina <pavlina.chris@gmail.com>
|
2021-03-25 14:07:16 +00:00
|
|
|
* Copyright (C) 2015-2021 KiCad Developers, see change_log.txt for contributors.
|
2015-06-22 15:38:54 +00:00
|
|
|
*
|
|
|
|
* 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 2
|
|
|
|
* 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, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _LIB_CACHE_RESCUE_H_
|
|
|
|
#define _LIB_CACHE_RESCUE_H_
|
|
|
|
|
|
|
|
/* This code handles the case where an old schematic was made before
|
|
|
|
* various changes were made, either to KiCad or to the libraries, and
|
|
|
|
* the project needs to be recovered. The function of note is a member
|
|
|
|
* of SCH_EDIT_FRAME, defined thus:
|
|
|
|
*
|
|
|
|
* bool SCH_EDIT_FRAME::RescueProject( bool aSilentIfNone );
|
|
|
|
*
|
2021-06-10 14:10:55 +00:00
|
|
|
* When this is called, a list of problematic symbols is compiled. If
|
2015-06-22 15:38:54 +00:00
|
|
|
* this list is empty, then the function displays a notification and returns
|
|
|
|
* (if aSilentIfNone is true, the notification is silenced).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <wx/string.h>
|
|
|
|
#include <boost/ptr_container/ptr_vector.hpp>
|
|
|
|
|
2017-10-22 00:48:25 +00:00
|
|
|
#include <properties.h>
|
2021-02-24 13:48:02 +00:00
|
|
|
#include <lib_symbol.h>
|
2020-10-05 18:38:40 +00:00
|
|
|
#include <sch_plugins/legacy/sch_legacy_plugin.h>
|
2019-02-05 17:14:27 +00:00
|
|
|
#include <class_draw_panel_gal.h>
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
|
2021-06-10 18:51:46 +00:00
|
|
|
class LIB_SYMBOL;
|
2021-06-10 14:10:55 +00:00
|
|
|
class SCH_SYMBOL;
|
2015-06-22 15:38:54 +00:00
|
|
|
class RESCUER;
|
2017-10-22 00:48:25 +00:00
|
|
|
class SCH_EDIT_FRAME;
|
|
|
|
class SCH_LEGACY_PLUGIN;
|
2019-02-05 17:14:27 +00:00
|
|
|
class SCH_SHEET_PATH;
|
2020-05-13 02:00:37 +00:00
|
|
|
class SCHEMATIC;
|
2017-10-22 00:48:25 +00:00
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
|
|
|
|
enum RESCUE_TYPE
|
|
|
|
{
|
|
|
|
RESCUE_CONFLICT,
|
|
|
|
RESCUE_CASE,
|
|
|
|
};
|
|
|
|
|
2017-10-22 00:48:25 +00:00
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
class RESCUE_CANDIDATE
|
|
|
|
{
|
|
|
|
public:
|
2015-06-22 18:33:15 +00:00
|
|
|
virtual ~RESCUE_CANDIDATE() {}
|
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
/**
|
|
|
|
* Get the name that was originally requested in the schematic
|
|
|
|
*/
|
2017-10-22 00:48:25 +00:00
|
|
|
virtual wxString GetRequestedName() const { return m_requested_name; }
|
2015-06-22 15:38:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the name we're proposing changing it to
|
|
|
|
*/
|
2017-10-22 00:48:25 +00:00
|
|
|
virtual wxString GetNewName() const { return m_new_name; }
|
2015-06-22 15:38:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the part that can be loaded from the project cache, if possible, or
|
|
|
|
* else NULL.
|
|
|
|
*/
|
2021-07-16 20:13:26 +00:00
|
|
|
virtual LIB_SYMBOL* GetCacheCandidate() const { return nullptr; }
|
2015-06-22 15:38:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the part the would be loaded from the libraries, if possible, or else
|
|
|
|
* NULL.
|
|
|
|
*/
|
2021-06-10 18:51:46 +00:00
|
|
|
virtual LIB_SYMBOL* GetLibCandidate() const { return m_lib_candidate; }
|
2015-06-22 15:38:54 +00:00
|
|
|
|
2020-04-02 00:17:25 +00:00
|
|
|
int GetUnit() const { return m_unit; }
|
|
|
|
|
|
|
|
int GetConvert() const { return m_convert; }
|
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
/**
|
|
|
|
* Get a description of the action proposed, for displaying in the UI.
|
|
|
|
*/
|
|
|
|
virtual wxString GetActionDescription() const = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Perform the actual rescue action. If successful, this must log the rescue using
|
|
|
|
* RESCUER::LogRescue to allow it to be reversed.
|
|
|
|
* @return True on success.
|
|
|
|
*/
|
|
|
|
virtual bool PerformAction( RESCUER* aRescuer ) = 0;
|
2021-03-25 14:07:16 +00:00
|
|
|
|
|
|
|
protected:
|
2021-06-10 18:51:46 +00:00
|
|
|
wxString m_requested_name;
|
|
|
|
wxString m_new_name;
|
|
|
|
LIB_SYMBOL* m_lib_candidate;
|
|
|
|
int m_unit;
|
|
|
|
int m_convert;
|
2015-06-22 15:38:54 +00:00
|
|
|
};
|
|
|
|
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
class RESCUE_CASE_CANDIDATE : public RESCUE_CANDIDATE
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Grab all possible RESCUE_CASE_CANDIDATE objects into a vector.
|
|
|
|
*
|
2021-03-25 14:07:16 +00:00
|
|
|
* @param aRescuer is the working RESCUER instance.
|
|
|
|
* @param aCandidates is the vector the will hold the candidates.
|
2017-10-22 00:48:25 +00:00
|
|
|
*/
|
|
|
|
static void FindRescues( RESCUER& aRescuer, boost::ptr_vector<RESCUE_CANDIDATE>& aCandidates );
|
|
|
|
|
|
|
|
/**
|
2021-03-25 14:07:16 +00:00
|
|
|
* Create a RESCUE_CANDIDATE.
|
|
|
|
*
|
|
|
|
* @param aRequestedName us the name the schematic asks for.
|
|
|
|
* @param aNewName is the name we want to change it to.
|
|
|
|
* @param aLibCandidate is the part that will give us.
|
|
|
|
* @param aUnit is the unit of the rescued symbol.
|
|
|
|
* @param aConvert is the body style of the rescued symbol.
|
2017-10-22 00:48:25 +00:00
|
|
|
*/
|
|
|
|
RESCUE_CASE_CANDIDATE( const wxString& aRequestedName, const wxString& aNewName,
|
2021-06-10 18:51:46 +00:00
|
|
|
LIB_SYMBOL* aLibCandidate, int aUnit = 0, int aConvert = 0 );
|
2017-10-22 00:48:25 +00:00
|
|
|
|
2021-07-16 20:13:26 +00:00
|
|
|
RESCUE_CASE_CANDIDATE() { m_lib_candidate = nullptr; }
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
virtual wxString GetActionDescription() const override;
|
|
|
|
|
|
|
|
virtual bool PerformAction( RESCUER* aRescuer ) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class RESCUE_CACHE_CANDIDATE: public RESCUE_CANDIDATE
|
|
|
|
{
|
2021-06-10 18:51:46 +00:00
|
|
|
LIB_SYMBOL* m_cache_candidate;
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
/**
|
2021-03-25 14:07:16 +00:00
|
|
|
* Grab all possible #RESCUE_CACHE_CANDIDATE objects into a vector.
|
2017-10-22 00:48:25 +00:00
|
|
|
*
|
2021-03-25 14:07:16 +00:00
|
|
|
* @param aRescuer is the working RESCUER instance.
|
|
|
|
* @param aCandidates is the vector the will hold the candidates.
|
2017-10-22 00:48:25 +00:00
|
|
|
*/
|
|
|
|
static void FindRescues( RESCUER& aRescuer, boost::ptr_vector<RESCUE_CANDIDATE>& aCandidates );
|
|
|
|
|
|
|
|
/**
|
2021-03-25 14:07:16 +00:00
|
|
|
* Create a RESCUE_CACHE_CANDIDATE.
|
|
|
|
*
|
|
|
|
* @param aRequestedName is the name the schematic asks for.
|
|
|
|
* @param aNewName is the name we want to change it to.
|
|
|
|
* @param aCacheCandidate is the part from the cache.
|
|
|
|
* @param aLibCandidate is the part that would be loaded from the library.
|
|
|
|
* @param aUnit is the unit of the rescued symbol.
|
|
|
|
* @param aConvert is the body style of the rescued symbol.
|
2017-10-22 00:48:25 +00:00
|
|
|
*/
|
|
|
|
RESCUE_CACHE_CANDIDATE( const wxString& aRequestedName, const wxString& aNewName,
|
2021-06-10 18:51:46 +00:00
|
|
|
LIB_SYMBOL* aCacheCandidate, LIB_SYMBOL* aLibCandidate,
|
2020-04-02 00:17:25 +00:00
|
|
|
int aUnit = 0, int aConvert = 0 );
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
RESCUE_CACHE_CANDIDATE();
|
|
|
|
|
2021-06-10 18:51:46 +00:00
|
|
|
virtual LIB_SYMBOL* GetCacheCandidate() const override { return m_cache_candidate; }
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
virtual wxString GetActionDescription() const override;
|
|
|
|
|
|
|
|
virtual bool PerformAction( RESCUER* aRescuer ) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class RESCUE_SYMBOL_LIB_TABLE_CANDIDATE : public RESCUE_CANDIDATE
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Grab all possible RESCUE_SYMBOL_LIB_TABLE_CANDIDATE objects into a vector.
|
|
|
|
*
|
2021-03-25 14:07:16 +00:00
|
|
|
* @param aRescuer is the working #RESCUER instance.
|
|
|
|
* @param aCandidates is the vector the will hold the candidates.
|
2017-10-22 00:48:25 +00:00
|
|
|
*/
|
|
|
|
static void FindRescues( RESCUER& aRescuer, boost::ptr_vector<RESCUE_CANDIDATE>& aCandidates );
|
|
|
|
|
|
|
|
/**
|
2021-03-25 14:07:16 +00:00
|
|
|
* Create RESCUE_CANDIDATE.
|
|
|
|
*
|
|
|
|
* @param aRequestedName is the name the schematic asks for.
|
|
|
|
* @param aNewName is the name we want to change it to.
|
|
|
|
* @param aCacheCandidate is the part from the cache.
|
|
|
|
* @param aLibCandidate is the part that would be loaded from the library.
|
|
|
|
* @param aUnit is the unit of the rescued symbol.
|
|
|
|
* @param aConvert is the body style of the rescued symbol.
|
2017-10-22 00:48:25 +00:00
|
|
|
*/
|
|
|
|
RESCUE_SYMBOL_LIB_TABLE_CANDIDATE( const LIB_ID& aRequestedId, const LIB_ID& aNewId,
|
2021-06-10 18:51:46 +00:00
|
|
|
LIB_SYMBOL* aCacheCandidate, LIB_SYMBOL* aLibCandidate,
|
2020-04-02 00:17:25 +00:00
|
|
|
int aUnit = 0, int aConvert = 0 );
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
RESCUE_SYMBOL_LIB_TABLE_CANDIDATE();
|
|
|
|
|
2021-06-10 18:51:46 +00:00
|
|
|
virtual LIB_SYMBOL* GetCacheCandidate() const override { return m_cache_candidate; }
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
virtual wxString GetActionDescription() const override;
|
|
|
|
|
|
|
|
virtual bool PerformAction( RESCUER* aRescuer ) override;
|
2021-03-25 14:07:16 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
LIB_ID m_requested_id;
|
|
|
|
LIB_ID m_new_id;
|
2021-06-10 18:51:46 +00:00
|
|
|
LIB_SYMBOL* m_cache_candidate;
|
2017-10-22 00:48:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
class RESCUE_LOG
|
|
|
|
{
|
|
|
|
public:
|
2021-06-10 14:10:55 +00:00
|
|
|
SCH_SYMBOL* symbol;
|
|
|
|
wxString old_name;
|
|
|
|
wxString new_name;
|
2015-06-22 15:38:54 +00:00
|
|
|
};
|
|
|
|
|
2017-10-22 00:48:25 +00:00
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
class RESCUER
|
|
|
|
{
|
|
|
|
public:
|
2020-05-13 02:00:37 +00:00
|
|
|
RESCUER( PROJECT& aProject, SCHEMATIC* aSchematic, SCH_SHEET_PATH* aCurrentSheet,
|
2019-02-05 17:14:27 +00:00
|
|
|
EDA_DRAW_PANEL_GAL::GAL_TYPE aGalBackeEndType );
|
2015-06-22 15:38:54 +00:00
|
|
|
|
2020-02-05 22:19:14 +00:00
|
|
|
virtual ~RESCUER()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
/**
|
2021-03-25 14:07:16 +00:00
|
|
|
* Write the rescue library.
|
|
|
|
*
|
|
|
|
* Called after successful PerformAction()s. If this fails, undo the actions.
|
2017-10-22 00:48:25 +00:00
|
|
|
*
|
|
|
|
* @return True on success.
|
|
|
|
*/
|
2019-02-05 17:14:27 +00:00
|
|
|
virtual bool WriteRescueLibrary( wxWindow *aParent ) = 0;
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
virtual void OpenRescueLibrary() = 0;
|
|
|
|
|
|
|
|
/**
|
2015-06-22 15:38:54 +00:00
|
|
|
* Populate the RESCUER with all possible candidates.
|
|
|
|
*/
|
2017-10-22 00:48:25 +00:00
|
|
|
virtual void FindCandidates() = 0;
|
|
|
|
|
2021-06-15 12:31:28 +00:00
|
|
|
virtual void AddSymbol( LIB_SYMBOL* aNewSymbol ) = 0;
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Display a dialog to allow the user to select rescues.
|
|
|
|
*
|
|
|
|
* @param aAskShowAgain - whether the "Never Show Again" button should be visible
|
|
|
|
*/
|
2019-02-05 17:14:27 +00:00
|
|
|
virtual void InvokeDialog( wxWindow* aParent, bool aAskShowAgain ) = 0;
|
2015-06-22 15:38:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Filter out duplicately named rescue candidates.
|
|
|
|
*/
|
|
|
|
void RemoveDuplicates();
|
|
|
|
|
|
|
|
/**
|
2021-03-25 14:07:16 +00:00
|
|
|
* Return the number of rescue candidates found.
|
2015-06-22 15:38:54 +00:00
|
|
|
*/
|
|
|
|
size_t GetCandidateCount() { return m_all_candidates.size(); }
|
|
|
|
|
|
|
|
/**
|
2021-03-25 14:07:16 +00:00
|
|
|
* Get the number of rescue candidates chosen by the user.
|
2015-06-22 15:38:54 +00:00
|
|
|
*/
|
|
|
|
size_t GetChosenCandidateCount() { return m_chosen_candidates.size(); }
|
|
|
|
|
|
|
|
/**
|
2017-10-22 00:48:25 +00:00
|
|
|
* Get the list of symbols that need rescued.
|
2015-06-22 15:38:54 +00:00
|
|
|
*/
|
2021-06-10 14:10:55 +00:00
|
|
|
std::vector<SCH_SYMBOL*>* GetSymbols() { return &m_symbols; }
|
2015-06-22 15:38:54 +00:00
|
|
|
|
|
|
|
/**
|
2017-10-22 00:48:25 +00:00
|
|
|
* Return the #SCH_PROJECT object for access to the symbol libraries.
|
2015-06-22 15:38:54 +00:00
|
|
|
*/
|
|
|
|
PROJECT* GetPrj() { return m_prj; }
|
|
|
|
|
2020-05-13 02:00:37 +00:00
|
|
|
SCHEMATIC* Schematic() { return m_schematic; }
|
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
/**
|
2017-10-22 00:48:25 +00:00
|
|
|
* Used by individual #RESCUE_CANDIDATE objects to log a rescue for undoing.
|
2015-06-22 15:38:54 +00:00
|
|
|
*/
|
2021-06-10 14:10:55 +00:00
|
|
|
void LogRescue( SCH_SYMBOL *aSymbol, const wxString& aOldName, const wxString& aNewName );
|
2015-06-22 15:38:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Perform all chosen rescue actions, logging them to be undone if necessary.
|
2017-10-22 00:48:25 +00:00
|
|
|
*
|
2015-06-22 15:38:54 +00:00
|
|
|
* @return True on success
|
|
|
|
*/
|
|
|
|
bool DoRescues();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the effects of all rescues on the project.
|
|
|
|
*/
|
|
|
|
void UndoRescues();
|
2019-02-05 17:14:27 +00:00
|
|
|
|
|
|
|
static bool RescueProject( wxWindow* aParent, RESCUER& aRescuer, bool aRunningOnDemand );
|
2021-03-25 14:07:16 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
friend class DIALOG_RESCUE_EACH;
|
|
|
|
|
2021-06-10 14:10:55 +00:00
|
|
|
std::vector<SCH_SYMBOL*> m_symbols;
|
2021-03-25 14:07:16 +00:00
|
|
|
PROJECT* m_prj;
|
|
|
|
SCHEMATIC* m_schematic;
|
|
|
|
EDA_DRAW_PANEL_GAL::GAL_TYPE m_galBackEndType;
|
|
|
|
SCH_SHEET_PATH* m_currentSheet;
|
|
|
|
|
|
|
|
boost::ptr_vector<RESCUE_CANDIDATE> m_all_candidates;
|
|
|
|
std::vector<RESCUE_CANDIDATE*> m_chosen_candidates;
|
|
|
|
|
|
|
|
std::vector<RESCUE_LOG> m_rescue_log;
|
2015-06-22 15:38:54 +00:00
|
|
|
};
|
|
|
|
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
class LEGACY_RESCUER : public RESCUER
|
|
|
|
{
|
|
|
|
public:
|
2020-05-13 02:00:37 +00:00
|
|
|
LEGACY_RESCUER( PROJECT& aProject, SCHEMATIC* aSchematic, SCH_SHEET_PATH* aCurrentSheet,
|
2019-02-05 17:14:27 +00:00
|
|
|
EDA_DRAW_PANEL_GAL::GAL_TYPE aGalBackEndType ) :
|
2020-05-13 02:00:37 +00:00
|
|
|
RESCUER( aProject, aSchematic, aCurrentSheet, aGalBackEndType )
|
2017-10-22 00:48:25 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-02-05 22:19:14 +00:00
|
|
|
virtual ~LEGACY_RESCUER()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-10-22 00:48:25 +00:00
|
|
|
virtual void FindCandidates() override;
|
|
|
|
|
2019-02-05 17:14:27 +00:00
|
|
|
virtual void InvokeDialog( wxWindow* aParent, bool aAskShowAgain ) override;
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
virtual void OpenRescueLibrary() override;
|
|
|
|
|
2019-02-05 17:14:27 +00:00
|
|
|
virtual bool WriteRescueLibrary( wxWindow *aParent ) override;
|
2017-10-22 00:48:25 +00:00
|
|
|
|
2021-06-15 12:31:28 +00:00
|
|
|
virtual void AddSymbol( LIB_SYMBOL* aNewSymbol ) override;
|
2021-03-25 14:07:16 +00:00
|
|
|
|
|
|
|
private:
|
2021-06-15 12:31:28 +00:00
|
|
|
std::unique_ptr<SYMBOL_LIB> m_rescue_lib;
|
2017-10-22 00:48:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class SYMBOL_LIB_TABLE_RESCUER : public RESCUER
|
|
|
|
{
|
|
|
|
public:
|
2020-05-13 02:00:37 +00:00
|
|
|
SYMBOL_LIB_TABLE_RESCUER( PROJECT& aProject, SCHEMATIC* aSchematic,
|
|
|
|
SCH_SHEET_PATH* aCurrentSheet,
|
2019-02-05 17:14:27 +00:00
|
|
|
EDA_DRAW_PANEL_GAL::GAL_TYPE aGalBackeEndType );
|
2017-10-22 00:48:25 +00:00
|
|
|
|
2020-02-05 22:19:14 +00:00
|
|
|
virtual ~SYMBOL_LIB_TABLE_RESCUER()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-10-22 00:48:25 +00:00
|
|
|
virtual void FindCandidates() override;
|
|
|
|
|
2019-02-05 17:14:27 +00:00
|
|
|
virtual void InvokeDialog( wxWindow* aParent, bool aAskShowAgain ) override;
|
2017-10-22 00:48:25 +00:00
|
|
|
|
|
|
|
virtual void OpenRescueLibrary() override;
|
|
|
|
|
2019-02-05 17:14:27 +00:00
|
|
|
virtual bool WriteRescueLibrary( wxWindow* aParent ) override;
|
2017-10-22 00:48:25 +00:00
|
|
|
|
2021-06-15 12:31:28 +00:00
|
|
|
virtual void AddSymbol( LIB_SYMBOL* aNewSymbol ) override;
|
2021-03-25 14:07:16 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
SCH_PLUGIN::SCH_PLUGIN_RELEASER m_pi;
|
|
|
|
|
|
|
|
std::unique_ptr< PROPERTIES > m_properties; ///< Library plugin properties
|
2017-10-22 00:48:25 +00:00
|
|
|
};
|
|
|
|
|
2015-06-22 15:38:54 +00:00
|
|
|
#endif // _LIB_CACHE_RESCUE_H_
|