diff --git a/eeschema/menubar.cpp b/eeschema/menubar.cpp index 624f5a6016..aba15417ae 100644 --- a/eeschema/menubar.cpp +++ b/eeschema/menubar.cpp @@ -646,6 +646,13 @@ static void preparePreferencesMenu( SCH_EDIT_FRAME* aFrame, wxMenu* aParentMenu KiBitmap( preference_xpm ) ); #endif // __WXMAC__ + // Path configuration edit dialog. + AddMenuItem( aParentMenu, + ID_PREFERENCES_CONFIGURE_PATHS, + _( "Configure &Paths" ), + _( "Edit path configuration environment variables" ), + KiBitmap( editor_xpm ) ); + // Language submenu aParentMenu->AppendSeparator(); Pgm().AddMenuLanguageList( aParentMenu ); diff --git a/eeschema/schframe.cpp b/eeschema/schframe.cpp index c9d7307827..60419bf981 100644 --- a/eeschema/schframe.cpp +++ b/eeschema/schframe.cpp @@ -246,6 +246,7 @@ BEGIN_EVENT_TABLE( SCH_EDIT_FRAME, EDA_DRAW_FRAME ) SCH_EDIT_FRAME::Process_Config ) EVT_TOOL( wxID_PREFERENCES, SCH_EDIT_FRAME::OnPreferencesOptions ) + EVT_MENU( ID_PREFERENCES_CONFIGURE_PATHS, SCH_EDIT_FRAME::OnConfigurePaths ) EVT_TOOL( ID_RUN_LIBRARY, SCH_EDIT_FRAME::OnOpenLibraryEditor ) EVT_TOOL( ID_POPUP_SCH_CALL_LIBEDIT_AND_LOAD_CMP, SCH_EDIT_FRAME::OnOpenLibraryEditor ) @@ -1491,3 +1492,9 @@ void SCH_EDIT_FRAME::UpdateTitle() SetTitle( title ); } + + +void SCH_EDIT_FRAME::OnConfigurePaths( wxCommandEvent& aEvent ) +{ + Pgm().ConfigurePaths( this ); +} diff --git a/eeschema/schframe.h b/eeschema/schframe.h index e08082d7f9..71e940368c 100644 --- a/eeschema/schframe.h +++ b/eeschema/schframe.h @@ -27,8 +27,8 @@ * @file schframe.h */ -#ifndef WX_EESCHEMA_STRUCT_H -#define WX_EESCHEMA_STRUCT_H +#ifndef _SCHFRAME_H_ +#define _SCHFRAME_H_ #include #include @@ -885,11 +885,13 @@ private: void OnOpenLibraryEditor( wxCommandEvent& event ); void OnRescueProject( wxCommandEvent& event ); void OnRemapSymbols( wxCommandEvent& aEvent ); + // a helper function to run the dialog that allows to rename the symbol library Id of // groups of components, for instance after a symbol has moved from a library to // an other library void OnEditComponentSymbolsId( wxCommandEvent& aEvent ); void OnPreferencesOptions( wxCommandEvent& event ); + void OnConfigurePaths( wxCommandEvent& aEvent ); void OnCancelCurrentCommand( wxCommandEvent& aEvent ); void OnSelectItem( wxCommandEvent& aEvent ); @@ -1474,4 +1476,4 @@ public: }; -#endif // WX_EESCHEMA_STRUCT_H +#endif // _SCHFRAME_H_