51 _(
"Import Settings from Another Project..." ), wxSize( 920, 460 ) ),
54 SetEvtHandlerEnabled(
false );
66 [
this]( wxWindow* aParent ) -> wxWindow*
69 },
_(
"Formatting" ) );
73 [
this]( wxWindow* aParent ) -> wxWindow*
76 },
_(
"Annotation" ) );
80 [
this]( wxWindow* aParent ) -> wxWindow*
84 },
_(
"Field Name Templates" ) );
88 [
this]( wxWindow* aParent ) -> wxWindow*
92 },
_(
"BOM Presets" ) );
99 [
this]( wxWindow* aParent ) -> wxWindow*
104 },
_(
"Violation Severity" ) );
108 [
this]( wxWindow* aParent ) -> wxWindow*
111 },
_(
"Compare Symbol with Library" ) );
115 [
this]( wxWindow* aParent ) -> wxWindow*
118 },
_(
"Pin Conflicts Map" ) );
124 [
this]( wxWindow* aParent ) -> wxWindow*
129 },
_(
"Net Classes" ) );
133 [
this]( wxWindow* aParent ) -> wxWindow*
136 },
_(
"Bus Alias Definitions" ) );
140 [
this]( wxWindow* aParent ) -> wxWindow*
143 },
_(
"Net Chains" ) );
147 [
this]( wxWindow* aParent ) -> wxWindow*
150 },
_(
"Text Variables" ) );
157 [
this]( wxWindow* aParent ) -> wxWindow*
160 },
_(
"Embedded Files" ) );
162 for(
size_t i = 0; i <
m_treebook->GetPageCount(); ++i )
165 SetEvtHandlerEnabled(
true );
169 if(
Prj().IsReadOnly() )
171 m_infoBar->ShowMessage(
_(
"Project is missing or read-only. Settings will not be editable." ),
175 wxBookCtrlEvent evt( wxEVT_TREEBOOK_PAGE_CHANGED, wxID_ANY, 0 );
185 int page = aEvent.GetSelection();
187 if(
Prj().IsReadOnly() )
197 if( importDlg.
ShowModal() == wxID_CANCEL )
207 "Project file %s could not be loaded." ),
208 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.
ERC_SETTINGS * m_ErcSettings
Eeschema params.
SCHEMATIC_SETTINGS * m_SchematicSettings
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.