41 _(
"Import Settings from Another Project..." ) ),
44 SetEvtHandlerEnabled(
false );
56 [
this]( wxWindow* aParent ) -> wxWindow*
59 },
_(
"Formatting" ) );
63 [
this]( wxWindow* aParent ) -> wxWindow*
67 },
_(
"Field Name Templates" ) );
73 [
this]( wxWindow* aParent ) -> wxWindow*
79 },
_(
"Violation Severity" ) );
83 [
this]( wxWindow* aParent ) -> wxWindow*
86 },
_(
"Pin Conflicts Map" ) );
92 [
this]( wxWindow* aParent ) -> wxWindow*
99 },
_(
"Net Classes" ) );
103 [
this]( wxWindow* aParent ) -> wxWindow*
106 },
_(
"Bus Alias Definitions" ) );
109 [
this]( wxWindow* aParent ) -> wxWindow*
112 },
_(
"Text Variables" ) );
114 for(
size_t i = 0; i <
m_treebook->GetPageCount(); ++i )
119 m_treebook->SetInitialSize( wxSize( 920, 460 ) );
121 SetEvtHandlerEnabled(
true );
125 if(
Prj().IsReadOnly() )
128 "editable." ), wxICON_WARNING );
131 wxBookCtrlEvent evt( wxEVT_TREEBOOK_PAGE_CHANGED, wxID_ANY, 0 );
146 int page = aEvent.GetSelection();
148 if(
Prj().IsReadOnly() )
157 if( importDlg.ShowModal() == wxID_CANCEL )
164 wxString msg = wxString::Format(
_(
"Error importing settings from project:\n"
165 "Project file %s could not be loaded." ),
166 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_NetClassesOpt
wxCheckBox * m_FormattingOpt
wxCheckBox * m_FieldNameTemplatesOpt
wxCheckBox * m_SeveritiesOpt
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.