Allow Kicad Manager frame to particapate in Preferences architecture.
This commit is contained in:
parent
e691704a82
commit
36f09cb29b
|
@ -529,6 +529,10 @@ void EDA_BASE_FRAME::OnPreferences( wxCommandEvent& event )
|
||||||
frame->InstallPreferences( &dlg, hotkeysPanel );
|
frame->InstallPreferences( &dlg, hotkeysPanel );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The Kicad manager frame is not a player so we have to add it by hand
|
||||||
|
if( IsType( KICAD_MAIN_FRAME_T ) )
|
||||||
|
InstallPreferences( &dlg, hotkeysPanel );
|
||||||
|
|
||||||
if( dlg.ShowModal() == wxID_OK )
|
if( dlg.ShowModal() == wxID_OK )
|
||||||
dlg.Kiway().CommonSettingsChanged();
|
dlg.Kiway().CommonSettingsChanged();
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <executable_names.h>
|
#include <executable_names.h>
|
||||||
#include <build_version.h>
|
#include <build_version.h>
|
||||||
#include "pgm_kicad.h"
|
#include "pgm_kicad.h"
|
||||||
|
#include <panel_hotkeys_editor.h>
|
||||||
#include "tree_project_frame.h"
|
#include "tree_project_frame.h"
|
||||||
#include "kicad_id.h"
|
#include "kicad_id.h"
|
||||||
#include <tool/tool_manager.h>
|
#include <tool/tool_manager.h>
|
||||||
|
@ -480,6 +481,16 @@ void KICAD_MANAGER_FRAME::SaveSettings( wxConfigBase* aCfg )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void KICAD_MANAGER_FRAME::InstallPreferences( PAGED_DIALOG* aParent,
|
||||||
|
PANEL_HOTKEYS_EDITOR* aHotkeysPanel )
|
||||||
|
{
|
||||||
|
aHotkeysPanel->AddHotKeys( GetToolManager() );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void KICAD_MANAGER_FRAME::PrintPrjInfo()
|
void KICAD_MANAGER_FRAME::PrintPrjInfo()
|
||||||
{
|
{
|
||||||
wxString msg = wxString::Format( _( "Project name:\n%s\n" ),
|
wxString msg = wxString::Format( _( "Project name:\n%s\n" ),
|
||||||
|
|
|
@ -149,6 +149,8 @@ public:
|
||||||
|
|
||||||
void SyncToolbars() override;
|
void SyncToolbars() override;
|
||||||
|
|
||||||
|
void InstallPreferences( PAGED_DIALOG* aParent, PANEL_HOTKEYS_EDITOR* aHotkeysPanel ) override;
|
||||||
|
|
||||||
void SetProjectFileName( const wxString& aFullProjectProFileName );
|
void SetProjectFileName( const wxString& aFullProjectProFileName );
|
||||||
const wxString GetProjectFileName();
|
const wxString GetProjectFileName();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue