Sync-ing of menu has been done in CONDITIONAL_MENU for some time now.

This commit is contained in:
Jeff Young 2019-06-10 15:35:01 +01:00
parent 19638b2226
commit b0e8443383
21 changed files with 21 additions and 21 deletions

View File

@ -977,6 +977,6 @@ void TOOL_MANAGER::UpdateUI()
if( frame )
{
frame->UpdateStatusBar();
frame->SyncMenusAndToolbars();
frame->SyncToolbars();
}
}

View File

@ -445,7 +445,7 @@ void DISPLAY_FOOTPRINTS_FRAME::UpdateMsgPanel()
}
void DISPLAY_FOOTPRINTS_FRAME::SyncMenusAndToolbars()
void DISPLAY_FOOTPRINTS_FRAME::SyncToolbars()
{
m_mainToolBar->Toggle( ACTIONS::zoomTool, GetToolId() == ID_ZOOM_SELECTION );
m_mainToolBar->Refresh();

View File

@ -127,7 +127,7 @@ public:
// currently: do nothing in CvPcb.
}
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
DECLARE_EVENT_TABLE()
};

View File

@ -452,7 +452,7 @@ public:
void ShowChangedLanguage() override;
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
void SetScreen( BASE_SCREEN* aScreen ) override;

View File

@ -251,7 +251,7 @@ bool LIB_EDIT_FRAME::LoadOneLibraryPartAux( LIB_ALIAS* aEntry, const wxString& a
updateTitle();
RebuildSymbolUnitsList();
SetShowDeMorgan( GetCurPart()->HasConversion() );
SyncMenusAndToolbars();
SyncToolbars();
// Display the document information based on the entry selected just in
// case the entry is an alias.

View File

@ -156,7 +156,7 @@ void LIB_EDIT_FRAME::ReCreateOptToolbar()
}
void LIB_EDIT_FRAME::SyncMenusAndToolbars()
void LIB_EDIT_FRAME::SyncToolbars()
{
KIGFX::GAL_DISPLAY_OPTIONS& galOpts = GetGalDisplayOptions();

View File

@ -1097,7 +1097,7 @@ public:
void ShowChangedLanguage() override;
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
void SetScreen( BASE_SCREEN* aScreen ) override;

View File

@ -167,7 +167,7 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
}
void SCH_EDIT_FRAME::SyncMenusAndToolbars()
void SCH_EDIT_FRAME::SyncToolbars()
{
KIGFX::GAL_DISPLAY_OPTIONS& galOpts = GetGalDisplayOptions();
SCH_SHEET_LIST sheetList( g_RootSheet );

View File

@ -146,7 +146,7 @@ void LIB_VIEW_FRAME::ReCreateMenuBar()
}
void LIB_VIEW_FRAME::SyncMenusAndToolbars()
void LIB_VIEW_FRAME::SyncToolbars()
{
LIB_PART* symbol = GetSelectedSymbol();
LIB_ALIAS* alias = GetSelectedAlias();

View File

@ -138,7 +138,7 @@ public:
const BOX2I GetDocumentExtents() const override;
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
private:
// Sets up the tool framework

View File

@ -592,7 +592,7 @@ public:
*/
void CommonSettingsChanged() override;
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
DECLARE_EVENT_TABLE()
};

View File

@ -463,7 +463,7 @@ void GERBVIEW_FRAME::OnUpdateLayerSelectBox( wxUpdateUIEvent& aEvent )
}
void GERBVIEW_FRAME::SyncMenusAndToolbars()
void GERBVIEW_FRAME::SyncToolbars()
{
KIGFX::GAL_DISPLAY_OPTIONS& galOpts = GetGalDisplayOptions();

View File

@ -414,7 +414,7 @@ public:
* Update the toolbars (mostly settings/check buttons/checkboxes) with the current
* controller state.
*/
virtual void SyncMenusAndToolbars() { };
virtual void SyncToolbars() { };
/**
* Redraw the menus and what not in current language.

View File

@ -147,7 +147,7 @@ public:
*/
void OnChangeWatchedPaths( wxCommandEvent& aEvent );
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
void SetProjectFileName( const wxString& aFullProjectProFileName );
const wxString GetProjectFileName();

View File

@ -223,7 +223,7 @@ void KICAD_MANAGER_FRAME::RecreateLauncher()
}
void KICAD_MANAGER_FRAME::SyncMenusAndToolbars()
void KICAD_MANAGER_FRAME::SyncToolbars()
{
m_launcher->Toggle( KICAD_MANAGER_ACTIONS::editSchematic, m_active_project );
m_launcher->Toggle( KICAD_MANAGER_ACTIONS::editSymbols, m_active_project );

View File

@ -162,7 +162,7 @@ public:
void ReCreateMenuBar() override;
double BestZoom() override;
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
const PL_EDITOR_LAYOUT& GetPageLayout() const { return m_pageLayout; }
PL_EDITOR_LAYOUT& GetPageLayout() { return m_pageLayout; }

View File

@ -143,7 +143,7 @@ void PL_EDITOR_FRAME::ReCreateOptToolbar()
}
void PL_EDITOR_FRAME::SyncMenusAndToolbars()
void PL_EDITOR_FRAME::SyncToolbars()
{
m_mainToolBar->Toggle( ACTIONS::save, GetScreen() && GetScreen()->IsModify() );
m_mainToolBar->Toggle( ACTIONS::undo, GetScreen() && GetScreen()->GetUndoCommandCount() > 0 );

View File

@ -336,7 +336,7 @@ public:
void KiwayMailIn( KIWAY_EXPRESS& mail ) override;
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
DECLARE_EVENT_TABLE()

View File

@ -1020,7 +1020,7 @@ public:
*/
void CommonSettingsChanged() override;
void SyncMenusAndToolbars() override;
void SyncToolbars() override;
DECLARE_EVENT_TABLE()
};

View File

@ -172,7 +172,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar()
}
void FOOTPRINT_EDIT_FRAME::SyncMenusAndToolbars()
void FOOTPRINT_EDIT_FRAME::SyncToolbars()
{
PCB_DISPLAY_OPTIONS* opts = (PCB_DISPLAY_OPTIONS*) GetDisplayOptions();

View File

@ -694,7 +694,7 @@ void PCB_EDIT_FRAME::OnUpdateMuWaveToolbar( wxUpdateUIEvent& aEvent )
}
void PCB_EDIT_FRAME::SyncMenusAndToolbars()
void PCB_EDIT_FRAME::SyncToolbars()
{
PCB_DISPLAY_OPTIONS* opts = (PCB_DISPLAY_OPTIONS*) GetDisplayOptions();
KIGFX::GAL_DISPLAY_OPTIONS& galOpts = GetGalDisplayOptions();