Add environment variable configuration dialog to Eeschema.
Fixes lp:1739910 https://bugs.launchpad.net/kicad/+bug/1739910
This commit is contained in:
parent
f7ab50f791
commit
570866557f
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
* @file schframe.h
|
||||
*/
|
||||
|
||||
#ifndef WX_EESCHEMA_STRUCT_H
|
||||
#define WX_EESCHEMA_STRUCT_H
|
||||
#ifndef _SCHFRAME_H_
|
||||
#define _SCHFRAME_H_
|
||||
|
||||
#include <sch_base_frame.h>
|
||||
#include <config_params.h>
|
||||
|
@ -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_
|
||||
|
|
Loading…
Reference in New Issue