53 _(
"Import Settings from Another Project..." ), wxSize( 920, 460 ) ),
56 SetEvtHandlerEnabled(
false );
68 [
this]( wxWindow* aParent ) -> wxWindow*
71 },
_(
"Formatting" ) );
75 [
this]( wxWindow* aParent ) -> wxWindow*
78 },
_(
"Annotation" ) );
82 [
this]( wxWindow* aParent ) -> wxWindow*
86 },
_(
"Field Name Templates" ) );
90 [
this]( wxWindow* aParent ) -> wxWindow*
94 },
_(
"BOM Presets" ) );
101 [
this]( wxWindow* aParent ) -> wxWindow*
106 },
_(
"Violation Severity" ) );
110 [
this]( wxWindow* aParent ) -> wxWindow*
113 },
_(
"Compare Symbol with Library" ) );
117 [
this]( wxWindow* aParent ) -> wxWindow*
120 },
_(
"Pin Conflicts Map" ) );
126 [
this]( wxWindow* aParent ) -> wxWindow*
131 },
_(
"Net Classes" ) );
135 [
this]( wxWindow* aParent ) -> wxWindow*
138 },
_(
"Bus Alias Definitions" ) );
142 [
this]( wxWindow* aParent ) -> wxWindow*
145 },
_(
"Net Chains" ) );
149 [
this]( wxWindow* aParent ) -> wxWindow*
152 },
_(
"Text Variables" ) );
159 [
this]( wxWindow* aParent ) -> wxWindow*
162 },
_(
"Embedded Files" ) );
164 for(
size_t i = 0; i <
m_treebook->GetPageCount(); ++i )
167 SetEvtHandlerEnabled(
true );
171 if(
Prj().IsReadOnly() )
173 m_infoBar->ShowMessage(
_(
"Project is missing or read-only. Settings will not be editable." ),
177 wxBookCtrlEvent evt( wxEVT_TREEBOOK_PAGE_CHANGED, wxID_ANY, 0 );
187 int page = aEvent.GetSelection();
189 if(
Prj().IsReadOnly() )
199 if( importDlg.
ShowModal() == wxID_CANCEL )
209 "Project file %s could not be loaded." ),
210 projectFn.GetFullPath() ) );
size_t m_fieldNameTemplatesPage
size_t m_symbolParityPage
size_t m_embeddedFilesPage
void onPageChanged(wxBookCtrlEvent &aEvent) override
DIALOG_SCHEMATIC_SETUP(SCH_EDIT_FRAME *aFrame)
std::shared_ptr< ERC_ITEM > m_pinToPinError
void onAuxiliaryAction(wxCommandEvent &aEvent) override
wxCheckBox * m_BomPresetsOpt
wxCheckBox * m_NetClassesOpt
wxCheckBox * m_SymbolParityOpt
wxCheckBox * m_FormattingOpt
wxCheckBox * m_BusAliasesOpt
wxCheckBox * m_FieldNameTemplatesOpt
wxCheckBox * m_SeveritiesOpt
wxCheckBox * m_TextVarsOpt
wxCheckBox * m_BomFmtPresetsOpt
wxCheckBox * m_annotationOpt
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
static std::shared_ptr< ERC_ITEM > Create(int aErrorCode)
Constructs an ERC_ITEM for the given error code.
static std::vector< std::reference_wrapper< RC_ITEM > > GetItemsWithSeverities()
Container for ERC settings.
std::map< int, SEVERITY > m_ERCSeverities
PIN_ERROR m_PinMap[ELECTRICAL_PINTYPES_TOTAL][ELECTRICAL_PINTYPES_TOTAL]
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
bool LoadFromFile(const wxString &aDirectory="") override
Loads the JSON document from the parent and then calls Load()
WX_TREEBOOK * GetTreebook()
PAGED_DIALOG(wxWindow *aParent, const wxString &aTitle, bool aShowReset, bool aShowOpenFolder, const wxString &aAuxiliaryAction=wxEmptyString, const wxSize &aInitialSize=wxDefaultSize)
virtual void onPageChanged(wxBookCtrlEvent &aEvent)
void ImportBomFmtPresetsFrom(SCHEMATIC_SETTINGS &aSettings)
void ImportBomPresetsFrom(SCHEMATIC_SETTINGS &aSettings)
void ImportSettingsFrom(SCHEMATIC_SETTINGS &aSettings)
void ImportSettingsFrom(const std::map< wxString, std::vector< wxString > > &aAliases)
void ImportSettingsFrom(const std::shared_ptr< NET_SETTINGS > &aNetSettings)
Schematic-Setup tab for managing committed net chains.
void ImportSettingsFrom(PIN_ERROR aPinMap[][ELECTRICAL_PINTYPES_TOTAL])
void ImportSettingsFrom(std::map< int, SEVERITY > &aSettings)
void ImportSettingsFrom(SYMBOL_PARITY_SETTINGS &aSettings)
void ImportSettingsFrom(TEMPLATES *templateMgr)
void ImportSettingsFrom(const PROJECT *aOtherProject)
The backing store for a PROJECT, in JSON format.
std::shared_ptr< NET_SETTINGS > m_NetSettings
Net settings for this project (owned here)
TEMPLATES m_TemplateFieldNames
Project and global field name templates shared by project editors.
std::map< wxString, std::vector< wxString > > m_BusAliases
Bus alias definitions for the schematic project.
Container for project specific data.
virtual PROJECT_FILE & GetProjectFile() const
These are loaded from Eeschema settings but then overwritten by the project settings.
SYMBOL_PARITY_SETTINGS m_SymbolParity
Holds all the data relating to one schematic.
std::set< wxString > GetNetClassAssignmentCandidates()
Return the set of netname candidates for netclass assignment.
Schematic editor (Eeschema) main window.
Move-only RAII wrapper for "load a foreign PROJECT non-active and unload it on scope exit.
bool IsValid() const
True iff the project loaded (or was already loaded).
PROJECT * GetProject() const
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
This file is part of the common library.
@ ERCE_PIN_TO_PIN_WARNING
KICOMMON_API void Disable(wxWindow *aWindow)
Makes a window read-only.