Fix naming of `updateTitle()`

This is a private function so should be lowercased to avoid confusion
This commit is contained in:
Seth Hillbrand 2023-01-11 16:05:43 -08:00
parent 8aff923710
commit f4ac4be701
4 changed files with 10 additions and 10 deletions

View File

@ -500,7 +500,7 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
TestDanglingEnds();
UpdateHierarchyNavigator();
UpdateTitle();
updateTitle();
m_toolManager->GetTool<SCH_NAVIGATE_TOOL>()->ResetHistory();
wxFileName fn = Prj().AbsolutePath( GetScreen()->GetFileName() );
@ -1113,7 +1113,7 @@ bool SCH_EDIT_FRAME::SaveProject( bool aSaveAs )
SetStatusText( msg, 0 );
}
UpdateTitle();
updateTitle();
if( m_infoBar->GetMessageType() == WX_INFOBAR::MESSAGE_TYPE::OUTDATED_SAVE )
m_infoBar->Dismiss();
@ -1273,7 +1273,7 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
SyncView();
UpdateHierarchyNavigator();
UpdateTitle();
updateTitle();
}
catch( const IO_ERROR& ioe )
{

View File

@ -264,7 +264,7 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
// Net list generator
DefaultExecFlags();
UpdateTitle();
updateTitle();
m_toolManager->GetTool<SCH_NAVIGATE_TOOL>()->ResetHistory();
// Default shutdown reason until a file is loaded
@ -944,7 +944,7 @@ void SCH_EDIT_FRAME::OnModify()
UpdateHierarchyNavigator();
if( !GetTitle().StartsWith( "*" ) )
UpdateTitle();
updateTitle();
}
@ -1382,7 +1382,7 @@ void SCH_EDIT_FRAME::AddItemToScreenAndUndoList( SCH_SCREEN* aScreen, SCH_ITEM*
}
void SCH_EDIT_FRAME::UpdateTitle()
void SCH_EDIT_FRAME::updateTitle()
{
SCH_SCREEN* screen = GetScreen();
@ -1586,7 +1586,7 @@ void SCH_EDIT_FRAME::ShowChangedLanguage()
// status bar
UpdateMsgPanel();
UpdateTitle();
updateTitle();
// This ugly hack is to fix an option(left) toolbar update bug that seems to only affect
// windows. See https://bugs.launchpad.net/kicad/+bug/1816492. For some reason, calling
@ -1885,7 +1885,7 @@ void SCH_EDIT_FRAME::DisplayCurrentSheet()
RedrawScreen( (wxPoint) GetScreen()->m_ScrollCenter, false );
}
UpdateTitle();
updateTitle();
HardRedraw(); // Ensure all items are redrawn (especially the drawing-sheet items)

View File

@ -870,7 +870,7 @@ private:
* Otherwise, the title is set to the hierarchical sheet path and the full file name, and
* read only is appended to the title if the user does not have write access to the file.
*/
void UpdateTitle();
void updateTitle();
/**
* Initialize the zoom value of the current screen and mark the screen as zoom-initialized.

View File

@ -101,7 +101,7 @@ int SCH_FIND_REPLACE_TOOL::UpdateFind( const TOOL_EVENT& aEvent )
getView()->UpdateItems();
m_frame->GetCanvas()->Refresh();
m_frame->UpdateTitle();
m_frame->updateTitle();
return 0;
}