42 _(
"Import Settings from Another Project..." ), wxSize( 920, 460 ) ),
45 SetEvtHandlerEnabled(
false );
57 [
this]( wxWindow* aParent ) -> wxWindow*
60 },
_(
"Formatting" ) );
64 [
this]( wxWindow* aParent ) -> wxWindow*
68 },
_(
"Field Name Templates" ) );
72 [
this]( wxWindow* aParent ) -> wxWindow*
76 },
_(
"BOM Presets" ) );
83 [
this]( wxWindow* aParent ) -> wxWindow*
89 },
_(
"Violation Severity" ) );
93 [
this]( wxWindow* aParent ) -> wxWindow*
96 },
_(
"Pin Conflicts Map" ) );
102 [
this]( wxWindow* aParent ) -> wxWindow*
109 },
_(
"Net Classes" ) );
113 [
this]( wxWindow* aParent ) -> wxWindow*
116 },
_(
"Bus Alias Definitions" ) );
119 [
this]( wxWindow* aParent ) -> wxWindow*
122 },
_(
"Text Variables" ) );
124 for(
size_t i = 0; i <
m_treebook->GetPageCount(); ++i )
127 SetEvtHandlerEnabled(
true );
131 if(
Prj().IsReadOnly() )
134 "editable." ), wxICON_WARNING );
137 wxBookCtrlEvent evt( wxEVT_TREEBOOK_PAGE_CHANGED, wxID_ANY, 0 );
152 int page = aEvent.GetSelection();
154 if(
Prj().IsReadOnly() )
163 if( importDlg.ShowModal() == wxID_CANCEL )
167 bool alreadyLoaded =
false;
171 alreadyLoaded =
true;
175 wxString msg = wxString::Format(
_(
"Error importing settings from project:\n"
176 "Project file %s could not be loaded." ),
177 projectFn.GetFullPath() );
size_t m_fieldNameTemplatesPage
void onPageChanged(wxBookCtrlEvent &aEvent) override
DIALOG_SCHEMATIC_SETUP(SCH_EDIT_FRAME *aFrame)
std::shared_ptr< ERC_ITEM > m_pinToPinError
~DIALOG_SCHEMATIC_SETUP()
void onAuxiliaryAction(wxCommandEvent &aEvent) override
wxCheckBox * m_BomPresetsOpt
wxCheckBox * m_NetClassesOpt
wxCheckBox * m_FormattingOpt
wxCheckBox * m_FieldNameTemplatesOpt
wxCheckBox * m_SeveritiesOpt
wxCheckBox * m_BomFmtPresetsOpt
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
SETTINGS_MANAGER * GetSettingsManager() const
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()
virtual void onPageChanged(wxBookCtrlEvent &aEvent)
The backing store for a PROJECT, in JSON format.
ERC_SETTINGS * m_ErcSettings
Eeschema params.
SCHEMATIC_SETTINGS * m_SchematicSettings
std::shared_ptr< NET_SETTINGS > & NetSettings()
std::shared_ptr< NET_SETTINGS > m_NetSettings
Net settings for this project (owned here)
Container for project specific data.
virtual PROJECT_FILE & GetProjectFile() const
These settings were stored in SCH_BASE_FRAME previously.
TEMPLATES m_TemplateFieldNames
Holds all the data relating to one schematic.
SCHEMATIC_SETTINGS & Settings() const
std::set< wxString > GetNetClassAssignmentCandidates()
Return the set of netname candidates for netclass assignment.
ERC_SETTINGS & ErcSettings() const
Schematic editor (Eeschema) main window.
SCHEMATIC & Schematic() const
bool LoadProject(const wxString &aFullPath, bool aSetActive=true)
Loads a project or sets up a new project with a specified path.
PROJECT * GetProject(const wxString &aFullPath) const
Retrieves a loaded project by name.
bool UnloadProject(PROJECT *aProject, bool aSave=true)
Saves, unloads and unregisters the given PROJECT.
void ShowMessage(const wxString &aMessage, int aFlags=wxICON_INFORMATION) override
Show the info bar with the provided message and icon.
wxWindow * ResolvePage(size_t aPage)
bool AddLazySubPage(std::function< wxWindow *(wxWindow *aParent)> aLazyCtor, const wxString &text, bool bSelect=false, int imageId=NO_IMAGE)
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
void Disable(wxWindow *aWindow)
Makes a window read-only.